@allthings/sdk 6.1.0 → 6.2.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +21 -23
- package/dist/lib.cjs.js +21 -23
- package/dist/lib.esm.js +21 -23
- package/dist/lib.umd.min.js +1 -1
- package/dist/src/aws/index.d.ts +11 -0
- package/dist/src/aws/parameterStore.d.ts +13 -0
- package/dist/src/index.d.ts +5 -5
- package/dist/src/oauth/types.d.ts +1 -1
- package/dist/src/rest/index.d.ts +1 -1
- package/dist/src/rest/methods/agent.d.ts +3 -3
- package/dist/src/rest/methods/app.d.ts +4 -4
- package/dist/src/rest/methods/bucket.d.ts +4 -4
- package/dist/src/rest/methods/conversation.d.ts +6 -6
- package/dist/src/rest/methods/file.d.ts +11 -11
- package/dist/src/rest/methods/group.d.ts +2 -2
- package/dist/src/rest/methods/idLookup.d.ts +4 -4
- package/dist/src/rest/methods/registrationCode.d.ts +6 -6
- package/dist/src/rest/methods/ticket.d.ts +19 -19
- package/dist/src/rest/methods/user.d.ts +24 -24
- package/dist/src/rest/methods/userRelation.d.ts +15 -15
- package/dist/src/rest/methods/utilisationPeriod.d.ts +16 -16
- package/dist/src/rest/request.d.ts +1 -1
- package/dist/src/rest/types.d.ts +8 -8
- package/dist/src/utils/functional.d.ts +1 -1
- package/dist/src/utils/sleep.d.ts +1 -1
- package/dist/src/utils/upload.d.ts +6 -6
- package/dist/test/constants.js +16 -0
- package/dist/test/helpers.js +55 -0
- package/package.json +10 -9
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,16 @@ var https = require('https');
|
|
|
12
12
|
var url = require('url');
|
|
13
13
|
var fs = require('fs');
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
function createTokenStore(initialToken) {
|
|
16
|
+
const token = new Map(Object.entries(initialToken || {}));
|
|
17
|
+
return {
|
|
18
|
+
get: (key) => token.get(key),
|
|
19
|
+
reset: () => token.clear(),
|
|
20
|
+
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const version = "6.2.0-1";
|
|
16
25
|
|
|
17
26
|
const REST_API_URL = 'https://api.allthings.me';
|
|
18
27
|
const OAUTH_URL = 'https://accounts.allthings.me';
|
|
@@ -56,8 +65,8 @@ const isEligibleForClientRedirect$1 = (params) => {
|
|
|
56
65
|
}
|
|
57
66
|
};
|
|
58
67
|
const getRedirectUrl$1 = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams$1(params), {
|
|
59
|
-
skipNull: true,
|
|
60
68
|
skipEmptyString: true,
|
|
69
|
+
skipNull: true,
|
|
61
70
|
})}`;
|
|
62
71
|
const castToTokenRequestParams$2 = (params) => {
|
|
63
72
|
const { authorizationCode, redirectUri, clientId, clientSecret } = params;
|
|
@@ -82,15 +91,6 @@ const isEligible$3 = (params) => {
|
|
|
82
91
|
};
|
|
83
92
|
const requestToken$3 = (tokenRequester, params) => tokenRequester(castToTokenRequestParams$2(params));
|
|
84
93
|
|
|
85
|
-
function createTokenStore(initialToken) {
|
|
86
|
-
const token = new Map(Object.entries(initialToken || {}));
|
|
87
|
-
return {
|
|
88
|
-
get: (key) => token.get(key),
|
|
89
|
-
reset: () => token.clear(),
|
|
90
|
-
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
94
|
const SUBSCRIPTIONS = (process.env.DEBUG &&
|
|
95
95
|
process.env.DEBUG.split(',').map((item) => item.trim())) ||
|
|
96
96
|
[];
|
|
@@ -110,8 +110,8 @@ const makeFetchTokenRequester = (url) => async (params) => {
|
|
|
110
110
|
try {
|
|
111
111
|
const response = await fetch(url, {
|
|
112
112
|
body: querystring.stringify(params, {
|
|
113
|
-
skipNull: true,
|
|
114
113
|
skipEmptyString: true,
|
|
114
|
+
skipNull: true,
|
|
115
115
|
}),
|
|
116
116
|
cache: 'no-cache',
|
|
117
117
|
credentials: 'omit',
|
|
@@ -10831,8 +10831,8 @@ var db = {
|
|
|
10831
10831
|
};
|
|
10832
10832
|
|
|
10833
10833
|
var db$1 = /*#__PURE__*/Object.freeze({
|
|
10834
|
-
|
|
10835
|
-
|
|
10834
|
+
__proto__: null,
|
|
10835
|
+
default: db
|
|
10836
10836
|
});
|
|
10837
10837
|
|
|
10838
10838
|
var require$$0 = getCjsExportFromNamespace(db$1);
|
|
@@ -11946,8 +11946,8 @@ const isEligibleForClientRedirect = (params) => {
|
|
|
11946
11946
|
}
|
|
11947
11947
|
};
|
|
11948
11948
|
const getRedirectUrl = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams(params), {
|
|
11949
|
-
skipNull: true,
|
|
11950
11949
|
skipEmptyString: true,
|
|
11950
|
+
skipNull: true,
|
|
11951
11951
|
})}`;
|
|
11952
11952
|
|
|
11953
11953
|
const GRANT_TYPE = 'password';
|
|
@@ -12011,15 +12011,13 @@ async function maybeUpdateToken(oauthTokenStore, tokenFetcher, options, mustRefr
|
|
|
12011
12011
|
return;
|
|
12012
12012
|
}
|
|
12013
12013
|
|
|
12014
|
-
function sleep(
|
|
12015
|
-
return new Promise((resolve) => setTimeout(() => resolve(true),
|
|
12014
|
+
function sleep(milliseconds) {
|
|
12015
|
+
return new Promise((resolve) => setTimeout(() => resolve(true), milliseconds));
|
|
12016
12016
|
}
|
|
12017
12017
|
|
|
12018
12018
|
const requestLogger = makeLogger('REST API Request');
|
|
12019
12019
|
const responseLogger = makeLogger('REST API Response');
|
|
12020
|
-
const RETRYABLE_STATUS_CODES = [
|
|
12021
|
-
401, 408, 429, 502, 503, 504,
|
|
12022
|
-
];
|
|
12020
|
+
const RETRYABLE_STATUS_CODES = [401, 408, 429, 502, 503, 504];
|
|
12023
12021
|
const TOKEN_REFRESH_STATUS_CODES = [401];
|
|
12024
12022
|
const queue = new Bottleneck({
|
|
12025
12023
|
maxConcurrent: QUEUE_CONCURRENCY,
|
|
@@ -12092,8 +12090,8 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12092
12090
|
const payloadQuery = payload && payload.query
|
|
12093
12091
|
? (apiMethod.includes('?') ? '&' : '?') +
|
|
12094
12092
|
querystring.stringify(payload.query, {
|
|
12095
|
-
skipNull: true,
|
|
12096
12093
|
skipEmptyString: true,
|
|
12094
|
+
skipNull: true,
|
|
12097
12095
|
})
|
|
12098
12096
|
: '';
|
|
12099
12097
|
const url = `${options.apiUrl}/api${apiMethod}${payloadQuery}`;
|
|
@@ -12104,9 +12102,9 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12104
12102
|
previous.append.apply(previous, [name].concat(value));
|
|
12105
12103
|
return previous;
|
|
12106
12104
|
}, new form_data());
|
|
12107
|
-
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${
|
|
12105
|
+
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${options.serviceName
|
|
12108
12106
|
? options.serviceName
|
|
12109
|
-
:
|
|
12107
|
+
: process.env.SEVICE_NAME
|
|
12110
12108
|
? process.env.SEVICE_NAME
|
|
12111
12109
|
: 'unknown service name'} --- clientID ${(_c = (_b = (_a = options.clientId) === null || _a === void 0 ? void 0 : _a.split('_')[0]) !== null && _b !== void 0 ? _b : options.clientId) !== null && _c !== void 0 ? _c : 'no client id present'}` }, (!hasForm ? { 'content-type': 'application/json' } : {})), (typeof window === 'undefined' &&
|
|
12112
12110
|
typeof document === 'undefined' && { 'user-agent': USER_AGENT })), (payload && payload.headers ? payload.headers : {})), (hasForm && formData.getHeaders ? formData.getHeaders() : {}));
|
package/dist/lib.cjs.js
CHANGED
|
@@ -11,7 +11,16 @@ var https = require('https');
|
|
|
11
11
|
var url = require('url');
|
|
12
12
|
var fs = require('fs');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
function createTokenStore(initialToken) {
|
|
15
|
+
const token = new Map(Object.entries(initialToken || {}));
|
|
16
|
+
return {
|
|
17
|
+
get: (key) => token.get(key),
|
|
18
|
+
reset: () => token.clear(),
|
|
19
|
+
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const version = "6.2.0-1";
|
|
15
24
|
|
|
16
25
|
const REST_API_URL = 'https://api.allthings.me';
|
|
17
26
|
const OAUTH_URL = 'https://accounts.allthings.me';
|
|
@@ -55,8 +64,8 @@ const isEligibleForClientRedirect$1 = (params) => {
|
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
const getRedirectUrl$1 = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams$1(params), {
|
|
58
|
-
skipNull: true,
|
|
59
67
|
skipEmptyString: true,
|
|
68
|
+
skipNull: true,
|
|
60
69
|
})}`;
|
|
61
70
|
const castToTokenRequestParams$2 = (params) => {
|
|
62
71
|
const { authorizationCode, redirectUri, clientId, clientSecret } = params;
|
|
@@ -81,15 +90,6 @@ const isEligible$3 = (params) => {
|
|
|
81
90
|
};
|
|
82
91
|
const requestToken$3 = (tokenRequester, params) => tokenRequester(castToTokenRequestParams$2(params));
|
|
83
92
|
|
|
84
|
-
function createTokenStore(initialToken) {
|
|
85
|
-
const token = new Map(Object.entries(initialToken || {}));
|
|
86
|
-
return {
|
|
87
|
-
get: (key) => token.get(key),
|
|
88
|
-
reset: () => token.clear(),
|
|
89
|
-
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
93
|
const SUBSCRIPTIONS = (process.env.DEBUG &&
|
|
94
94
|
process.env.DEBUG.split(',').map((item) => item.trim())) ||
|
|
95
95
|
[];
|
|
@@ -109,8 +109,8 @@ const makeFetchTokenRequester = (url) => async (params) => {
|
|
|
109
109
|
try {
|
|
110
110
|
const response = await fetch(url, {
|
|
111
111
|
body: querystring.stringify(params, {
|
|
112
|
-
skipNull: true,
|
|
113
112
|
skipEmptyString: true,
|
|
113
|
+
skipNull: true,
|
|
114
114
|
}),
|
|
115
115
|
cache: 'no-cache',
|
|
116
116
|
credentials: 'omit',
|
|
@@ -10830,8 +10830,8 @@ var db = {
|
|
|
10830
10830
|
};
|
|
10831
10831
|
|
|
10832
10832
|
var db$1 = /*#__PURE__*/Object.freeze({
|
|
10833
|
-
|
|
10834
|
-
|
|
10833
|
+
__proto__: null,
|
|
10834
|
+
default: db
|
|
10835
10835
|
});
|
|
10836
10836
|
|
|
10837
10837
|
var require$$0 = getCjsExportFromNamespace(db$1);
|
|
@@ -11945,8 +11945,8 @@ const isEligibleForClientRedirect = (params) => {
|
|
|
11945
11945
|
}
|
|
11946
11946
|
};
|
|
11947
11947
|
const getRedirectUrl = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams(params), {
|
|
11948
|
-
skipNull: true,
|
|
11949
11948
|
skipEmptyString: true,
|
|
11949
|
+
skipNull: true,
|
|
11950
11950
|
})}`;
|
|
11951
11951
|
|
|
11952
11952
|
const GRANT_TYPE = 'password';
|
|
@@ -12010,15 +12010,13 @@ async function maybeUpdateToken(oauthTokenStore, tokenFetcher, options, mustRefr
|
|
|
12010
12010
|
return;
|
|
12011
12011
|
}
|
|
12012
12012
|
|
|
12013
|
-
function sleep(
|
|
12014
|
-
return new Promise((resolve) => setTimeout(() => resolve(true),
|
|
12013
|
+
function sleep(milliseconds) {
|
|
12014
|
+
return new Promise((resolve) => setTimeout(() => resolve(true), milliseconds));
|
|
12015
12015
|
}
|
|
12016
12016
|
|
|
12017
12017
|
const requestLogger = makeLogger('REST API Request');
|
|
12018
12018
|
const responseLogger = makeLogger('REST API Response');
|
|
12019
|
-
const RETRYABLE_STATUS_CODES = [
|
|
12020
|
-
401, 408, 429, 502, 503, 504,
|
|
12021
|
-
];
|
|
12019
|
+
const RETRYABLE_STATUS_CODES = [401, 408, 429, 502, 503, 504];
|
|
12022
12020
|
const TOKEN_REFRESH_STATUS_CODES = [401];
|
|
12023
12021
|
const queue = new Bottleneck({
|
|
12024
12022
|
maxConcurrent: QUEUE_CONCURRENCY,
|
|
@@ -12091,8 +12089,8 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12091
12089
|
const payloadQuery = payload && payload.query
|
|
12092
12090
|
? (apiMethod.includes('?') ? '&' : '?') +
|
|
12093
12091
|
querystring.stringify(payload.query, {
|
|
12094
|
-
skipNull: true,
|
|
12095
12092
|
skipEmptyString: true,
|
|
12093
|
+
skipNull: true,
|
|
12096
12094
|
})
|
|
12097
12095
|
: '';
|
|
12098
12096
|
const url = `${options.apiUrl}/api${apiMethod}${payloadQuery}`;
|
|
@@ -12103,9 +12101,9 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12103
12101
|
previous.append.apply(previous, [name].concat(value));
|
|
12104
12102
|
return previous;
|
|
12105
12103
|
}, new form_data());
|
|
12106
|
-
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${
|
|
12104
|
+
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${options.serviceName
|
|
12107
12105
|
? options.serviceName
|
|
12108
|
-
:
|
|
12106
|
+
: process.env.SEVICE_NAME
|
|
12109
12107
|
? process.env.SEVICE_NAME
|
|
12110
12108
|
: 'unknown service name'} --- clientID ${(_c = (_b = (_a = options.clientId) === null || _a === void 0 ? void 0 : _a.split('_')[0]) !== null && _b !== void 0 ? _b : options.clientId) !== null && _c !== void 0 ? _c : 'no client id present'}` }, (!hasForm ? { 'content-type': 'application/json' } : {})), (typeof window === 'undefined' &&
|
|
12111
12109
|
typeof document === 'undefined' && { 'user-agent': USER_AGENT })), (payload && payload.headers ? payload.headers : {})), (hasForm && formData.getHeaders ? formData.getHeaders() : {}));
|
package/dist/lib.esm.js
CHANGED
|
@@ -9,7 +9,16 @@ import https from 'https';
|
|
|
9
9
|
import url from 'url';
|
|
10
10
|
import fs from 'fs';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function createTokenStore(initialToken) {
|
|
13
|
+
const token = new Map(Object.entries(initialToken || {}));
|
|
14
|
+
return {
|
|
15
|
+
get: (key) => token.get(key),
|
|
16
|
+
reset: () => token.clear(),
|
|
17
|
+
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const version = "6.2.0-1";
|
|
13
22
|
|
|
14
23
|
const REST_API_URL = 'https://api.allthings.me';
|
|
15
24
|
const OAUTH_URL = 'https://accounts.allthings.me';
|
|
@@ -53,8 +62,8 @@ const isEligibleForClientRedirect$1 = (params) => {
|
|
|
53
62
|
}
|
|
54
63
|
};
|
|
55
64
|
const getRedirectUrl$1 = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams$1(params), {
|
|
56
|
-
skipNull: true,
|
|
57
65
|
skipEmptyString: true,
|
|
66
|
+
skipNull: true,
|
|
58
67
|
})}`;
|
|
59
68
|
const castToTokenRequestParams$2 = (params) => {
|
|
60
69
|
const { authorizationCode, redirectUri, clientId, clientSecret } = params;
|
|
@@ -79,15 +88,6 @@ const isEligible$3 = (params) => {
|
|
|
79
88
|
};
|
|
80
89
|
const requestToken$3 = (tokenRequester, params) => tokenRequester(castToTokenRequestParams$2(params));
|
|
81
90
|
|
|
82
|
-
function createTokenStore(initialToken) {
|
|
83
|
-
const token = new Map(Object.entries(initialToken || {}));
|
|
84
|
-
return {
|
|
85
|
-
get: (key) => token.get(key),
|
|
86
|
-
reset: () => token.clear(),
|
|
87
|
-
set: (update) => Object.entries(update).forEach(([key, value]) => token.set(key, value)),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
91
|
const SUBSCRIPTIONS = (process.env.DEBUG &&
|
|
92
92
|
process.env.DEBUG.split(',').map((item) => item.trim())) ||
|
|
93
93
|
[];
|
|
@@ -107,8 +107,8 @@ const makeFetchTokenRequester = (url) => async (params) => {
|
|
|
107
107
|
try {
|
|
108
108
|
const response = await fetch(url, {
|
|
109
109
|
body: querystring.stringify(params, {
|
|
110
|
-
skipNull: true,
|
|
111
110
|
skipEmptyString: true,
|
|
111
|
+
skipNull: true,
|
|
112
112
|
}),
|
|
113
113
|
cache: 'no-cache',
|
|
114
114
|
credentials: 'omit',
|
|
@@ -10828,8 +10828,8 @@ var db = {
|
|
|
10828
10828
|
};
|
|
10829
10829
|
|
|
10830
10830
|
var db$1 = /*#__PURE__*/Object.freeze({
|
|
10831
|
-
|
|
10832
|
-
|
|
10831
|
+
__proto__: null,
|
|
10832
|
+
default: db
|
|
10833
10833
|
});
|
|
10834
10834
|
|
|
10835
10835
|
var require$$0 = getCjsExportFromNamespace(db$1);
|
|
@@ -11943,8 +11943,8 @@ const isEligibleForClientRedirect = (params) => {
|
|
|
11943
11943
|
}
|
|
11944
11944
|
};
|
|
11945
11945
|
const getRedirectUrl = (params) => `${params.oauthUrl}/oauth/authorize?${querystring.stringify(castToAuthorizationRequestParams(params), {
|
|
11946
|
-
skipNull: true,
|
|
11947
11946
|
skipEmptyString: true,
|
|
11947
|
+
skipNull: true,
|
|
11948
11948
|
})}`;
|
|
11949
11949
|
|
|
11950
11950
|
const GRANT_TYPE = 'password';
|
|
@@ -12008,15 +12008,13 @@ async function maybeUpdateToken(oauthTokenStore, tokenFetcher, options, mustRefr
|
|
|
12008
12008
|
return;
|
|
12009
12009
|
}
|
|
12010
12010
|
|
|
12011
|
-
function sleep(
|
|
12012
|
-
return new Promise((resolve) => setTimeout(() => resolve(true),
|
|
12011
|
+
function sleep(milliseconds) {
|
|
12012
|
+
return new Promise((resolve) => setTimeout(() => resolve(true), milliseconds));
|
|
12013
12013
|
}
|
|
12014
12014
|
|
|
12015
12015
|
const requestLogger = makeLogger('REST API Request');
|
|
12016
12016
|
const responseLogger = makeLogger('REST API Response');
|
|
12017
|
-
const RETRYABLE_STATUS_CODES = [
|
|
12018
|
-
401, 408, 429, 502, 503, 504,
|
|
12019
|
-
];
|
|
12017
|
+
const RETRYABLE_STATUS_CODES = [401, 408, 429, 502, 503, 504];
|
|
12020
12018
|
const TOKEN_REFRESH_STATUS_CODES = [401];
|
|
12021
12019
|
const queue = new Bottleneck({
|
|
12022
12020
|
maxConcurrent: QUEUE_CONCURRENCY,
|
|
@@ -12089,8 +12087,8 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12089
12087
|
const payloadQuery = payload && payload.query
|
|
12090
12088
|
? (apiMethod.includes('?') ? '&' : '?') +
|
|
12091
12089
|
querystring.stringify(payload.query, {
|
|
12092
|
-
skipNull: true,
|
|
12093
12090
|
skipEmptyString: true,
|
|
12091
|
+
skipNull: true,
|
|
12094
12092
|
})
|
|
12095
12093
|
: '';
|
|
12096
12094
|
const url = `${options.apiUrl}/api${apiMethod}${payloadQuery}`;
|
|
@@ -12101,9 +12099,9 @@ function makeApiRequest(oauthTokenStore, oauthTokenRequester, options, httpMetho
|
|
|
12101
12099
|
previous.append.apply(previous, [name].concat(value));
|
|
12102
12100
|
return previous;
|
|
12103
12101
|
}, new form_data());
|
|
12104
|
-
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${
|
|
12102
|
+
const headers = Object.assign(Object.assign(Object.assign(Object.assign({ accept: 'application/json', authorization: `Bearer ${oauthTokenStore.get('accessToken')}`, 'X-Allthings-Caller': `${options.serviceName
|
|
12105
12103
|
? options.serviceName
|
|
12106
|
-
:
|
|
12104
|
+
: process.env.SEVICE_NAME
|
|
12107
12105
|
? process.env.SEVICE_NAME
|
|
12108
12106
|
: 'unknown service name'} --- clientID ${(_c = (_b = (_a = options.clientId) === null || _a === void 0 ? void 0 : _a.split('_')[0]) !== null && _b !== void 0 ? _b : options.clientId) !== null && _c !== void 0 ? _c : 'no client id present'}` }, (!hasForm ? { 'content-type': 'application/json' } : {})), (typeof window === 'undefined' &&
|
|
12109
12107
|
typeof document === 'undefined' && { 'user-agent': USER_AGENT })), (payload && payload.headers ? payload.headers : {})), (hasForm && formData.getHeaders ? formData.getHeaders() : {}));
|