-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconstants.js
26 lines (23 loc) · 941 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
// Validation constants. If any value given for these fields are
// given a warning will be printed.
exports.VALID_TYPES = ['arl', 'cpcode'];
exports.VALID_ACTIONS = ['remove', 'invalidate'];
exports.VALID_DOMAINS = ['production', 'staging'];
// Akamai URLs
exports.AKAMAI_API_BASE = 'https://api.ccu.akamai.com';
exports.AKAMAI_API_QUEUE = exports.AKAMAI_API_BASE + '/ccu/v2/queues/default';
// Chainable request modifiers. These define the available modifiers that
// help with the configuration of a request to Akamai. Each modifier will return
// an altered function with a new set of modifiers. This function, when called,
// will pass the configured options.
exports.MODIFIERS = {
production: {domain: 'production'},
staging: {domain: 'staging'},
cpcode: {type: 'cpcode'},
url: {type: 'arl'},
uri: {type: 'arl'},
arl: {type: 'arl'},
remove: {action: 'remove'},
invalidate: {action: 'invalidate'}
};