dub 0.44.0 → 0.45.0
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/README.md +16 -45
- package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js +9 -4
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/domainsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsCreate.js +8 -4
- package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsDelete.js +8 -4
- package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
- package/dist/commonjs/funcs/domainsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsList.js +8 -4
- package/dist/commonjs/funcs/domainsList.js.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/domainsUpdate.js +8 -4
- package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +9 -4
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/linksCount.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCount.js +8 -4
- package/dist/commonjs/funcs/linksCount.js.map +1 -1
- package/dist/commonjs/funcs/linksCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCreate.js +8 -4
- package/dist/commonjs/funcs/linksCreate.js.map +1 -1
- package/dist/commonjs/funcs/linksCreateMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksCreateMany.js +8 -4
- package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksDelete.js +8 -4
- package/dist/commonjs/funcs/linksDelete.js.map +1 -1
- package/dist/commonjs/funcs/linksDeleteMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksDeleteMany.js +8 -4
- package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
- package/dist/commonjs/funcs/linksGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksGet.js +8 -4
- package/dist/commonjs/funcs/linksGet.js.map +1 -1
- package/dist/commonjs/funcs/linksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksList.js +8 -4
- package/dist/commonjs/funcs/linksList.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpdate.js +8 -4
- package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/linksUpdateMany.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpdateMany.js +8 -4
- package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
- package/dist/commonjs/funcs/linksUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/linksUpsert.js +8 -4
- package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
- package/dist/commonjs/funcs/metatagsGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/metatagsGet.js +8 -4
- package/dist/commonjs/funcs/metatagsGet.js.map +1 -1
- package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/qrCodesGet.js +8 -4
- package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
- package/dist/commonjs/funcs/tagsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsCreate.js +8 -4
- package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsDelete.js +8 -4
- package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tagsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsList.js +8 -4
- package/dist/commonjs/funcs/tagsList.js.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/tagsUpdate.js +8 -4
- package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackCustomer.js +8 -4
- package/dist/commonjs/funcs/trackCustomer.js.map +1 -1
- package/dist/commonjs/funcs/trackLead.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackLead.js +8 -4
- package/dist/commonjs/funcs/trackLead.js.map +1 -1
- package/dist/commonjs/funcs/trackSale.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackSale.js +8 -4
- package/dist/commonjs/funcs/trackSale.js.map +1 -1
- package/dist/commonjs/funcs/workspacesGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/workspacesGet.js +8 -4
- package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
- package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/workspacesUpdate.js +8 -4
- package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +4 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +4 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +13 -1
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/retries.d.ts +20 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -1
- package/dist/commonjs/lib/retries.js +51 -27
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +2 -2
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +14 -12
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +20 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +11 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/operations/getlinks.d.ts +1 -1
- package/dist/commonjs/models/operations/getlinkscount.d.ts +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +28 -1
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +18 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +28 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +18 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +9 -4
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/domainsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/domainsCreate.js +8 -4
- package/dist/esm/funcs/domainsCreate.js.map +1 -1
- package/dist/esm/funcs/domainsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/domainsDelete.js +8 -4
- package/dist/esm/funcs/domainsDelete.js.map +1 -1
- package/dist/esm/funcs/domainsList.d.ts.map +1 -1
- package/dist/esm/funcs/domainsList.js +8 -4
- package/dist/esm/funcs/domainsList.js.map +1 -1
- package/dist/esm/funcs/domainsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/domainsUpdate.js +8 -4
- package/dist/esm/funcs/domainsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +9 -4
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/linksCount.d.ts.map +1 -1
- package/dist/esm/funcs/linksCount.js +8 -4
- package/dist/esm/funcs/linksCount.js.map +1 -1
- package/dist/esm/funcs/linksCreate.d.ts.map +1 -1
- package/dist/esm/funcs/linksCreate.js +8 -4
- package/dist/esm/funcs/linksCreate.js.map +1 -1
- package/dist/esm/funcs/linksCreateMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksCreateMany.js +8 -4
- package/dist/esm/funcs/linksCreateMany.js.map +1 -1
- package/dist/esm/funcs/linksDelete.d.ts.map +1 -1
- package/dist/esm/funcs/linksDelete.js +8 -4
- package/dist/esm/funcs/linksDelete.js.map +1 -1
- package/dist/esm/funcs/linksDeleteMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksDeleteMany.js +8 -4
- package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
- package/dist/esm/funcs/linksGet.d.ts.map +1 -1
- package/dist/esm/funcs/linksGet.js +8 -4
- package/dist/esm/funcs/linksGet.js.map +1 -1
- package/dist/esm/funcs/linksList.d.ts.map +1 -1
- package/dist/esm/funcs/linksList.js +8 -4
- package/dist/esm/funcs/linksList.js.map +1 -1
- package/dist/esm/funcs/linksUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpdate.js +8 -4
- package/dist/esm/funcs/linksUpdate.js.map +1 -1
- package/dist/esm/funcs/linksUpdateMany.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpdateMany.js +8 -4
- package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
- package/dist/esm/funcs/linksUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/linksUpsert.js +8 -4
- package/dist/esm/funcs/linksUpsert.js.map +1 -1
- package/dist/esm/funcs/metatagsGet.d.ts.map +1 -1
- package/dist/esm/funcs/metatagsGet.js +8 -4
- package/dist/esm/funcs/metatagsGet.js.map +1 -1
- package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
- package/dist/esm/funcs/qrCodesGet.js +8 -4
- package/dist/esm/funcs/qrCodesGet.js.map +1 -1
- package/dist/esm/funcs/tagsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/tagsCreate.js +8 -4
- package/dist/esm/funcs/tagsCreate.js.map +1 -1
- package/dist/esm/funcs/tagsDelete.d.ts.map +1 -1
- package/dist/esm/funcs/tagsDelete.js +8 -4
- package/dist/esm/funcs/tagsDelete.js.map +1 -1
- package/dist/esm/funcs/tagsList.d.ts.map +1 -1
- package/dist/esm/funcs/tagsList.js +8 -4
- package/dist/esm/funcs/tagsList.js.map +1 -1
- package/dist/esm/funcs/tagsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/tagsUpdate.js +8 -4
- package/dist/esm/funcs/tagsUpdate.js.map +1 -1
- package/dist/esm/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/esm/funcs/trackCustomer.js +8 -4
- package/dist/esm/funcs/trackCustomer.js.map +1 -1
- package/dist/esm/funcs/trackLead.d.ts.map +1 -1
- package/dist/esm/funcs/trackLead.js +8 -4
- package/dist/esm/funcs/trackLead.js.map +1 -1
- package/dist/esm/funcs/trackSale.d.ts.map +1 -1
- package/dist/esm/funcs/trackSale.js +8 -4
- package/dist/esm/funcs/trackSale.js.map +1 -1
- package/dist/esm/funcs/workspacesGet.d.ts.map +1 -1
- package/dist/esm/funcs/workspacesGet.js +8 -4
- package/dist/esm/funcs/workspacesGet.js.map +1 -1
- package/dist/esm/funcs/workspacesUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/workspacesUpdate.js +8 -4
- package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +4 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +4 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +11 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/retries.d.ts +20 -0
- package/dist/esm/lib/retries.d.ts.map +1 -1
- package/dist/esm/lib/retries.js +50 -28
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +2 -2
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +14 -12
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +20 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +11 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/operations/getlinks.d.ts +1 -1
- package/dist/esm/models/operations/getlinkscount.d.ts +1 -1
- package/dist/esm/models/operations/listevents.d.ts +28 -1
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +17 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +28 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +17 -0
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +12 -4
- package/src/funcs/domainsCreate.ts +11 -4
- package/src/funcs/domainsDelete.ts +11 -4
- package/src/funcs/domainsList.ts +11 -4
- package/src/funcs/domainsUpdate.ts +11 -4
- package/src/funcs/eventsList.ts +12 -4
- package/src/funcs/linksCount.ts +11 -4
- package/src/funcs/linksCreate.ts +11 -4
- package/src/funcs/linksCreateMany.ts +11 -4
- package/src/funcs/linksDelete.ts +11 -4
- package/src/funcs/linksDeleteMany.ts +11 -4
- package/src/funcs/linksGet.ts +11 -4
- package/src/funcs/linksList.ts +11 -4
- package/src/funcs/linksUpdate.ts +11 -4
- package/src/funcs/linksUpdateMany.ts +11 -4
- package/src/funcs/linksUpsert.ts +11 -4
- package/src/funcs/metatagsGet.ts +11 -4
- package/src/funcs/qrCodesGet.ts +11 -4
- package/src/funcs/tagsCreate.ts +11 -4
- package/src/funcs/tagsDelete.ts +11 -4
- package/src/funcs/tagsList.ts +11 -4
- package/src/funcs/tagsUpdate.ts +11 -4
- package/src/funcs/trackCustomer.ts +11 -4
- package/src/funcs/trackLead.ts +11 -4
- package/src/funcs/trackSale.ts +11 -4
- package/src/funcs/workspacesGet.ts +11 -4
- package/src/funcs/workspacesUpdate.ts +11 -4
- package/src/hooks/types.ts +4 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/primitives.ts +20 -0
- package/src/lib/retries.ts +63 -31
- package/src/lib/sdks.ts +19 -15
- package/src/lib/security.ts +39 -3
- package/src/models/operations/getlinks.ts +1 -1
- package/src/models/operations/getlinkscount.ts +1 -1
- package/src/models/operations/listevents.ts +43 -1
- package/src/models/operations/retrieveanalytics.ts +44 -1
package/src/funcs/linksCount.ts
CHANGED
|
@@ -86,12 +86,20 @@ export async function linksCount(
|
|
|
86
86
|
|
|
87
87
|
const secConfig = await extractSecurity(client._options.token);
|
|
88
88
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
89
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
90
|
+
|
|
89
91
|
const context = {
|
|
90
92
|
operationID: "getLinksCount",
|
|
91
93
|
oAuth2Scopes: [],
|
|
94
|
+
|
|
95
|
+
resolvedSecurity: requestSecurity,
|
|
96
|
+
|
|
92
97
|
securitySource: client._options.token,
|
|
98
|
+
retryConfig: options?.retries
|
|
99
|
+
|| client._options.retryConfig
|
|
100
|
+
|| { strategy: "none" },
|
|
101
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
102
|
};
|
|
94
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
103
|
|
|
96
104
|
const requestRes = client._createRequest(context, {
|
|
97
105
|
security: requestSecurity,
|
|
@@ -122,9 +130,8 @@ export async function linksCount(
|
|
|
122
130
|
"500",
|
|
123
131
|
"5XX",
|
|
124
132
|
],
|
|
125
|
-
retryConfig:
|
|
126
|
-
|
|
127
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
128
135
|
});
|
|
129
136
|
if (!doResult.ok) {
|
|
130
137
|
return doResult;
|
package/src/funcs/linksCreate.ts
CHANGED
|
@@ -77,12 +77,20 @@ export async function linksCreate(
|
|
|
77
77
|
|
|
78
78
|
const secConfig = await extractSecurity(client._options.token);
|
|
79
79
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
80
82
|
const context = {
|
|
81
83
|
operationID: "createLink",
|
|
82
84
|
oAuth2Scopes: [],
|
|
85
|
+
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
|
|
83
88
|
securitySource: client._options.token,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
93
|
};
|
|
85
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
94
|
|
|
87
95
|
const requestRes = client._createRequest(context, {
|
|
88
96
|
security: requestSecurity,
|
|
@@ -112,9 +120,8 @@ export async function linksCreate(
|
|
|
112
120
|
"500",
|
|
113
121
|
"5XX",
|
|
114
122
|
],
|
|
115
|
-
retryConfig:
|
|
116
|
-
|
|
117
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
retryConfig: context.retryConfig,
|
|
124
|
+
retryCodes: context.retryCodes,
|
|
118
125
|
});
|
|
119
126
|
if (!doResult.ok) {
|
|
120
127
|
return doResult;
|
|
@@ -78,12 +78,20 @@ export async function linksCreateMany(
|
|
|
78
78
|
|
|
79
79
|
const secConfig = await extractSecurity(client._options.token);
|
|
80
80
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
81
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
|
+
|
|
81
83
|
const context = {
|
|
82
84
|
operationID: "bulkCreateLinks",
|
|
83
85
|
oAuth2Scopes: [],
|
|
86
|
+
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
|
|
84
89
|
securitySource: client._options.token,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
85
94
|
};
|
|
86
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
87
95
|
|
|
88
96
|
const requestRes = client._createRequest(context, {
|
|
89
97
|
security: requestSecurity,
|
|
@@ -113,9 +121,8 @@ export async function linksCreateMany(
|
|
|
113
121
|
"500",
|
|
114
122
|
"5XX",
|
|
115
123
|
],
|
|
116
|
-
retryConfig:
|
|
117
|
-
|
|
118
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
retryConfig: context.retryConfig,
|
|
125
|
+
retryCodes: context.retryCodes,
|
|
119
126
|
});
|
|
120
127
|
if (!doResult.ok) {
|
|
121
128
|
return doResult;
|
package/src/funcs/linksDelete.ts
CHANGED
|
@@ -83,12 +83,20 @@ export async function linksDelete(
|
|
|
83
83
|
|
|
84
84
|
const secConfig = await extractSecurity(client._options.token);
|
|
85
85
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
86
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
87
|
+
|
|
86
88
|
const context = {
|
|
87
89
|
operationID: "deleteLink",
|
|
88
90
|
oAuth2Scopes: [],
|
|
91
|
+
|
|
92
|
+
resolvedSecurity: requestSecurity,
|
|
93
|
+
|
|
89
94
|
securitySource: client._options.token,
|
|
95
|
+
retryConfig: options?.retries
|
|
96
|
+
|| client._options.retryConfig
|
|
97
|
+
|| { strategy: "none" },
|
|
98
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
99
|
};
|
|
91
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
92
100
|
|
|
93
101
|
const requestRes = client._createRequest(context, {
|
|
94
102
|
security: requestSecurity,
|
|
@@ -118,9 +126,8 @@ export async function linksDelete(
|
|
|
118
126
|
"500",
|
|
119
127
|
"5XX",
|
|
120
128
|
],
|
|
121
|
-
retryConfig:
|
|
122
|
-
|
|
123
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
129
|
+
retryConfig: context.retryConfig,
|
|
130
|
+
retryCodes: context.retryCodes,
|
|
124
131
|
});
|
|
125
132
|
if (!doResult.ok) {
|
|
126
133
|
return doResult;
|
|
@@ -76,12 +76,20 @@ export async function linksDeleteMany(
|
|
|
76
76
|
|
|
77
77
|
const secConfig = await extractSecurity(client._options.token);
|
|
78
78
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
79
81
|
const context = {
|
|
80
82
|
operationID: "bulkDeleteLinks",
|
|
81
83
|
oAuth2Scopes: [],
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
82
87
|
securitySource: client._options.token,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
83
92
|
};
|
|
84
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
93
|
|
|
86
94
|
const requestRes = client._createRequest(context, {
|
|
87
95
|
security: requestSecurity,
|
|
@@ -112,9 +120,8 @@ export async function linksDeleteMany(
|
|
|
112
120
|
"500",
|
|
113
121
|
"5XX",
|
|
114
122
|
],
|
|
115
|
-
retryConfig:
|
|
116
|
-
|
|
117
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
retryConfig: context.retryConfig,
|
|
124
|
+
retryCodes: context.retryCodes,
|
|
118
125
|
});
|
|
119
126
|
if (!doResult.ok) {
|
|
120
127
|
return doResult;
|
package/src/funcs/linksGet.ts
CHANGED
|
@@ -81,12 +81,20 @@ export async function linksGet(
|
|
|
81
81
|
|
|
82
82
|
const secConfig = await extractSecurity(client._options.token);
|
|
83
83
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
84
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
|
+
|
|
84
86
|
const context = {
|
|
85
87
|
operationID: "getLinkInfo",
|
|
86
88
|
oAuth2Scopes: [],
|
|
89
|
+
|
|
90
|
+
resolvedSecurity: requestSecurity,
|
|
91
|
+
|
|
87
92
|
securitySource: client._options.token,
|
|
93
|
+
retryConfig: options?.retries
|
|
94
|
+
|| client._options.retryConfig
|
|
95
|
+
|| { strategy: "none" },
|
|
96
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
88
97
|
};
|
|
89
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
90
98
|
|
|
91
99
|
const requestRes = client._createRequest(context, {
|
|
92
100
|
security: requestSecurity,
|
|
@@ -117,9 +125,8 @@ export async function linksGet(
|
|
|
117
125
|
"500",
|
|
118
126
|
"5XX",
|
|
119
127
|
],
|
|
120
|
-
retryConfig:
|
|
121
|
-
|
|
122
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
retryConfig: context.retryConfig,
|
|
129
|
+
retryCodes: context.retryCodes,
|
|
123
130
|
});
|
|
124
131
|
if (!doResult.ok) {
|
|
125
132
|
return doResult;
|
package/src/funcs/linksList.ts
CHANGED
|
@@ -95,12 +95,20 @@ export async function linksList(
|
|
|
95
95
|
|
|
96
96
|
const secConfig = await extractSecurity(client._options.token);
|
|
97
97
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
+
|
|
98
100
|
const context = {
|
|
99
101
|
operationID: "getLinks",
|
|
100
102
|
oAuth2Scopes: [],
|
|
103
|
+
|
|
104
|
+
resolvedSecurity: requestSecurity,
|
|
105
|
+
|
|
101
106
|
securitySource: client._options.token,
|
|
107
|
+
retryConfig: options?.retries
|
|
108
|
+
|| client._options.retryConfig
|
|
109
|
+
|| { strategy: "none" },
|
|
110
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
102
111
|
};
|
|
103
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
112
|
|
|
105
113
|
const requestRes = client._createRequest(context, {
|
|
106
114
|
security: requestSecurity,
|
|
@@ -131,9 +139,8 @@ export async function linksList(
|
|
|
131
139
|
"500",
|
|
132
140
|
"5XX",
|
|
133
141
|
],
|
|
134
|
-
retryConfig:
|
|
135
|
-
|
|
136
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
137
144
|
});
|
|
138
145
|
if (!doResult.ok) {
|
|
139
146
|
return haltIterator(doResult);
|
package/src/funcs/linksUpdate.ts
CHANGED
|
@@ -87,12 +87,20 @@ export async function linksUpdate(
|
|
|
87
87
|
|
|
88
88
|
const secConfig = await extractSecurity(client._options.token);
|
|
89
89
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
90
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
91
|
+
|
|
90
92
|
const context = {
|
|
91
93
|
operationID: "updateLink",
|
|
92
94
|
oAuth2Scopes: [],
|
|
95
|
+
|
|
96
|
+
resolvedSecurity: requestSecurity,
|
|
97
|
+
|
|
93
98
|
securitySource: client._options.token,
|
|
99
|
+
retryConfig: options?.retries
|
|
100
|
+
|| client._options.retryConfig
|
|
101
|
+
|| { strategy: "none" },
|
|
102
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
103
|
};
|
|
95
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
96
104
|
|
|
97
105
|
const requestRes = client._createRequest(context, {
|
|
98
106
|
security: requestSecurity,
|
|
@@ -122,9 +130,8 @@ export async function linksUpdate(
|
|
|
122
130
|
"500",
|
|
123
131
|
"5XX",
|
|
124
132
|
],
|
|
125
|
-
retryConfig:
|
|
126
|
-
|
|
127
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
128
135
|
});
|
|
129
136
|
if (!doResult.ok) {
|
|
130
137
|
return doResult;
|
|
@@ -80,12 +80,20 @@ export async function linksUpdateMany(
|
|
|
80
80
|
|
|
81
81
|
const secConfig = await extractSecurity(client._options.token);
|
|
82
82
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
83
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
84
|
+
|
|
83
85
|
const context = {
|
|
84
86
|
operationID: "bulkUpdateLinks",
|
|
85
87
|
oAuth2Scopes: [],
|
|
88
|
+
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
|
|
86
91
|
securitySource: client._options.token,
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
87
96
|
};
|
|
88
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
89
97
|
|
|
90
98
|
const requestRes = client._createRequest(context, {
|
|
91
99
|
security: requestSecurity,
|
|
@@ -115,9 +123,8 @@ export async function linksUpdateMany(
|
|
|
115
123
|
"500",
|
|
116
124
|
"5XX",
|
|
117
125
|
],
|
|
118
|
-
retryConfig:
|
|
119
|
-
|
|
120
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
126
|
+
retryConfig: context.retryConfig,
|
|
127
|
+
retryCodes: context.retryCodes,
|
|
121
128
|
});
|
|
122
129
|
if (!doResult.ok) {
|
|
123
130
|
return doResult;
|
package/src/funcs/linksUpsert.ts
CHANGED
|
@@ -77,12 +77,20 @@ export async function linksUpsert(
|
|
|
77
77
|
|
|
78
78
|
const secConfig = await extractSecurity(client._options.token);
|
|
79
79
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
80
82
|
const context = {
|
|
81
83
|
operationID: "upsertLink",
|
|
82
84
|
oAuth2Scopes: [],
|
|
85
|
+
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
|
|
83
88
|
securitySource: client._options.token,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
93
|
};
|
|
85
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
94
|
|
|
87
95
|
const requestRes = client._createRequest(context, {
|
|
88
96
|
security: requestSecurity,
|
|
@@ -112,9 +120,8 @@ export async function linksUpsert(
|
|
|
112
120
|
"500",
|
|
113
121
|
"5XX",
|
|
114
122
|
],
|
|
115
|
-
retryConfig:
|
|
116
|
-
|
|
117
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
retryConfig: context.retryConfig,
|
|
124
|
+
retryCodes: context.retryCodes,
|
|
118
125
|
});
|
|
119
126
|
if (!doResult.ok) {
|
|
120
127
|
return doResult;
|
package/src/funcs/metatagsGet.ts
CHANGED
|
@@ -66,12 +66,20 @@ export async function metatagsGet(
|
|
|
66
66
|
|
|
67
67
|
const secConfig = await extractSecurity(client._options.token);
|
|
68
68
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
69
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
|
+
|
|
69
71
|
const context = {
|
|
70
72
|
operationID: "getMetatags",
|
|
71
73
|
oAuth2Scopes: [],
|
|
74
|
+
|
|
75
|
+
resolvedSecurity: requestSecurity,
|
|
76
|
+
|
|
72
77
|
securitySource: client._options.token,
|
|
78
|
+
retryConfig: options?.retries
|
|
79
|
+
|| client._options.retryConfig
|
|
80
|
+
|| { strategy: "none" },
|
|
81
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
73
82
|
};
|
|
74
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75
83
|
|
|
76
84
|
const requestRes = client._createRequest(context, {
|
|
77
85
|
security: requestSecurity,
|
|
@@ -90,9 +98,8 @@ export async function metatagsGet(
|
|
|
90
98
|
const doResult = await client._do(req, {
|
|
91
99
|
context,
|
|
92
100
|
errorCodes: ["4XX", "5XX"],
|
|
93
|
-
retryConfig:
|
|
94
|
-
|
|
95
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
101
|
+
retryConfig: context.retryConfig,
|
|
102
|
+
retryCodes: context.retryCodes,
|
|
96
103
|
});
|
|
97
104
|
if (!doResult.ok) {
|
|
98
105
|
return doResult;
|
package/src/funcs/qrCodesGet.ts
CHANGED
|
@@ -84,12 +84,20 @@ export async function qrCodesGet(
|
|
|
84
84
|
|
|
85
85
|
const secConfig = await extractSecurity(client._options.token);
|
|
86
86
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
87
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
88
|
+
|
|
87
89
|
const context = {
|
|
88
90
|
operationID: "getQRCode",
|
|
89
91
|
oAuth2Scopes: [],
|
|
92
|
+
|
|
93
|
+
resolvedSecurity: requestSecurity,
|
|
94
|
+
|
|
90
95
|
securitySource: client._options.token,
|
|
96
|
+
retryConfig: options?.retries
|
|
97
|
+
|| client._options.retryConfig
|
|
98
|
+
|| { strategy: "none" },
|
|
99
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
91
100
|
};
|
|
92
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
93
101
|
|
|
94
102
|
const requestRes = client._createRequest(context, {
|
|
95
103
|
security: requestSecurity,
|
|
@@ -120,9 +128,8 @@ export async function qrCodesGet(
|
|
|
120
128
|
"500",
|
|
121
129
|
"5XX",
|
|
122
130
|
],
|
|
123
|
-
retryConfig:
|
|
124
|
-
|
|
125
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
131
|
+
retryConfig: context.retryConfig,
|
|
132
|
+
retryCodes: context.retryCodes,
|
|
126
133
|
});
|
|
127
134
|
if (!doResult.ok) {
|
|
128
135
|
return doResult;
|
package/src/funcs/tagsCreate.ts
CHANGED
|
@@ -77,12 +77,20 @@ export async function tagsCreate(
|
|
|
77
77
|
|
|
78
78
|
const secConfig = await extractSecurity(client._options.token);
|
|
79
79
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
80
82
|
const context = {
|
|
81
83
|
operationID: "createTag",
|
|
82
84
|
oAuth2Scopes: [],
|
|
85
|
+
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
|
|
83
88
|
securitySource: client._options.token,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
93
|
};
|
|
85
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
94
|
|
|
87
95
|
const requestRes = client._createRequest(context, {
|
|
88
96
|
security: requestSecurity,
|
|
@@ -112,9 +120,8 @@ export async function tagsCreate(
|
|
|
112
120
|
"500",
|
|
113
121
|
"5XX",
|
|
114
122
|
],
|
|
115
|
-
retryConfig:
|
|
116
|
-
|
|
117
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
retryConfig: context.retryConfig,
|
|
124
|
+
retryCodes: context.retryCodes,
|
|
118
125
|
});
|
|
119
126
|
if (!doResult.ok) {
|
|
120
127
|
return doResult;
|
package/src/funcs/tagsDelete.ts
CHANGED
|
@@ -83,12 +83,20 @@ export async function tagsDelete(
|
|
|
83
83
|
|
|
84
84
|
const secConfig = await extractSecurity(client._options.token);
|
|
85
85
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
86
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
87
|
+
|
|
86
88
|
const context = {
|
|
87
89
|
operationID: "deleteTag",
|
|
88
90
|
oAuth2Scopes: [],
|
|
91
|
+
|
|
92
|
+
resolvedSecurity: requestSecurity,
|
|
93
|
+
|
|
89
94
|
securitySource: client._options.token,
|
|
95
|
+
retryConfig: options?.retries
|
|
96
|
+
|| client._options.retryConfig
|
|
97
|
+
|| { strategy: "none" },
|
|
98
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
99
|
};
|
|
91
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
92
100
|
|
|
93
101
|
const requestRes = client._createRequest(context, {
|
|
94
102
|
security: requestSecurity,
|
|
@@ -118,9 +126,8 @@ export async function tagsDelete(
|
|
|
118
126
|
"500",
|
|
119
127
|
"5XX",
|
|
120
128
|
],
|
|
121
|
-
retryConfig:
|
|
122
|
-
|
|
123
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
129
|
+
retryConfig: context.retryConfig,
|
|
130
|
+
retryCodes: context.retryCodes,
|
|
124
131
|
});
|
|
125
132
|
if (!doResult.ok) {
|
|
126
133
|
return doResult;
|
package/src/funcs/tagsList.ts
CHANGED
|
@@ -59,12 +59,20 @@ export async function tagsList(
|
|
|
59
59
|
|
|
60
60
|
const secConfig = await extractSecurity(client._options.token);
|
|
61
61
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
62
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63
|
+
|
|
62
64
|
const context = {
|
|
63
65
|
operationID: "getTags",
|
|
64
66
|
oAuth2Scopes: [],
|
|
67
|
+
|
|
68
|
+
resolvedSecurity: requestSecurity,
|
|
69
|
+
|
|
65
70
|
securitySource: client._options.token,
|
|
71
|
+
retryConfig: options?.retries
|
|
72
|
+
|| client._options.retryConfig
|
|
73
|
+
|| { strategy: "none" },
|
|
74
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
66
75
|
};
|
|
67
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
68
76
|
|
|
69
77
|
const requestRes = client._createRequest(context, {
|
|
70
78
|
security: requestSecurity,
|
|
@@ -93,9 +101,8 @@ export async function tagsList(
|
|
|
93
101
|
"500",
|
|
94
102
|
"5XX",
|
|
95
103
|
],
|
|
96
|
-
retryConfig:
|
|
97
|
-
|
|
98
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
104
|
+
retryConfig: context.retryConfig,
|
|
105
|
+
retryCodes: context.retryCodes,
|
|
99
106
|
});
|
|
100
107
|
if (!doResult.ok) {
|
|
101
108
|
return doResult;
|
package/src/funcs/tagsUpdate.ts
CHANGED
|
@@ -87,12 +87,20 @@ export async function tagsUpdate(
|
|
|
87
87
|
|
|
88
88
|
const secConfig = await extractSecurity(client._options.token);
|
|
89
89
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
90
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
91
|
+
|
|
90
92
|
const context = {
|
|
91
93
|
operationID: "updateTag",
|
|
92
94
|
oAuth2Scopes: [],
|
|
95
|
+
|
|
96
|
+
resolvedSecurity: requestSecurity,
|
|
97
|
+
|
|
93
98
|
securitySource: client._options.token,
|
|
99
|
+
retryConfig: options?.retries
|
|
100
|
+
|| client._options.retryConfig
|
|
101
|
+
|| { strategy: "none" },
|
|
102
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
103
|
};
|
|
95
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
96
104
|
|
|
97
105
|
const requestRes = client._createRequest(context, {
|
|
98
106
|
security: requestSecurity,
|
|
@@ -122,9 +130,8 @@ export async function tagsUpdate(
|
|
|
122
130
|
"500",
|
|
123
131
|
"5XX",
|
|
124
132
|
],
|
|
125
|
-
retryConfig:
|
|
126
|
-
|
|
127
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
128
135
|
});
|
|
129
136
|
if (!doResult.ok) {
|
|
130
137
|
return doResult;
|
|
@@ -78,12 +78,20 @@ export async function trackCustomer(
|
|
|
78
78
|
|
|
79
79
|
const secConfig = await extractSecurity(client._options.token);
|
|
80
80
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
81
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
|
+
|
|
81
83
|
const context = {
|
|
82
84
|
operationID: "trackCustomer",
|
|
83
85
|
oAuth2Scopes: [],
|
|
86
|
+
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
|
|
84
89
|
securitySource: client._options.token,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
85
94
|
};
|
|
86
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
87
95
|
|
|
88
96
|
const requestRes = client._createRequest(context, {
|
|
89
97
|
security: requestSecurity,
|
|
@@ -113,9 +121,8 @@ export async function trackCustomer(
|
|
|
113
121
|
"500",
|
|
114
122
|
"5XX",
|
|
115
123
|
],
|
|
116
|
-
retryConfig:
|
|
117
|
-
|
|
118
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
retryConfig: context.retryConfig,
|
|
125
|
+
retryCodes: context.retryCodes,
|
|
119
126
|
});
|
|
120
127
|
if (!doResult.ok) {
|
|
121
128
|
return doResult;
|
package/src/funcs/trackLead.ts
CHANGED
|
@@ -76,12 +76,20 @@ export async function trackLead(
|
|
|
76
76
|
|
|
77
77
|
const secConfig = await extractSecurity(client._options.token);
|
|
78
78
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
79
81
|
const context = {
|
|
80
82
|
operationID: "trackLead",
|
|
81
83
|
oAuth2Scopes: [],
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
82
87
|
securitySource: client._options.token,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
83
92
|
};
|
|
84
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
93
|
|
|
86
94
|
const requestRes = client._createRequest(context, {
|
|
87
95
|
security: requestSecurity,
|
|
@@ -111,9 +119,8 @@ export async function trackLead(
|
|
|
111
119
|
"500",
|
|
112
120
|
"5XX",
|
|
113
121
|
],
|
|
114
|
-
retryConfig:
|
|
115
|
-
|
|
116
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
retryConfig: context.retryConfig,
|
|
123
|
+
retryCodes: context.retryCodes,
|
|
117
124
|
});
|
|
118
125
|
if (!doResult.ok) {
|
|
119
126
|
return doResult;
|
package/src/funcs/trackSale.ts
CHANGED
|
@@ -76,12 +76,20 @@ export async function trackSale(
|
|
|
76
76
|
|
|
77
77
|
const secConfig = await extractSecurity(client._options.token);
|
|
78
78
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
79
81
|
const context = {
|
|
80
82
|
operationID: "trackSale",
|
|
81
83
|
oAuth2Scopes: [],
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
82
87
|
securitySource: client._options.token,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
83
92
|
};
|
|
84
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
93
|
|
|
86
94
|
const requestRes = client._createRequest(context, {
|
|
87
95
|
security: requestSecurity,
|
|
@@ -111,9 +119,8 @@ export async function trackSale(
|
|
|
111
119
|
"500",
|
|
112
120
|
"5XX",
|
|
113
121
|
],
|
|
114
|
-
retryConfig:
|
|
115
|
-
|
|
116
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
retryConfig: context.retryConfig,
|
|
123
|
+
retryCodes: context.retryCodes,
|
|
117
124
|
});
|
|
118
125
|
if (!doResult.ok) {
|
|
119
126
|
return doResult;
|