@builtbystack/sq-shopify-theme-sdk 0.0.20 → 0.0.23
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 +115 -1
- package/dist/sq-shopify-theme-sdk.d.ts +60 -1
- package/dist/sq-shopify-theme-sdk.js +173 -129
- package/dist/sq-shopify-theme-sdk.umd.js +51 -29
- package/package.json +1 -1
|
@@ -64,12 +64,12 @@ function pe(e, t) {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
function nt(e) {
|
|
67
|
-
return
|
|
67
|
+
return Se(
|
|
68
68
|
e.source,
|
|
69
69
|
pe(e.source, e.start)
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Se(e, t) {
|
|
73
73
|
const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, c = t.line === 1 ? n : 0, h = t.column + c, p = `${e.name}:${o}:${h}
|
|
74
74
|
`, m = r.split(/\r\n|[\n\r]/g), y = m[i];
|
|
75
75
|
if (y.length > 120) {
|
|
@@ -203,7 +203,7 @@ class Ee extends Error {
|
|
|
203
203
|
for (const n of this.locations)
|
|
204
204
|
t += `
|
|
205
205
|
|
|
206
|
-
` +
|
|
206
|
+
` + Se(this.source, n);
|
|
207
207
|
return t;
|
|
208
208
|
}
|
|
209
209
|
toJSON() {
|
|
@@ -251,7 +251,7 @@ class it {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
class
|
|
254
|
+
class De {
|
|
255
255
|
/**
|
|
256
256
|
* The kind of Token.
|
|
257
257
|
*/
|
|
@@ -390,15 +390,15 @@ function me(e) {
|
|
|
390
390
|
function Y(e) {
|
|
391
391
|
return e >= 48 && e <= 57;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Pe(e) {
|
|
394
394
|
return e >= 97 && e <= 122 || // A-Z
|
|
395
395
|
e >= 65 && e <= 90;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
397
|
+
function _e(e) {
|
|
398
|
+
return Pe(e) || e === 95;
|
|
399
399
|
}
|
|
400
400
|
function ot(e) {
|
|
401
|
-
return
|
|
401
|
+
return Pe(e) || Y(e) || e === 95;
|
|
402
402
|
}
|
|
403
403
|
function at(e) {
|
|
404
404
|
var t;
|
|
@@ -446,7 +446,7 @@ class lt {
|
|
|
446
446
|
* The character offset at which the current line begins.
|
|
447
447
|
*/
|
|
448
448
|
constructor(t) {
|
|
449
|
-
const n = new
|
|
449
|
+
const n = new De(u.SOF, 0, 0, 0, 0);
|
|
450
450
|
this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
|
|
451
451
|
}
|
|
452
452
|
get [Symbol.toStringTag]() {
|
|
@@ -503,7 +503,7 @@ function F(e, t) {
|
|
|
503
503
|
}
|
|
504
504
|
function I(e, t, n, r, i) {
|
|
505
505
|
const s = e.line, o = 1 + n - e.lineStart;
|
|
506
|
-
return new
|
|
506
|
+
return new De(t, n, r, s, o, i);
|
|
507
507
|
}
|
|
508
508
|
function ht(e, t) {
|
|
509
509
|
const n = e.source.body, r = n.length;
|
|
@@ -560,7 +560,7 @@ function ht(e, t) {
|
|
|
560
560
|
}
|
|
561
561
|
if (Y(s) || s === 45)
|
|
562
562
|
return ft(e, i, s);
|
|
563
|
-
if (
|
|
563
|
+
if (_e(s))
|
|
564
564
|
return vt(e, i);
|
|
565
565
|
throw b(
|
|
566
566
|
e.source,
|
|
@@ -607,7 +607,7 @@ function ft(e, t, n) {
|
|
|
607
607
|
);
|
|
608
608
|
} else
|
|
609
609
|
i = ce(e, i, s), s = r.charCodeAt(i);
|
|
610
|
-
if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ce(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ce(e, i, s), s = r.charCodeAt(i)), s === 46 ||
|
|
610
|
+
if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ce(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ce(e, i, s), s = r.charCodeAt(i)), s === 46 || _e(s))
|
|
611
611
|
throw b(
|
|
612
612
|
e.source,
|
|
613
613
|
i,
|
|
@@ -684,7 +684,7 @@ function gt(e, t) {
|
|
|
684
684
|
size: i
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
|
-
if (r = r << 4 |
|
|
687
|
+
if (r = r << 4 | j(s), r < 0)
|
|
688
688
|
break;
|
|
689
689
|
}
|
|
690
690
|
throw b(
|
|
@@ -718,9 +718,9 @@ function yt(e, t) {
|
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
720
|
function be(e, t) {
|
|
721
|
-
return
|
|
721
|
+
return j(e.charCodeAt(t)) << 12 | j(e.charCodeAt(t + 1)) << 8 | j(e.charCodeAt(t + 2)) << 4 | j(e.charCodeAt(t + 3));
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function j(e) {
|
|
724
724
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
725
725
|
}
|
|
726
726
|
function Ct(e, t) {
|
|
@@ -896,7 +896,7 @@ function xt(e) {
|
|
|
896
896
|
}
|
|
897
897
|
return t;
|
|
898
898
|
}
|
|
899
|
-
const
|
|
899
|
+
const Rt = (
|
|
900
900
|
/* c8 ignore next 6 */
|
|
901
901
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
902
902
|
globalThis.process && globalThis.process.env.NODE_ENV === "production" ? function(t, n) {
|
|
@@ -946,15 +946,15 @@ class Be {
|
|
|
946
946
|
return "Source";
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
949
|
+
function Ot(e) {
|
|
950
|
+
return Rt(e, Be);
|
|
951
951
|
}
|
|
952
952
|
function Ue(e, t) {
|
|
953
|
-
return new
|
|
953
|
+
return new St(e, t).parseDocument();
|
|
954
954
|
}
|
|
955
|
-
class
|
|
955
|
+
class St {
|
|
956
956
|
constructor(t, n = {}) {
|
|
957
|
-
const r =
|
|
957
|
+
const r = Ot(t) ? t : new Be(t);
|
|
958
958
|
this._lexer = new lt(r), this._options = n, this._tokenCounter = 0;
|
|
959
959
|
}
|
|
960
960
|
/**
|
|
@@ -2060,14 +2060,14 @@ function W(e) {
|
|
|
2060
2060
|
function Me(e) {
|
|
2061
2061
|
return dt(e) ? `"${e}"` : e;
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2064
|
-
return `"${e.replace(kt,
|
|
2063
|
+
function Dt(e) {
|
|
2064
|
+
return `"${e.replace(kt, Pt)}"`;
|
|
2065
2065
|
}
|
|
2066
2066
|
const kt = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2067
|
+
function Pt(e) {
|
|
2068
|
+
return _t[e.charCodeAt(0)];
|
|
2069
2069
|
}
|
|
2070
|
-
const
|
|
2070
|
+
const _t = [
|
|
2071
2071
|
"\\u0000",
|
|
2072
2072
|
"\\u0001",
|
|
2073
2073
|
"\\u0002",
|
|
@@ -2236,14 +2236,14 @@ const Pt = [
|
|
|
2236
2236
|
], Lt = Object.freeze({});
|
|
2237
2237
|
function wt(e, t, n = ke) {
|
|
2238
2238
|
const r = /* @__PURE__ */ new Map();
|
|
2239
|
-
for (const
|
|
2240
|
-
r.set(
|
|
2239
|
+
for (const D of Object.values(f))
|
|
2240
|
+
r.set(D, Ft(t, D));
|
|
2241
2241
|
let i, s = Array.isArray(e), o = [e], c = -1, h = [], p = e, m, y;
|
|
2242
2242
|
const C = [], T = [];
|
|
2243
2243
|
do {
|
|
2244
2244
|
c++;
|
|
2245
|
-
const
|
|
2246
|
-
if (
|
|
2245
|
+
const D = c === o.length, z = D && h.length !== 0;
|
|
2246
|
+
if (D) {
|
|
2247
2247
|
if (m = T.length === 0 ? void 0 : C[C.length - 1], p = y, y = T.pop(), z)
|
|
2248
2248
|
if (s) {
|
|
2249
2249
|
p = p.slice();
|
|
@@ -2266,37 +2266,37 @@ function wt(e, t, n = ke) {
|
|
|
2266
2266
|
continue;
|
|
2267
2267
|
C.push(m);
|
|
2268
2268
|
}
|
|
2269
|
-
let
|
|
2269
|
+
let _;
|
|
2270
2270
|
if (!Array.isArray(p)) {
|
|
2271
2271
|
var g, N;
|
|
2272
2272
|
Ie(p) || K(!1, `Invalid AST Node: ${ve(p)}.`);
|
|
2273
|
-
const k =
|
|
2274
|
-
if (
|
|
2273
|
+
const k = D ? (g = r.get(p.kind)) === null || g === void 0 ? void 0 : g.leave : (N = r.get(p.kind)) === null || N === void 0 ? void 0 : N.enter;
|
|
2274
|
+
if (_ = k == null ? void 0 : k.call(t, p, m, y, C, T), _ === Lt)
|
|
2275
2275
|
break;
|
|
2276
|
-
if (
|
|
2277
|
-
if (!
|
|
2276
|
+
if (_ === !1) {
|
|
2277
|
+
if (!D) {
|
|
2278
2278
|
C.pop();
|
|
2279
2279
|
continue;
|
|
2280
2280
|
}
|
|
2281
|
-
} else if (
|
|
2282
|
-
if (Ie(
|
|
2283
|
-
p =
|
|
2281
|
+
} else if (_ !== void 0 && (h.push([m, _]), !D))
|
|
2282
|
+
if (Ie(_))
|
|
2283
|
+
p = _;
|
|
2284
2284
|
else {
|
|
2285
2285
|
C.pop();
|
|
2286
2286
|
continue;
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
if (
|
|
2289
|
+
if (_ === void 0 && z && h.push([m, p]), D)
|
|
2290
2290
|
C.pop();
|
|
2291
2291
|
else {
|
|
2292
|
-
var
|
|
2292
|
+
var S;
|
|
2293
2293
|
i = {
|
|
2294
2294
|
inArray: s,
|
|
2295
2295
|
index: c,
|
|
2296
2296
|
keys: o,
|
|
2297
2297
|
edits: h,
|
|
2298
2298
|
prev: i
|
|
2299
|
-
}, s = Array.isArray(p), o = s ? p : (
|
|
2299
|
+
}, s = Array.isArray(p), o = s ? p : (S = n[p.kind]) !== null && S !== void 0 ? S : [], c = -1, h = [], y && T.push(y), y = p;
|
|
2300
2300
|
}
|
|
2301
2301
|
} while (i !== void 0);
|
|
2302
2302
|
return h.length !== 0 ? h[h.length - 1][1] : e;
|
|
@@ -2344,7 +2344,7 @@ const Ut = 80, Mt = {
|
|
|
2344
2344
|
leave: ({ variable: e, type: t, defaultValue: n, directives: r }) => e + ": " + t + v(" = ", n) + v(" ", d(r, " "))
|
|
2345
2345
|
},
|
|
2346
2346
|
SelectionSet: {
|
|
2347
|
-
leave: ({ selections: e }) =>
|
|
2347
|
+
leave: ({ selections: e }) => P(e)
|
|
2348
2348
|
},
|
|
2349
2349
|
Field: {
|
|
2350
2350
|
leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
|
|
@@ -2388,7 +2388,7 @@ const Ut = 80, Mt = {
|
|
|
2388
2388
|
leave: ({ value: e }) => e
|
|
2389
2389
|
},
|
|
2390
2390
|
StringValue: {
|
|
2391
|
-
leave: ({ value: e, block: t }) => t ? ct(e) :
|
|
2391
|
+
leave: ({ value: e, block: t }) => t ? ct(e) : Dt(e)
|
|
2392
2392
|
},
|
|
2393
2393
|
BooleanValue: {
|
|
2394
2394
|
leave: ({ value: e }) => e ? "true" : "false"
|
|
@@ -2425,7 +2425,7 @@ const Ut = 80, Mt = {
|
|
|
2425
2425
|
// Type System Definitions
|
|
2426
2426
|
SchemaDefinition: {
|
|
2427
2427
|
leave: ({ description: e, directives: t, operationTypes: n }) => v("", e, `
|
|
2428
|
-
`) + d(["schema", d(t, " "),
|
|
2428
|
+
`) + d(["schema", d(t, " "), P(n)], " ")
|
|
2429
2429
|
},
|
|
2430
2430
|
OperationTypeDefinition: {
|
|
2431
2431
|
leave: ({ operation: e, type: t }) => e + ": " + t
|
|
@@ -2442,7 +2442,7 @@ const Ut = 80, Mt = {
|
|
|
2442
2442
|
t,
|
|
2443
2443
|
v("implements ", d(n, " & ")),
|
|
2444
2444
|
d(r, " "),
|
|
2445
|
-
|
|
2445
|
+
P(i)
|
|
2446
2446
|
],
|
|
2447
2447
|
" "
|
|
2448
2448
|
)
|
|
@@ -2469,7 +2469,7 @@ const Ut = 80, Mt = {
|
|
|
2469
2469
|
t,
|
|
2470
2470
|
v("implements ", d(n, " & ")),
|
|
2471
2471
|
d(r, " "),
|
|
2472
|
-
|
|
2472
|
+
P(i)
|
|
2473
2473
|
],
|
|
2474
2474
|
" "
|
|
2475
2475
|
)
|
|
@@ -2483,7 +2483,7 @@ const Ut = 80, Mt = {
|
|
|
2483
2483
|
},
|
|
2484
2484
|
EnumTypeDefinition: {
|
|
2485
2485
|
leave: ({ description: e, name: t, directives: n, values: r }) => v("", e, `
|
|
2486
|
-
`) + d(["enum", t, d(n, " "),
|
|
2486
|
+
`) + d(["enum", t, d(n, " "), P(r)], " ")
|
|
2487
2487
|
},
|
|
2488
2488
|
EnumValueDefinition: {
|
|
2489
2489
|
leave: ({ description: e, name: t, directives: n }) => v("", e, `
|
|
@@ -2491,7 +2491,7 @@ const Ut = 80, Mt = {
|
|
|
2491
2491
|
},
|
|
2492
2492
|
InputObjectTypeDefinition: {
|
|
2493
2493
|
leave: ({ description: e, name: t, directives: n, fields: r }) => v("", e, `
|
|
2494
|
-
`) + d(["input", t, d(n, " "),
|
|
2494
|
+
`) + d(["input", t, d(n, " "), P(r)], " ")
|
|
2495
2495
|
},
|
|
2496
2496
|
DirectiveDefinition: {
|
|
2497
2497
|
leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => v("", e, `
|
|
@@ -2502,7 +2502,7 @@ const Ut = 80, Mt = {
|
|
|
2502
2502
|
},
|
|
2503
2503
|
SchemaExtension: {
|
|
2504
2504
|
leave: ({ directives: e, operationTypes: t }) => d(
|
|
2505
|
-
["extend schema", d(e, " "),
|
|
2505
|
+
["extend schema", d(e, " "), P(t)],
|
|
2506
2506
|
" "
|
|
2507
2507
|
)
|
|
2508
2508
|
},
|
|
@@ -2516,7 +2516,7 @@ const Ut = 80, Mt = {
|
|
|
2516
2516
|
e,
|
|
2517
2517
|
v("implements ", d(t, " & ")),
|
|
2518
2518
|
d(n, " "),
|
|
2519
|
-
|
|
2519
|
+
P(r)
|
|
2520
2520
|
],
|
|
2521
2521
|
" "
|
|
2522
2522
|
)
|
|
@@ -2528,7 +2528,7 @@ const Ut = 80, Mt = {
|
|
|
2528
2528
|
e,
|
|
2529
2529
|
v("implements ", d(t, " & ")),
|
|
2530
2530
|
d(n, " "),
|
|
2531
|
-
|
|
2531
|
+
P(r)
|
|
2532
2532
|
],
|
|
2533
2533
|
" "
|
|
2534
2534
|
)
|
|
@@ -2545,17 +2545,17 @@ const Ut = 80, Mt = {
|
|
|
2545
2545
|
)
|
|
2546
2546
|
},
|
|
2547
2547
|
EnumTypeExtension: {
|
|
2548
|
-
leave: ({ name: e, directives: t, values: n }) => d(["extend enum", e, d(t, " "),
|
|
2548
|
+
leave: ({ name: e, directives: t, values: n }) => d(["extend enum", e, d(t, " "), P(n)], " ")
|
|
2549
2549
|
},
|
|
2550
2550
|
InputObjectTypeExtension: {
|
|
2551
|
-
leave: ({ name: e, directives: t, fields: n }) => d(["extend input", e, d(t, " "),
|
|
2551
|
+
leave: ({ name: e, directives: t, fields: n }) => d(["extend input", e, d(t, " "), P(n)], " ")
|
|
2552
2552
|
}
|
|
2553
2553
|
};
|
|
2554
2554
|
function d(e, t = "") {
|
|
2555
2555
|
var n;
|
|
2556
2556
|
return (n = e == null ? void 0 : e.filter((r) => r).join(t)) !== null && n !== void 0 ? n : "";
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2558
|
+
function P(e) {
|
|
2559
2559
|
return v(`{
|
|
2560
2560
|
`, Z(d(e, `
|
|
2561
2561
|
`)), `
|
|
@@ -2573,7 +2573,7 @@ function xe(e) {
|
|
|
2573
2573
|
return (t = e == null ? void 0 : e.some((n) => n.includes(`
|
|
2574
2574
|
`))) !== null && t !== void 0 ? t : !1;
|
|
2575
2575
|
}
|
|
2576
|
-
const
|
|
2576
|
+
const Re = (e) => {
|
|
2577
2577
|
var r, i;
|
|
2578
2578
|
let t;
|
|
2579
2579
|
const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
|
|
@@ -2583,12 +2583,12 @@ const Se = (e) => {
|
|
|
2583
2583
|
let n;
|
|
2584
2584
|
try {
|
|
2585
2585
|
const r = Ue(e);
|
|
2586
|
-
n =
|
|
2586
|
+
n = Re(r);
|
|
2587
2587
|
} catch {
|
|
2588
2588
|
}
|
|
2589
2589
|
return { query: e, operationName: n };
|
|
2590
2590
|
}
|
|
2591
|
-
const t =
|
|
2591
|
+
const t = Re(e);
|
|
2592
2592
|
return { query: Bt(e), operationName: t };
|
|
2593
2593
|
};
|
|
2594
2594
|
class H extends Error {
|
|
@@ -2712,7 +2712,7 @@ var ge = { exports: {} };
|
|
|
2712
2712
|
return Promise.reject(new TypeError("Already read"));
|
|
2713
2713
|
a.bodyUsed = !0;
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function S(a) {
|
|
2716
2716
|
return new Promise(function(l, E) {
|
|
2717
2717
|
a.onload = function() {
|
|
2718
2718
|
l(a.result);
|
|
@@ -2721,17 +2721,17 @@ var ge = { exports: {} };
|
|
|
2721
2721
|
};
|
|
2722
2722
|
});
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2725
|
-
var l = new FileReader(), E =
|
|
2724
|
+
function D(a) {
|
|
2725
|
+
var l = new FileReader(), E = S(l);
|
|
2726
2726
|
return l.readAsArrayBuffer(a), E;
|
|
2727
2727
|
}
|
|
2728
2728
|
function z(a) {
|
|
2729
|
-
var l = new FileReader(), E =
|
|
2729
|
+
var l = new FileReader(), E = S(l);
|
|
2730
2730
|
return l.readAsText(a), E;
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2733
|
-
for (var l = new Uint8Array(a), E = new Array(l.length),
|
|
2734
|
-
E[
|
|
2732
|
+
function _(a) {
|
|
2733
|
+
for (var l = new Uint8Array(a), E = new Array(l.length), R = 0; R < l.length; R++)
|
|
2734
|
+
E[R] = String.fromCharCode(l[R]);
|
|
2735
2735
|
return E.join("");
|
|
2736
2736
|
}
|
|
2737
2737
|
function k(a) {
|
|
@@ -2755,7 +2755,7 @@ var ge = { exports: {} };
|
|
|
2755
2755
|
throw new Error("could not read FormData body as blob");
|
|
2756
2756
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2757
2757
|
}, this.arrayBuffer = function() {
|
|
2758
|
-
return this._bodyArrayBuffer ? N(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(
|
|
2758
|
+
return this._bodyArrayBuffer ? N(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(D);
|
|
2759
2759
|
}), this.text = function() {
|
|
2760
2760
|
var a = N(this);
|
|
2761
2761
|
if (a)
|
|
@@ -2763,12 +2763,12 @@ var ge = { exports: {} };
|
|
|
2763
2763
|
if (this._bodyBlob)
|
|
2764
2764
|
return z(this._bodyBlob);
|
|
2765
2765
|
if (this._bodyArrayBuffer)
|
|
2766
|
-
return Promise.resolve(
|
|
2766
|
+
return Promise.resolve(_(this._bodyArrayBuffer));
|
|
2767
2767
|
if (this._bodyFormData)
|
|
2768
2768
|
throw new Error("could not read FormData body as text");
|
|
2769
2769
|
return Promise.resolve(this._bodyText);
|
|
2770
2770
|
}, c.formData && (this.formData = function() {
|
|
2771
|
-
return this.text().then(
|
|
2771
|
+
return this.text().then(Ge);
|
|
2772
2772
|
}), this.json = function() {
|
|
2773
2773
|
return this.text().then(JSON.parse);
|
|
2774
2774
|
}, this;
|
|
@@ -2794,19 +2794,19 @@ var ge = { exports: {} };
|
|
|
2794
2794
|
w.prototype.clone = function() {
|
|
2795
2795
|
return new w(this, { body: this._bodyInit });
|
|
2796
2796
|
};
|
|
2797
|
-
function
|
|
2797
|
+
function Ge(a) {
|
|
2798
2798
|
var l = new FormData();
|
|
2799
2799
|
return a.trim().split("&").forEach(function(E) {
|
|
2800
2800
|
if (E) {
|
|
2801
|
-
var
|
|
2801
|
+
var R = E.split("="), x = R.shift().replace(/\+/g, " "), A = R.join("=").replace(/\+/g, " ");
|
|
2802
2802
|
l.append(decodeURIComponent(x), decodeURIComponent(A));
|
|
2803
2803
|
}
|
|
2804
2804
|
}), l;
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function $e(a) {
|
|
2807
2807
|
var l = new g(), E = a.replace(/\r?\n[\t ]+/g, " ");
|
|
2808
|
-
return E.split(/\r?\n/).forEach(function(
|
|
2809
|
-
var x =
|
|
2808
|
+
return E.split(/\r?\n/).forEach(function(R) {
|
|
2809
|
+
var x = R.split(":"), A = x.shift().trim();
|
|
2810
2810
|
if (A) {
|
|
2811
2811
|
var X = x.join(":").trim();
|
|
2812
2812
|
l.append(A, X);
|
|
@@ -2828,9 +2828,9 @@ var ge = { exports: {} };
|
|
|
2828
2828
|
var a = new L(null, { status: 0, statusText: "" });
|
|
2829
2829
|
return a.type = "error", a;
|
|
2830
2830
|
};
|
|
2831
|
-
var
|
|
2831
|
+
var je = [301, 302, 303, 307, 308];
|
|
2832
2832
|
L.redirect = function(a, l) {
|
|
2833
|
-
if (
|
|
2833
|
+
if (je.indexOf(l) === -1)
|
|
2834
2834
|
throw new RangeError("Invalid status code");
|
|
2835
2835
|
return new L(null, { status: l, headers: { location: a } });
|
|
2836
2836
|
}, o.DOMException = s.DOMException;
|
|
@@ -2839,36 +2839,36 @@ var ge = { exports: {} };
|
|
|
2839
2839
|
} catch {
|
|
2840
2840
|
o.DOMException = function(l, E) {
|
|
2841
2841
|
this.message = l, this.name = E;
|
|
2842
|
-
var
|
|
2843
|
-
this.stack =
|
|
2842
|
+
var R = Error(l);
|
|
2843
|
+
this.stack = R.stack;
|
|
2844
2844
|
}, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
|
|
2845
2845
|
}
|
|
2846
2846
|
function ae(a, l) {
|
|
2847
|
-
return new Promise(function(E,
|
|
2847
|
+
return new Promise(function(E, R) {
|
|
2848
2848
|
var x = new w(a, l);
|
|
2849
2849
|
if (x.signal && x.signal.aborted)
|
|
2850
|
-
return
|
|
2850
|
+
return R(new o.DOMException("Aborted", "AbortError"));
|
|
2851
2851
|
var A = new XMLHttpRequest();
|
|
2852
2852
|
function X() {
|
|
2853
2853
|
A.abort();
|
|
2854
2854
|
}
|
|
2855
2855
|
A.onload = function() {
|
|
2856
|
-
var
|
|
2856
|
+
var G = {
|
|
2857
2857
|
status: A.status,
|
|
2858
2858
|
statusText: A.statusText,
|
|
2859
|
-
headers:
|
|
2859
|
+
headers: $e(A.getAllResponseHeaders() || "")
|
|
2860
2860
|
};
|
|
2861
|
-
|
|
2861
|
+
G.url = "responseURL" in A ? A.responseURL : G.headers.get("X-Request-URL");
|
|
2862
2862
|
var ue = "response" in A ? A.response : A.responseText;
|
|
2863
|
-
E(new L(ue,
|
|
2863
|
+
E(new L(ue, G));
|
|
2864
2864
|
}, A.onerror = function() {
|
|
2865
|
-
|
|
2865
|
+
R(new TypeError("Network request failed"));
|
|
2866
2866
|
}, A.ontimeout = function() {
|
|
2867
|
-
|
|
2867
|
+
R(new TypeError("Network request failed"));
|
|
2868
2868
|
}, A.onabort = function() {
|
|
2869
|
-
|
|
2870
|
-
}, A.open(x.method, x.url, !0), x.credentials === "include" ? A.withCredentials = !0 : x.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && c.blob && (A.responseType = "blob"), x.headers.forEach(function(
|
|
2871
|
-
A.setRequestHeader(ue,
|
|
2869
|
+
R(new o.DOMException("Aborted", "AbortError"));
|
|
2870
|
+
}, A.open(x.method, x.url, !0), x.credentials === "include" ? A.withCredentials = !0 : x.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && c.blob && (A.responseType = "blob"), x.headers.forEach(function(G, ue) {
|
|
2871
|
+
A.setRequestHeader(ue, G);
|
|
2872
2872
|
}), x.signal && (x.signal.addEventListener("abort", X), A.onreadystatechange = function() {
|
|
2873
2873
|
A.readyState === 4 && x.signal.removeEventListener("abort", X);
|
|
2874
2874
|
}), A.send(typeof x._bodyInit > "u" ? null : x._bodyInit);
|
|
@@ -2881,30 +2881,30 @@ var ge = { exports: {} };
|
|
|
2881
2881
|
t = i.fetch, t.default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
|
|
2882
2882
|
})(ge, ge.exports);
|
|
2883
2883
|
var ne = ge.exports;
|
|
2884
|
-
const ee = /* @__PURE__ */ Vt(ne),
|
|
2884
|
+
const ee = /* @__PURE__ */ Vt(ne), Gt = /* @__PURE__ */ ze({
|
|
2885
2885
|
__proto__: null,
|
|
2886
2886
|
default: ee
|
|
2887
2887
|
}, [ne]), U = (e) => {
|
|
2888
2888
|
let t = {};
|
|
2889
|
-
return e && (typeof Headers < "u" && e instanceof Headers ||
|
|
2889
|
+
return e && (typeof Headers < "u" && e instanceof Headers || Gt && ne.Headers && e instanceof ne.Headers ? t = Je(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
|
|
2890
2890
|
n && r !== void 0 && (t[n] = r);
|
|
2891
2891
|
}) : t = e), t;
|
|
2892
|
-
},
|
|
2892
|
+
}, Oe = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), $t = (e) => {
|
|
2893
2893
|
if (!Array.isArray(e.query)) {
|
|
2894
|
-
const r = e, i = [`query=${encodeURIComponent(
|
|
2894
|
+
const r = e, i = [`query=${encodeURIComponent(Oe(r.query))}`];
|
|
2895
2895
|
return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
|
|
2896
2896
|
}
|
|
2897
2897
|
if (typeof e.variables < "u" && !Array.isArray(e.variables))
|
|
2898
2898
|
throw new Error("Cannot create query with given variable type, array expected");
|
|
2899
2899
|
const t = e, n = e.query.reduce((r, i, s) => (r.push({
|
|
2900
|
-
query:
|
|
2900
|
+
query: Oe(i),
|
|
2901
2901
|
variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
|
|
2902
2902
|
}), r), []);
|
|
2903
2903
|
return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
|
|
2904
|
-
},
|
|
2904
|
+
}, jt = (e) => async (t) => {
|
|
2905
2905
|
const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: c, middleware: h } = t, p = { ...t.headers };
|
|
2906
2906
|
let m = "", y;
|
|
2907
|
-
e === "POST" ? (y = Yt(r, i, s, c.jsonSerializer), typeof y == "string" && (p["Content-Type"] = "application/json")) : m =
|
|
2907
|
+
e === "POST" ? (y = Yt(r, i, s, c.jsonSerializer), typeof y == "string" && (p["Content-Type"] = "application/json")) : m = $t({
|
|
2908
2908
|
query: r,
|
|
2909
2909
|
variables: i,
|
|
2910
2910
|
operationName: s,
|
|
@@ -2918,8 +2918,8 @@ const ee = /* @__PURE__ */ Vt(ne), jt = /* @__PURE__ */ ze({
|
|
|
2918
2918
|
};
|
|
2919
2919
|
let T = n, g = C;
|
|
2920
2920
|
if (h) {
|
|
2921
|
-
const N = await Promise.resolve(h({ ...C, url: n, operationName: s, variables: i })), { url:
|
|
2922
|
-
T =
|
|
2921
|
+
const N = await Promise.resolve(h({ ...C, url: n, operationName: s, variables: i })), { url: S, ...D } = N;
|
|
2922
|
+
T = S, g = D;
|
|
2923
2923
|
}
|
|
2924
2924
|
return m && (T = `${T}?${m}`), await o(T, g);
|
|
2925
2925
|
};
|
|
@@ -2942,8 +2942,8 @@ class Ht {
|
|
|
2942
2942
|
method: m,
|
|
2943
2943
|
fetchOptions: T,
|
|
2944
2944
|
middleware: y
|
|
2945
|
-
}).then((
|
|
2946
|
-
throw C && C(
|
|
2945
|
+
}).then((S) => (C && C(S), S)).catch((S) => {
|
|
2946
|
+
throw C && C(S), S;
|
|
2947
2947
|
});
|
|
2948
2948
|
};
|
|
2949
2949
|
}
|
|
@@ -3009,7 +3009,7 @@ class Ht {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
3011
3011
|
const de = async (e) => {
|
|
3012
|
-
const { query: t, variables: n, fetchOptions: r } = e, i =
|
|
3012
|
+
const { query: t, variables: n, fetchOptions: r } = e, i = jt(Qe(e.method ?? "post")), s = Array.isArray(e.query), o = await i(e), c = await zt(o, r.jsonSerializer ?? Ce), h = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, p = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
|
|
3013
3013
|
if (o.ok && p && h) {
|
|
3014
3014
|
const { errors: m, ...y } = (Array.isArray(c), c), C = r.errorPolicy === "ignore" ? y : c;
|
|
3015
3015
|
return {
|
|
@@ -3115,7 +3115,7 @@ function en() {
|
|
|
3115
3115
|
function tn() {
|
|
3116
3116
|
ie = !1;
|
|
3117
3117
|
}
|
|
3118
|
-
var
|
|
3118
|
+
var $ = {
|
|
3119
3119
|
gql: q,
|
|
3120
3120
|
resetCaches: Kt,
|
|
3121
3121
|
disableFragmentWarnings: Zt,
|
|
@@ -3123,7 +3123,7 @@ var G = {
|
|
|
3123
3123
|
disableExperimentalFragmentVariables: tn
|
|
3124
3124
|
};
|
|
3125
3125
|
(function(e) {
|
|
3126
|
-
e.gql =
|
|
3126
|
+
e.gql = $.gql, e.resetCaches = $.resetCaches, e.disableFragmentWarnings = $.disableFragmentWarnings, e.enableExperimentalFragmentVariables = $.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = $.disableExperimentalFragmentVariables;
|
|
3127
3127
|
})(q || (q = {}));
|
|
3128
3128
|
q.default = q;
|
|
3129
3129
|
const O = q, nn = O`
|
|
@@ -3140,6 +3140,7 @@ const O = q, nn = O`
|
|
|
3140
3140
|
name
|
|
3141
3141
|
phone
|
|
3142
3142
|
mapURL
|
|
3143
|
+
tags
|
|
3143
3144
|
address {
|
|
3144
3145
|
id
|
|
3145
3146
|
countryCode
|
|
@@ -3172,6 +3173,7 @@ const O = q, nn = O`
|
|
|
3172
3173
|
name
|
|
3173
3174
|
phone
|
|
3174
3175
|
mapURL
|
|
3176
|
+
tags
|
|
3175
3177
|
address {
|
|
3176
3178
|
id
|
|
3177
3179
|
countryCode
|
|
@@ -3206,13 +3208,19 @@ const O = q, nn = O`
|
|
|
3206
3208
|
}
|
|
3207
3209
|
}
|
|
3208
3210
|
`, an = O`
|
|
3209
|
-
query GetLocations($first: Int, $after: String, $isReverse: Boolean! = false) {
|
|
3210
|
-
locations(
|
|
3211
|
+
query GetLocations($tag: String, $provinceCodes: [String!], $first: Int, $after: String, $isReverse: Boolean! = false) {
|
|
3212
|
+
locations(
|
|
3213
|
+
first: $first
|
|
3214
|
+
after: $after
|
|
3215
|
+
isReverse: $isReverse
|
|
3216
|
+
filter: {tag: $tag, provinceCodes: $provinceCodes}
|
|
3217
|
+
) {
|
|
3211
3218
|
nodes {
|
|
3212
3219
|
id
|
|
3213
3220
|
name
|
|
3214
3221
|
phone
|
|
3215
3222
|
mapURL
|
|
3223
|
+
tags
|
|
3216
3224
|
address {
|
|
3217
3225
|
id
|
|
3218
3226
|
countryCode
|
|
@@ -3306,6 +3314,7 @@ const O = q, nn = O`
|
|
|
3306
3314
|
name
|
|
3307
3315
|
phone
|
|
3308
3316
|
mapURL
|
|
3317
|
+
tags
|
|
3309
3318
|
address {
|
|
3310
3319
|
id
|
|
3311
3320
|
countryCode
|
|
@@ -3399,6 +3408,7 @@ const O = q, nn = O`
|
|
|
3399
3408
|
id
|
|
3400
3409
|
title
|
|
3401
3410
|
hasBackOrderProductVariants
|
|
3411
|
+
isLocalPickupAvailable
|
|
3402
3412
|
productVariants(
|
|
3403
3413
|
first: $first
|
|
3404
3414
|
after: $after
|
|
@@ -3413,6 +3423,7 @@ const O = q, nn = O`
|
|
|
3413
3423
|
sku
|
|
3414
3424
|
}
|
|
3415
3425
|
isBackOrderEnable
|
|
3426
|
+
isLocalPickupAvailable
|
|
3416
3427
|
}
|
|
3417
3428
|
pageInfo {
|
|
3418
3429
|
startCursor
|
|
@@ -3424,6 +3435,17 @@ const O = q, nn = O`
|
|
|
3424
3435
|
}
|
|
3425
3436
|
}
|
|
3426
3437
|
`, mn = O`
|
|
3438
|
+
query GetPointCampaignOrderRuleTargetCustomerRank {
|
|
3439
|
+
pointCampaignOrderRuleTargetCustomerRank {
|
|
3440
|
+
pointCampaignOrderRule {
|
|
3441
|
+
id
|
|
3442
|
+
title
|
|
3443
|
+
}
|
|
3444
|
+
multiplier
|
|
3445
|
+
fixedPoint
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
`, gn = O`
|
|
3427
3449
|
mutation PurchasingCustomerSendCustomerSharingActivationCode {
|
|
3428
3450
|
purchasingCustomerSendCustomerSharingActivationCode {
|
|
3429
3451
|
purchasingCustomer {
|
|
@@ -3439,7 +3461,7 @@ const O = q, nn = O`
|
|
|
3439
3461
|
}
|
|
3440
3462
|
}
|
|
3441
3463
|
}
|
|
3442
|
-
`,
|
|
3464
|
+
`, yn = O`
|
|
3443
3465
|
mutation PurchasingCustomerActivateCustomerSharing($email: String!, $activationCode: String!) {
|
|
3444
3466
|
purchasingCustomerActivateCustomerSharing(
|
|
3445
3467
|
input: {email: $email, activationCode: $activationCode}
|
|
@@ -3454,8 +3476,8 @@ const O = q, nn = O`
|
|
|
3454
3476
|
}
|
|
3455
3477
|
}
|
|
3456
3478
|
}
|
|
3457
|
-
`,
|
|
3458
|
-
function
|
|
3479
|
+
`, Cn = (e, t, n, r) => e();
|
|
3480
|
+
function En(e, t = Cn) {
|
|
3459
3481
|
return {
|
|
3460
3482
|
GetLocationAvailabilities(n, r) {
|
|
3461
3483
|
return t((i) => e.request(nn, n, { ...r, ...i }), "GetLocationAvailabilities", "query", n);
|
|
@@ -3493,18 +3515,21 @@ function Cn(e, t = yn) {
|
|
|
3493
3515
|
GetProduct(n, r) {
|
|
3494
3516
|
return t((i) => e.request(fn, n, { ...r, ...i }), "GetProduct", "query", n);
|
|
3495
3517
|
},
|
|
3518
|
+
GetPointCampaignOrderRuleTargetCustomerRank(n, r) {
|
|
3519
|
+
return t((i) => e.request(mn, n, { ...r, ...i }), "GetPointCampaignOrderRuleTargetCustomerRank", "query", n);
|
|
3520
|
+
},
|
|
3496
3521
|
PurchasingCustomerSendCustomerSharingActivationCode(n, r) {
|
|
3497
|
-
return t((i) => e.request(
|
|
3522
|
+
return t((i) => e.request(gn, n, { ...r, ...i }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
|
|
3498
3523
|
},
|
|
3499
3524
|
PurchasingCustomerActivateCustomerSharing(n, r) {
|
|
3500
|
-
return t((i) => e.request(
|
|
3525
|
+
return t((i) => e.request(yn, n, { ...r, ...i }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
|
|
3501
3526
|
}
|
|
3502
3527
|
};
|
|
3503
3528
|
}
|
|
3504
|
-
class
|
|
3529
|
+
class An {
|
|
3505
3530
|
constructor(t) {
|
|
3506
3531
|
Ae(this, "api");
|
|
3507
|
-
this.api =
|
|
3532
|
+
this.api = En(
|
|
3508
3533
|
new Ht(`${t}/apps/sq-api`, {
|
|
3509
3534
|
headers: {
|
|
3510
3535
|
"X-SQ-CLIENT": "ShopifyAppProxy"
|
|
@@ -3535,6 +3560,7 @@ class vn {
|
|
|
3535
3560
|
name: o.location.name,
|
|
3536
3561
|
phone: o.location.phone,
|
|
3537
3562
|
mapURL: o.location.mapURL,
|
|
3563
|
+
tags: o.location.tags,
|
|
3538
3564
|
address: o.location.address ? {
|
|
3539
3565
|
id: o.location.address.id,
|
|
3540
3566
|
countryCode: o.location.address.countryCode,
|
|
@@ -3566,6 +3592,7 @@ class vn {
|
|
|
3566
3592
|
name: r.locationAvailability.location.name,
|
|
3567
3593
|
phone: r.locationAvailability.location.phone,
|
|
3568
3594
|
mapURL: r.locationAvailability.location.mapURL,
|
|
3595
|
+
tags: r.locationAvailability.location.tags,
|
|
3569
3596
|
address: r.locationAvailability.location.address ? {
|
|
3570
3597
|
id: r.locationAvailability.location.address.id,
|
|
3571
3598
|
countryCode: r.locationAvailability.location.address.countryCode,
|
|
@@ -3608,31 +3635,34 @@ class vn {
|
|
|
3608
3635
|
/**
|
|
3609
3636
|
* getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。
|
|
3610
3637
|
*
|
|
3638
|
+
* @param {string} [tag] 取得したいLocationのタグ。
|
|
3639
|
+
* @param {string[]} [provinceCodes] 取得したいLocationの都道府県コード。
|
|
3611
3640
|
* @param {number} [first] 取得してくる個数。デフォルトは250。
|
|
3612
3641
|
* @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
|
|
3613
3642
|
* @param {boolean} [isReverse] 並び順。デフォルトはfalse。
|
|
3614
3643
|
*/
|
|
3615
|
-
async getLocations(t, n, r) {
|
|
3616
|
-
const
|
|
3644
|
+
async getLocations(t, n, r, i, s) {
|
|
3645
|
+
const o = await this.api.GetLocations({ tag: t, provinceCodes: n, first: r, after: i, isReverse: s });
|
|
3617
3646
|
return {
|
|
3618
|
-
nodes:
|
|
3619
|
-
id:
|
|
3620
|
-
name:
|
|
3621
|
-
phone:
|
|
3622
|
-
mapURL:
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3647
|
+
nodes: o.locations.nodes.map((c) => ({
|
|
3648
|
+
id: c.id,
|
|
3649
|
+
name: c.name,
|
|
3650
|
+
phone: c.phone,
|
|
3651
|
+
mapURL: c.mapURL,
|
|
3652
|
+
tags: c.tags,
|
|
3653
|
+
address: c.address ? {
|
|
3654
|
+
id: c.address.id,
|
|
3655
|
+
countryCode: c.address.countryCode,
|
|
3656
|
+
country: c.address.country,
|
|
3657
|
+
postalCode: c.address.postalCode,
|
|
3658
|
+
provinceCode: c.address.provinceCode,
|
|
3659
|
+
province: c.address.province,
|
|
3660
|
+
city: c.address.city,
|
|
3661
|
+
address1: c.address.address1,
|
|
3662
|
+
address2: c.address.address2
|
|
3633
3663
|
} : void 0
|
|
3634
3664
|
})) ?? [],
|
|
3635
|
-
pageInfo:
|
|
3665
|
+
pageInfo: o.locations.pageInfo ?? null
|
|
3636
3666
|
};
|
|
3637
3667
|
}
|
|
3638
3668
|
/**
|
|
@@ -3711,6 +3741,7 @@ class vn {
|
|
|
3711
3741
|
name: o.retailLocation.name,
|
|
3712
3742
|
phone: o.retailLocation.phone,
|
|
3713
3743
|
mapURL: o.retailLocation.mapURL,
|
|
3744
|
+
tags: o.retailLocation.tags,
|
|
3714
3745
|
address: o.retailLocation.address ? {
|
|
3715
3746
|
id: o.retailLocation.address.id,
|
|
3716
3747
|
countryCode: o.retailLocation.address.countryCode,
|
|
@@ -3823,12 +3854,14 @@ class vn {
|
|
|
3823
3854
|
id: o.productByProductShopifyLegacyResourceID.id,
|
|
3824
3855
|
title: o.productByProductShopifyLegacyResourceID.title,
|
|
3825
3856
|
hasBackOrderProductVariants: o.productByProductShopifyLegacyResourceID.hasBackOrderProductVariants,
|
|
3857
|
+
isLocalPickupAvailable: o.productByProductShopifyLegacyResourceID.isLocalPickupAvailable,
|
|
3826
3858
|
variants: {
|
|
3827
3859
|
nodes: o.productByProductShopifyLegacyResourceID.productVariants.nodes.map(
|
|
3828
3860
|
(c) => ({
|
|
3829
3861
|
id: c.id,
|
|
3830
3862
|
title: c.title,
|
|
3831
3863
|
isBackOrderEnable: c.isBackOrderEnable,
|
|
3864
|
+
isLocalPickupAvailable: c.isLocalPickupAvailable,
|
|
3832
3865
|
inventoryItem: {
|
|
3833
3866
|
id: c.inventoryItem.id,
|
|
3834
3867
|
sku: c.inventoryItem.sku
|
|
@@ -3839,6 +3872,17 @@ class vn {
|
|
|
3839
3872
|
}
|
|
3840
3873
|
} : null;
|
|
3841
3874
|
}
|
|
3875
|
+
async getPointCampaignOrderRuleTargetCustomerRank() {
|
|
3876
|
+
const t = await this.api.GetPointCampaignOrderRuleTargetCustomerRank();
|
|
3877
|
+
return t.pointCampaignOrderRuleTargetCustomerRank ? {
|
|
3878
|
+
pointCampaignOrderRule: {
|
|
3879
|
+
id: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.id,
|
|
3880
|
+
title: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.title
|
|
3881
|
+
},
|
|
3882
|
+
multiplier: t.pointCampaignOrderRuleTargetCustomerRank.multiplier ? t.pointCampaignOrderRuleTargetCustomerRank.multiplier : void 0,
|
|
3883
|
+
fixedPoint: t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint ? t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint : void 0
|
|
3884
|
+
} : null;
|
|
3885
|
+
}
|
|
3842
3886
|
/**
|
|
3843
3887
|
* purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
|
|
3844
3888
|
*/
|
|
@@ -3879,5 +3923,5 @@ class vn {
|
|
|
3879
3923
|
}
|
|
3880
3924
|
}
|
|
3881
3925
|
export {
|
|
3882
|
-
|
|
3926
|
+
An as SDK
|
|
3883
3927
|
};
|