UNPKG

1.52 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _module = require('../module');
8
9var _module2 = _interopRequireDefault(_module);
10
11function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13_module2.default.constant('AV_API', {
14 HEADERS: {
15 SERVER: {
16 ID: 'X-API-ID',
17 LOCATION: 'Location',
18 STATUS: 'X-Status-Message',
19 GLOBAL_ID: 'X-Global-Transaction-ID'
20 },
21 CLIENT: {
22 SESSION_ID: 'X-Session-ID',
23 AUTH: 'Authorization',
24 OVERRIDE: 'X-HTTP-Method-Override',
25 CALLBACK_URL: 'X-Callback-URL',
26 CUSTOMER_ID: 'X-Availity-Customer-ID',
27 RESPONSE_ENCODING: 'X-Response-Encoding-Context'
28 }
29 },
30 OPTIONS: {
31
32 // default base segment for Availity API endpoints
33 path: '/api',
34
35 // full url to api resource
36 url: null,
37
38 // name of resource
39 name: null,
40
41 // defaults version for api
42 version: '/v1',
43
44 // cache all request by default
45 cache: true,
46
47 // flag used to enable behaviors around the Availity Rest API
48 api: true,
49
50 // in ms
51 pollingInterval: 1000,
52
53 // % the polling interval decays after every retry
54 pollingDecay: 1.2,
55
56 // maximum time polling is allowed before rejecting the request
57 pollingMaxInterval: 30000,
58
59 // default headers
60 headers: {
61 // Turn off content encoding for angular apis
62 'X-Response-Encoding-Context': 'NONE'
63 },
64 sessionBust: true
65 }
66});
67
68exports.default = _module2.default;
\No newline at end of file