@builtbystack/sq-shopify-theme-sdk 0.0.25 → 0.0.27

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.
@@ -1,6 +1,6 @@
1
1
  var He = Object.defineProperty;
2
2
  var Ye = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Ae = (e, t, n) => (Ye(e, typeof t != "symbol" ? t + "" : t, n), n);
3
+ var Te = (e, t, n) => (Ye(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  function ze(e, t) {
5
5
  for (var n = 0; n < t.length; n++) {
6
6
  const r = t[n];
@@ -54,26 +54,26 @@ function he(e, t) {
54
54
  };
55
55
  }
56
56
  function We(e) {
57
- return De(
57
+ return Oe(
58
58
  e.source,
59
59
  he(e.source, e.start)
60
60
  );
61
61
  }
62
- function De(e, t) {
62
+ function Oe(e, t) {
63
63
  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, p = t.column + c, h = `${e.name}:${o}:${p}
64
64
  `, m = r.split(/\r\n|[\n\r]/g), y = m[i];
65
65
  if (y.length > 120) {
66
- const C = Math.floor(p / 80), T = p % 80, g = [];
67
- for (let N = 0; N < y.length; N += 80)
68
- g.push(y.slice(N, N + 80));
69
- return h + Te([
66
+ const C = Math.floor(p / 80), A = p % 80, g = [];
67
+ for (let I = 0; I < y.length; I += 80)
68
+ g.push(y.slice(I, I + 80));
69
+ return h + Ae([
70
70
  [`${o} |`, g[0]],
71
- ...g.slice(1, C + 1).map((N) => ["|", N]),
72
- ["|", "^".padStart(T)],
71
+ ...g.slice(1, C + 1).map((I) => ["|", I]),
72
+ ["|", "^".padStart(A)],
73
73
  ["|", g[C + 1]]
74
74
  ]);
75
75
  }
76
- return h + Te([
76
+ return h + Ae([
77
77
  // Lines specified like this: ["prefix", "string"],
78
78
  [`${o - 1} |`, m[i - 1]],
79
79
  [`${o} |`, y],
@@ -81,7 +81,7 @@ function De(e, t) {
81
81
  [`${o + 1} |`, m[i + 1]]
82
82
  ]);
83
83
  }
84
- function Te(e) {
84
+ function Ae(e) {
85
85
  const t = e.filter(([r, i]) => i !== void 0), n = Math.max(...t.map(([r]) => r.length));
86
86
  return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
87
87
  `);
@@ -139,17 +139,17 @@ class Ce extends Error {
139
139
  constructor(t, ...n) {
140
140
  var r, i, s;
141
141
  const { nodes: o, source: c, positions: p, path: h, originalError: m, extensions: y } = Ke(n);
142
- super(t), this.name = "GraphQLError", this.path = h ?? void 0, this.originalError = m ?? void 0, this.nodes = Ne(
142
+ super(t), this.name = "GraphQLError", this.path = h ?? void 0, this.originalError = m ?? void 0, this.nodes = Ie(
143
143
  Array.isArray(o) ? o : o ? [o] : void 0
144
144
  );
145
- const C = Ne(
145
+ const C = Ie(
146
146
  (r = this.nodes) === null || r === void 0 ? void 0 : r.map((g) => g.loc).filter((g) => g != null)
147
147
  );
148
148
  this.source = c ?? (C == null || (i = C[0]) === null || i === void 0 ? void 0 : i.source), this.positions = p ?? (C == null ? void 0 : C.map((g) => g.start)), this.locations = p && c ? p.map((g) => he(c, g)) : C == null ? void 0 : C.map((g) => he(g.source, g.start));
149
- const T = Je(
149
+ const A = Je(
150
150
  m == null ? void 0 : m.extensions
151
151
  ) ? m == null ? void 0 : m.extensions : void 0;
152
- this.extensions = (s = y ?? T) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
152
+ this.extensions = (s = y ?? A) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
153
153
  message: {
154
154
  writable: !0,
155
155
  enumerable: !0
@@ -193,7 +193,7 @@ class Ce extends Error {
193
193
  for (const n of this.locations)
194
194
  t += `
195
195
 
196
- ` + De(this.source, n);
196
+ ` + Oe(this.source, n);
197
197
  return t;
198
198
  }
199
199
  toJSON() {
@@ -203,10 +203,10 @@ class Ce extends Error {
203
203
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
204
204
  }
205
205
  }
206
- function Ne(e) {
206
+ function Ie(e) {
207
207
  return e === void 0 || e.length === 0 ? void 0 : e;
208
208
  }
209
- function x(e, t, n) {
209
+ function N(e, t, n) {
210
210
  return new Ce(`Syntax Error: ${n}`, {
211
211
  source: e,
212
212
  positions: [t]
@@ -241,7 +241,7 @@ class Ze {
241
241
  };
242
242
  }
243
243
  }
244
- class Oe {
244
+ class De {
245
245
  /**
246
246
  * The kind of Token.
247
247
  */
@@ -283,7 +283,7 @@ class Oe {
283
283
  };
284
284
  }
285
285
  }
286
- const ke = {
286
+ const Pe = {
287
287
  Name: [],
288
288
  Document: ["definitions"],
289
289
  OperationDefinition: [
@@ -357,15 +357,15 @@ const ke = {
357
357
  UnionTypeExtension: ["name", "directives", "types"],
358
358
  EnumTypeExtension: ["name", "directives", "values"],
359
359
  InputObjectTypeExtension: ["name", "directives", "fields"]
360
- }, et = new Set(Object.keys(ke));
361
- function Ie(e) {
360
+ }, et = new Set(Object.keys(Pe));
361
+ function Se(e) {
362
362
  const t = e == null ? void 0 : e.kind;
363
363
  return typeof t == "string" && et.has(t);
364
364
  }
365
- var q;
365
+ var M;
366
366
  (function(e) {
367
367
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
368
- })(q || (q = {}));
368
+ })(M || (M = {}));
369
369
  var fe;
370
370
  (function(e) {
371
371
  e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
@@ -380,22 +380,22 @@ function me(e) {
380
380
  function Y(e) {
381
381
  return e >= 48 && e <= 57;
382
382
  }
383
- function Pe(e) {
383
+ function ke(e) {
384
384
  return e >= 97 && e <= 122 || // A-Z
385
385
  e >= 65 && e <= 90;
386
386
  }
387
387
  function _e(e) {
388
- return Pe(e) || e === 95;
388
+ return ke(e) || e === 95;
389
389
  }
390
390
  function tt(e) {
391
- return Pe(e) || Y(e) || e === 95;
391
+ return ke(e) || Y(e) || e === 95;
392
392
  }
393
393
  function nt(e) {
394
394
  var t;
395
395
  let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
396
396
  for (let o = 0; o < e.length; ++o) {
397
397
  var s;
398
- const c = e[o], p = rt(c);
398
+ const c = e[o], p = it(c);
399
399
  p !== c.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && p < n && (n = p));
400
400
  }
401
401
  return e.map((o, c) => c === 0 ? o : o.slice(n)).slice(
@@ -403,14 +403,14 @@ function nt(e) {
403
403
  i + 1
404
404
  );
405
405
  }
406
- function rt(e) {
406
+ function it(e) {
407
407
  let t = 0;
408
408
  for (; t < e.length && me(e.charCodeAt(t)); )
409
409
  ++t;
410
410
  return t;
411
411
  }
412
- function it(e, t) {
413
- const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((T) => T.length === 0 || me(T.charCodeAt(0))), o = n.endsWith('\\"""'), c = e.endsWith('"') && !o, p = e.endsWith("\\"), h = c || p, m = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
412
+ function rt(e, t) {
413
+ const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((A) => A.length === 0 || me(A.charCodeAt(0))), o = n.endsWith('\\"""'), c = e.endsWith('"') && !o, p = e.endsWith("\\"), h = c || p, m = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
414
414
  (!i || e.length > 70 || h || s || o);
415
415
  let y = "";
416
416
  const C = i && me(e.charCodeAt(0));
@@ -436,7 +436,7 @@ class st {
436
436
  * The character offset at which the current line begins.
437
437
  */
438
438
  constructor(t) {
439
- const n = new Oe(u.SOF, 0, 0, 0, 0);
439
+ const n = new De(u.SOF, 0, 0, 0, 0);
440
440
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
441
441
  }
442
442
  get [Symbol.toStringTag]() {
@@ -491,9 +491,9 @@ function F(e, t) {
491
491
  }
492
492
  return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
493
493
  }
494
- function I(e, t, n, r, i) {
494
+ function S(e, t, n, r, i) {
495
495
  const s = e.line, o = 1 + n - e.lineStart;
496
- return new Oe(t, n, r, s, o, i);
496
+ return new De(t, n, r, s, o, i);
497
497
  }
498
498
  function at(e, t) {
499
499
  const n = e.source.body, r = n.length;
@@ -516,35 +516,35 @@ function at(e, t) {
516
516
  case 35:
517
517
  return ut(e, i);
518
518
  case 33:
519
- return I(e, u.BANG, i, i + 1);
519
+ return S(e, u.BANG, i, i + 1);
520
520
  case 36:
521
- return I(e, u.DOLLAR, i, i + 1);
521
+ return S(e, u.DOLLAR, i, i + 1);
522
522
  case 38:
523
- return I(e, u.AMP, i, i + 1);
523
+ return S(e, u.AMP, i, i + 1);
524
524
  case 40:
525
- return I(e, u.PAREN_L, i, i + 1);
525
+ return S(e, u.PAREN_L, i, i + 1);
526
526
  case 41:
527
- return I(e, u.PAREN_R, i, i + 1);
527
+ return S(e, u.PAREN_R, i, i + 1);
528
528
  case 46:
529
529
  if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
530
- return I(e, u.SPREAD, i, i + 3);
530
+ return S(e, u.SPREAD, i, i + 3);
531
531
  break;
532
532
  case 58:
533
- return I(e, u.COLON, i, i + 1);
533
+ return S(e, u.COLON, i, i + 1);
534
534
  case 61:
535
- return I(e, u.EQUALS, i, i + 1);
535
+ return S(e, u.EQUALS, i, i + 1);
536
536
  case 64:
537
- return I(e, u.AT, i, i + 1);
537
+ return S(e, u.AT, i, i + 1);
538
538
  case 91:
539
- return I(e, u.BRACKET_L, i, i + 1);
539
+ return S(e, u.BRACKET_L, i, i + 1);
540
540
  case 93:
541
- return I(e, u.BRACKET_R, i, i + 1);
541
+ return S(e, u.BRACKET_R, i, i + 1);
542
542
  case 123:
543
- return I(e, u.BRACE_L, i, i + 1);
543
+ return S(e, u.BRACE_L, i, i + 1);
544
544
  case 124:
545
- return I(e, u.PIPE, i, i + 1);
545
+ return S(e, u.PIPE, i, i + 1);
546
546
  case 125:
547
- return I(e, u.BRACE_R, i, i + 1);
547
+ return S(e, u.BRACE_R, i, i + 1);
548
548
  case 34:
549
549
  return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? ft(e, i) : lt(e, i);
550
550
  }
@@ -552,13 +552,13 @@ function at(e, t) {
552
552
  return ct(e, i, s);
553
553
  if (_e(s))
554
554
  return mt(e, i);
555
- throw x(
555
+ throw N(
556
556
  e.source,
557
557
  i,
558
558
  s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : G(s) || se(n, i) ? `Unexpected character: ${F(e, i)}.` : `Invalid character: ${F(e, i)}.`
559
559
  );
560
560
  }
561
- return I(e, u.EOF, r, r);
561
+ return S(e, u.EOF, r, r);
562
562
  }
563
563
  function ut(e, t) {
564
564
  const n = e.source.body, r = n.length;
@@ -574,7 +574,7 @@ function ut(e, t) {
574
574
  else
575
575
  break;
576
576
  }
577
- return I(
577
+ return S(
578
578
  e,
579
579
  u.COMMENT,
580
580
  t,
@@ -587,7 +587,7 @@ function ct(e, t, n) {
587
587
  let i = t, s = n, o = !1;
588
588
  if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
589
589
  if (s = r.charCodeAt(++i), Y(s))
590
- throw x(
590
+ throw N(
591
591
  e.source,
592
592
  i,
593
593
  `Invalid number, unexpected digit after 0: ${F(
@@ -598,7 +598,7 @@ function ct(e, t, n) {
598
598
  } else
599
599
  i = ce(e, i, s), s = r.charCodeAt(i);
600
600
  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))
601
- throw x(
601
+ throw N(
602
602
  e.source,
603
603
  i,
604
604
  `Invalid number, expected digit but got: ${F(
@@ -606,7 +606,7 @@ function ct(e, t, n) {
606
606
  i
607
607
  )}.`
608
608
  );
609
- return I(
609
+ return S(
610
610
  e,
611
611
  o ? u.FLOAT : u.INT,
612
612
  t,
@@ -616,7 +616,7 @@ function ct(e, t, n) {
616
616
  }
617
617
  function ce(e, t, n) {
618
618
  if (!Y(n))
619
- throw x(
619
+ throw N(
620
620
  e.source,
621
621
  t,
622
622
  `Invalid number, expected digit but got: ${F(
@@ -636,7 +636,7 @@ function lt(e, t) {
636
636
  for (; i < r; ) {
637
637
  const c = n.charCodeAt(i);
638
638
  if (c === 34)
639
- return o += n.slice(s, i), I(e, u.STRING, t, i + 1, o);
639
+ return o += n.slice(s, i), S(e, u.STRING, t, i + 1, o);
640
640
  if (c === 92) {
641
641
  o += n.slice(s, i);
642
642
  const p = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? dt(e, i) : pt(e, i) : ht(e, i);
@@ -650,7 +650,7 @@ function lt(e, t) {
650
650
  else if (se(n, i))
651
651
  i += 2;
652
652
  else
653
- throw x(
653
+ throw N(
654
654
  e.source,
655
655
  i,
656
656
  `Invalid character within String: ${F(
@@ -659,7 +659,7 @@ function lt(e, t) {
659
659
  )}.`
660
660
  );
661
661
  }
662
- throw x(e.source, i, "Unterminated string.");
662
+ throw N(e.source, i, "Unterminated string.");
663
663
  }
664
664
  function dt(e, t) {
665
665
  const n = e.source.body;
@@ -677,7 +677,7 @@ function dt(e, t) {
677
677
  if (r = r << 4 | j(s), r < 0)
678
678
  break;
679
679
  }
680
- throw x(
680
+ throw N(
681
681
  e.source,
682
682
  t,
683
683
  `Invalid Unicode escape sequence: "${n.slice(
@@ -687,27 +687,27 @@ function dt(e, t) {
687
687
  );
688
688
  }
689
689
  function pt(e, t) {
690
- const n = e.source.body, r = xe(n, t + 2);
690
+ const n = e.source.body, r = Ne(n, t + 2);
691
691
  if (G(r))
692
692
  return {
693
693
  value: String.fromCodePoint(r),
694
694
  size: 6
695
695
  };
696
696
  if (Le(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
697
- const i = xe(n, t + 8);
697
+ const i = Ne(n, t + 8);
698
698
  if (we(i))
699
699
  return {
700
700
  value: String.fromCodePoint(r, i),
701
701
  size: 12
702
702
  };
703
703
  }
704
- throw x(
704
+ throw N(
705
705
  e.source,
706
706
  t,
707
707
  `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
708
708
  );
709
709
  }
710
- function xe(e, t) {
710
+ function Ne(e, t) {
711
711
  return j(e.charCodeAt(t)) << 12 | j(e.charCodeAt(t + 1)) << 8 | j(e.charCodeAt(t + 2)) << 4 | j(e.charCodeAt(t + 3));
712
712
  }
713
713
  function j(e) {
@@ -758,7 +758,7 @@ function ht(e, t) {
758
758
  size: 2
759
759
  };
760
760
  }
761
- throw x(
761
+ throw N(
762
762
  e.source,
763
763
  t,
764
764
  `Invalid character escape sequence: "${n.slice(
@@ -775,7 +775,7 @@ function ft(e, t) {
775
775
  const h = n.charCodeAt(s);
776
776
  if (h === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
777
777
  c += n.slice(o, s), p.push(c);
778
- const m = I(
778
+ const m = S(
779
779
  e,
780
780
  u.BLOCK_STRING,
781
781
  t,
@@ -799,7 +799,7 @@ function ft(e, t) {
799
799
  else if (se(n, s))
800
800
  s += 2;
801
801
  else
802
- throw x(
802
+ throw N(
803
803
  e.source,
804
804
  s,
805
805
  `Invalid character within String: ${F(
@@ -808,7 +808,7 @@ function ft(e, t) {
808
808
  )}.`
809
809
  );
810
810
  }
811
- throw x(e.source, s, "Unterminated string.");
811
+ throw N(e.source, s, "Unterminated string.");
812
812
  }
813
813
  function mt(e, t) {
814
814
  const n = e.source.body, r = n.length;
@@ -820,7 +820,7 @@ function mt(e, t) {
820
820
  else
821
821
  break;
822
822
  }
823
- return I(
823
+ return S(
824
824
  e,
825
825
  u.NAME,
826
826
  t,
@@ -863,7 +863,7 @@ function Ct(e) {
863
863
  }
864
864
  function Et(e, t) {
865
865
  const n = Object.entries(e);
866
- return n.length === 0 ? "{}" : t.length > Fe ? "[" + At(e) + "]" : "{ " + n.map(
866
+ return n.length === 0 ? "{}" : t.length > Fe ? "[" + Tt(e) + "]" : "{ " + n.map(
867
867
  ([i, s]) => i + ": " + oe(s, t)
868
868
  ).join(", ") + " }";
869
869
  }
@@ -877,7 +877,7 @@ function vt(e, t) {
877
877
  i.push(oe(e[s], t));
878
878
  return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
879
879
  }
880
- function At(e) {
880
+ function Tt(e) {
881
881
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
882
882
  if (t === "Object" && typeof e.constructor == "function") {
883
883
  const n = e.constructor.name;
@@ -886,7 +886,7 @@ function At(e) {
886
886
  }
887
887
  return t;
888
888
  }
889
- const Tt = (
889
+ const At = (
890
890
  /* c8 ignore next 6 */
891
891
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
892
892
  globalThis.process && globalThis.process.env.NODE_ENV === "production" ? function(t, n) {
@@ -936,15 +936,15 @@ class Be {
936
936
  return "Source";
937
937
  }
938
938
  }
939
- function Nt(e) {
940
- return Tt(e, Be);
939
+ function It(e) {
940
+ return At(e, Be);
941
941
  }
942
942
  function Ue(e, t) {
943
- return new It(e, t).parseDocument();
943
+ return new St(e, t).parseDocument();
944
944
  }
945
- class It {
945
+ class St {
946
946
  constructor(t, n = {}) {
947
- const r = Nt(t) ? t : new Be(t);
947
+ const r = It(t) ? t : new Be(t);
948
948
  this._lexer = new st(r), this._options = n, this._tokenCounter = 0;
949
949
  }
950
950
  /**
@@ -1018,7 +1018,7 @@ class It {
1018
1018
  return this.parseDirectiveDefinition();
1019
1019
  }
1020
1020
  if (t)
1021
- throw x(
1021
+ throw N(
1022
1022
  this._lexer.source,
1023
1023
  this._lexer.token.start,
1024
1024
  "Unexpected description, descriptions are supported only on type definitions."
@@ -1047,7 +1047,7 @@ class It {
1047
1047
  if (this.peek(u.BRACE_L))
1048
1048
  return this.node(t, {
1049
1049
  kind: f.OPERATION_DEFINITION,
1050
- operation: q.QUERY,
1050
+ operation: M.QUERY,
1051
1051
  name: void 0,
1052
1052
  variableDefinitions: [],
1053
1053
  directives: [],
@@ -1071,11 +1071,11 @@ class It {
1071
1071
  const t = this.expectToken(u.NAME);
1072
1072
  switch (t.value) {
1073
1073
  case "query":
1074
- return q.QUERY;
1074
+ return M.QUERY;
1075
1075
  case "mutation":
1076
- return q.MUTATION;
1076
+ return M.MUTATION;
1077
1077
  case "subscription":
1078
- return q.SUBSCRIPTION;
1078
+ return M.SUBSCRIPTION;
1079
1079
  }
1080
1080
  throw this.unexpected(t);
1081
1081
  }
@@ -1292,7 +1292,7 @@ class It {
1292
1292
  if (t)
1293
1293
  if (this.expectToken(u.DOLLAR), this._lexer.token.kind === u.NAME) {
1294
1294
  const r = this._lexer.token.value;
1295
- throw x(
1295
+ throw N(
1296
1296
  this._lexer.source,
1297
1297
  n.start,
1298
1298
  `Unexpected variable "$${r}" in constant value.`
@@ -1639,7 +1639,7 @@ class It {
1639
1639
  */
1640
1640
  parseEnumValueName() {
1641
1641
  if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null")
1642
- throw x(
1642
+ throw N(
1643
1643
  this._lexer.source,
1644
1644
  this._lexer.token.start,
1645
1645
  `${W(
@@ -1932,10 +1932,10 @@ class It {
1932
1932
  const n = this._lexer.token;
1933
1933
  if (n.kind === t)
1934
1934
  return this.advanceLexer(), n;
1935
- throw x(
1935
+ throw N(
1936
1936
  this._lexer.source,
1937
1937
  n.start,
1938
- `Expected ${qe(t)}, found ${W(n)}.`
1938
+ `Expected ${Me(t)}, found ${W(n)}.`
1939
1939
  );
1940
1940
  }
1941
1941
  /**
@@ -1954,7 +1954,7 @@ class It {
1954
1954
  if (n.kind === u.NAME && n.value === t)
1955
1955
  this.advanceLexer();
1956
1956
  else
1957
- throw x(
1957
+ throw N(
1958
1958
  this._lexer.source,
1959
1959
  n.start,
1960
1960
  `Expected "${t}", found ${W(n)}.`
@@ -1973,7 +1973,7 @@ class It {
1973
1973
  */
1974
1974
  unexpected(t) {
1975
1975
  const n = t ?? this._lexer.token;
1976
- return x(
1976
+ return N(
1977
1977
  this._lexer.source,
1978
1978
  n.start,
1979
1979
  `Unexpected ${W(n)}.`
@@ -2036,7 +2036,7 @@ class It {
2036
2036
  advanceLexer() {
2037
2037
  const { maxTokens: t } = this._options, n = this._lexer.advance();
2038
2038
  if (t !== void 0 && n.kind !== u.EOF && (++this._tokenCounter, this._tokenCounter > t))
2039
- throw x(
2039
+ throw N(
2040
2040
  this._lexer.source,
2041
2041
  n.start,
2042
2042
  `Document contains more that ${t} tokens. Parsing aborted.`
@@ -2045,19 +2045,19 @@ class It {
2045
2045
  }
2046
2046
  function W(e) {
2047
2047
  const t = e.value;
2048
- return qe(e.kind) + (t != null ? ` "${t}"` : "");
2048
+ return Me(e.kind) + (t != null ? ` "${t}"` : "");
2049
2049
  }
2050
- function qe(e) {
2050
+ function Me(e) {
2051
2051
  return ot(e) ? `"${e}"` : e;
2052
2052
  }
2053
- function xt(e) {
2054
- return `"${e.replace(St, bt)}"`;
2053
+ function Nt(e) {
2054
+ return `"${e.replace(Rt, xt)}"`;
2055
2055
  }
2056
- const St = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2057
- function bt(e) {
2058
- return Rt[e.charCodeAt(0)];
2056
+ const Rt = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2057
+ function xt(e) {
2058
+ return bt[e.charCodeAt(0)];
2059
2059
  }
2060
- const Rt = [
2060
+ const bt = [
2061
2061
  "\\u0000",
2062
2062
  "\\u0001",
2063
2063
  "\\u0002",
@@ -2223,32 +2223,32 @@ const Rt = [
2223
2223
  "\\u009D",
2224
2224
  "\\u009E",
2225
2225
  "\\u009F"
2226
- ], Dt = Object.freeze({});
2227
- function Ot(e, t, n = ke) {
2226
+ ], Ot = Object.freeze({});
2227
+ function Dt(e, t, n = Pe) {
2228
2228
  const r = /* @__PURE__ */ new Map();
2229
- for (const O of Object.values(f))
2230
- r.set(O, kt(t, O));
2229
+ for (const D of Object.values(f))
2230
+ r.set(D, Pt(t, D));
2231
2231
  let i, s = Array.isArray(e), o = [e], c = -1, p = [], h = e, m, y;
2232
- const C = [], T = [];
2232
+ const C = [], A = [];
2233
2233
  do {
2234
2234
  c++;
2235
- const O = c === o.length, z = O && p.length !== 0;
2236
- if (O) {
2237
- if (m = T.length === 0 ? void 0 : C[C.length - 1], h = y, y = T.pop(), z)
2235
+ const D = c === o.length, z = D && p.length !== 0;
2236
+ if (D) {
2237
+ if (m = A.length === 0 ? void 0 : C[C.length - 1], h = y, y = A.pop(), z)
2238
2238
  if (s) {
2239
2239
  h = h.slice();
2240
- let k = 0;
2240
+ let P = 0;
2241
2241
  for (const [B, J] of p) {
2242
- const Q = B - k;
2243
- J === null ? (h.splice(Q, 1), k++) : h[Q] = J;
2242
+ const Q = B - P;
2243
+ J === null ? (h.splice(Q, 1), P++) : h[Q] = J;
2244
2244
  }
2245
2245
  } else {
2246
2246
  h = Object.defineProperties(
2247
2247
  {},
2248
2248
  Object.getOwnPropertyDescriptors(h)
2249
2249
  );
2250
- for (const [k, B] of p)
2251
- h[k] = B;
2250
+ for (const [P, B] of p)
2251
+ h[P] = B;
2252
2252
  }
2253
2253
  c = i.index, o = i.keys, p = i.edits, s = i.inArray, i = i.prev;
2254
2254
  } else if (y) {
@@ -2258,40 +2258,40 @@ function Ot(e, t, n = ke) {
2258
2258
  }
2259
2259
  let _;
2260
2260
  if (!Array.isArray(h)) {
2261
- var g, N;
2262
- Ie(h) || K(!1, `Invalid AST Node: ${Ee(h)}.`);
2263
- const k = O ? (g = r.get(h.kind)) === null || g === void 0 ? void 0 : g.leave : (N = r.get(h.kind)) === null || N === void 0 ? void 0 : N.enter;
2264
- if (_ = k == null ? void 0 : k.call(t, h, m, y, C, T), _ === Dt)
2261
+ var g, I;
2262
+ Se(h) || K(!1, `Invalid AST Node: ${Ee(h)}.`);
2263
+ const P = D ? (g = r.get(h.kind)) === null || g === void 0 ? void 0 : g.leave : (I = r.get(h.kind)) === null || I === void 0 ? void 0 : I.enter;
2264
+ if (_ = P == null ? void 0 : P.call(t, h, m, y, C, A), _ === Ot)
2265
2265
  break;
2266
2266
  if (_ === !1) {
2267
- if (!O) {
2267
+ if (!D) {
2268
2268
  C.pop();
2269
2269
  continue;
2270
2270
  }
2271
- } else if (_ !== void 0 && (p.push([m, _]), !O))
2272
- if (Ie(_))
2271
+ } else if (_ !== void 0 && (p.push([m, _]), !D))
2272
+ if (Se(_))
2273
2273
  h = _;
2274
2274
  else {
2275
2275
  C.pop();
2276
2276
  continue;
2277
2277
  }
2278
2278
  }
2279
- if (_ === void 0 && z && p.push([m, h]), O)
2279
+ if (_ === void 0 && z && p.push([m, h]), D)
2280
2280
  C.pop();
2281
2281
  else {
2282
- var D;
2282
+ var O;
2283
2283
  i = {
2284
2284
  inArray: s,
2285
2285
  index: c,
2286
2286
  keys: o,
2287
2287
  edits: p,
2288
2288
  prev: i
2289
- }, s = Array.isArray(h), o = s ? h : (D = n[h.kind]) !== null && D !== void 0 ? D : [], c = -1, p = [], y && T.push(y), y = h;
2289
+ }, s = Array.isArray(h), o = s ? h : (O = n[h.kind]) !== null && O !== void 0 ? O : [], c = -1, p = [], y && A.push(y), y = h;
2290
2290
  }
2291
2291
  } while (i !== void 0);
2292
2292
  return p.length !== 0 ? p[p.length - 1][1] : e;
2293
2293
  }
2294
- function kt(e, t) {
2294
+ function Pt(e, t) {
2295
2295
  const n = e[t];
2296
2296
  return typeof n == "object" ? n : typeof n == "function" ? {
2297
2297
  enter: n,
@@ -2301,8 +2301,8 @@ function kt(e, t) {
2301
2301
  leave: e.leave
2302
2302
  };
2303
2303
  }
2304
- function Pt(e) {
2305
- return Ot(e, Lt);
2304
+ function kt(e) {
2305
+ return Dt(e, Lt);
2306
2306
  }
2307
2307
  const _t = 80, Lt = {
2308
2308
  Name: {
@@ -2334,7 +2334,7 @@ const _t = 80, Lt = {
2334
2334
  leave: ({ variable: e, type: t, defaultValue: n, directives: r }) => e + ": " + t + v(" = ", n) + v(" ", d(r, " "))
2335
2335
  },
2336
2336
  SelectionSet: {
2337
- leave: ({ selections: e }) => P(e)
2337
+ leave: ({ selections: e }) => k(e)
2338
2338
  },
2339
2339
  Field: {
2340
2340
  leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
@@ -2378,7 +2378,7 @@ const _t = 80, Lt = {
2378
2378
  leave: ({ value: e }) => e
2379
2379
  },
2380
2380
  StringValue: {
2381
- leave: ({ value: e, block: t }) => t ? it(e) : xt(e)
2381
+ leave: ({ value: e, block: t }) => t ? rt(e) : Nt(e)
2382
2382
  },
2383
2383
  BooleanValue: {
2384
2384
  leave: ({ value: e }) => e ? "true" : "false"
@@ -2415,7 +2415,7 @@ const _t = 80, Lt = {
2415
2415
  // Type System Definitions
2416
2416
  SchemaDefinition: {
2417
2417
  leave: ({ description: e, directives: t, operationTypes: n }) => v("", e, `
2418
- `) + d(["schema", d(t, " "), P(n)], " ")
2418
+ `) + d(["schema", d(t, " "), k(n)], " ")
2419
2419
  },
2420
2420
  OperationTypeDefinition: {
2421
2421
  leave: ({ operation: e, type: t }) => e + ": " + t
@@ -2432,14 +2432,14 @@ const _t = 80, Lt = {
2432
2432
  t,
2433
2433
  v("implements ", d(n, " & ")),
2434
2434
  d(r, " "),
2435
- P(i)
2435
+ k(i)
2436
2436
  ],
2437
2437
  " "
2438
2438
  )
2439
2439
  },
2440
2440
  FieldDefinition: {
2441
2441
  leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => v("", e, `
2442
- `) + t + (Se(n) ? v(`(
2442
+ `) + t + (Re(n) ? v(`(
2443
2443
  `, Z(d(n, `
2444
2444
  `)), `
2445
2445
  )`) : v("(", d(n, ", "), ")")) + ": " + r + v(" ", d(i, " "))
@@ -2459,7 +2459,7 @@ const _t = 80, Lt = {
2459
2459
  t,
2460
2460
  v("implements ", d(n, " & ")),
2461
2461
  d(r, " "),
2462
- P(i)
2462
+ k(i)
2463
2463
  ],
2464
2464
  " "
2465
2465
  )
@@ -2473,7 +2473,7 @@ const _t = 80, Lt = {
2473
2473
  },
2474
2474
  EnumTypeDefinition: {
2475
2475
  leave: ({ description: e, name: t, directives: n, values: r }) => v("", e, `
2476
- `) + d(["enum", t, d(n, " "), P(r)], " ")
2476
+ `) + d(["enum", t, d(n, " "), k(r)], " ")
2477
2477
  },
2478
2478
  EnumValueDefinition: {
2479
2479
  leave: ({ description: e, name: t, directives: n }) => v("", e, `
@@ -2481,18 +2481,18 @@ const _t = 80, Lt = {
2481
2481
  },
2482
2482
  InputObjectTypeDefinition: {
2483
2483
  leave: ({ description: e, name: t, directives: n, fields: r }) => v("", e, `
2484
- `) + d(["input", t, d(n, " "), P(r)], " ")
2484
+ `) + d(["input", t, d(n, " "), k(r)], " ")
2485
2485
  },
2486
2486
  DirectiveDefinition: {
2487
2487
  leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => v("", e, `
2488
- `) + "directive @" + t + (Se(n) ? v(`(
2488
+ `) + "directive @" + t + (Re(n) ? v(`(
2489
2489
  `, Z(d(n, `
2490
2490
  `)), `
2491
2491
  )`) : v("(", d(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + d(i, " | ")
2492
2492
  },
2493
2493
  SchemaExtension: {
2494
2494
  leave: ({ directives: e, operationTypes: t }) => d(
2495
- ["extend schema", d(e, " "), P(t)],
2495
+ ["extend schema", d(e, " "), k(t)],
2496
2496
  " "
2497
2497
  )
2498
2498
  },
@@ -2506,7 +2506,7 @@ const _t = 80, Lt = {
2506
2506
  e,
2507
2507
  v("implements ", d(t, " & ")),
2508
2508
  d(n, " "),
2509
- P(r)
2509
+ k(r)
2510
2510
  ],
2511
2511
  " "
2512
2512
  )
@@ -2518,7 +2518,7 @@ const _t = 80, Lt = {
2518
2518
  e,
2519
2519
  v("implements ", d(t, " & ")),
2520
2520
  d(n, " "),
2521
- P(r)
2521
+ k(r)
2522
2522
  ],
2523
2523
  " "
2524
2524
  )
@@ -2535,17 +2535,17 @@ const _t = 80, Lt = {
2535
2535
  )
2536
2536
  },
2537
2537
  EnumTypeExtension: {
2538
- leave: ({ name: e, directives: t, values: n }) => d(["extend enum", e, d(t, " "), P(n)], " ")
2538
+ leave: ({ name: e, directives: t, values: n }) => d(["extend enum", e, d(t, " "), k(n)], " ")
2539
2539
  },
2540
2540
  InputObjectTypeExtension: {
2541
- leave: ({ name: e, directives: t, fields: n }) => d(["extend input", e, d(t, " "), P(n)], " ")
2541
+ leave: ({ name: e, directives: t, fields: n }) => d(["extend input", e, d(t, " "), k(n)], " ")
2542
2542
  }
2543
2543
  };
2544
2544
  function d(e, t = "") {
2545
2545
  var n;
2546
2546
  return (n = e == null ? void 0 : e.filter((r) => r).join(t)) !== null && n !== void 0 ? n : "";
2547
2547
  }
2548
- function P(e) {
2548
+ function k(e) {
2549
2549
  return v(`{
2550
2550
  `, Z(d(e, `
2551
2551
  `)), `
@@ -2558,12 +2558,12 @@ function Z(e) {
2558
2558
  return v(" ", e.replace(/\n/g, `
2559
2559
  `));
2560
2560
  }
2561
- function Se(e) {
2561
+ function Re(e) {
2562
2562
  var t;
2563
2563
  return (t = e == null ? void 0 : e.some((n) => n.includes(`
2564
2564
  `))) !== null && t !== void 0 ? t : !1;
2565
2565
  }
2566
- var ee = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Map(), Me = !0, re = !1;
2566
+ var ee = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Map(), qe = !0, ie = !1;
2567
2567
  function Ge(e) {
2568
2568
  return e.replace(/[\s,]+/g, " ").trim();
2569
2569
  }
@@ -2575,7 +2575,7 @@ function Ft(e) {
2575
2575
  return e.definitions.forEach(function(r) {
2576
2576
  if (r.kind === "FragmentDefinition") {
2577
2577
  var i = r.name.value, s = wt(r.loc), o = ge.get(i);
2578
- o && !o.has(s) ? Me && console.warn("Warning: fragment with name " + i + ` already exists.
2578
+ o && !o.has(s) ? qe && console.warn("Warning: fragment with name " + i + ` already exists.
2579
2579
  graphql-tag enforces all fragment names across your application to be unique; read more about
2580
2580
  this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || ge.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
2581
2581
  } else
@@ -2597,8 +2597,8 @@ function Ut(e) {
2597
2597
  var t = Ge(e);
2598
2598
  if (!ee.has(t)) {
2599
2599
  var n = Ue(e, {
2600
- experimentalFragmentVariables: re,
2601
- allowLegacyFragmentVariables: re
2600
+ experimentalFragmentVariables: ie,
2601
+ allowLegacyFragmentVariables: ie
2602
2602
  });
2603
2603
  if (!n || n.kind !== "Document")
2604
2604
  throw new Error("Not a valid GraphQL document.");
@@ -2606,7 +2606,7 @@ function Ut(e) {
2606
2606
  }
2607
2607
  return ee.get(t);
2608
2608
  }
2609
- function M(e) {
2609
+ function q(e) {
2610
2610
  for (var t = [], n = 1; n < arguments.length; n++)
2611
2611
  t[n - 1] = arguments[n];
2612
2612
  typeof e == "string" && (e = [e]);
@@ -2615,30 +2615,30 @@ function M(e) {
2615
2615
  i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
2616
2616
  }), Ut(r);
2617
2617
  }
2618
- function qt() {
2618
+ function Mt() {
2619
2619
  ee.clear(), ge.clear();
2620
2620
  }
2621
- function Mt() {
2622
- Me = !1;
2621
+ function qt() {
2622
+ qe = !1;
2623
2623
  }
2624
2624
  function Gt() {
2625
- re = !0;
2625
+ ie = !0;
2626
2626
  }
2627
2627
  function Vt() {
2628
- re = !1;
2628
+ ie = !1;
2629
2629
  }
2630
2630
  var $ = {
2631
- gql: M,
2632
- resetCaches: qt,
2633
- disableFragmentWarnings: Mt,
2631
+ gql: q,
2632
+ resetCaches: Mt,
2633
+ disableFragmentWarnings: qt,
2634
2634
  enableExperimentalFragmentVariables: Gt,
2635
2635
  disableExperimentalFragmentVariables: Vt
2636
2636
  };
2637
2637
  (function(e) {
2638
2638
  e.gql = $.gql, e.resetCaches = $.resetCaches, e.disableFragmentWarnings = $.disableFragmentWarnings, e.enableExperimentalFragmentVariables = $.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = $.disableExperimentalFragmentVariables;
2639
- })(M || (M = {}));
2640
- M.default = M;
2641
- const b = M, $t = b`
2639
+ })(q || (q = {}));
2640
+ q.default = q;
2641
+ const x = q, $t = x`
2642
2642
  query GetLocationAvailabilities($sku: String!, $first: Int, $after: String, $isReverse: Boolean! = false) {
2643
2643
  locationAvailabilities(
2644
2644
  sku: $sku
@@ -2677,7 +2677,7 @@ const b = M, $t = b`
2677
2677
  }
2678
2678
  }
2679
2679
  }
2680
- `, jt = b`
2680
+ `, jt = x`
2681
2681
  query GetLocationAvailability($sku: String!, $locationID: ID!) {
2682
2682
  locationAvailability(sku: $sku, locationID: $locationID) {
2683
2683
  location {
@@ -2703,7 +2703,7 @@ const b = M, $t = b`
2703
2703
  inventoryQuantity
2704
2704
  }
2705
2705
  }
2706
- `, Ht = b`
2706
+ `, Ht = x`
2707
2707
  query GetPurchasingCustomerMetafield($namespace: String!, $key: String!) {
2708
2708
  purchasingCustomerMetafield(namespace: $namespace, key: $key) {
2709
2709
  id
@@ -2712,7 +2712,7 @@ const b = M, $t = b`
2712
2712
  value
2713
2713
  }
2714
2714
  }
2715
- `, Yt = b`
2715
+ `, Yt = x`
2716
2716
  query GetPoints {
2717
2717
  purchasingCustomer {
2718
2718
  pointsApproved
@@ -2724,14 +2724,9 @@ const b = M, $t = b`
2724
2724
  }
2725
2725
  }
2726
2726
  }
2727
- `, zt = b`
2728
- query GetLocations($tag: String, $provinceCodes: [String!], $first: Int, $after: String, $isReverse: Boolean! = false) {
2729
- locations(
2730
- first: $first
2731
- after: $after
2732
- isReverse: $isReverse
2733
- filter: {tag: $tag, provinceCodes: $provinceCodes}
2734
- ) {
2727
+ `, zt = x`
2728
+ query GetLocations($first: Int, $after: String, $filter: LocationFilter, $isReverse: Boolean! = false) {
2729
+ locations(first: $first, after: $after, filter: $filter, isReverse: $isReverse) {
2735
2730
  nodes {
2736
2731
  id
2737
2732
  name
@@ -2760,7 +2755,7 @@ const b = M, $t = b`
2760
2755
  }
2761
2756
  }
2762
2757
  }
2763
- `, Jt = b`
2758
+ `, Jt = x`
2764
2759
  query GetPurchasingCustomerDiscounts($first: Int, $after: String, $isReverse: Boolean! = false) {
2765
2760
  purchasingCustomer {
2766
2761
  id
@@ -2789,14 +2784,14 @@ const b = M, $t = b`
2789
2784
  }
2790
2785
  }
2791
2786
  }
2792
- `, Qt = b`
2787
+ `, Qt = x`
2793
2788
  query GetPurchasingCustomerDiscountCodeCount {
2794
2789
  purchasingCustomer {
2795
2790
  id
2796
2791
  orderPriceAdjustmentRuleCount
2797
2792
  }
2798
2793
  }
2799
- `, Xt = b`
2794
+ `, Xt = x`
2800
2795
  query GetPurchasingCustomerPointChangeActivities($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: PointChangeActivitySortKey! = CREATED_AT) {
2801
2796
  purchasingCustomer {
2802
2797
  id
@@ -2856,7 +2851,7 @@ const b = M, $t = b`
2856
2851
  }
2857
2852
  }
2858
2853
  }
2859
- `, Wt = b`
2854
+ `, Wt = x`
2860
2855
  query GetPurchasingCustomerRank {
2861
2856
  purchasingCustomer {
2862
2857
  currentCustomerRank {
@@ -2895,14 +2890,14 @@ const b = M, $t = b`
2895
2890
  }
2896
2891
  }
2897
2892
  }
2898
- `, Kt = b`
2893
+ `, Kt = x`
2899
2894
  query GetSharingPurchasingCustomerCount {
2900
2895
  purchasingCustomer {
2901
2896
  id
2902
2897
  sharingPurchasingCustomerCount
2903
2898
  }
2904
2899
  }
2905
- `, Zt = b`
2900
+ `, Zt = x`
2906
2901
  query GetPurchasingCustomerSharing {
2907
2902
  purchasingCustomer {
2908
2903
  id
@@ -2919,7 +2914,7 @@ const b = M, $t = b`
2919
2914
  }
2920
2915
  }
2921
2916
  }
2922
- `, en = b`
2917
+ `, en = x`
2923
2918
  query GetProduct($id: String!, $first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: ProductVariantSortKeys! = CREATED_AT) {
2924
2919
  productByProductShopifyLegacyResourceID(productShopifyLegacyResourceID: $id) {
2925
2920
  id
@@ -2951,30 +2946,52 @@ const b = M, $t = b`
2951
2946
  }
2952
2947
  }
2953
2948
  }
2954
- `, tn = b`
2949
+ `, tn = x`
2955
2950
  query GetPointCampaignOrderRuleTargetCustomerRank {
2956
2951
  pointCampaignOrderRuleTargetCustomerRank {
2957
2952
  pointCampaignOrderRule {
2958
2953
  id
2959
2954
  title
2955
+ pointMethod
2956
+ targetType
2960
2957
  }
2961
2958
  multiplier
2962
2959
  fixedPoint
2963
2960
  }
2964
2961
  }
2965
- `, nn = b`
2962
+ `, nn = x`
2966
2963
  query GetEstimatedShopifyCartPoint($input: EstimatedShopifyCartPointInput!) {
2967
2964
  estimatedShopifyCartPoint(input: $input) {
2968
- pointsEarned
2965
+ pointsEarning
2966
+ totalPointsEarning
2967
+ pointCampaign {
2968
+ pointsEarning
2969
+ pointCampaignOrderRule {
2970
+ id
2971
+ title
2972
+ pointMethod
2973
+ targetType
2974
+ }
2975
+ }
2969
2976
  }
2970
2977
  }
2971
- `, rn = b`
2978
+ `, rn = x`
2972
2979
  query GetEstimatedShopifyCartLineItemPoint($input: EstimatedShopifyCartLineItemPointInput!) {
2973
2980
  estimatedShopifyCartLineItemPoint(input: $input) {
2974
- pointsEarned
2981
+ pointsEarning
2982
+ totalPointsEarning
2983
+ pointCampaign {
2984
+ pointsEarning
2985
+ pointCampaignOrderRule {
2986
+ id
2987
+ title
2988
+ pointMethod
2989
+ targetType
2990
+ }
2991
+ }
2975
2992
  }
2976
2993
  }
2977
- `, sn = b`
2994
+ `, sn = x`
2978
2995
  mutation PurchasingCustomerSendCustomerSharingActivationCode {
2979
2996
  purchasingCustomerSendCustomerSharingActivationCode {
2980
2997
  purchasingCustomer {
@@ -2990,7 +3007,7 @@ const b = M, $t = b`
2990
3007
  }
2991
3008
  }
2992
3009
  }
2993
- `, on = b`
3010
+ `, on = x`
2994
3011
  mutation PurchasingCustomerActivateCustomerSharing($email: String!, $activationCode: String!) {
2995
3012
  purchasingCustomerActivateCustomerSharing(
2996
3013
  input: {email: $email, activationCode: $activationCode}
@@ -3080,7 +3097,7 @@ const ve = JSON, cn = (e) => e.toUpperCase(), ln = (e) => {
3080
3097
  documents: e,
3081
3098
  requestHeaders: t,
3082
3099
  signal: void 0
3083
- }, be = (e) => {
3100
+ }, xe = (e) => {
3084
3101
  var r, i;
3085
3102
  let t;
3086
3103
  const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
@@ -3090,13 +3107,13 @@ const ve = JSON, cn = (e) => e.toUpperCase(), ln = (e) => {
3090
3107
  let n;
3091
3108
  try {
3092
3109
  const r = Ue(e);
3093
- n = be(r);
3110
+ n = xe(r);
3094
3111
  } catch {
3095
3112
  }
3096
3113
  return { query: e, operationName: n };
3097
3114
  }
3098
- const t = be(e);
3099
- return { query: Pt(e), operationName: t };
3115
+ const t = xe(e);
3116
+ return { query: kt(e), operationName: t };
3100
3117
  };
3101
3118
  class H extends Error {
3102
3119
  constructor(t, n) {
@@ -3163,7 +3180,7 @@ var ye = { exports: {} };
3163
3180
  function C(a) {
3164
3181
  return typeof a != "string" && (a = String(a)), a;
3165
3182
  }
3166
- function T(a) {
3183
+ function A(a) {
3167
3184
  var l = {
3168
3185
  next: function() {
3169
3186
  var E = a.shift();
@@ -3202,24 +3219,24 @@ var ye = { exports: {} };
3202
3219
  var a = [];
3203
3220
  return this.forEach(function(l, E) {
3204
3221
  a.push(E);
3205
- }), T(a);
3222
+ }), A(a);
3206
3223
  }, g.prototype.values = function() {
3207
3224
  var a = [];
3208
3225
  return this.forEach(function(l) {
3209
3226
  a.push(l);
3210
- }), T(a);
3227
+ }), A(a);
3211
3228
  }, g.prototype.entries = function() {
3212
3229
  var a = [];
3213
3230
  return this.forEach(function(l, E) {
3214
3231
  a.push([E, l]);
3215
- }), T(a);
3232
+ }), A(a);
3216
3233
  }, c.iterable && (g.prototype[Symbol.iterator] = g.prototype.entries);
3217
- function N(a) {
3234
+ function I(a) {
3218
3235
  if (a.bodyUsed)
3219
3236
  return Promise.reject(new TypeError("Already read"));
3220
3237
  a.bodyUsed = !0;
3221
3238
  }
3222
- function D(a) {
3239
+ function O(a) {
3223
3240
  return new Promise(function(l, E) {
3224
3241
  a.onload = function() {
3225
3242
  l(a.result);
@@ -3228,20 +3245,20 @@ var ye = { exports: {} };
3228
3245
  };
3229
3246
  });
3230
3247
  }
3231
- function O(a) {
3232
- var l = new FileReader(), E = D(l);
3248
+ function D(a) {
3249
+ var l = new FileReader(), E = O(l);
3233
3250
  return l.readAsArrayBuffer(a), E;
3234
3251
  }
3235
3252
  function z(a) {
3236
- var l = new FileReader(), E = D(l);
3253
+ var l = new FileReader(), E = O(l);
3237
3254
  return l.readAsText(a), E;
3238
3255
  }
3239
3256
  function _(a) {
3240
- for (var l = new Uint8Array(a), E = new Array(l.length), R = 0; R < l.length; R++)
3241
- E[R] = String.fromCharCode(l[R]);
3257
+ for (var l = new Uint8Array(a), E = new Array(l.length), b = 0; b < l.length; b++)
3258
+ E[b] = String.fromCharCode(l[b]);
3242
3259
  return E.join("");
3243
3260
  }
3244
- function k(a) {
3261
+ function P(a) {
3245
3262
  if (a.slice)
3246
3263
  return a.slice(0);
3247
3264
  var l = new Uint8Array(a.byteLength);
@@ -3249,9 +3266,9 @@ var ye = { exports: {} };
3249
3266
  }
3250
3267
  function B() {
3251
3268
  return this.bodyUsed = !1, this._initBody = function(a) {
3252
- this._bodyInit = a, a ? typeof a == "string" ? this._bodyText = a : c.blob && Blob.prototype.isPrototypeOf(a) ? this._bodyBlob = a : c.formData && FormData.prototype.isPrototypeOf(a) ? this._bodyFormData = a : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) ? this._bodyText = a.toString() : c.arrayBuffer && c.blob && p(a) ? (this._bodyArrayBuffer = k(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || m(a)) ? this._bodyArrayBuffer = k(a) : this._bodyText = a = Object.prototype.toString.call(a) : this._bodyText = "", this.headers.get("content-type") || (typeof a == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3269
+ this._bodyInit = a, a ? typeof a == "string" ? this._bodyText = a : c.blob && Blob.prototype.isPrototypeOf(a) ? this._bodyBlob = a : c.formData && FormData.prototype.isPrototypeOf(a) ? this._bodyFormData = a : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) ? this._bodyText = a.toString() : c.arrayBuffer && c.blob && p(a) ? (this._bodyArrayBuffer = P(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || m(a)) ? this._bodyArrayBuffer = P(a) : this._bodyText = a = Object.prototype.toString.call(a) : this._bodyText = "", this.headers.get("content-type") || (typeof a == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(a) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3253
3270
  }, c.blob && (this.blob = function() {
3254
- var a = N(this);
3271
+ var a = I(this);
3255
3272
  if (a)
3256
3273
  return a;
3257
3274
  if (this._bodyBlob)
@@ -3262,9 +3279,9 @@ var ye = { exports: {} };
3262
3279
  throw new Error("could not read FormData body as blob");
3263
3280
  return Promise.resolve(new Blob([this._bodyText]));
3264
3281
  }, this.arrayBuffer = function() {
3265
- return this._bodyArrayBuffer ? N(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(O);
3282
+ return this._bodyArrayBuffer ? I(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(D);
3266
3283
  }), this.text = function() {
3267
- var a = N(this);
3284
+ var a = I(this);
3268
3285
  if (a)
3269
3286
  return a;
3270
3287
  if (this._bodyBlob)
@@ -3305,18 +3322,18 @@ var ye = { exports: {} };
3305
3322
  var l = new FormData();
3306
3323
  return a.trim().split("&").forEach(function(E) {
3307
3324
  if (E) {
3308
- var R = E.split("="), S = R.shift().replace(/\+/g, " "), A = R.join("=").replace(/\+/g, " ");
3309
- l.append(decodeURIComponent(S), decodeURIComponent(A));
3325
+ var b = E.split("="), R = b.shift().replace(/\+/g, " "), T = b.join("=").replace(/\+/g, " ");
3326
+ l.append(decodeURIComponent(R), decodeURIComponent(T));
3310
3327
  }
3311
3328
  }), l;
3312
3329
  }
3313
3330
  function $e(a) {
3314
3331
  var l = new g(), E = a.replace(/\r?\n[\t ]+/g, " ");
3315
- return E.split(/\r?\n/).forEach(function(R) {
3316
- var S = R.split(":"), A = S.shift().trim();
3317
- if (A) {
3318
- var X = S.join(":").trim();
3319
- l.append(A, X);
3332
+ return E.split(/\r?\n/).forEach(function(b) {
3333
+ var R = b.split(":"), T = R.shift().trim();
3334
+ if (T) {
3335
+ var X = R.join(":").trim();
3336
+ l.append(T, X);
3320
3337
  }
3321
3338
  }), l;
3322
3339
  }
@@ -3346,39 +3363,39 @@ var ye = { exports: {} };
3346
3363
  } catch {
3347
3364
  o.DOMException = function(l, E) {
3348
3365
  this.message = l, this.name = E;
3349
- var R = Error(l);
3350
- this.stack = R.stack;
3366
+ var b = Error(l);
3367
+ this.stack = b.stack;
3351
3368
  }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
3352
3369
  }
3353
3370
  function ae(a, l) {
3354
- return new Promise(function(E, R) {
3355
- var S = new w(a, l);
3356
- if (S.signal && S.signal.aborted)
3357
- return R(new o.DOMException("Aborted", "AbortError"));
3358
- var A = new XMLHttpRequest();
3371
+ return new Promise(function(E, b) {
3372
+ var R = new w(a, l);
3373
+ if (R.signal && R.signal.aborted)
3374
+ return b(new o.DOMException("Aborted", "AbortError"));
3375
+ var T = new XMLHttpRequest();
3359
3376
  function X() {
3360
- A.abort();
3377
+ T.abort();
3361
3378
  }
3362
- A.onload = function() {
3379
+ T.onload = function() {
3363
3380
  var V = {
3364
- status: A.status,
3365
- statusText: A.statusText,
3366
- headers: $e(A.getAllResponseHeaders() || "")
3381
+ status: T.status,
3382
+ statusText: T.statusText,
3383
+ headers: $e(T.getAllResponseHeaders() || "")
3367
3384
  };
3368
- V.url = "responseURL" in A ? A.responseURL : V.headers.get("X-Request-URL");
3369
- var ue = "response" in A ? A.response : A.responseText;
3385
+ V.url = "responseURL" in T ? T.responseURL : V.headers.get("X-Request-URL");
3386
+ var ue = "response" in T ? T.response : T.responseText;
3370
3387
  E(new L(ue, V));
3371
- }, A.onerror = function() {
3372
- R(new TypeError("Network request failed"));
3373
- }, A.ontimeout = function() {
3374
- R(new TypeError("Network request failed"));
3375
- }, A.onabort = function() {
3376
- R(new o.DOMException("Aborted", "AbortError"));
3377
- }, A.open(S.method, S.url, !0), S.credentials === "include" ? A.withCredentials = !0 : S.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && c.blob && (A.responseType = "blob"), S.headers.forEach(function(V, ue) {
3378
- A.setRequestHeader(ue, V);
3379
- }), S.signal && (S.signal.addEventListener("abort", X), A.onreadystatechange = function() {
3380
- A.readyState === 4 && S.signal.removeEventListener("abort", X);
3381
- }), A.send(typeof S._bodyInit > "u" ? null : S._bodyInit);
3388
+ }, T.onerror = function() {
3389
+ b(new TypeError("Network request failed"));
3390
+ }, T.ontimeout = function() {
3391
+ b(new TypeError("Network request failed"));
3392
+ }, T.onabort = function() {
3393
+ b(new o.DOMException("Aborted", "AbortError"));
3394
+ }, T.open(R.method, R.url, !0), R.credentials === "include" ? T.withCredentials = !0 : R.credentials === "omit" && (T.withCredentials = !1), "responseType" in T && c.blob && (T.responseType = "blob"), R.headers.forEach(function(V, ue) {
3395
+ T.setRequestHeader(ue, V);
3396
+ }), R.signal && (R.signal.addEventListener("abort", X), T.onreadystatechange = function() {
3397
+ T.readyState === 4 && R.signal.removeEventListener("abort", X);
3398
+ }), T.send(typeof R._bodyInit > "u" ? null : R._bodyInit);
3382
3399
  });
3383
3400
  }
3384
3401
  return ae.polyfill = !0, s.fetch || (s.fetch = ae, s.Headers = g, s.Request = w, s.Response = L), o.Headers = g, o.Request = w, o.Response = L, o.fetch = ae, Object.defineProperty(o, "__esModule", { value: !0 }), o;
@@ -3387,24 +3404,24 @@ var ye = { exports: {} };
3387
3404
  var i = r;
3388
3405
  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;
3389
3406
  })(ye, ye.exports);
3390
- var ie = ye.exports;
3391
- const te = /* @__PURE__ */ mn(ie), gn = /* @__PURE__ */ ze({
3407
+ var re = ye.exports;
3408
+ const te = /* @__PURE__ */ mn(re), gn = /* @__PURE__ */ ze({
3392
3409
  __proto__: null,
3393
3410
  default: te
3394
- }, [ie]), U = (e) => {
3411
+ }, [re]), U = (e) => {
3395
3412
  let t = {};
3396
- return e && (typeof Headers < "u" && e instanceof Headers || gn && ie.Headers && e instanceof ie.Headers ? t = ln(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
3413
+ return e && (typeof Headers < "u" && e instanceof Headers || gn && re.Headers && e instanceof re.Headers ? t = ln(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
3397
3414
  n && r !== void 0 && (t[n] = r);
3398
3415
  }) : t = e), t;
3399
- }, Re = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), yn = (e) => {
3416
+ }, be = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), yn = (e) => {
3400
3417
  if (!Array.isArray(e.query)) {
3401
- const r = e, i = [`query=${encodeURIComponent(Re(r.query))}`];
3418
+ const r = e, i = [`query=${encodeURIComponent(be(r.query))}`];
3402
3419
  return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
3403
3420
  }
3404
3421
  if (typeof e.variables < "u" && !Array.isArray(e.variables))
3405
3422
  throw new Error("Cannot create query with given variable type, array expected");
3406
3423
  const t = e, n = e.query.reduce((r, i, s) => (r.push({
3407
- query: Re(i),
3424
+ query: be(i),
3408
3425
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
3409
3426
  }), r), []);
3410
3427
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
@@ -3423,19 +3440,19 @@ const te = /* @__PURE__ */ mn(ie), gn = /* @__PURE__ */ ze({
3423
3440
  body: y,
3424
3441
  ...c
3425
3442
  };
3426
- let T = n, g = C;
3443
+ let A = n, g = C;
3427
3444
  if (p) {
3428
- const N = await Promise.resolve(p({ ...C, url: n, operationName: s, variables: i })), { url: D, ...O } = N;
3429
- T = D, g = O;
3445
+ const I = await Promise.resolve(p({ ...C, url: n, operationName: s, variables: i })), { url: O, ...D } = I;
3446
+ A = O, g = D;
3430
3447
  }
3431
- return m && (T = `${T}?${m}`), await o(T, g);
3448
+ return m && (A = `${A}?${m}`), await o(A, g);
3432
3449
  };
3433
3450
  class En {
3434
3451
  constructor(t, n = {}) {
3435
3452
  this.url = t, this.requestConfig = n, this.rawRequest = async (...r) => {
3436
- const [i, s, o] = r, c = pn(i, s, o), { headers: p, fetch: h = te, method: m = "POST", requestMiddleware: y, responseMiddleware: C, ...T } = this.requestConfig, { url: g } = this;
3437
- c.signal !== void 0 && (T.signal = c.signal);
3438
- const { operationName: N } = le(c.query);
3453
+ const [i, s, o] = r, c = pn(i, s, o), { headers: p, fetch: h = te, method: m = "POST", requestMiddleware: y, responseMiddleware: C, ...A } = this.requestConfig, { url: g } = this;
3454
+ c.signal !== void 0 && (A.signal = c.signal);
3455
+ const { operationName: I } = le(c.query);
3439
3456
  return de({
3440
3457
  url: g,
3441
3458
  query: c.query,
@@ -3444,23 +3461,23 @@ class En {
3444
3461
  ...U(pe(p)),
3445
3462
  ...U(c.requestHeaders)
3446
3463
  },
3447
- operationName: N,
3464
+ operationName: I,
3448
3465
  fetch: h,
3449
3466
  method: m,
3450
- fetchOptions: T,
3467
+ fetchOptions: A,
3451
3468
  middleware: y
3452
- }).then((D) => (C && C(D), D)).catch((D) => {
3453
- throw C && C(D), D;
3469
+ }).then((O) => (C && C(O), O)).catch((O) => {
3470
+ throw C && C(O), O;
3454
3471
  });
3455
3472
  };
3456
3473
  }
3457
3474
  async request(t, ...n) {
3458
3475
  const [r, i] = n, s = dn(t, r, i), { headers: o, fetch: c = te, method: p = "POST", requestMiddleware: h, responseMiddleware: m, ...y } = this.requestConfig, { url: C } = this;
3459
3476
  s.signal !== void 0 && (y.signal = s.signal);
3460
- const { query: T, operationName: g } = le(s.document);
3477
+ const { query: A, operationName: g } = le(s.document);
3461
3478
  return de({
3462
3479
  url: C,
3463
- query: T,
3480
+ query: A,
3464
3481
  variables: s.variables,
3465
3482
  headers: {
3466
3483
  ...U(pe(o)),
@@ -3471,8 +3488,8 @@ class En {
3471
3488
  method: p,
3472
3489
  fetchOptions: y,
3473
3490
  middleware: h
3474
- }).then((N) => (m && m(N), N.data)).catch((N) => {
3475
- throw m && m(N), N;
3491
+ }).then((I) => (m && m(I), I.data)).catch((I) => {
3492
+ throw m && m(I), I;
3476
3493
  });
3477
3494
  }
3478
3495
  // prettier-ignore
@@ -3516,7 +3533,7 @@ class En {
3516
3533
  }
3517
3534
  }
3518
3535
  const de = async (e) => {
3519
- const { query: t, variables: n, fetchOptions: r } = e, i = Cn(cn(e.method ?? "post")), s = Array.isArray(e.query), o = await i(e), c = await An(o, r.jsonSerializer ?? ve), p = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3536
+ const { query: t, variables: n, fetchOptions: r } = e, i = Cn(cn(e.method ?? "post")), s = Array.isArray(e.query), o = await i(e), c = await Tn(o, r.jsonSerializer ?? ve), p = Array.isArray(c) ? !c.some(({ data: m }) => !m) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3520
3537
  if (o.ok && h && p) {
3521
3538
  const { errors: m, ...y } = (Array.isArray(c), c), C = r.errorPolicy === "ignore" ? y : c;
3522
3539
  return {
@@ -3542,16 +3559,16 @@ const de = async (e) => {
3542
3559
  throw new Error("Cannot create request body with given variable type, array expected");
3543
3560
  const s = e.reduce((o, c, p) => (o.push({ query: c, variables: t ? t[p] : void 0 }), o), []);
3544
3561
  return i.stringify(s);
3545
- }, An = async (e, t) => {
3562
+ }, Tn = async (e, t) => {
3546
3563
  let n;
3547
3564
  return e.headers.forEach((r, i) => {
3548
3565
  i.toLowerCase() === "content-type" && (n = r);
3549
3566
  }), n && (n.toLowerCase().startsWith("application/json") || n.toLowerCase().startsWith("application/graphql+json") || n.toLowerCase().startsWith("application/graphql-response+json")) ? t.parse(await e.text()) : e.text();
3550
3567
  }, pe = (e) => typeof e == "function" ? e() : e;
3551
- var Tn = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(Tn || {});
3552
- class In {
3568
+ var An = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(An || {}), In = /* @__PURE__ */ ((e) => (e.Retail = "RETAIL", e.Warehouse = "WAREHOUSE", e))(In || {});
3569
+ class Nn {
3553
3570
  constructor(t) {
3554
- Ae(this, "api");
3571
+ Te(this, "api");
3555
3572
  this.api = un(
3556
3573
  new En(`${t}/apps/sq-api`, {
3557
3574
  headers: {
@@ -3662,34 +3679,38 @@ class In {
3662
3679
  /**
3663
3680
  * getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。
3664
3681
  *
3665
- * @param {string} [tag] 取得したいLocationのタグ。
3666
- * @param {string[]} [provinceCodes] 取得したいLocationの都道府県コード。
3667
3682
  * @param {number} [first] 取得してくる個数。デフォルトは250。
3668
3683
  * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
3684
+ * @param {LocationFilter} [locationFilter] ロケーションのロケーションのフィルタリング条件。
3669
3685
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
3670
3686
  */
3671
- async getLocations(t, n, r, i, s) {
3672
- const o = await this.api.GetLocations({ tag: t, provinceCodes: n, first: r, after: i, isReverse: s });
3687
+ async getLocations(t, n, r, i) {
3688
+ const s = await this.api.GetLocations({
3689
+ first: t,
3690
+ after: n,
3691
+ filter: r,
3692
+ isReverse: i
3693
+ });
3673
3694
  return {
3674
- nodes: o.locations.nodes.map((c) => ({
3675
- id: c.id,
3676
- name: c.name,
3677
- phone: c.phone,
3678
- mapURL: c.mapURL,
3679
- tags: c.tags,
3680
- address: c.address ? {
3681
- id: c.address.id,
3682
- countryCode: c.address.countryCode,
3683
- country: c.address.country,
3684
- postalCode: c.address.postalCode,
3685
- provinceCode: c.address.provinceCode,
3686
- province: c.address.province,
3687
- city: c.address.city,
3688
- address1: c.address.address1,
3689
- address2: c.address.address2
3695
+ nodes: s.locations.nodes.map((o) => ({
3696
+ id: o.id,
3697
+ name: o.name,
3698
+ phone: o.phone,
3699
+ mapURL: o.mapURL,
3700
+ tags: o.tags,
3701
+ address: o.address ? {
3702
+ id: o.address.id,
3703
+ countryCode: o.address.countryCode,
3704
+ country: o.address.country,
3705
+ postalCode: o.address.postalCode,
3706
+ provinceCode: o.address.provinceCode,
3707
+ province: o.address.province,
3708
+ city: o.address.city,
3709
+ address1: o.address.address1,
3710
+ address2: o.address.address2
3690
3711
  } : void 0
3691
3712
  })) ?? [],
3692
- pageInfo: o.locations.pageInfo ?? null
3713
+ pageInfo: s.locations.pageInfo ?? null
3693
3714
  };
3694
3715
  }
3695
3716
  /**
@@ -3904,7 +3925,9 @@ class In {
3904
3925
  return t.pointCampaignOrderRuleTargetCustomerRank ? {
3905
3926
  pointCampaignOrderRule: {
3906
3927
  id: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.id,
3907
- title: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.title
3928
+ title: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.title,
3929
+ targetType: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.targetType,
3930
+ pointMethod: t.pointCampaignOrderRuleTargetCustomerRank.pointCampaignOrderRule.pointMethod
3908
3931
  },
3909
3932
  multiplier: t.pointCampaignOrderRuleTargetCustomerRank.multiplier ? t.pointCampaignOrderRuleTargetCustomerRank.multiplier : void 0,
3910
3933
  fixedPoint: t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint ? t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint : void 0
@@ -3919,7 +3942,17 @@ class In {
3919
3942
  }
3920
3943
  });
3921
3944
  return i.estimatedShopifyCartPoint ? {
3922
- pointsEarned: i.estimatedShopifyCartPoint.pointsEarned
3945
+ pointsEarning: i.estimatedShopifyCartPoint.pointsEarning,
3946
+ totalPointsEarning: i.estimatedShopifyCartPoint.totalPointsEarning,
3947
+ pointCampaign: i.estimatedShopifyCartPoint.pointCampaign ? {
3948
+ pointsEarning: i.estimatedShopifyCartPoint.pointCampaign.pointsEarning,
3949
+ pointCampaignOrderRule: {
3950
+ id: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.id,
3951
+ title: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.title,
3952
+ pointMethod: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
3953
+ targetType: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.targetType
3954
+ }
3955
+ } : void 0
3923
3956
  } : null;
3924
3957
  }
3925
3958
  async getEstimatedShopifyCartLineItemPoint(t, n, r, i, s) {
@@ -3933,7 +3966,17 @@ class In {
3933
3966
  }
3934
3967
  });
3935
3968
  return o.estimatedShopifyCartLineItemPoint ? {
3936
- pointsEarned: o.estimatedShopifyCartLineItemPoint.pointsEarned
3969
+ pointsEarning: o.estimatedShopifyCartLineItemPoint.pointsEarning,
3970
+ totalPointsEarning: o.estimatedShopifyCartLineItemPoint.totalPointsEarning,
3971
+ pointCampaign: o.estimatedShopifyCartLineItemPoint.pointCampaign ? {
3972
+ pointsEarning: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointsEarning,
3973
+ pointCampaignOrderRule: {
3974
+ id: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.id,
3975
+ title: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.title,
3976
+ pointMethod: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
3977
+ targetType: o.estimatedShopifyCartLineItemPoint.pointCampaign.pointCampaignOrderRule.targetType
3978
+ }
3979
+ } : void 0
3937
3980
  } : null;
3938
3981
  }
3939
3982
  /**
@@ -3976,6 +4019,7 @@ class In {
3976
4019
  }
3977
4020
  }
3978
4021
  export {
3979
- Tn as CurrencyCode,
3980
- In as SDK
4022
+ An as CurrencyCode,
4023
+ In as LocationType,
4024
+ Nn as SDK
3981
4025
  };