@livechat/developer-studio-api 3.0.51 → 3.0.53
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/index.d.mts +155 -154
- package/dist/index.d.ts +155 -154
- package/dist/index.js +195 -258
- package/dist/index.mjs +195 -258
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -211,13 +211,13 @@ githubClientInstance.interceptors.response.use(
|
|
|
211
211
|
function getGitHubClientAuthorization(req) {
|
|
212
212
|
if (req.headers instanceof Headers) {
|
|
213
213
|
return {
|
|
214
|
-
appToken: req.headers.get("github-app-token"),
|
|
215
|
-
oauthToken: req.headers.get("github-oauth-token")
|
|
214
|
+
appToken: req.headers.get("x-adapter-github-app-token"),
|
|
215
|
+
oauthToken: req.headers.get("x-adapter-github-oauth-token")
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
return {
|
|
219
|
-
appToken: req.headers["github-app-token"],
|
|
220
|
-
oauthToken: req.headers["github-oauth-token"]
|
|
219
|
+
appToken: req.headers["x-adapter-github-app-token"],
|
|
220
|
+
oauthToken: req.headers["x-adapter-github-oauth-token"]
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
function getGithubClientConfig(options = {}) {
|
|
@@ -674,11 +674,11 @@ netlifyClientInstance.interceptors.response.use(
|
|
|
674
674
|
function getNetlifyClientAuthorization(req) {
|
|
675
675
|
if (req.headers instanceof Headers) {
|
|
676
676
|
return {
|
|
677
|
-
token: req.headers.get("netlify-token")
|
|
677
|
+
token: req.headers.get("x-adapter-netlify-token")
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
return {
|
|
681
|
-
token: req.headers["netlify-token"]
|
|
681
|
+
token: req.headers["x-adapter-netlify-token"]
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
function getNetlifyClientConfig(options = {}) {
|
|
@@ -1138,11 +1138,11 @@ planetScaleClientInstance.interceptors.response.use(
|
|
|
1138
1138
|
function getPlanetScaleClientAuthorization(req) {
|
|
1139
1139
|
if (req.headers instanceof Headers) {
|
|
1140
1140
|
return {
|
|
1141
|
-
token: req.headers.get("planetscale-token")
|
|
1141
|
+
token: req.headers.get("x-adapter-planetscale-token")
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
1144
|
return {
|
|
1145
|
-
token: req.headers["planetscale-token"]
|
|
1145
|
+
token: req.headers["x-adapter-planetscale-token"]
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
1148
|
function getPlanetScaleClientConfig(options = {}) {
|
|
@@ -1355,12 +1355,12 @@ var textClientInstance = import_axios8.default.create({
|
|
|
1355
1355
|
function getTextClientAuthorization(req) {
|
|
1356
1356
|
if (req.headers instanceof Headers) {
|
|
1357
1357
|
return {
|
|
1358
|
-
token: req.headers.get("platform-token"),
|
|
1358
|
+
token: req.headers.get("x-adapter-platform-token"),
|
|
1359
1359
|
tokenType: "Bearer"
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
1362
|
return {
|
|
1363
|
-
token: req.headers["platform-token"],
|
|
1363
|
+
token: req.headers["x-adapter-platform-token"],
|
|
1364
1364
|
tokenType: "Bearer"
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
@@ -1746,9 +1746,103 @@ var textPlatformDashboardApi = {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
1748
|
|
|
1749
|
+
// src/apis/integrations/text/platform/workflows/api.ts
|
|
1750
|
+
var textPlatformWorkflowsApi = {
|
|
1751
|
+
getWorkflows(authorization) {
|
|
1752
|
+
return __async(this, null, function* () {
|
|
1753
|
+
const { data: workflows } = yield textClientInstance.get(
|
|
1754
|
+
"/workflow_platform/workflows",
|
|
1755
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1756
|
+
ensureAuthorizationToken: true
|
|
1757
|
+
}))
|
|
1758
|
+
);
|
|
1759
|
+
return workflows;
|
|
1760
|
+
});
|
|
1761
|
+
},
|
|
1762
|
+
createWorkflow(payload, authorization) {
|
|
1763
|
+
return __async(this, null, function* () {
|
|
1764
|
+
yield textClientInstance.post(
|
|
1765
|
+
"/workflow_platform/workflows",
|
|
1766
|
+
payload,
|
|
1767
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1768
|
+
ensureAuthorizationToken: true
|
|
1769
|
+
}))
|
|
1770
|
+
);
|
|
1771
|
+
});
|
|
1772
|
+
},
|
|
1773
|
+
getWorkflow(payload, authorization) {
|
|
1774
|
+
return __async(this, null, function* () {
|
|
1775
|
+
const { data: workflow } = yield textClientInstance.get(
|
|
1776
|
+
`/workflow_platform/workflows/${payload.name}?version=${payload.version}`,
|
|
1777
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1778
|
+
ensureAuthorizationToken: true
|
|
1779
|
+
}))
|
|
1780
|
+
);
|
|
1781
|
+
return workflow;
|
|
1782
|
+
});
|
|
1783
|
+
},
|
|
1784
|
+
updateWorkflow(payload, authorization) {
|
|
1785
|
+
return __async(this, null, function* () {
|
|
1786
|
+
const { data: workflow } = yield textClientInstance.put(
|
|
1787
|
+
`/workflow_platform/workflows/${payload.name}`,
|
|
1788
|
+
payload,
|
|
1789
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1790
|
+
ensureAuthorizationToken: true
|
|
1791
|
+
}))
|
|
1792
|
+
);
|
|
1793
|
+
return workflow;
|
|
1794
|
+
});
|
|
1795
|
+
},
|
|
1796
|
+
deleteWorkflow(payload, authorization) {
|
|
1797
|
+
return __async(this, null, function* () {
|
|
1798
|
+
yield textClientInstance.delete(
|
|
1799
|
+
`/workflow_platform/workflows/${payload.name}`,
|
|
1800
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1801
|
+
ensureAuthorizationToken: true
|
|
1802
|
+
}))
|
|
1803
|
+
);
|
|
1804
|
+
});
|
|
1805
|
+
},
|
|
1806
|
+
executeWorkflow(payload, authorization) {
|
|
1807
|
+
return __async(this, null, function* () {
|
|
1808
|
+
const { data: execution } = yield textClientInstance.post(
|
|
1809
|
+
`/workflow_platform/workflows/${payload.name}/executions`,
|
|
1810
|
+
payload,
|
|
1811
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1812
|
+
ensureAuthorizationToken: true
|
|
1813
|
+
}))
|
|
1814
|
+
);
|
|
1815
|
+
return execution;
|
|
1816
|
+
});
|
|
1817
|
+
},
|
|
1818
|
+
getWorkflowExecutionsList(payload, authorization) {
|
|
1819
|
+
return __async(this, null, function* () {
|
|
1820
|
+
const { data: executions } = yield textClientInstance.get(
|
|
1821
|
+
`/workflow_platform/workflows/${payload.name}/executions`,
|
|
1822
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1823
|
+
ensureAuthorizationToken: true
|
|
1824
|
+
}))
|
|
1825
|
+
);
|
|
1826
|
+
return executions;
|
|
1827
|
+
});
|
|
1828
|
+
},
|
|
1829
|
+
getWorkflowExecutionDetails(payload, authorization) {
|
|
1830
|
+
return __async(this, null, function* () {
|
|
1831
|
+
const { data: execution } = yield textClientInstance.get(
|
|
1832
|
+
`/workflow_platform/workflows/${payload.name}/executions/${payload.execution_id}`,
|
|
1833
|
+
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1834
|
+
ensureAuthorizationToken: true
|
|
1835
|
+
}))
|
|
1836
|
+
);
|
|
1837
|
+
return execution;
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1749
1842
|
// src/apis/integrations/text/platform/api.ts
|
|
1750
1843
|
var textPlatformApi = {
|
|
1751
|
-
dashboard: textPlatformDashboardApi
|
|
1844
|
+
dashboard: textPlatformDashboardApi,
|
|
1845
|
+
workflows: textPlatformWorkflowsApi
|
|
1752
1846
|
};
|
|
1753
1847
|
|
|
1754
1848
|
// src/apis/integrations/text/api.ts
|
|
@@ -1780,11 +1874,11 @@ vercelClientInstance.interceptors.response.use(
|
|
|
1780
1874
|
function getVercelClientAuthorization(req) {
|
|
1781
1875
|
if (req.headers instanceof Headers) {
|
|
1782
1876
|
return {
|
|
1783
|
-
token: req.headers.get("vercel-token")
|
|
1877
|
+
token: req.headers.get("x-adapter-vercel-token")
|
|
1784
1878
|
};
|
|
1785
1879
|
}
|
|
1786
1880
|
return {
|
|
1787
|
-
token: req.headers["vercel-token"]
|
|
1881
|
+
token: req.headers["x-adapter-vercel-token"]
|
|
1788
1882
|
};
|
|
1789
1883
|
}
|
|
1790
1884
|
function getVercelClientConfig(options = {}) {
|
|
@@ -2104,11 +2198,11 @@ neonClientInstance.interceptors.response.use(
|
|
|
2104
2198
|
function getNeonClientAuthorization(req) {
|
|
2105
2199
|
if (req.headers instanceof Headers) {
|
|
2106
2200
|
return {
|
|
2107
|
-
token: req.headers.get("neon-token")
|
|
2201
|
+
token: req.headers.get("x-adapter-neon-token")
|
|
2108
2202
|
};
|
|
2109
2203
|
}
|
|
2110
2204
|
return {
|
|
2111
|
-
token: req.headers["neon-token"]
|
|
2205
|
+
token: req.headers["x-adapter-neon-token"]
|
|
2112
2206
|
};
|
|
2113
2207
|
}
|
|
2114
2208
|
function getNeonClientConfig(options = {}) {
|
|
@@ -2437,13 +2531,13 @@ mailchimpClientInstance.interceptors.response.use(
|
|
|
2437
2531
|
function getMailchimpClientAuthorization(req) {
|
|
2438
2532
|
if (req.headers instanceof Headers) {
|
|
2439
2533
|
return {
|
|
2440
|
-
server: req.headers.get("mailchimp-server"),
|
|
2441
|
-
token: req.headers.get("mailchimp-token")
|
|
2534
|
+
server: req.headers.get("x-adapter-mailchimp-server"),
|
|
2535
|
+
token: req.headers.get("x-adapter-mailchimp-token")
|
|
2442
2536
|
};
|
|
2443
2537
|
}
|
|
2444
2538
|
return {
|
|
2445
|
-
server: req.headers["mailchimp-server"],
|
|
2446
|
-
token: req.headers["mailchimp-token"]
|
|
2539
|
+
server: req.headers["x-adapter-mailchimp-server"],
|
|
2540
|
+
token: req.headers["x-adapter-mailchimp-token"]
|
|
2447
2541
|
};
|
|
2448
2542
|
}
|
|
2449
2543
|
function getMailchimpClientConfig(options = {}) {
|
|
@@ -2608,13 +2702,13 @@ var getShopifyClientUrl = (store) => `https://${store}.myshopify.com/admin/api/2
|
|
|
2608
2702
|
function getShopifyClientAuthorization(req) {
|
|
2609
2703
|
if (req.headers instanceof Headers) {
|
|
2610
2704
|
return {
|
|
2611
|
-
shop: req.headers.get("shopify-shop"),
|
|
2612
|
-
token: req.headers.get("shopify-token")
|
|
2705
|
+
shop: req.headers.get("x-adapter-shopify-shop"),
|
|
2706
|
+
token: req.headers.get("x-adapter-shopify-token")
|
|
2613
2707
|
};
|
|
2614
2708
|
}
|
|
2615
2709
|
return {
|
|
2616
|
-
shop: req.headers["shopify-shop"],
|
|
2617
|
-
token: req.headers["shopify-token"]
|
|
2710
|
+
shop: req.headers["x-adapter-shopify-shop"],
|
|
2711
|
+
token: req.headers["x-adapter-shopify-token"]
|
|
2618
2712
|
};
|
|
2619
2713
|
}
|
|
2620
2714
|
function getShopifyClientConfig(options) {
|
|
@@ -2778,11 +2872,11 @@ livechatClientInstance.interceptors.response.use(
|
|
|
2778
2872
|
function getLiveChatClientAuthorization(req) {
|
|
2779
2873
|
if (req.headers instanceof Headers) {
|
|
2780
2874
|
return {
|
|
2781
|
-
token: req.headers.get("platform-token")
|
|
2875
|
+
token: req.headers.get("x-adapter-platform-token")
|
|
2782
2876
|
};
|
|
2783
2877
|
}
|
|
2784
2878
|
return {
|
|
2785
|
-
token: req.headers["platform-token"]
|
|
2879
|
+
token: req.headers["x-adapter-platform-token"]
|
|
2786
2880
|
};
|
|
2787
2881
|
}
|
|
2788
2882
|
function getLiveChatClientConfig(options = {}) {
|
|
@@ -3350,11 +3444,11 @@ platformAccountsClientInstance.interceptors.response.use(
|
|
|
3350
3444
|
function getPlatformAccountsClientAuthorization(req) {
|
|
3351
3445
|
if (req.headers instanceof Headers) {
|
|
3352
3446
|
return {
|
|
3353
|
-
token: req.headers.get("platform-token")
|
|
3447
|
+
token: req.headers.get("x-adapter-platform-token")
|
|
3354
3448
|
};
|
|
3355
3449
|
}
|
|
3356
3450
|
return {
|
|
3357
|
-
token: req.headers["platform-token"]
|
|
3451
|
+
token: req.headers["x-adapter-platform-token"]
|
|
3358
3452
|
};
|
|
3359
3453
|
}
|
|
3360
3454
|
function getPlatformAccountsClientConfig(options = {}) {
|
|
@@ -3692,12 +3786,12 @@ platformDpsClientInstance.interceptors.response.use(
|
|
|
3692
3786
|
function getPlatformDpsClientAuthorization(req) {
|
|
3693
3787
|
if (req.headers instanceof Headers) {
|
|
3694
3788
|
return {
|
|
3695
|
-
token: req.headers.get("platform-token"),
|
|
3789
|
+
token: req.headers.get("x-adapter-platform-token"),
|
|
3696
3790
|
tokenType: "Bearer"
|
|
3697
3791
|
};
|
|
3698
3792
|
}
|
|
3699
3793
|
return {
|
|
3700
|
-
token: req.headers["platform-token"],
|
|
3794
|
+
token: req.headers["x-adapter-platform-token"],
|
|
3701
3795
|
tokenType: "Bearer"
|
|
3702
3796
|
};
|
|
3703
3797
|
}
|
|
@@ -5281,61 +5375,61 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5281
5375
|
if (req.headers instanceof Headers) {
|
|
5282
5376
|
return {
|
|
5283
5377
|
platform: {
|
|
5284
|
-
token: req.headers.get("platform-token")
|
|
5378
|
+
token: req.headers.get("x-adapter-platform-token")
|
|
5285
5379
|
},
|
|
5286
5380
|
github: {
|
|
5287
|
-
appToken: req.headers.get("github-app-token"),
|
|
5288
|
-
oauthToken: req.headers.get("github-oauth-token")
|
|
5381
|
+
appToken: req.headers.get("x-adapter-github-app-token"),
|
|
5382
|
+
oauthToken: req.headers.get("x-adapter-github-oauth-token")
|
|
5289
5383
|
},
|
|
5290
5384
|
netlify: {
|
|
5291
|
-
token: req.headers.get("netlify-token")
|
|
5385
|
+
token: req.headers.get("x-adapter-netlify-token")
|
|
5292
5386
|
},
|
|
5293
5387
|
vercel: {
|
|
5294
|
-
token: req.headers.get("vercel-token")
|
|
5388
|
+
token: req.headers.get("x-adapter-vercel-token")
|
|
5295
5389
|
},
|
|
5296
5390
|
planetscale: {
|
|
5297
|
-
token: req.headers.get("planetscale-token")
|
|
5391
|
+
token: req.headers.get("x-adapter-planetscale-token")
|
|
5298
5392
|
},
|
|
5299
5393
|
neon: {
|
|
5300
|
-
token: req.headers.get("neon-token")
|
|
5394
|
+
token: req.headers.get("x-adapter-neon-token")
|
|
5301
5395
|
},
|
|
5302
5396
|
mailchimp: {
|
|
5303
|
-
token: req.headers.get("mailchimp-token"),
|
|
5304
|
-
server: req.headers.get("mailchimp-server")
|
|
5397
|
+
token: req.headers.get("x-adapter-mailchimp-token"),
|
|
5398
|
+
server: req.headers.get("x-adapter-mailchimp-server")
|
|
5305
5399
|
},
|
|
5306
5400
|
shopify: {
|
|
5307
|
-
token: req.headers.get("shopify-token"),
|
|
5308
|
-
shop: req.headers.get("shopify-shop")
|
|
5401
|
+
token: req.headers.get("x-adapter-shopify-token"),
|
|
5402
|
+
shop: req.headers.get("x-adapter-shopify-shop")
|
|
5309
5403
|
}
|
|
5310
5404
|
};
|
|
5311
5405
|
}
|
|
5312
5406
|
return {
|
|
5313
5407
|
platform: {
|
|
5314
|
-
token: req.headers["platform-token"]
|
|
5408
|
+
token: req.headers["x-adapter-platform-token"]
|
|
5315
5409
|
},
|
|
5316
5410
|
github: {
|
|
5317
|
-
appToken: req.headers["github-app-token"],
|
|
5318
|
-
oauthToken: req.headers["github-oauth-token"]
|
|
5411
|
+
appToken: req.headers["x-adapter-github-app-token"],
|
|
5412
|
+
oauthToken: req.headers["x-adapter-github-oauth-token"]
|
|
5319
5413
|
},
|
|
5320
5414
|
netlify: {
|
|
5321
|
-
token: req.headers["netlify-token"]
|
|
5415
|
+
token: req.headers["x-adapter-netlify-token"]
|
|
5322
5416
|
},
|
|
5323
5417
|
vercel: {
|
|
5324
|
-
token: req.headers["vercel-token"]
|
|
5418
|
+
token: req.headers["x-adapter-vercel-token"]
|
|
5325
5419
|
},
|
|
5326
5420
|
planetscale: {
|
|
5327
|
-
token: req.headers["planetscale-token"]
|
|
5421
|
+
token: req.headers["x-adapter-planetscale-token"]
|
|
5328
5422
|
},
|
|
5329
5423
|
neon: {
|
|
5330
|
-
token: req.headers["neon-token"]
|
|
5424
|
+
token: req.headers["x-adapter-neon-token"]
|
|
5331
5425
|
},
|
|
5332
5426
|
mailchimp: {
|
|
5333
|
-
token: req.headers["mailchimp-token"],
|
|
5334
|
-
server: req.headers["mailchimp-server"]
|
|
5427
|
+
token: req.headers["x-adapter-mailchimp-token"],
|
|
5428
|
+
server: req.headers["x-adapter-mailchimp-server"]
|
|
5335
5429
|
},
|
|
5336
5430
|
shopify: {
|
|
5337
|
-
token: req.headers["shopify-token"],
|
|
5338
|
-
shop: req.headers["shopify-shop"]
|
|
5431
|
+
token: req.headers["x-adapter-shopify-token"],
|
|
5432
|
+
shop: req.headers["x-adapter-shopify-shop"]
|
|
5339
5433
|
}
|
|
5340
5434
|
};
|
|
5341
5435
|
}
|
|
@@ -5344,25 +5438,25 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5344
5438
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5345
5439
|
const headers = {
|
|
5346
5440
|
platform: {
|
|
5347
|
-
token: (_b = currentHeaders["platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
|
|
5441
|
+
token: (_b = currentHeaders["x-adapter-platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
|
|
5348
5442
|
},
|
|
5349
5443
|
integrations: {
|
|
5350
5444
|
github: {
|
|
5351
|
-
app: (_d = currentHeaders["github-app-token"]) != null ? _d : (_c = options.github) == null ? void 0 : _c.appToken,
|
|
5352
|
-
oauth: (_f = currentHeaders["github-oauth-token"]) != null ? _f : (_e = options.github) == null ? void 0 : _e.oauthToken
|
|
5445
|
+
app: (_d = currentHeaders["x-adapter-github-app-token"]) != null ? _d : (_c = options.github) == null ? void 0 : _c.appToken,
|
|
5446
|
+
oauth: (_f = currentHeaders["x-adapter-github-oauth-token"]) != null ? _f : (_e = options.github) == null ? void 0 : _e.oauthToken
|
|
5353
5447
|
},
|
|
5354
|
-
netlify: (_h = currentHeaders["netlify-token"]) != null ? _h : (_g = options.netlify) == null ? void 0 : _g.token,
|
|
5355
|
-
vercel: (_j = currentHeaders["vercel-token"]) != null ? _j : (_i = options.vercel) == null ? void 0 : _i.token,
|
|
5356
|
-
planetscale: (_l = currentHeaders["planetscale-token"]) != null ? _l : (_k = options.planetscale) == null ? void 0 : _k.token,
|
|
5357
|
-
neon: (_n = currentHeaders["neon-token"]) != null ? _n : (_m = options.neon) == null ? void 0 : _m.token,
|
|
5358
|
-
mailchimp: (_p = currentHeaders["mailchimp-token"]) != null ? _p : (_o = options.mailchimp) == null ? void 0 : _o.token,
|
|
5359
|
-
mailchimpServer: (_r = currentHeaders["mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
|
|
5360
|
-
shopify: (_t = currentHeaders["shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
|
|
5361
|
-
shopifyShop: (_v = currentHeaders["shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop
|
|
5448
|
+
netlify: (_h = currentHeaders["x-adapter-netlify-token"]) != null ? _h : (_g = options.netlify) == null ? void 0 : _g.token,
|
|
5449
|
+
vercel: (_j = currentHeaders["x-adapter-vercel-token"]) != null ? _j : (_i = options.vercel) == null ? void 0 : _i.token,
|
|
5450
|
+
planetscale: (_l = currentHeaders["x-adapter-planetscale-token"]) != null ? _l : (_k = options.planetscale) == null ? void 0 : _k.token,
|
|
5451
|
+
neon: (_n = currentHeaders["x-adapter-neon-token"]) != null ? _n : (_m = options.neon) == null ? void 0 : _m.token,
|
|
5452
|
+
mailchimp: (_p = currentHeaders["x-adapter-mailchimp-token"]) != null ? _p : (_o = options.mailchimp) == null ? void 0 : _o.token,
|
|
5453
|
+
mailchimpServer: (_r = currentHeaders["x-adapter-mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
|
|
5454
|
+
shopify: (_t = currentHeaders["x-adapter-shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
|
|
5455
|
+
shopifyShop: (_v = currentHeaders["x-adapter-shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop
|
|
5362
5456
|
}
|
|
5363
5457
|
};
|
|
5364
|
-
if (currentHeaders["platform-token"]) {
|
|
5365
|
-
currentHeaders["X-Region"] = (_w = getRegion2(currentHeaders["platform-token"])) != null ? _w : void 0;
|
|
5458
|
+
if (currentHeaders["x-adapter-platform-token"]) {
|
|
5459
|
+
currentHeaders["X-Region"] = (_w = getRegion2(currentHeaders["x-adapter-platform-token"])) != null ? _w : void 0;
|
|
5366
5460
|
}
|
|
5367
5461
|
if (((_x = options.ensureAuthorizationToken) == null ? void 0 : _x.platform) && !headers.platform.token) {
|
|
5368
5462
|
throw new UnauthorizeApiError("accounts");
|
|
@@ -5389,7 +5483,7 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5389
5483
|
throw new UnauthorizeApiError("shopify");
|
|
5390
5484
|
}
|
|
5391
5485
|
return {
|
|
5392
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "shopify-shop": headers.integrations.shopifyShop } : {})
|
|
5486
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {})
|
|
5393
5487
|
};
|
|
5394
5488
|
}
|
|
5395
5489
|
var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -5415,37 +5509,37 @@ function updatePlatformAdapterClient(tokens) {
|
|
|
5415
5509
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
5416
5510
|
const headers = platformAdapterClientInstance.defaults.headers;
|
|
5417
5511
|
if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
|
|
5418
|
-
headers["platform-token"] = tokens.platform.token;
|
|
5512
|
+
headers["x-adapter-platform-token"] = tokens.platform.token;
|
|
5419
5513
|
}
|
|
5420
5514
|
if ((_b = tokens == null ? void 0 : tokens.github) == null ? void 0 : _b.appToken) {
|
|
5421
|
-
headers["github-app-token"] = tokens.github.appToken;
|
|
5515
|
+
headers["x-adapter-github-app-token"] = tokens.github.appToken;
|
|
5422
5516
|
}
|
|
5423
5517
|
if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.oauthToken) {
|
|
5424
|
-
headers["github-oauth-token"] = tokens.github.oauthToken;
|
|
5518
|
+
headers["x-adapter-github-oauth-token"] = tokens.github.oauthToken;
|
|
5425
5519
|
}
|
|
5426
5520
|
if ((_d = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _d.token) {
|
|
5427
|
-
headers["netlify-token"] = tokens.netlify.token;
|
|
5521
|
+
headers["x-adapter-netlify-token"] = tokens.netlify.token;
|
|
5428
5522
|
}
|
|
5429
5523
|
if ((_e = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _e.token) {
|
|
5430
|
-
headers["vercel-token"] = tokens.vercel.token;
|
|
5524
|
+
headers["x-adapter-vercel-token"] = tokens.vercel.token;
|
|
5431
5525
|
}
|
|
5432
5526
|
if ((_f = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _f.token) {
|
|
5433
|
-
headers["planetscale-token"] = tokens.planetscale.token;
|
|
5527
|
+
headers["x-adapter-planetscale-token"] = tokens.planetscale.token;
|
|
5434
5528
|
}
|
|
5435
5529
|
if ((_g = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _g.token) {
|
|
5436
|
-
headers["neon-token"] = tokens.neon.token;
|
|
5530
|
+
headers["x-adapter-neon-token"] = tokens.neon.token;
|
|
5437
5531
|
}
|
|
5438
5532
|
if ((_h = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _h.server) {
|
|
5439
|
-
headers["mailchimp-server"] = tokens.mailchimp.server;
|
|
5533
|
+
headers["x-adapter-mailchimp-server"] = tokens.mailchimp.server;
|
|
5440
5534
|
}
|
|
5441
5535
|
if ((_i = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _i.token) {
|
|
5442
|
-
headers["mailchimp-token"] = tokens.mailchimp.token;
|
|
5536
|
+
headers["x-adapter-mailchimp-token"] = tokens.mailchimp.token;
|
|
5443
5537
|
}
|
|
5444
5538
|
if ((_j = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _j.shop) {
|
|
5445
|
-
headers["shopify-shop"] = tokens.shopify.shop;
|
|
5539
|
+
headers["x-adapter-shopify-shop"] = tokens.shopify.shop;
|
|
5446
5540
|
}
|
|
5447
5541
|
if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.token) {
|
|
5448
|
-
headers["shopify-token"] = tokens.shopify.token;
|
|
5542
|
+
headers["x-adapter-shopify-token"] = tokens.shopify.token;
|
|
5449
5543
|
}
|
|
5450
5544
|
}
|
|
5451
5545
|
|
|
@@ -5923,6 +6017,17 @@ var platformAdapterAppApi = {
|
|
|
5923
6017
|
}
|
|
5924
6018
|
};
|
|
5925
6019
|
|
|
6020
|
+
// src/apis/integrations/text/platform/workflows/_contracts/dtos/workflows.ts
|
|
6021
|
+
var WorkflowDefinitionTaskType = {
|
|
6022
|
+
http: "HTTP",
|
|
6023
|
+
switch: "SWITCH",
|
|
6024
|
+
forkJoin: "FORK_JOIN",
|
|
6025
|
+
terminate: "TERMINATE",
|
|
6026
|
+
join: "JOIN",
|
|
6027
|
+
addNode: "ADD_NODE",
|
|
6028
|
+
addTrigger: "ADD_TRIGGER"
|
|
6029
|
+
};
|
|
6030
|
+
|
|
5926
6031
|
// src/apis/platform/billing/instance.ts
|
|
5927
6032
|
var import_axios21 = __toESM(require("axios"));
|
|
5928
6033
|
var platformBillingClientInstance = import_axios21.default.create({
|
|
@@ -5931,11 +6036,11 @@ var platformBillingClientInstance = import_axios21.default.create({
|
|
|
5931
6036
|
function getPlatformBillingClientAuthorization(req) {
|
|
5932
6037
|
if (req.headers instanceof Headers) {
|
|
5933
6038
|
return {
|
|
5934
|
-
token: req.headers.get("platform-token")
|
|
6039
|
+
token: req.headers.get("x-adapter-platform-token")
|
|
5935
6040
|
};
|
|
5936
6041
|
}
|
|
5937
6042
|
return {
|
|
5938
|
-
token: req.headers["platform-token"]
|
|
6043
|
+
token: req.headers["x-adapter-platform-token"]
|
|
5939
6044
|
};
|
|
5940
6045
|
}
|
|
5941
6046
|
function getPlatformBillingClientConfig(options = {}) {
|
|
@@ -5965,17 +6070,6 @@ function initPlatformBillingClient(baseUrl, token) {
|
|
|
5965
6070
|
}
|
|
5966
6071
|
}
|
|
5967
6072
|
|
|
5968
|
-
// src/apis/platform/workflows/contracts.ts
|
|
5969
|
-
var WorkflowDefinitionTaskType = {
|
|
5970
|
-
http: "HTTP",
|
|
5971
|
-
switch: "SWITCH",
|
|
5972
|
-
forkJoin: "FORK_JOIN",
|
|
5973
|
-
terminate: "TERMINATE",
|
|
5974
|
-
join: "JOIN",
|
|
5975
|
-
addNode: "ADD_NODE",
|
|
5976
|
-
addTrigger: "ADD_TRIGGER"
|
|
5977
|
-
};
|
|
5978
|
-
|
|
5979
6073
|
// src/apis/platform/adapter/integrations/neon/api.ts
|
|
5980
6074
|
var platformAdapterNeonProxyApi = {
|
|
5981
6075
|
user(authorization) {
|
|
@@ -6122,165 +6216,12 @@ var platformBillingApi = {
|
|
|
6122
6216
|
invoices: platformBillingInvoicesApi
|
|
6123
6217
|
};
|
|
6124
6218
|
|
|
6125
|
-
// src/apis/platform/workflows/instance.ts
|
|
6126
|
-
var import_axios22 = __toESM(require("axios"));
|
|
6127
|
-
var PlatformWorkflowsApiError = class extends ApiErrorBase {
|
|
6128
|
-
constructor() {
|
|
6129
|
-
super(...arguments);
|
|
6130
|
-
this.name = "platform_workflows";
|
|
6131
|
-
}
|
|
6132
|
-
};
|
|
6133
|
-
var platformWorkflowsClientInstance = import_axios22.default.create({
|
|
6134
|
-
baseURL: "https://api.labs.text.com/workflow_platform"
|
|
6135
|
-
});
|
|
6136
|
-
platformWorkflowsClientInstance.interceptors.response.use(
|
|
6137
|
-
(response) => response,
|
|
6138
|
-
(error) => {
|
|
6139
|
-
var _a, _b, _c, _d;
|
|
6140
|
-
if (((_a = error.response) == null ? void 0 : _a.status) === 403) {
|
|
6141
|
-
return Promise.reject(new UnauthorizeApiError("accounts"));
|
|
6142
|
-
}
|
|
6143
|
-
return Promise.reject(
|
|
6144
|
-
new PlatformWorkflowsApiError(
|
|
6145
|
-
error.message,
|
|
6146
|
-
(_b = error.response) == null ? void 0 : _b.data,
|
|
6147
|
-
(_d = (_c = error.response) == null ? void 0 : _c.status) != null ? _d : 400
|
|
6148
|
-
)
|
|
6149
|
-
);
|
|
6150
|
-
}
|
|
6151
|
-
);
|
|
6152
|
-
function getPlatformWorkflowsClientConfig(options = {}) {
|
|
6153
|
-
var _a;
|
|
6154
|
-
const currentHeaders = platformWorkflowsClientInstance.defaults.headers;
|
|
6155
|
-
const defaultAuthorization = currentHeaders.Authorization;
|
|
6156
|
-
if (!options.token && !defaultAuthorization) {
|
|
6157
|
-
throw new UnauthorizeApiError("accounts");
|
|
6158
|
-
}
|
|
6159
|
-
const headers = {
|
|
6160
|
-
authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
|
|
6161
|
-
};
|
|
6162
|
-
return {
|
|
6163
|
-
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
|
6164
|
-
};
|
|
6165
|
-
}
|
|
6166
|
-
function initPlatformWorkflowsClient(baseUrl, token) {
|
|
6167
|
-
const headers = platformWorkflowsClientInstance.defaults.headers;
|
|
6168
|
-
if (baseUrl) {
|
|
6169
|
-
platformWorkflowsClientInstance.interceptors.request.use(
|
|
6170
|
-
(config) => {
|
|
6171
|
-
config.baseURL = baseUrl;
|
|
6172
|
-
return config;
|
|
6173
|
-
},
|
|
6174
|
-
(error) => Promise.reject(error)
|
|
6175
|
-
);
|
|
6176
|
-
}
|
|
6177
|
-
if (token) {
|
|
6178
|
-
headers.Authorization = `Bearer ${token}`;
|
|
6179
|
-
} else {
|
|
6180
|
-
delete headers.Authorization;
|
|
6181
|
-
}
|
|
6182
|
-
}
|
|
6183
|
-
|
|
6184
|
-
// src/apis/platform/workflows/api.ts
|
|
6185
|
-
var workflowsApi = {
|
|
6186
|
-
getWorkflows(authorization) {
|
|
6187
|
-
return __async(this, null, function* () {
|
|
6188
|
-
const { data: workflows } = yield platformWorkflowsClientInstance.get(
|
|
6189
|
-
"/workflows",
|
|
6190
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6191
|
-
ensureAuthorizationToken: true
|
|
6192
|
-
}))
|
|
6193
|
-
);
|
|
6194
|
-
return workflows;
|
|
6195
|
-
});
|
|
6196
|
-
},
|
|
6197
|
-
createWorkflow(payload, authorization) {
|
|
6198
|
-
return __async(this, null, function* () {
|
|
6199
|
-
yield platformWorkflowsClientInstance.post(
|
|
6200
|
-
"/workflows",
|
|
6201
|
-
payload,
|
|
6202
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6203
|
-
ensureAuthorizationToken: true
|
|
6204
|
-
}))
|
|
6205
|
-
);
|
|
6206
|
-
});
|
|
6207
|
-
},
|
|
6208
|
-
getWorkflow(payload, authorization) {
|
|
6209
|
-
return __async(this, null, function* () {
|
|
6210
|
-
const { data: workflow } = yield platformWorkflowsClientInstance.get(
|
|
6211
|
-
`/workflows/${payload.name}?version=${payload.version}`,
|
|
6212
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6213
|
-
ensureAuthorizationToken: true
|
|
6214
|
-
}))
|
|
6215
|
-
);
|
|
6216
|
-
return workflow;
|
|
6217
|
-
});
|
|
6218
|
-
},
|
|
6219
|
-
updateWorkflow(payload, authorization) {
|
|
6220
|
-
return __async(this, null, function* () {
|
|
6221
|
-
const { data: workflow } = yield platformWorkflowsClientInstance.put(
|
|
6222
|
-
`/workflows/${payload.name}`,
|
|
6223
|
-
payload,
|
|
6224
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6225
|
-
ensureAuthorizationToken: true
|
|
6226
|
-
}))
|
|
6227
|
-
);
|
|
6228
|
-
return workflow;
|
|
6229
|
-
});
|
|
6230
|
-
},
|
|
6231
|
-
deleteWorkflow(payload, authorization) {
|
|
6232
|
-
return __async(this, null, function* () {
|
|
6233
|
-
yield platformWorkflowsClientInstance.delete(
|
|
6234
|
-
`/workflows/${payload.name}`,
|
|
6235
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6236
|
-
ensureAuthorizationToken: true
|
|
6237
|
-
}))
|
|
6238
|
-
);
|
|
6239
|
-
});
|
|
6240
|
-
},
|
|
6241
|
-
executeWorkflow(payload, authorization) {
|
|
6242
|
-
return __async(this, null, function* () {
|
|
6243
|
-
const { data: execution } = yield platformWorkflowsClientInstance.post(
|
|
6244
|
-
`/workflows/${payload.name}/executions`,
|
|
6245
|
-
payload,
|
|
6246
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6247
|
-
ensureAuthorizationToken: true
|
|
6248
|
-
}))
|
|
6249
|
-
);
|
|
6250
|
-
return execution;
|
|
6251
|
-
});
|
|
6252
|
-
},
|
|
6253
|
-
getWorkflowExecutionsList(payload, authorization) {
|
|
6254
|
-
return __async(this, null, function* () {
|
|
6255
|
-
const { data: executions } = yield platformWorkflowsClientInstance.get(
|
|
6256
|
-
`/workflows/${payload.name}/executions`,
|
|
6257
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6258
|
-
ensureAuthorizationToken: true
|
|
6259
|
-
}))
|
|
6260
|
-
);
|
|
6261
|
-
return executions;
|
|
6262
|
-
});
|
|
6263
|
-
},
|
|
6264
|
-
getWorkflowExecutionDetails(payload, authorization) {
|
|
6265
|
-
return __async(this, null, function* () {
|
|
6266
|
-
const { data: execution } = yield platformWorkflowsClientInstance.get(
|
|
6267
|
-
`/workflows/${payload.name}/executions/${payload.execution_id}`,
|
|
6268
|
-
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6269
|
-
ensureAuthorizationToken: true
|
|
6270
|
-
}))
|
|
6271
|
-
);
|
|
6272
|
-
return execution;
|
|
6273
|
-
});
|
|
6274
|
-
}
|
|
6275
|
-
};
|
|
6276
|
-
|
|
6277
6219
|
// src/apis/platform/api.ts
|
|
6278
6220
|
var platformApi = {
|
|
6279
6221
|
accounts: platformAccountsApi,
|
|
6280
6222
|
billing: platformBillingApi,
|
|
6281
6223
|
adapter: platformAdapterApi,
|
|
6282
|
-
dps: platformDpsApi
|
|
6283
|
-
workflows: workflowsApi
|
|
6224
|
+
dps: platformDpsApi
|
|
6284
6225
|
};
|
|
6285
6226
|
|
|
6286
6227
|
// src/apis/api.ts
|
|
@@ -6291,7 +6232,7 @@ var api = {
|
|
|
6291
6232
|
isInitialized: false
|
|
6292
6233
|
};
|
|
6293
6234
|
function initApi(config, tokens) {
|
|
6294
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t
|
|
6235
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
6295
6236
|
initPlatformAccountsClient(
|
|
6296
6237
|
(_a = config.urls.platform) == null ? void 0 : _a.accounts,
|
|
6297
6238
|
(_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
|
|
@@ -6301,12 +6242,8 @@ function initApi(config, tokens) {
|
|
|
6301
6242
|
(_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
|
|
6302
6243
|
);
|
|
6303
6244
|
initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
|
|
6304
|
-
initPlatformWorkflowsClient(
|
|
6305
|
-
(_g = config.urls.platform) == null ? void 0 : _g.workflows,
|
|
6306
|
-
(_h = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _h.token
|
|
6307
|
-
);
|
|
6308
6245
|
initPlatformAdapterClient(
|
|
6309
|
-
(
|
|
6246
|
+
(_g = config.urls.platform) == null ? void 0 : _g.adapter,
|
|
6310
6247
|
tokens ? {
|
|
6311
6248
|
platform: tokens.platform,
|
|
6312
6249
|
github: tokens.github,
|
|
@@ -6318,15 +6255,15 @@ function initApi(config, tokens) {
|
|
|
6318
6255
|
shopify: tokens.shopify
|
|
6319
6256
|
} : void 0
|
|
6320
6257
|
);
|
|
6321
|
-
initLiveChatClient((
|
|
6322
|
-
initTextClient((
|
|
6323
|
-
initGithubClient((
|
|
6324
|
-
initNetlifyClient((
|
|
6325
|
-
initVercelClient((
|
|
6326
|
-
initNeonClient((
|
|
6327
|
-
initPlanetScaleClient((
|
|
6328
|
-
initMailchimpClient((
|
|
6329
|
-
initShopifyClient((
|
|
6258
|
+
initLiveChatClient((_h = config.urls.products) == null ? void 0 : _h.livechat, (_i = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _i.token);
|
|
6259
|
+
initTextClient((_j = config.urls.integrations) == null ? void 0 : _j.text, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
|
|
6260
|
+
initGithubClient((_l = tokens == null ? void 0 : tokens.github) == null ? void 0 : _l.appToken);
|
|
6261
|
+
initNetlifyClient((_m = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _m.token);
|
|
6262
|
+
initVercelClient((_n = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _n.token);
|
|
6263
|
+
initNeonClient((_o = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _o.token);
|
|
6264
|
+
initPlanetScaleClient((_p = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _p.token);
|
|
6265
|
+
initMailchimpClient((_q = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _q.token, (_r = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _r.server);
|
|
6266
|
+
initShopifyClient((_s = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _t.shop);
|
|
6330
6267
|
api.isInitialized = true;
|
|
6331
6268
|
}
|
|
6332
6269
|
|