@forgecart/sdk 1.2.6 → 1.202606151453.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 +84 -1
- package/dist/admin-types.generated.d.ts +593 -33
- package/dist/admin.d.ts +4 -0
- package/dist/admin.generated.d.ts +82 -26
- package/dist/admin.generated.js +122 -2
- package/dist/admin.js +49 -43
- package/dist/client.generated.d.ts +40 -7
- package/dist/client.generated.js +162 -87
- package/dist/documents.generated.d.ts +38 -8
- package/dist/documents.generated.js +594 -36
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -3
- package/dist/nest.generated.d.ts +13 -0
- package/dist/nest.generated.js +92 -0
- package/dist/shop-types.generated.d.ts +200 -13
- package/dist/shop.d.ts +2 -0
- package/dist/shop.generated.d.ts +13 -4
- package/dist/shop.generated.js +19 -1
- package/dist/shop.js +17 -15
- package/package.json +21 -4
- package/src/admin-types.generated.d.ts +10013 -0
- package/src/admin-types.generated.ts +1210 -88
- package/src/admin.generated.d.ts +806 -0
- package/src/admin.generated.ts +151 -27
- package/src/admin.ts +5 -1
- package/src/client.generated.d.ts +249 -0
- package/src/client.generated.ts +188 -39
- package/src/documents.generated.d.ts +473 -0
- package/src/documents.generated.ts +615 -27
- package/src/error-utils.d.ts +25 -0
- package/src/hook-event-map.generated.d.ts +243 -0
- package/src/index.d.ts +22 -0
- package/src/index.ts +1 -1
- package/src/nest.generated.ts +45 -0
- package/src/sdk-hook-subscription.generated.d.ts +29 -0
- package/src/sdk-plugin.generated.d.ts +38 -0
- package/src/sdk-types.generated.d.ts +56 -0
- package/src/shop-types.generated.d.ts +4786 -0
- package/src/shop-types.generated.ts +271 -13
- package/src/shop.generated.d.ts +213 -0
- package/src/shop.generated.ts +22 -5
- package/src/shop.ts +3 -1
- package/src/upload.d.ts +14 -0
package/dist/client.generated.js
CHANGED
|
@@ -6,42 +6,8 @@
|
|
|
6
6
|
* This file was generated by @forgecart/client-sdk-generators.
|
|
7
7
|
* Any manual changes will be overwritten on the next generation run.
|
|
8
8
|
*/
|
|
9
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
10
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
11
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
12
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
13
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
14
|
-
var _, done = false;
|
|
15
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
16
|
-
var context = {};
|
|
17
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
18
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
19
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
20
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
21
|
-
if (kind === "accessor") {
|
|
22
|
-
if (result === void 0) continue;
|
|
23
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
24
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
25
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
26
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
27
|
-
}
|
|
28
|
-
else if (_ = accept(result)) {
|
|
29
|
-
if (kind === "field") initializers.unshift(_);
|
|
30
|
-
else descriptor[key] = _;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
34
|
-
done = true;
|
|
35
|
-
};
|
|
36
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
37
|
-
var useValue = arguments.length > 2;
|
|
38
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
39
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
40
|
-
}
|
|
41
|
-
return useValue ? value : void 0;
|
|
42
|
-
};
|
|
43
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.
|
|
10
|
+
exports.ForgeCartClient = exports.ForgeCartShopClient = exports.ForgeCartAdminClient = exports.TransactionContext = exports.BaseGraphQLClient = exports.QueryObservable = exports.ClientError = exports.SDKLogger = void 0;
|
|
45
11
|
exports.setAuthToken = setAuthToken;
|
|
46
12
|
exports.clearAuthToken = clearAuthToken;
|
|
47
13
|
exports.setTransactionToken = setTransactionToken;
|
|
@@ -94,11 +60,29 @@ class BaseGraphQLClient {
|
|
|
94
60
|
wsClientStale = false;
|
|
95
61
|
authToken = null;
|
|
96
62
|
transactionToken = null;
|
|
63
|
+
currencyCode = null;
|
|
64
|
+
languageCode = null;
|
|
97
65
|
errorHandler = null;
|
|
98
|
-
|
|
66
|
+
persistSession;
|
|
67
|
+
tokenStorageKey;
|
|
68
|
+
constructor(endpoint, baseHeaders, uploadEndpoint, options) {
|
|
99
69
|
this.baseHeaders = baseHeaders;
|
|
100
70
|
this.uploadEndpoint = uploadEndpoint;
|
|
101
71
|
this.endpoint = endpoint.replace(/^http:/, "ws:").replace(/^https:/, "wss:");
|
|
72
|
+
// Cross-tab session continuity: each new tab or reload builds a fresh
|
|
73
|
+
// client instance, so without a shared store every one would mint a new
|
|
74
|
+
// anonymous session server-side — and be counted as a new active user.
|
|
75
|
+
// Persist the captured token in localStorage (shared across same-origin
|
|
76
|
+
// tabs), keyed per endpoint + channel so separate stores never collide.
|
|
77
|
+
// Opt out with `{ persistSession: false }` when the host app owns token
|
|
78
|
+
// storage (e.g. the admin dashboard).
|
|
79
|
+
this.persistSession = options?.persistSession ?? true;
|
|
80
|
+
this.currencyCode = options?.currencyCode ?? null;
|
|
81
|
+
this.languageCode = options?.languageCode ?? null;
|
|
82
|
+
this.tokenStorageKey = `forgecart:auth:${this.endpoint}:${this.baseHeaders["forgecart-token"] ?? ""}`;
|
|
83
|
+
if (this.persistSession) {
|
|
84
|
+
this.authToken = this.readPersistedToken();
|
|
85
|
+
}
|
|
102
86
|
}
|
|
103
87
|
getWsClient() {
|
|
104
88
|
if (this.wsClient && this.wsClientStale) {
|
|
@@ -127,20 +111,62 @@ class BaseGraphQLClient {
|
|
|
127
111
|
if (this.transactionToken) {
|
|
128
112
|
headers["forgecart-transaction-token"] = this.transactionToken;
|
|
129
113
|
}
|
|
114
|
+
if (this.currencyCode) {
|
|
115
|
+
headers["forgecart-currency"] = this.currencyCode;
|
|
116
|
+
}
|
|
117
|
+
if (this.languageCode) {
|
|
118
|
+
headers["forgecart-language"] = this.languageCode;
|
|
119
|
+
}
|
|
130
120
|
return headers;
|
|
131
121
|
}
|
|
132
122
|
setAuthToken(token) {
|
|
133
123
|
if (this.authToken === token)
|
|
134
124
|
return;
|
|
135
125
|
this.authToken = token;
|
|
126
|
+
this.persistToken(token);
|
|
136
127
|
this.disposeWsClient();
|
|
137
128
|
this.logger.info("Auth token set");
|
|
138
129
|
}
|
|
130
|
+
getAuthToken() {
|
|
131
|
+
return this.authToken;
|
|
132
|
+
}
|
|
139
133
|
clearAuthToken() {
|
|
140
134
|
this.authToken = null;
|
|
135
|
+
this.persistToken(null);
|
|
141
136
|
this.disposeWsClient();
|
|
142
137
|
this.logger.info("Auth token cleared");
|
|
143
138
|
}
|
|
139
|
+
// Currency/language preferences ride the WebSocket connection params,
|
|
140
|
+
// so changing one disposes the connection — the next request reconnects
|
|
141
|
+
// with the new forgecart-currency / forgecart-language headers.
|
|
142
|
+
setCurrencyCode(currencyCode) {
|
|
143
|
+
if (this.currencyCode === currencyCode)
|
|
144
|
+
return;
|
|
145
|
+
this.currencyCode = currencyCode;
|
|
146
|
+
this.disposeWsClient();
|
|
147
|
+
this.logger.info("Currency code set");
|
|
148
|
+
}
|
|
149
|
+
clearCurrencyCode() {
|
|
150
|
+
if (this.currencyCode === null)
|
|
151
|
+
return;
|
|
152
|
+
this.currencyCode = null;
|
|
153
|
+
this.disposeWsClient();
|
|
154
|
+
this.logger.info("Currency code cleared");
|
|
155
|
+
}
|
|
156
|
+
setLanguageCode(languageCode) {
|
|
157
|
+
if (this.languageCode === languageCode)
|
|
158
|
+
return;
|
|
159
|
+
this.languageCode = languageCode;
|
|
160
|
+
this.disposeWsClient();
|
|
161
|
+
this.logger.info("Language code set");
|
|
162
|
+
}
|
|
163
|
+
clearLanguageCode() {
|
|
164
|
+
if (this.languageCode === null)
|
|
165
|
+
return;
|
|
166
|
+
this.languageCode = null;
|
|
167
|
+
this.disposeWsClient();
|
|
168
|
+
this.logger.info("Language code cleared");
|
|
169
|
+
}
|
|
144
170
|
setTransactionToken(token) {
|
|
145
171
|
this.transactionToken = token;
|
|
146
172
|
this.logger.info("Transaction token set");
|
|
@@ -235,6 +261,7 @@ class BaseGraphQLClient {
|
|
|
235
261
|
const token = result.extensions["forgecart-auth-token"];
|
|
236
262
|
if (token && !this.authToken) {
|
|
237
263
|
this.authToken = token;
|
|
264
|
+
this.persistToken(token);
|
|
238
265
|
this.wsClientStale = true;
|
|
239
266
|
this.logger.info("Session token captured from extensions");
|
|
240
267
|
}
|
|
@@ -245,10 +272,39 @@ class BaseGraphQLClient {
|
|
|
245
272
|
const token = result.extensions["forgecart-auth-token"];
|
|
246
273
|
if (token && !this.authToken) {
|
|
247
274
|
this.authToken = token;
|
|
275
|
+
this.persistToken(token);
|
|
248
276
|
this.wsClientStale = true;
|
|
249
277
|
this.logger.info("Session token captured from upload response");
|
|
250
278
|
}
|
|
251
279
|
}
|
|
280
|
+
readPersistedToken() {
|
|
281
|
+
if (typeof localStorage === "undefined")
|
|
282
|
+
return null;
|
|
283
|
+
try {
|
|
284
|
+
return localStorage.getItem(this.tokenStorageKey);
|
|
285
|
+
}
|
|
286
|
+
catch {
|
|
287
|
+
// Storage can throw (Safari private mode, disabled cookies, quota).
|
|
288
|
+
// Falling back to an in-memory session keeps the SDK functional.
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
persistToken(token) {
|
|
293
|
+
if (!this.persistSession || typeof localStorage === "undefined")
|
|
294
|
+
return;
|
|
295
|
+
try {
|
|
296
|
+
if (token === null) {
|
|
297
|
+
localStorage.removeItem(this.tokenStorageKey);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
localStorage.setItem(this.tokenStorageKey, token);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
catch {
|
|
304
|
+
// Persistence is best-effort; a storage failure must never break a
|
|
305
|
+
// request. The in-memory token still serves the current page.
|
|
306
|
+
}
|
|
307
|
+
}
|
|
252
308
|
containsFiles(obj) {
|
|
253
309
|
if (obj === null || obj === undefined)
|
|
254
310
|
return false;
|
|
@@ -282,6 +338,8 @@ class BaseGraphQLClient {
|
|
|
282
338
|
const forked = new BaseGraphQLClient(this.endpoint, this.baseHeaders, this.uploadEndpoint);
|
|
283
339
|
forked.authToken = this.authToken;
|
|
284
340
|
forked.transactionToken = transactionToken;
|
|
341
|
+
forked.currencyCode = this.currencyCode;
|
|
342
|
+
forked.languageCode = this.languageCode;
|
|
285
343
|
forked.wsClient = this.wsClient;
|
|
286
344
|
forked.ownsWsClient = false;
|
|
287
345
|
return forked;
|
|
@@ -326,15 +384,33 @@ class ForgeCartAdminClient {
|
|
|
326
384
|
if (config.adminSecret) {
|
|
327
385
|
headers['forgecart-secret'] = config.adminSecret;
|
|
328
386
|
}
|
|
329
|
-
this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint
|
|
387
|
+
this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
|
|
388
|
+
currencyCode: config.currencyCode,
|
|
389
|
+
languageCode: config.languageCode,
|
|
390
|
+
});
|
|
330
391
|
this._namespace = new admin_generated_1.AdminNamespace(this.client);
|
|
331
392
|
}
|
|
332
393
|
setAuthToken(token) {
|
|
333
394
|
this.client.setAuthToken(token);
|
|
334
395
|
}
|
|
396
|
+
getAuthToken() {
|
|
397
|
+
return this.client.getAuthToken();
|
|
398
|
+
}
|
|
335
399
|
clearAuthToken() {
|
|
336
400
|
this.client.clearAuthToken();
|
|
337
401
|
}
|
|
402
|
+
setCurrencyCode(currencyCode) {
|
|
403
|
+
this.client.setCurrencyCode(currencyCode);
|
|
404
|
+
}
|
|
405
|
+
clearCurrencyCode() {
|
|
406
|
+
this.client.clearCurrencyCode();
|
|
407
|
+
}
|
|
408
|
+
setLanguageCode(languageCode) {
|
|
409
|
+
this.client.setLanguageCode(languageCode);
|
|
410
|
+
}
|
|
411
|
+
clearLanguageCode() {
|
|
412
|
+
this.client.clearLanguageCode();
|
|
413
|
+
}
|
|
338
414
|
setTransactionToken(token) {
|
|
339
415
|
this.client.setTransactionToken(token);
|
|
340
416
|
}
|
|
@@ -449,6 +525,9 @@ class ForgeCartAdminClient {
|
|
|
449
525
|
get channel() {
|
|
450
526
|
return this._namespace.channel;
|
|
451
527
|
}
|
|
528
|
+
get chat() {
|
|
529
|
+
return this._namespace.chat;
|
|
530
|
+
}
|
|
452
531
|
get collection() {
|
|
453
532
|
return this._namespace.collection;
|
|
454
533
|
}
|
|
@@ -485,6 +564,9 @@ class ForgeCartAdminClient {
|
|
|
485
564
|
get hook() {
|
|
486
565
|
return this._namespace.hook;
|
|
487
566
|
}
|
|
567
|
+
get market() {
|
|
568
|
+
return this._namespace.market;
|
|
569
|
+
}
|
|
488
570
|
get marketingAttribution() {
|
|
489
571
|
return this._namespace.marketingAttribution;
|
|
490
572
|
}
|
|
@@ -494,6 +576,9 @@ class ForgeCartAdminClient {
|
|
|
494
576
|
get marketingIdentity() {
|
|
495
577
|
return this._namespace.marketingIdentity;
|
|
496
578
|
}
|
|
579
|
+
get mission() {
|
|
580
|
+
return this._namespace.mission;
|
|
581
|
+
}
|
|
497
582
|
get onboarding() {
|
|
498
583
|
return this._namespace.onboarding;
|
|
499
584
|
}
|
|
@@ -579,15 +664,33 @@ class ForgeCartShopClient {
|
|
|
579
664
|
_namespace;
|
|
580
665
|
constructor(config) {
|
|
581
666
|
const headers = { 'forgecart-token': config.channelToken, ...config.headers };
|
|
582
|
-
this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint
|
|
667
|
+
this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
|
|
668
|
+
currencyCode: config.currencyCode,
|
|
669
|
+
languageCode: config.languageCode,
|
|
670
|
+
});
|
|
583
671
|
this._namespace = new shop_generated_1.ShopNamespace(this.client);
|
|
584
672
|
}
|
|
585
673
|
setAuthToken(token) {
|
|
586
674
|
this.client.setAuthToken(token);
|
|
587
675
|
}
|
|
676
|
+
getAuthToken() {
|
|
677
|
+
return this.client.getAuthToken();
|
|
678
|
+
}
|
|
588
679
|
clearAuthToken() {
|
|
589
680
|
this.client.clearAuthToken();
|
|
590
681
|
}
|
|
682
|
+
setCurrencyCode(currencyCode) {
|
|
683
|
+
this.client.setCurrencyCode(currencyCode);
|
|
684
|
+
}
|
|
685
|
+
clearCurrencyCode() {
|
|
686
|
+
this.client.clearCurrencyCode();
|
|
687
|
+
}
|
|
688
|
+
setLanguageCode(languageCode) {
|
|
689
|
+
this.client.setLanguageCode(languageCode);
|
|
690
|
+
}
|
|
691
|
+
clearLanguageCode() {
|
|
692
|
+
this.client.clearLanguageCode();
|
|
693
|
+
}
|
|
591
694
|
setTransactionToken(token) {
|
|
592
695
|
this.client.setTransactionToken(token);
|
|
593
696
|
}
|
|
@@ -632,6 +735,9 @@ class ForgeCartShopClient {
|
|
|
632
735
|
get cart() {
|
|
633
736
|
return this._namespace.cart;
|
|
634
737
|
}
|
|
738
|
+
get channel() {
|
|
739
|
+
return this._namespace.channel;
|
|
740
|
+
}
|
|
635
741
|
get checkout() {
|
|
636
742
|
return this._namespace.checkout;
|
|
637
743
|
}
|
|
@@ -680,8 +786,8 @@ class ForgeCartClient {
|
|
|
680
786
|
_admin;
|
|
681
787
|
_shop;
|
|
682
788
|
constructor(config) {
|
|
683
|
-
this._admin = new ForgeCartAdminClient({ endpoint: config.endpoint + '/admin-api', channelToken: config.channelToken, adminSecret: config.adminSecret, uploadEndpoint: config.uploadEndpoint ? config.uploadEndpoint + '/admin-api' : undefined, headers: config.headers });
|
|
684
|
-
this._shop = new ForgeCartShopClient({ endpoint: config.endpoint + '/shop-api', channelToken: config.channelToken, uploadEndpoint: config.uploadEndpoint ? config.uploadEndpoint + '/shop-api' : undefined, headers: config.headers });
|
|
789
|
+
this._admin = new ForgeCartAdminClient({ endpoint: config.endpoint + '/admin-api', channelToken: config.channelToken, adminSecret: config.adminSecret, uploadEndpoint: config.uploadEndpoint ? config.uploadEndpoint + '/admin-api' : undefined, headers: config.headers, currencyCode: config.currencyCode, languageCode: config.languageCode });
|
|
790
|
+
this._shop = new ForgeCartShopClient({ endpoint: config.endpoint + '/shop-api', channelToken: config.channelToken, uploadEndpoint: config.uploadEndpoint ? config.uploadEndpoint + '/shop-api' : undefined, headers: config.headers, currencyCode: config.currencyCode, languageCode: config.languageCode });
|
|
685
791
|
this._admin.setShopPeer(this._shop);
|
|
686
792
|
}
|
|
687
793
|
setAuthToken(token) {
|
|
@@ -692,6 +798,22 @@ class ForgeCartClient {
|
|
|
692
798
|
this._admin.clearAuthToken();
|
|
693
799
|
this._shop.clearAuthToken();
|
|
694
800
|
}
|
|
801
|
+
setCurrencyCode(currencyCode) {
|
|
802
|
+
this._admin.setCurrencyCode(currencyCode);
|
|
803
|
+
this._shop.setCurrencyCode(currencyCode);
|
|
804
|
+
}
|
|
805
|
+
clearCurrencyCode() {
|
|
806
|
+
this._admin.clearCurrencyCode();
|
|
807
|
+
this._shop.clearCurrencyCode();
|
|
808
|
+
}
|
|
809
|
+
setLanguageCode(languageCode) {
|
|
810
|
+
this._admin.setLanguageCode(languageCode);
|
|
811
|
+
this._shop.setLanguageCode(languageCode);
|
|
812
|
+
}
|
|
813
|
+
clearLanguageCode() {
|
|
814
|
+
this._admin.clearLanguageCode();
|
|
815
|
+
this._shop.clearLanguageCode();
|
|
816
|
+
}
|
|
695
817
|
setTransactionToken(token) {
|
|
696
818
|
this._admin.setTransactionToken(token);
|
|
697
819
|
this._shop.setTransactionToken(token);
|
|
@@ -708,50 +830,3 @@ class ForgeCartClient {
|
|
|
708
830
|
}
|
|
709
831
|
}
|
|
710
832
|
exports.ForgeCartClient = ForgeCartClient;
|
|
711
|
-
const common_1 = require("@nestjs/common");
|
|
712
|
-
let ForgeCartGraphQLModule = (() => {
|
|
713
|
-
let _classDecorators = [(0, common_1.Module)({})];
|
|
714
|
-
let _classDescriptor;
|
|
715
|
-
let _classExtraInitializers = [];
|
|
716
|
-
let _classThis;
|
|
717
|
-
var ForgeCartGraphQLModule = class {
|
|
718
|
-
static { _classThis = this; }
|
|
719
|
-
static {
|
|
720
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
721
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
722
|
-
ForgeCartGraphQLModule = _classThis = _classDescriptor.value;
|
|
723
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
724
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
725
|
-
}
|
|
726
|
-
static forAdmin(config) {
|
|
727
|
-
const client = new ForgeCartAdminClient(config);
|
|
728
|
-
return {
|
|
729
|
-
module: ForgeCartGraphQLModule,
|
|
730
|
-
providers: [{ provide: ForgeCartAdminClient, useValue: client }],
|
|
731
|
-
exports: [ForgeCartAdminClient],
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
static forShop(config) {
|
|
735
|
-
const client = new ForgeCartShopClient(config);
|
|
736
|
-
return {
|
|
737
|
-
module: ForgeCartGraphQLModule,
|
|
738
|
-
providers: [{ provide: ForgeCartShopClient, useValue: client }],
|
|
739
|
-
exports: [ForgeCartShopClient],
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
static forRoot(config) {
|
|
743
|
-
const client = new ForgeCartClient(config);
|
|
744
|
-
return {
|
|
745
|
-
module: ForgeCartGraphQLModule,
|
|
746
|
-
providers: [
|
|
747
|
-
{ provide: ForgeCartClient, useValue: client },
|
|
748
|
-
{ provide: ForgeCartAdminClient, useValue: client.admin },
|
|
749
|
-
{ provide: ForgeCartShopClient, useValue: client.shop },
|
|
750
|
-
],
|
|
751
|
-
exports: [ForgeCartClient, ForgeCartAdminClient, ForgeCartShopClient],
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
return ForgeCartGraphQLModule = _classThis;
|
|
756
|
-
})();
|
|
757
|
-
exports.ForgeCartGraphQLModule = ForgeCartGraphQLModule;
|
|
@@ -64,15 +64,27 @@ export declare const adminAuthenticateWithExternalStrategyDocument = "mutation A
|
|
|
64
64
|
export declare const adminVerifyAdministratorEmailDocument = "mutation VerifyAdministratorEmail($input: VerifyAdministratorEmailInput!) {\n verifyAdministratorEmail(input: $input) {\n session {\n id\n token\n }\n administrator {\n id\n firstName\n lastName\n emailAddress\n avatarUrl\n }\n requiresOnboarding\n }\n}";
|
|
65
65
|
export declare const adminResendAdministratorVerificationDocument = "mutation ResendAdministratorVerification($input: ResendAdministratorVerificationInput!) {\n resendAdministratorVerification(input: $input)\n}";
|
|
66
66
|
export declare const adminLogoutDocument = "mutation Logout {\n logout\n}";
|
|
67
|
-
export declare const adminChannelSettingsDocument = "query ChannelSettings {\n channelSettings {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n
|
|
68
|
-
export declare const adminChannelUpdateSettingsDocument = "mutation ChannelUpdateSettings($input: UpdateChannelSettingsInput!) {\n updateChannelSettings(input: $input) {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n
|
|
69
|
-
export declare const adminChannelDocument = "query Channel($id: ID!) {\n channel(id: $id) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
70
|
-
export declare const adminChannelsDocument = "query Channels($options: ListQueryOptions) {\n channels(options: $options) {\n items {\n ...ChannelField\n }\n totalItems\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
71
|
-
export declare const adminCreateChannelDocument = "mutation CreateChannel($input: CreateChannelInput!) {\n createChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
72
|
-
export declare const adminUpdateChannelDocument = "mutation UpdateChannel($input: UpdateChannelInput!) {\n updateChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
67
|
+
export declare const adminChannelSettingsDocument = "query ChannelSettings {\n channelSettings {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
|
|
68
|
+
export declare const adminChannelUpdateSettingsDocument = "mutation ChannelUpdateSettings($input: UpdateChannelSettingsInput!) {\n updateChannelSettings(input: $input) {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
|
|
69
|
+
export declare const adminChannelDocument = "query Channel($id: ID!) {\n channel(id: $id) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
70
|
+
export declare const adminChannelsDocument = "query Channels($options: ListQueryOptions) {\n channels(options: $options) {\n items {\n ...ChannelField\n }\n totalItems\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
71
|
+
export declare const adminCreateChannelDocument = "mutation CreateChannel($input: CreateChannelInput!) {\n createChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
72
|
+
export declare const adminUpdateChannelDocument = "mutation UpdateChannel($input: UpdateChannelInput!) {\n updateChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
|
|
73
73
|
export declare const adminDeleteChannelDocument = "mutation DeleteChannel($id: ID!) {\n deleteChannel(id: $id)\n}";
|
|
74
|
-
export declare const adminUpdateChannelSettingsDocument = "mutation UpdateChannelSettings($input: UpdateChannelSettingsInput!) {\n updateChannelSettings(input: $input) {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n
|
|
75
|
-
export declare const adminProvisionChannelDocument = "mutation ProvisionChannel($input: ProvisionChannelInput!) {\n provisionChannel(input: $input) {\n channel {\n ...ChannelField\n }\n channelSettings {\n ...ChannelSettingsField\n }\n role {\n id\n name\n code\n description\n permissions\n }\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n
|
|
74
|
+
export declare const adminUpdateChannelSettingsDocument = "mutation UpdateChannelSettings($input: UpdateChannelSettingsInput!) {\n updateChannelSettings(input: $input) {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
|
|
75
|
+
export declare const adminProvisionChannelDocument = "mutation ProvisionChannel($input: ProvisionChannelInput!) {\n provisionChannel(input: $input) {\n channel {\n ...ChannelField\n }\n channelSettings {\n ...ChannelSettingsField\n }\n role {\n id\n name\n code\n description\n permissions\n }\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
|
|
76
|
+
export declare const adminStartChatSessionDocument = "mutation StartChatSession($input: StartChatSessionInput) {\n startChatSession(input: $input) {\n ...ChatSessionField\n }\n}\n\nfragment ChatSessionField on ChatSession {\n sessionId\n channelToken\n userId\n createdAt\n lastActivity\n messageCount\n status\n}";
|
|
77
|
+
export declare const adminSendChatMessageDocument = "mutation SendChatMessage($input: SendChatMessageInput!) {\n sendChatMessage(input: $input) {\n ...ChatMessageField\n }\n}\n\nfragment ChatMessageField on ChatMessage {\n type\n content\n toolUse {\n toolId\n toolName\n input\n }\n toolResult {\n toolId\n result\n isError\n }\n timestamp\n isFinal\n eventId\n}";
|
|
78
|
+
export declare const adminChatMessageStreamDocument = "subscription ChatMessageStream($input: SendChatMessageInput!) {\n chatMessageStream(input: $input) {\n ...ChatMessageField\n }\n}\n\nfragment ChatMessageField on ChatMessage {\n type\n content\n toolUse {\n toolId\n toolName\n input\n }\n toolResult {\n toolId\n result\n isError\n }\n timestamp\n isFinal\n eventId\n}";
|
|
79
|
+
export declare const adminResumeChatSessionDocument = "subscription ResumeChatSession($input: ResumeChatSessionInput!) {\n resumeChatSession(input: $input) {\n ...ChatMessageField\n }\n}\n\nfragment ChatMessageField on ChatMessage {\n type\n content\n toolUse {\n toolId\n toolName\n input\n }\n toolResult {\n toolId\n result\n isError\n }\n timestamp\n isFinal\n eventId\n}";
|
|
80
|
+
export declare const adminCloseChatSessionDocument = "mutation CloseChatSession($sessionId: ID!) {\n closeChatSession(sessionId: $sessionId)\n}";
|
|
81
|
+
export declare const adminClearChatHistoryDocument = "mutation ClearChatHistory($sessionId: ID!) {\n clearChatHistory(sessionId: $sessionId)\n}";
|
|
82
|
+
export declare const adminEnqueueChatMessageDocument = "mutation EnqueueChatMessage($input: EnqueueChatMessageInput!) {\n enqueueChatMessage(input: $input)\n}";
|
|
83
|
+
export declare const adminChatQueueDocument = "query ChatQueue($sessionId: ID!) {\n chatQueue(sessionId: $sessionId) {\n id\n kind\n content\n }\n}";
|
|
84
|
+
export declare const adminChatHistoryDocument = "query ChatHistory($input: ChatHistoryInput!) {\n chatHistory(input: $input) {\n ...ChatHistoryMessageField\n }\n}\n\nfragment ChatHistoryMessageField on ChatHistoryMessage {\n id\n role\n content\n toolUse\n toolResult\n seq\n eventId\n timestamp\n}";
|
|
85
|
+
export declare const adminChatSessionsDocument = "query ChatSessions($input: ChatSessionsInput) {\n chatSessions(input: $input) {\n items {\n ...ChatSessionSummaryField\n }\n totalItems\n }\n}\n\nfragment ChatSessionSummaryField on ChatSessionSummary {\n id\n agentSessionId\n title\n status\n origin\n messageCount\n lastActivityAt\n createdAt\n workspaceId\n}";
|
|
86
|
+
export declare const adminArchiveChatSessionDocument = "mutation ArchiveChatSession($sessionId: ID!) {\n archiveChatSession(sessionId: $sessionId)\n}";
|
|
87
|
+
export declare const adminWorkspaceReadinessDocument = "subscription WorkspaceReadiness {\n workspaceReadiness {\n ...WorkspaceReadinessField\n }\n}\n\nfragment WorkspaceReadinessField on WorkspaceReadiness {\n workspaceId\n podState\n serverState\n chatBindingState\n endpoint\n}";
|
|
76
88
|
export declare const adminAdminCollectionDocument = "query AdminCollection($id: ID!) {\n collection(id: $id) {\n ...CollectionField\n }\n}\n\nfragment CollectionField on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n isRoot\n inheritFilters\n position\n filters\n parentId\n featuredAsset {\n id\n name\n preview\n source\n }\n translations {\n ...CollectionTranslationField\n }\n}\n\nfragment CollectionTranslationField on CollectionTranslation {\n id\n languageCode\n name\n slug\n description\n}";
|
|
77
89
|
export declare const adminAdminCollectionsDocument = "query AdminCollections($options: ListQueryOptions) {\n collections(options: $options) {\n items {\n ...CollectionField\n }\n totalItems\n }\n}\n\nfragment CollectionField on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n isRoot\n inheritFilters\n position\n filters\n parentId\n featuredAsset {\n id\n name\n preview\n source\n }\n translations {\n ...CollectionTranslationField\n }\n}\n\nfragment CollectionTranslationField on CollectionTranslation {\n id\n languageCode\n name\n slug\n description\n}";
|
|
78
90
|
export declare const adminCreateCollectionDocument = "mutation CreateCollection($input: CreateCollectionInput!) {\n createCollection(input: $input) {\n ...CollectionField\n }\n}\n\nfragment CollectionField on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n isRoot\n inheritFilters\n position\n filters\n parentId\n featuredAsset {\n id\n name\n preview\n source\n }\n translations {\n ...CollectionTranslationField\n }\n}\n\nfragment CollectionTranslationField on CollectionTranslation {\n id\n languageCode\n name\n slug\n description\n}";
|
|
@@ -155,6 +167,10 @@ export declare const adminAdminRespondToHookDispatchDocument = "mutation AdminRe
|
|
|
155
167
|
export declare const adminHookListenDocument = "subscription HookListen($hookPoints: [String!]!) {\n hookDispatched(hookPoints: $hookPoints) {\n id\n hookPoint\n transactionToken\n args\n }\n}";
|
|
156
168
|
export declare const adminHookRespondDocument = "mutation HookRespond($input: RespondToHookDispatchInput!) {\n respondToHookDispatch(input: $input)\n}";
|
|
157
169
|
export declare const adminEmitDocument = "mutation Emit($input: EmitCustomEventInput!) {\n emit(input: $input)\n}";
|
|
170
|
+
export declare const adminMarketsDocument = "query Markets($options: ListQueryOptions) {\n markets(options: $options) {\n items {\n ...MarketField\n }\n totalItems\n }\n}\n\nfragment MarketField on Market {\n id\n createdAt\n updatedAt\n name\n enabled\n currencyCode\n languageCode\n channelId\n countries {\n id\n code\n name\n enabled\n }\n}";
|
|
171
|
+
export declare const adminCreateMarketDocument = "mutation CreateMarket($input: CreateMarketInput!) {\n createMarket(input: $input) {\n ...MarketField\n }\n}\n\nfragment MarketField on Market {\n id\n createdAt\n updatedAt\n name\n enabled\n currencyCode\n languageCode\n channelId\n countries {\n id\n code\n name\n enabled\n }\n}";
|
|
172
|
+
export declare const adminUpdateMarketDocument = "mutation UpdateMarket($input: UpdateMarketInput!) {\n updateMarket(input: $input) {\n ...MarketField\n }\n}\n\nfragment MarketField on Market {\n id\n createdAt\n updatedAt\n name\n enabled\n currencyCode\n languageCode\n channelId\n countries {\n id\n code\n name\n enabled\n }\n}";
|
|
173
|
+
export declare const adminDeleteMarketDocument = "mutation DeleteMarket($id: ID!) {\n deleteMarket(id: $id) {\n result\n message\n }\n}";
|
|
158
174
|
export declare const adminAdminAttributionByOrderDocument = "query AdminAttributionByOrder($input: AttributionByOrderInput!) {\n attributionByOrder(input: $input) {\n id\n orderId\n customerId\n identityId\n lookbackDays\n totalRevenueMinor\n currencyCode\n firstTouchUtmSource\n firstTouchUtmMedium\n firstTouchUtmCampaign\n firstTouchOccurredAt\n lastTouchUtmSource\n lastTouchUtmMedium\n lastTouchUtmCampaign\n lastTouchOccurredAt\n computedAt\n reversedAt\n touchpoints {\n id\n eventId\n occurredAt\n utmSource\n utmMedium\n utmCampaign\n utmContent\n utmTerm\n source\n revenueMinor\n position\n dedupCount\n }\n touchpointsWithCredit {\n touchpoint {\n id\n eventId\n occurredAt\n utmSource\n utmMedium\n utmCampaign\n utmContent\n utmTerm\n source\n revenueMinor\n position\n dedupCount\n }\n creditWeight\n attributedRevenueMinor\n }\n }\n}";
|
|
159
175
|
export declare const adminAdminAttributionSourceRollupDocument = "query AdminAttributionSourceRollup($input: AttributionSourceRollupInput!) {\n attributionSourceRollup(input: $input) {\n items {\n groupKey\n attributedRevenueMinor\n conversionCount\n }\n totalItems\n totalAttributedRevenueMinor\n totalConversionCount\n model\n }\n}";
|
|
160
176
|
export declare const adminAdminRecomputeAttributionDocument = "mutation AdminRecomputeAttribution($orderId: ID!) {\n recomputeAttribution(orderId: $orderId) {\n id\n orderId\n lookbackDays\n totalRevenueMinor\n currencyCode\n computedAt\n lastTouchUtmSource\n lastTouchUtmMedium\n lastTouchUtmCampaign\n lastTouchOccurredAt\n }\n}";
|
|
@@ -162,6 +178,12 @@ export declare const adminAdminIngestMarketingEventDocument = "mutation AdminIng
|
|
|
162
178
|
export declare const adminAdminQueryMarketingEventSummaryDocument = "query AdminQueryMarketingEventSummary($input: MarketingEventSummaryInput!) {\n queryMarketingEventSummary(input: $input) {\n count\n uniqueIdentities\n uniqueCustomers\n durationMs\n }\n}";
|
|
163
179
|
export declare const adminAdminMarketingIdentityDocument = "query AdminMarketingIdentity($id: ID!) {\n marketingIdentity(id: $id) {\n ...AdminMarketingIdentityFields\n }\n}\n\nfragment AdminMarketingIdentityFields on MarketingIdentity {\n id\n sessionToken\n customerId\n email\n emailSha256\n phone\n phoneSha256\n ipAddress\n userAgent\n country\n region\n city\n postalCode\n deviceType\n os\n browser\n firstSeenAt\n lastSeenAt\n createdAt\n updatedAt\n identifiers {\n ...AdminMarketingIdentityIdentifierFields\n }\n}\n\nfragment AdminMarketingIdentityIdentifierFields on MarketingIdentityIdentifier {\n id\n key\n value\n capturedAt\n position\n}";
|
|
164
180
|
export declare const adminAdminMarketingIdentityByCustomerDocument = "query AdminMarketingIdentityByCustomer($customerId: ID!) {\n marketingIdentityByCustomer(customerId: $customerId) {\n ...AdminMarketingIdentityFields\n }\n}\n\nfragment AdminMarketingIdentityFields on MarketingIdentity {\n id\n sessionToken\n customerId\n email\n emailSha256\n phone\n phoneSha256\n ipAddress\n userAgent\n country\n region\n city\n postalCode\n deviceType\n os\n browser\n firstSeenAt\n lastSeenAt\n createdAt\n updatedAt\n identifiers {\n ...AdminMarketingIdentityIdentifierFields\n }\n}\n\nfragment AdminMarketingIdentityIdentifierFields on MarketingIdentityIdentifier {\n id\n key\n value\n capturedAt\n position\n}";
|
|
181
|
+
export declare const adminAdminMissionsDocument = "query AdminMissions($options: MissionListOptions) {\n missions(options: $options) {\n items {\n ...MissionField\n }\n totalItems\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
182
|
+
export declare const adminAdminMissionDocument = "query AdminMission($id: ID!) {\n mission(id: $id) {\n ...MissionField\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
183
|
+
export declare const adminAdminCreateMissionDocument = "mutation AdminCreateMission($input: CreateMissionInput!) {\n createMission(input: $input) {\n ...MissionField\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
184
|
+
export declare const adminAdminCancelMissionDocument = "mutation AdminCancelMission($id: ID!) {\n cancelMission(id: $id) {\n ...MissionField\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
185
|
+
export declare const adminAdminDeleteMissionDocument = "mutation AdminDeleteMission($id: ID!) {\n deleteMission(id: $id) {\n ...MissionField\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
186
|
+
export declare const adminAdminSendMissionMessageDocument = "mutation AdminSendMissionMessage($input: SendMissionMessageInput!) {\n sendMissionMessage(input: $input) {\n ...MissionField\n }\n}\n\nfragment MissionField on Mission {\n id\n status\n title\n model\n repos {\n ...MissionRepoRefField\n }\n branch\n prUrl\n podRef\n costCents\n channelId\n administratorId\n workspaceId\n createdAt\n updatedAt\n}\n\nfragment MissionRepoRefField on MissionRepoRef {\n owner\n name\n branch\n}";
|
|
165
187
|
export declare const adminActiveOnboardingDocument = "query ActiveOnboarding {\n activeOnboarding {\n onboarding {\n id\n currentStep\n completedAt\n createdAt\n updatedAt\n }\n administrator {\n ...AdministratorField\n }\n profileStep {\n id\n firstName\n lastName\n avatarUrl\n completedAt\n }\n shopStep {\n id\n shopName\n defaultLanguageCode\n defaultCurrencyCode\n completedAt\n }\n }\n}\n\nfragment AdministratorField on Administrator {\n id\n createdAt\n updatedAt\n firstName\n lastName\n emailAddress\n userId\n avatarUrl\n user {\n primaryAuthStrategy\n }\n}";
|
|
166
188
|
export declare const adminUpdateProfileDocument = "mutation UpdateProfile($input: UpdateOnboardingProfileInput!) {\n updateOnboardingProfile(input: $input) {\n onboarding {\n id\n currentStep\n completedAt\n }\n administrator {\n ...AdministratorField\n }\n profileStep {\n id\n firstName\n lastName\n avatarUrl\n completedAt\n }\n shopStep {\n id\n shopName\n defaultLanguageCode\n defaultCurrencyCode\n completedAt\n }\n }\n}\n\nfragment AdministratorField on Administrator {\n id\n createdAt\n updatedAt\n firstName\n lastName\n emailAddress\n userId\n avatarUrl\n user {\n primaryAuthStrategy\n }\n}";
|
|
167
189
|
export declare const adminCompleteShopDocument = "mutation CompleteShop($input: CompleteOnboardingShopInput!) {\n completeOnboardingShop(input: $input) {\n administrator {\n ...AdministratorField\n }\n channel {\n id\n code\n token\n }\n onboarding {\n id\n currentStep\n completedAt\n }\n }\n}\n\nfragment AdministratorField on Administrator {\n id\n createdAt\n updatedAt\n firstName\n lastName\n emailAddress\n userId\n avatarUrl\n user {\n primaryAuthStrategy\n }\n}";
|
|
@@ -270,6 +292,7 @@ export declare const adminAdminProductVariantsDocument = "query AdminProductVari
|
|
|
270
292
|
export declare const adminCreateProductVariantsDocument = "mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
|
|
271
293
|
export declare const adminUpdateProductVariantsDocument = "mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
|
|
272
294
|
export declare const adminDeleteProductVariantsDocument = "mutation DeleteProductVariants($ids: [ID!]!) {\n deleteProductVariants(ids: $ids) {\n result\n message\n }\n}";
|
|
295
|
+
export declare const adminSetProductVariantPriceDocument = "mutation SetProductVariantPrice($input: SetPriceInput!) {\n setProductVariantPrice(input: $input) {\n ...ProductVariantPriceField\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}";
|
|
273
296
|
export declare const adminAdminProductDocument = "query AdminProduct($id: ID!) {\n product(id: $id) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
|
|
274
297
|
export declare const adminAdminProductsDocument = "query AdminProducts($options: ListQueryOptions) {\n products(options: $options) {\n items {\n ...ProductField\n }\n totalItems\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
|
|
275
298
|
export declare const adminCreateProductDocument = "mutation CreateProduct($input: CreateProductInput!) {\n createProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
|
|
@@ -322,6 +345,11 @@ export declare const adminSelectShippingRateDocument = "mutation SelectShippingR
|
|
|
322
345
|
export declare const adminSetManualShippingRateDocument = "mutation SetManualShippingRate($input: SetManualShippingRateInput!) {\n setManualShippingRate(input: $input) {\n ...OrderField\n }\n}\n\nfragment OrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n draftComplete\n preModificationState\n version\n billingAddress {\n ...OrderAddressField\n }\n shippingAddress {\n ...OrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...OrderLineField\n }\n payments {\n ...PaymentField\n }\n fulfillments {\n ...FulfillmentField\n }\n shippingLines {\n ...ShippingLineField\n }\n surcharges {\n ...SurchargeField\n }\n modifications {\n ...OrderModificationField\n }\n promotions {\n id\n }\n discounts {\n ...DiscountField\n }\n taxSummary {\n ...TaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...PaymentTokenField\n }\n history {\n items {\n ...HistoryEntryField\n }\n totalItems\n }\n}\n\nfragment OrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment OrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...AdjustmentField\n }\n taxLines {\n ...TaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n snapshot {\n id\n createdAt\n updatedAt\n productName\n variantName\n sku\n imageUrl\n price\n priceWithTax\n }\n}\n\nfragment AdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment TaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...AdjustmentField\n }\n taxLines {\n ...TaxLineField\n }\n}\n\nfragment PaymentField on Payment {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n ...RefundField\n }\n}\n\nfragment RefundField on Refund {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n lines {\n ...RefundLineField\n }\n}\n\nfragment RefundLineField on RefundLine {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n}\n\nfragment FulfillmentField on Fulfillment {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n ...FulfillmentLineField\n }\n}\n\nfragment FulfillmentLineField on FulfillmentLine {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n}\n\nfragment SurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n taxLines {\n ...TaxLineField\n }\n}\n\nfragment OrderModificationField on OrderModification {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n ...SurchargeField\n }\n payment {\n ...PaymentField\n }\n refund {\n ...RefundField\n }\n}\n\nfragment DiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment TaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment PaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}\n\nfragment HistoryEntryField on HistoryEntry {\n id\n createdAt\n updatedAt\n type\n isPublic\n data\n administrator {\n id\n }\n}";
|
|
323
346
|
export declare const adminUpdateShippingLabelDocument = "mutation UpdateShippingLabel($input: UpdateShippingLabelInput!) {\n updateShippingLabel(input: $input) {\n ...ShippingLabelField\n }\n}\n\nfragment ShippingLabelField on ShippingGatewayLabel {\n id\n status\n trackingNumber\n carrier\n service\n providerCode\n labelUrl\n orderId\n fulfillmentId\n isReturnLabel\n}";
|
|
324
347
|
export declare const adminAvailableShippingProvidersDocument = "query AvailableShippingProviders {\n availableShippingProviders {\n code\n name\n pluginBacked\n }\n}";
|
|
348
|
+
export declare const adminShippingGatewayRoutingRulesDocument = "query ShippingGatewayRoutingRules($stockLocationId: ID!) {\n shippingGatewayRoutingRules(stockLocationId: $stockLocationId) {\n ...ShippingGatewayRoutingRuleField\n }\n}\n\nfragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {\n id\n stockLocationId\n scopeType\n fulfillmentType\n providerCode\n priority\n enabled\n countries {\n id\n code\n name\n }\n flatRates {\n id\n code\n name\n amount\n currencyCode\n estimatedDays\n }\n}";
|
|
349
|
+
export declare const adminCreateShippingGatewayRoutingRuleDocument = "mutation CreateShippingGatewayRoutingRule($input: CreateShippingGatewayRoutingRuleInput!) {\n createShippingGatewayRoutingRule(input: $input) {\n ...ShippingGatewayRoutingRuleField\n }\n}\n\nfragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {\n id\n stockLocationId\n scopeType\n fulfillmentType\n providerCode\n priority\n enabled\n countries {\n id\n code\n name\n }\n flatRates {\n id\n code\n name\n amount\n currencyCode\n estimatedDays\n }\n}";
|
|
350
|
+
export declare const adminUpdateShippingGatewayRoutingRuleDocument = "mutation UpdateShippingGatewayRoutingRule($input: UpdateShippingGatewayRoutingRuleInput!) {\n updateShippingGatewayRoutingRule(input: $input) {\n ...ShippingGatewayRoutingRuleField\n }\n}\n\nfragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {\n id\n stockLocationId\n scopeType\n fulfillmentType\n providerCode\n priority\n enabled\n countries {\n id\n code\n name\n }\n flatRates {\n id\n code\n name\n amount\n currencyCode\n estimatedDays\n }\n}";
|
|
351
|
+
export declare const adminDeleteShippingGatewayRoutingRuleDocument = "mutation DeleteShippingGatewayRoutingRule($id: ID!) {\n deleteShippingGatewayRoutingRule(id: $id)\n}";
|
|
352
|
+
export declare const adminReorderShippingGatewayRoutingRulesDocument = "mutation ReorderShippingGatewayRoutingRules($input: ReorderShippingGatewayRoutingRulesInput!) {\n reorderShippingGatewayRoutingRules(input: $input) {\n ...ShippingGatewayRoutingRuleField\n }\n}\n\nfragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {\n id\n stockLocationId\n scopeType\n fulfillmentType\n providerCode\n priority\n enabled\n countries {\n id\n code\n name\n }\n flatRates {\n id\n code\n name\n amount\n currencyCode\n estimatedDays\n }\n}";
|
|
325
353
|
export declare const adminStockLocationDocument = "query StockLocation($id: ID!) {\n stockLocation(id: $id) {\n ...StockLocationField\n }\n}\n\nfragment StockLocationField on StockLocation {\n id\n createdAt\n updatedAt\n name\n description\n locationType\n address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n countryCode\n phoneNumber\n }\n}";
|
|
326
354
|
export declare const adminStockLocationsDocument = "query StockLocations($options: ListQueryOptions) {\n stockLocations(options: $options) {\n items {\n ...StockLocationField\n }\n totalItems\n }\n}\n\nfragment StockLocationField on StockLocation {\n id\n createdAt\n updatedAt\n name\n description\n locationType\n address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n countryCode\n phoneNumber\n }\n}";
|
|
327
355
|
export declare const adminDefaultStockLocationDocument = "query DefaultStockLocation {\n defaultStockLocation {\n ...StockLocationField\n }\n}\n\nfragment StockLocationField on StockLocation {\n id\n createdAt\n updatedAt\n name\n description\n locationType\n address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n countryCode\n phoneNumber\n }\n}";
|
|
@@ -401,6 +429,8 @@ export declare const shopSetCustomerForOrderDocument = "mutation SetCustomerForO
|
|
|
401
429
|
export declare const shopAddItemsToOrderDocument = "mutation AddItemsToOrder($items: [AddItemToOrderInput!]!) {\n addItemsToOrder(items: $items) {\n order {\n ...ShopOrderField\n }\n errors {\n index\n errorCode\n variables\n }\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|
|
402
430
|
export declare const shopAdjustOrderLinesDocument = "mutation AdjustOrderLines($adjustments: [AdjustOrderLineInput!]!) {\n adjustOrderLines(adjustments: $adjustments) {\n order {\n ...ShopOrderField\n }\n errors {\n index\n errorCode\n variables\n }\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|
|
403
431
|
export declare const shopRemoveItemsFromOrderDocument = "mutation RemoveItemsFromOrder($orderLineIds: [ID!]!) {\n removeItemsFromOrder(orderLineIds: $orderLineIds) {\n order {\n ...ShopOrderField\n }\n errors {\n index\n errorCode\n variables\n }\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|
|
432
|
+
export declare const shopSetCurrencyDocument = "mutation SetCurrency($currencyCode: String!) {\n setCurrency(currencyCode: $currencyCode) {\n ...ShopChannelField\n }\n}\n\nfragment ShopChannelField on Channel {\n id\n code\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n pricesIncludeTax\n}";
|
|
433
|
+
export declare const shopSetLanguageDocument = "mutation SetLanguage($languageCode: String!) {\n setLanguage(languageCode: $languageCode) {\n ...ShopChannelField\n }\n}\n\nfragment ShopChannelField on Channel {\n id\n code\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n pricesIncludeTax\n}";
|
|
404
434
|
export declare const shopSetOrderShippingAddressDocument = "mutation SetOrderShippingAddress($input: CreateAddressInput!) {\n setOrderShippingAddress(input: $input) {\n ...ShopOrderField\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|
|
405
435
|
export declare const shopSetOrderBillingAddressDocument = "mutation SetOrderBillingAddress($input: CreateAddressInput!) {\n setOrderBillingAddress(input: $input) {\n ...ShopOrderField\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|
|
406
436
|
export declare const shopTransitionOrderToStateDocument = "mutation TransitionOrderToState($input: TransitionOrderStateInput!) {\n transitionOrderToState(input: $input) {\n ...ShopOrderField\n }\n}\n\nfragment ShopOrderField on Order {\n id\n createdAt\n updatedAt\n code\n state\n active\n type\n orderPlacedAt\n currencyCode\n total\n totalQuantity\n totalWithTax\n subTotal\n subTotalWithTax\n shipping\n shippingWithTax\n couponCodes\n version\n billingAddress {\n ...ShopOrderAddressField\n }\n shippingAddress {\n ...ShopOrderAddressField\n }\n customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n }\n lines {\n ...ShopOrderLineField\n }\n payments {\n id\n createdAt\n updatedAt\n state\n amount\n providerCode\n transactionId\n errorMessage\n metadata\n orderId\n refunds {\n id\n createdAt\n updatedAt\n total\n reason\n state\n transactionId\n method\n metadata\n paymentId\n }\n }\n fulfillments {\n id\n createdAt\n updatedAt\n state\n method\n trackingCode\n handlerCode\n lines {\n id\n createdAt\n updatedAt\n quantity\n orderLineId\n }\n }\n shippingLines {\n ...ShopShippingLineField\n }\n surcharges {\n ...ShopSurchargeField\n }\n modifications {\n id\n createdAt\n updatedAt\n priceChange\n note\n isSettled\n changes {\n orderLineId\n productVariantId\n type\n quantityBefore\n quantityAfter\n unitPriceBefore\n unitPriceAfter\n }\n surcharges {\n id\n description\n listPrice\n }\n payment {\n id\n state\n amount\n }\n refund {\n id\n total\n state\n }\n }\n promotions {\n id\n }\n discounts {\n ...ShopDiscountField\n }\n taxSummary {\n ...ShopTaxSummaryField\n }\n nextStates\n recentShippingMethod {\n id\n carrier\n service\n amount\n currency\n estimatedDays\n selected\n providerCode\n }\n recentToken {\n ...ShopPaymentTokenField\n }\n}\n\nfragment ShopOrderAddressField on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n}\n\nfragment ShopOrderLineField on OrderLine {\n id\n createdAt\n updatedAt\n quantity\n productVariantId\n unitPrice\n unitPriceWithTax\n linePrice\n linePriceWithTax\n listPrice\n listPriceIncludesTax\n orderPlacedQuantity\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n productVariant {\n id\n createdAt\n updatedAt\n sku\n name\n price\n priceWithTax\n stockOnHand\n enabled\n }\n shippingLine {\n ...ShopShippingLineField\n }\n taxCategory {\n id\n }\n featuredAsset {\n id\n }\n}\n\nfragment ShopAdjustmentField on Adjustment {\n amount\n description\n orderLineId\n shippingLineId\n}\n\nfragment ShopTaxLineField on OrderTaxLine {\n taxRate\n description\n taxAmount\n}\n\nfragment ShopShippingLineField on ShippingLine {\n id\n createdAt\n updatedAt\n listPrice\n listPriceWithTax\n listPriceIncludesTax\n adjustments {\n ...ShopAdjustmentField\n }\n taxLines {\n ...ShopTaxLineField\n }\n}\n\nfragment ShopSurchargeField on Surcharge {\n id\n createdAt\n updatedAt\n description\n listPrice\n listPriceIncludesTax\n sku\n taxRate\n}\n\nfragment ShopDiscountField on OrderDiscount {\n description\n amount\n amountWithTax\n}\n\nfragment ShopTaxSummaryField on OrderTaxSummary {\n description\n taxRate\n taxBase\n taxTotal\n}\n\nfragment ShopPaymentTokenField on PaymentGatewayToken {\n id\n displayName\n type\n isDefault\n providerCode\n createdAt\n updatedAt\n}";
|