@builtbystack/sq-shopify-theme-sdk 0.0.36 → 0.0.37

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 CHANGED
@@ -384,6 +384,18 @@ getPoints は、Points は SDK から取得できるポイントの情報を返
384
384
 
385
385
  ***
386
386
 
387
+ #### getPurchasingCustomerBarcode()
388
+
389
+ > **getPurchasingCustomerBarcode**(): `Promise`\<`null` \| [`PurchasingCustomerBarcode`](#type-aliasespurchasingcustomerbarcodemd)\>
390
+
391
+ getPurchasingCustomerBarcode は顧客の会員証バーコード情報を返します。
392
+
393
+ ##### Returns
394
+
395
+ `Promise`\<`null` \| [`PurchasingCustomerBarcode`](#type-aliasespurchasingcustomerbarcodemd)\>
396
+
397
+ ***
398
+
387
399
  #### getPurchasingCustomerCurrentRank()
388
400
 
389
401
  > **getPurchasingCustomerCurrentRank**(): `Promise`\<`null` \| [`CustomerRank`](#type-aliasescustomerrankmd)\>
@@ -729,6 +741,7 @@ LocationType はロケーションの種別を表す
729
741
  - [ProductVariant](#type-aliasesproductvariantmd)
730
742
  - [ProductVariants](#type-aliasesproductvariantsmd)
731
743
  - [PurchasingCustomer](#type-aliasespurchasingcustomermd)
744
+ - [PurchasingCustomerBarcode](#type-aliasespurchasingcustomerbarcodemd)
732
745
  - [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
733
746
  - [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
734
747
  - [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
@@ -2066,6 +2079,33 @@ ProductVariants は商品のバリエーションの一覧を取得するため
2066
2079
  > **tenant**: [`Tenant`](#type-aliasestenantmd)
2067
2080
 
2068
2081
 
2082
+ <a name="type-aliasespurchasingcustomerbarcodemd"></a>
2083
+
2084
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
2085
+
2086
+ ***
2087
+
2088
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomerBarcode
2089
+
2090
+ ## Type Alias: PurchasingCustomerBarcode
2091
+
2092
+ > **PurchasingCustomerBarcode**: `object`
2093
+
2094
+ PurchasingCustomerBarcode は、顧客の会員証バーコード情報を表す。
2095
+
2096
+ ### Type declaration
2097
+
2098
+ #### barcode
2099
+
2100
+ > **barcode**: `string`
2101
+
2102
+ 顧客の会員証バーコード
2103
+
2104
+ #### id
2105
+
2106
+ > **id**: `string`
2107
+
2108
+
2069
2109
  <a name="type-aliasespurchasingcustomerdiscountmd"></a>
2070
2110
 
2071
2111
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -632,6 +632,17 @@ export declare type PurchasingCustomer = {
632
632
  tenant: Tenant;
633
633
  };
634
634
 
635
+ /**
636
+ * PurchasingCustomerBarcode は、顧客の会員証バーコード情報を表す。
637
+ */
638
+ export declare type PurchasingCustomerBarcode = {
639
+ id: string;
640
+ /**
641
+ * 顧客の会員証バーコード
642
+ */
643
+ barcode: string;
644
+ };
645
+
635
646
  /**
636
647
  * PurchasingCustomerDiscount は購入者の割引情報を表す。
637
648
  */
@@ -954,6 +965,10 @@ export declare class SDK {
954
965
  * getPurchasingCustomerSMS は顧客のSMS認証情報を返します。
955
966
  */
956
967
  getPurchasingCustomerSMS(): Promise<PurchasingCustomerSMS | null>;
968
+ /**
969
+ * getPurchasingCustomerBarcode は顧客の会員証バーコード情報を返します。
970
+ */
971
+ getPurchasingCustomerBarcode(): Promise<PurchasingCustomerBarcode | null>;
957
972
  /**
958
973
  * getPurchasingCustomerRetailOrders は顧客の店舗受取注文一覧を取得します。
959
974
  * @param first 取得する注文数の上限
@@ -385,10 +385,10 @@ function Re(e) {
385
385
  const t = e == null ? void 0 : e.kind;
386
386
  return typeof t == "string" && ct.has(t);
387
387
  }
388
- var V;
388
+ var U;
389
389
  (function(e) {
390
390
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
391
- })(V || (V = {}));
391
+ })(U || (U = {}));
392
392
  var Ce;
393
393
  (function(e) {
394
394
  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";
@@ -494,7 +494,7 @@ class mt {
494
494
  function ft(e) {
495
495
  return e === u.BANG || e === u.DOLLAR || e === u.AMP || e === u.PAREN_L || e === u.PAREN_R || e === u.DOT || e === u.SPREAD || e === u.COLON || e === u.EQUALS || e === u.AT || e === u.BRACKET_L || e === u.BRACKET_R || e === u.BRACE_L || e === u.PIPE || e === u.BRACE_R;
496
496
  }
497
- function G(e) {
497
+ function V(e) {
498
498
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
499
499
  }
500
500
  function oe(e, t) {
@@ -611,7 +611,7 @@ function gt(e, t) {
611
611
  throw x(
612
612
  e.source,
613
613
  r,
614
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : G(s) || oe(n, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
614
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : V(s) || oe(n, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
615
615
  );
616
616
  }
617
617
  return R(e, u.EOF, i, i);
@@ -623,7 +623,7 @@ function Ct(e, t) {
623
623
  const s = n.charCodeAt(r);
624
624
  if (s === 10 || s === 13)
625
625
  break;
626
- if (G(s))
626
+ if (V(s))
627
627
  ++r;
628
628
  else if (oe(n, r))
629
629
  r += 2;
@@ -701,7 +701,7 @@ function Et(e, t) {
701
701
  }
702
702
  if (c === 10 || c === 13)
703
703
  break;
704
- if (G(c))
704
+ if (V(c))
705
705
  ++r;
706
706
  else if (oe(n, r))
707
707
  r += 2;
@@ -723,7 +723,7 @@ function At(e, t) {
723
723
  for (; r < 12; ) {
724
724
  const s = n.charCodeAt(t + r++);
725
725
  if (s === 125) {
726
- if (r < 5 || !G(i))
726
+ if (r < 5 || !V(i))
727
727
  break;
728
728
  return {
729
729
  value: String.fromCodePoint(i),
@@ -744,7 +744,7 @@ function At(e, t) {
744
744
  }
745
745
  function vt(e, t) {
746
746
  const n = e.source.body, i = xe(n, t + 2);
747
- if (G(i))
747
+ if (V(i))
748
748
  return {
749
749
  value: String.fromCodePoint(i),
750
750
  size: 6
@@ -850,7 +850,7 @@ function It(e, t) {
850
850
  c += n.slice(a, s), l.push(c), m === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", a = s, r = s;
851
851
  continue;
852
852
  }
853
- if (G(m))
853
+ if (V(m))
854
854
  ++s;
855
855
  else if (oe(n, s))
856
856
  s += 2;
@@ -976,7 +976,7 @@ spurious results.`);
976
976
  return !1;
977
977
  }
978
978
  );
979
- class Ue {
979
+ class Ge {
980
980
  constructor(t, n = "GraphQL request", i = {
981
981
  line: 1,
982
982
  column: 1
@@ -994,9 +994,9 @@ class Ue {
994
994
  }
995
995
  }
996
996
  function _t(e) {
997
- return kt(e, Ue);
997
+ return kt(e, Ge);
998
998
  }
999
- function Ve(e, t) {
999
+ function Ue(e, t) {
1000
1000
  const n = new Lt(e, t), i = n.parseDocument();
1001
1001
  return Object.defineProperty(i, "tokenCount", {
1002
1002
  enumerable: !1,
@@ -1009,7 +1009,7 @@ class Lt {
1009
1009
  if (i)
1010
1010
  this._lexer = i;
1011
1011
  else {
1012
- const s = _t(t) ? t : new Ue(t);
1012
+ const s = _t(t) ? t : new Ge(t);
1013
1013
  this._lexer = new mt(s);
1014
1014
  }
1015
1015
  this._options = r, this._tokenCounter = 0;
@@ -1125,7 +1125,7 @@ class Lt {
1125
1125
  if (this.peek(u.BRACE_L))
1126
1126
  return this.node(t, {
1127
1127
  kind: h.OPERATION_DEFINITION,
1128
- operation: V.QUERY,
1128
+ operation: U.QUERY,
1129
1129
  description: void 0,
1130
1130
  name: void 0,
1131
1131
  variableDefinitions: [],
@@ -1151,11 +1151,11 @@ class Lt {
1151
1151
  const t = this.expectToken(u.NAME);
1152
1152
  switch (t.value) {
1153
1153
  case "query":
1154
- return V.QUERY;
1154
+ return U.QUERY;
1155
1155
  case "mutation":
1156
- return V.MUTATION;
1156
+ return U.MUTATION;
1157
1157
  case "subscription":
1158
- return V.SUBSCRIPTION;
1158
+ return U.SUBSCRIPTION;
1159
1159
  }
1160
1160
  throw this.unexpected(t);
1161
1161
  }
@@ -2053,7 +2053,7 @@ class Lt {
2053
2053
  throw x(
2054
2054
  this._lexer.source,
2055
2055
  n.start,
2056
- `Expected ${Ge(t)}, found ${K(n)}.`
2056
+ `Expected ${Ve(t)}, found ${K(n)}.`
2057
2057
  );
2058
2058
  }
2059
2059
  /**
@@ -2163,9 +2163,9 @@ class Lt {
2163
2163
  }
2164
2164
  function K(e) {
2165
2165
  const t = e.value;
2166
- return Ge(e.kind) + (t != null ? ` "${t}"` : "");
2166
+ return Ve(e.kind) + (t != null ? ` "${t}"` : "");
2167
2167
  }
2168
- function Ge(e) {
2168
+ function Ve(e) {
2169
2169
  return ft(e) ? `"${e}"` : e;
2170
2170
  }
2171
2171
  function wt(e) {
@@ -2342,10 +2342,10 @@ const Ft = [
2342
2342
  "\\u009E",
2343
2343
  "\\u009F"
2344
2344
  ], Bt = Object.freeze({});
2345
- function Ut(e, t, n = Le) {
2345
+ function Gt(e, t, n = Le) {
2346
2346
  const i = /* @__PURE__ */ new Map();
2347
2347
  for (const b of Object.values(h))
2348
- i.set(b, Vt(t, b));
2348
+ i.set(b, Ut(t, b));
2349
2349
  let r, s = Array.isArray(e), a = [e], c = -1, l = [], m = e, f, A;
2350
2350
  const C = [], S = [];
2351
2351
  do {
@@ -2406,7 +2406,7 @@ function Ut(e, t, n = Le) {
2406
2406
  } while (r !== void 0);
2407
2407
  return l.length !== 0 ? l[l.length - 1][1] : e;
2408
2408
  }
2409
- function Vt(e, t) {
2409
+ function Ut(e, t) {
2410
2410
  const n = e[t];
2411
2411
  return typeof n == "object" ? n : typeof n == "function" ? {
2412
2412
  enter: n,
@@ -2416,8 +2416,8 @@ function Vt(e, t) {
2416
2416
  leave: e.leave
2417
2417
  };
2418
2418
  }
2419
- function Gt(e) {
2420
- return Ut(e, jt);
2419
+ function Vt(e) {
2420
+ return Gt(e, jt);
2421
2421
  }
2422
2422
  const $t = 80, jt = {
2423
2423
  Name: {
@@ -2715,14 +2715,14 @@ const De = (e) => {
2715
2715
  if (typeof e == "string") {
2716
2716
  let n;
2717
2717
  try {
2718
- const i = Ve(e);
2718
+ const i = Ue(e);
2719
2719
  n = De(i);
2720
2720
  } catch {
2721
2721
  }
2722
2722
  return { query: e, operationName: n };
2723
2723
  }
2724
2724
  const t = De(e);
2725
- return { query: Gt(e), operationName: t };
2725
+ return { query: Vt(e), operationName: t };
2726
2726
  };
2727
2727
  class Y extends Error {
2728
2728
  constructor(t, n) {
@@ -3086,7 +3086,7 @@ var ie = Yt();
3086
3086
  const ne = /* @__PURE__ */ Ht(ie), Qt = /* @__PURE__ */ Ke({
3087
3087
  __proto__: null,
3088
3088
  default: ne
3089
- }, [ie]), U = (e) => {
3089
+ }, [ie]), G = (e) => {
3090
3090
  let t = {};
3091
3091
  return e && (typeof Headers < "u" && e instanceof Headers || Qt && ie.Headers && e instanceof ie.Headers ? t = We(e) : Array.isArray(e) ? e.forEach(([n, i]) => {
3092
3092
  n && i !== void 0 && (t[n] = i);
@@ -3136,8 +3136,8 @@ class Xt {
3136
3136
  query: c.query,
3137
3137
  variables: c.variables,
3138
3138
  headers: {
3139
- ...U(fe(l)),
3140
- ...U(c.requestHeaders)
3139
+ ...G(fe(l)),
3140
+ ...G(c.requestHeaders)
3141
3141
  },
3142
3142
  operationName: y,
3143
3143
  fetch: m,
@@ -3158,8 +3158,8 @@ class Xt {
3158
3158
  query: S,
3159
3159
  variables: s.variables,
3160
3160
  headers: {
3161
- ...U(fe(a)),
3162
- ...U(s.requestHeaders)
3161
+ ...G(fe(a)),
3162
+ ...G(s.requestHeaders)
3163
3163
  },
3164
3164
  operationName: I,
3165
3165
  fetch: c,
@@ -3181,8 +3181,8 @@ class Xt {
3181
3181
  // @ts-expect-error TODO reconcile batch variables into system.
3182
3182
  variables: c,
3183
3183
  headers: {
3184
- ...U(fe(r)),
3185
- ...U(i.requestHeaders)
3184
+ ...G(fe(r)),
3185
+ ...G(i.requestHeaders)
3186
3186
  },
3187
3187
  operationName: void 0,
3188
3188
  fetch: this.requestConfig.fetch ?? ne,
@@ -3285,7 +3285,7 @@ function tn(e) {
3285
3285
  function nn(e) {
3286
3286
  var t = je(e);
3287
3287
  if (!re.has(t)) {
3288
- var n = Ve(e, {
3288
+ var n = Ue(e, {
3289
3289
  experimentalFragmentVariables: ae,
3290
3290
  allowLegacyFragmentVariables: ae
3291
3291
  });
@@ -3582,13 +3582,20 @@ const un = T`
3582
3582
  }
3583
3583
  }
3584
3584
  `, Cn = T`
3585
+ query GetPurchasingCustomerBarcode {
3586
+ purchasingCustomer {
3587
+ id
3588
+ barcode
3589
+ }
3590
+ }
3591
+ `, yn = T`
3585
3592
  query GetSharingPurchasingCustomerCount {
3586
3593
  purchasingCustomer {
3587
3594
  id
3588
3595
  sharingPurchasingCustomerCount
3589
3596
  }
3590
3597
  }
3591
- `, yn = T`
3598
+ `, En = T`
3592
3599
  query GetPurchasingCustomerSharing {
3593
3600
  purchasingCustomer {
3594
3601
  id
@@ -3605,7 +3612,7 @@ const un = T`
3605
3612
  }
3606
3613
  }
3607
3614
  }
3608
- `, En = T`
3615
+ `, An = T`
3609
3616
  query GetProduct($id: String!, $first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: ProductVariantSortKeys! = CREATED_AT) {
3610
3617
  productByProductShopifyLegacyResourceID(productShopifyLegacyResourceID: $id) {
3611
3618
  id
@@ -3637,14 +3644,14 @@ const un = T`
3637
3644
  }
3638
3645
  }
3639
3646
  }
3640
- `, An = T`
3647
+ `, vn = T`
3641
3648
  query GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID($id: String!) {
3642
3649
  productByProductShopifyLegacyResourceID(productShopifyLegacyResourceID: $id) {
3643
3650
  id
3644
3651
  hasBackOrderProductVariants
3645
3652
  }
3646
3653
  }
3647
- `, vn = T`
3654
+ `, Tn = T`
3648
3655
  query GetPointCampaignOrderRuleTargetCustomerRank {
3649
3656
  pointCampaignOrderRuleTargetCustomerRank {
3650
3657
  pointCampaignOrderRule {
@@ -3657,7 +3664,7 @@ const un = T`
3657
3664
  fixedPoint
3658
3665
  }
3659
3666
  }
3660
- `, Tn = T`
3667
+ `, In = T`
3661
3668
  query GetEstimatedShopifyCartPoint($input: EstimatedShopifyCartPointInput!) {
3662
3669
  estimatedShopifyCartPoint(input: $input) {
3663
3670
  pointsEarning
@@ -3673,7 +3680,7 @@ const un = T`
3673
3680
  }
3674
3681
  }
3675
3682
  }
3676
- `, In = T`
3683
+ `, Pn = T`
3677
3684
  query GetEstimatedShopifyCartLineItemPoint($input: EstimatedShopifyCartLineItemPointInput!) {
3678
3685
  estimatedShopifyCartLineItemPoint(input: $input) {
3679
3686
  pointsEarning
@@ -3689,7 +3696,7 @@ const un = T`
3689
3696
  }
3690
3697
  }
3691
3698
  }
3692
- `, Pn = T`
3699
+ `, Sn = T`
3693
3700
  query GetPurchasingCustomerSMS {
3694
3701
  purchasingCustomer {
3695
3702
  id
@@ -3697,7 +3704,7 @@ const un = T`
3697
3704
  smsVerifiedPhone
3698
3705
  }
3699
3706
  }
3700
- `, Sn = T`
3707
+ `, On = T`
3701
3708
  mutation PurchasingCustomerSendCustomerSharingActivationCode {
3702
3709
  purchasingCustomerSendCustomerSharingActivationCode {
3703
3710
  purchasingCustomer {
@@ -3713,7 +3720,7 @@ const un = T`
3713
3720
  }
3714
3721
  }
3715
3722
  }
3716
- `, On = T`
3723
+ `, Rn = T`
3717
3724
  mutation PurchasingCustomerActivateCustomerSharing($email: String!, $activationCode: String!) {
3718
3725
  purchasingCustomerActivateCustomerSharing(
3719
3726
  input: {email: $email, activationCode: $activationCode}
@@ -3728,13 +3735,13 @@ const un = T`
3728
3735
  }
3729
3736
  }
3730
3737
  }
3731
- `, Rn = T`
3738
+ `, xn = T`
3732
3739
  query GetMiles {
3733
3740
  purchasingCustomer {
3734
3741
  miles
3735
3742
  }
3736
3743
  }
3737
- `, xn = T`
3744
+ `, Dn = T`
3738
3745
  query GetPurchasingCustomerMileChangeActivities($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: MileChangeActivitySortKey! = CREATED_AT) {
3739
3746
  purchasingCustomer {
3740
3747
  id
@@ -3763,7 +3770,7 @@ const un = T`
3763
3770
  }
3764
3771
  }
3765
3772
  }
3766
- `, Dn = T`
3773
+ `, Nn = T`
3767
3774
  query GetMileItems($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: ShopifyMileItemSortKey! = CREATED_AT) {
3768
3775
  mileItems(
3769
3776
  first: $first
@@ -3791,7 +3798,7 @@ const un = T`
3791
3798
  }
3792
3799
  }
3793
3800
  }
3794
- `, Nn = T`
3801
+ `, bn = T`
3795
3802
  query GetMileOrders($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: MileOrderSortKey! = CREATED_AT) {
3796
3803
  purchasingCustomer {
3797
3804
  id
@@ -3828,7 +3835,7 @@ const un = T`
3828
3835
  }
3829
3836
  }
3830
3837
  }
3831
- `, bn = T`
3838
+ `, kn = T`
3832
3839
  query GetPurchasingCustomerRetailOrders($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: RetailOrderSortKey! = CREATED_AT) {
3833
3840
  purchasingCustomer {
3834
3841
  retailOrders(
@@ -3898,7 +3905,7 @@ const un = T`
3898
3905
  }
3899
3906
  }
3900
3907
  }
3901
- `, kn = T`
3908
+ `, _n = T`
3902
3909
  mutation MileItemExchange($mileItemID: ID!) {
3903
3910
  mileItemExchange(input: {mileItemID: $mileItemID}) {
3904
3911
  mileOrder {
@@ -3921,7 +3928,7 @@ const un = T`
3921
3928
  }
3922
3929
  }
3923
3930
  }
3924
- `, _n = T`
3931
+ `, Ln = T`
3925
3932
  mutation PurchasingCustomerSendSMSVerificationCode($phone: String!) {
3926
3933
  purchasingCustomerSendSMSVerificationCode(input: {phone: $phone}) {
3927
3934
  purchasingCustomer {
@@ -3931,7 +3938,7 @@ const un = T`
3931
3938
  }
3932
3939
  }
3933
3940
  }
3934
- `, Ln = T`
3941
+ `, wn = T`
3935
3942
  mutation PurchasingCustomerVerifySMS($phone: String!, $verificationCode: String!) {
3936
3943
  purchasingCustomerVerifySMS(
3937
3944
  input: {phone: $phone, verificationCode: $verificationCode}
@@ -3943,7 +3950,7 @@ const un = T`
3943
3950
  }
3944
3951
  }
3945
3952
  }
3946
- `, wn = T`
3953
+ `, Mn = T`
3947
3954
  mutation DiscountUsageCreate($orderPriceAdjustmentRuleID: ID!) {
3948
3955
  shopifyOrderPriceAdjustmentUsageCreate(
3949
3956
  input: {orderPriceAdjustmentRuleID: $orderPriceAdjustmentRuleID}
@@ -3953,8 +3960,8 @@ const un = T`
3953
3960
  }
3954
3961
  }
3955
3962
  }
3956
- `, Mn = (e, t, n, i) => e();
3957
- function qn(e, t = Mn) {
3963
+ `, qn = (e, t, n, i) => e();
3964
+ function Fn(e, t = qn) {
3958
3965
  return {
3959
3966
  GetLocationAvailabilities(n, i, r) {
3960
3967
  return t((s) => e.request({ document: un, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetLocationAvailabilities", "query", n);
@@ -3983,70 +3990,73 @@ function qn(e, t = Mn) {
3983
3990
  GetPurchasingCustomerRank(n, i, r) {
3984
3991
  return t((s) => e.request({ document: gn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerRank", "query", n);
3985
3992
  },
3993
+ GetPurchasingCustomerBarcode(n, i, r) {
3994
+ return t((s) => e.request({ document: Cn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerBarcode", "query", n);
3995
+ },
3986
3996
  GetSharingPurchasingCustomerCount(n, i, r) {
3987
- return t((s) => e.request({ document: Cn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetSharingPurchasingCustomerCount", "query", n);
3997
+ return t((s) => e.request({ document: yn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetSharingPurchasingCustomerCount", "query", n);
3988
3998
  },
3989
3999
  GetPurchasingCustomerSharing(n, i, r) {
3990
- return t((s) => e.request({ document: yn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSharing", "query", n);
4000
+ return t((s) => e.request({ document: En, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSharing", "query", n);
3991
4001
  },
3992
4002
  GetProduct(n, i, r) {
3993
- return t((s) => e.request({ document: En, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetProduct", "query", n);
4003
+ return t((s) => e.request({ document: An, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetProduct", "query", n);
3994
4004
  },
3995
4005
  GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID(n, i, r) {
3996
- return t((s) => e.request({ document: An, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID", "query", n);
4006
+ return t((s) => e.request({ document: vn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID", "query", n);
3997
4007
  },
3998
4008
  GetPointCampaignOrderRuleTargetCustomerRank(n, i, r) {
3999
- return t((s) => e.request({ document: vn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPointCampaignOrderRuleTargetCustomerRank", "query", n);
4009
+ return t((s) => e.request({ document: Tn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPointCampaignOrderRuleTargetCustomerRank", "query", n);
4000
4010
  },
4001
4011
  GetEstimatedShopifyCartPoint(n, i, r) {
4002
- return t((s) => e.request({ document: Tn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartPoint", "query", n);
4012
+ return t((s) => e.request({ document: In, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartPoint", "query", n);
4003
4013
  },
4004
4014
  GetEstimatedShopifyCartLineItemPoint(n, i, r) {
4005
- return t((s) => e.request({ document: In, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartLineItemPoint", "query", n);
4015
+ return t((s) => e.request({ document: Pn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartLineItemPoint", "query", n);
4006
4016
  },
4007
4017
  GetPurchasingCustomerSMS(n, i, r) {
4008
- return t((s) => e.request({ document: Pn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSMS", "query", n);
4018
+ return t((s) => e.request({ document: Sn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSMS", "query", n);
4009
4019
  },
4010
4020
  PurchasingCustomerSendCustomerSharingActivationCode(n, i, r) {
4011
- return t((s) => e.request({ document: Sn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
4021
+ return t((s) => e.request({ document: On, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
4012
4022
  },
4013
4023
  PurchasingCustomerActivateCustomerSharing(n, i, r) {
4014
- return t((s) => e.request({ document: On, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
4024
+ return t((s) => e.request({ document: Rn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
4015
4025
  },
4016
4026
  GetMiles(n, i, r) {
4017
- return t((s) => e.request({ document: Rn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMiles", "query", n);
4027
+ return t((s) => e.request({ document: xn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMiles", "query", n);
4018
4028
  },
4019
4029
  GetPurchasingCustomerMileChangeActivities(n, i, r) {
4020
- return t((s) => e.request({ document: xn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerMileChangeActivities", "query", n);
4030
+ return t((s) => e.request({ document: Dn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerMileChangeActivities", "query", n);
4021
4031
  },
4022
4032
  GetMileItems(n, i, r) {
4023
- return t((s) => e.request({ document: Dn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileItems", "query", n);
4033
+ return t((s) => e.request({ document: Nn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileItems", "query", n);
4024
4034
  },
4025
4035
  GetMileOrders(n, i, r) {
4026
- return t((s) => e.request({ document: Nn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileOrders", "query", n);
4036
+ return t((s) => e.request({ document: bn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileOrders", "query", n);
4027
4037
  },
4028
4038
  GetPurchasingCustomerRetailOrders(n, i, r) {
4029
- return t((s) => e.request({ document: bn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerRetailOrders", "query", n);
4039
+ return t((s) => e.request({ document: kn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerRetailOrders", "query", n);
4030
4040
  },
4031
4041
  MileItemExchange(n, i, r) {
4032
- return t((s) => e.request({ document: kn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "MileItemExchange", "mutation", n);
4042
+ return t((s) => e.request({ document: _n, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "MileItemExchange", "mutation", n);
4033
4043
  },
4034
4044
  PurchasingCustomerSendSMSVerificationCode(n, i, r) {
4035
- return t((s) => e.request({ document: _n, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendSMSVerificationCode", "mutation", n);
4045
+ return t((s) => e.request({ document: Ln, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendSMSVerificationCode", "mutation", n);
4036
4046
  },
4037
4047
  PurchasingCustomerVerifySMS(n, i, r) {
4038
- return t((s) => e.request({ document: Ln, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerVerifySMS", "mutation", n);
4048
+ return t((s) => e.request({ document: wn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerVerifySMS", "mutation", n);
4039
4049
  },
4040
4050
  DiscountUsageCreate(n, i, r) {
4041
- return t((s) => e.request({ document: wn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "DiscountUsageCreate", "mutation", n);
4051
+ return t((s) => e.request({ document: Mn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "DiscountUsageCreate", "mutation", n);
4042
4052
  }
4043
4053
  };
4044
4054
  }
4045
- var Fn = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(Fn || {}), Bn = /* @__PURE__ */ ((e) => (e.Retail = "RETAIL", e.Warehouse = "WAREHOUSE", e))(Bn || {});
4055
+ var Bn = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(Bn || {}), Gn = /* @__PURE__ */ ((e) => (e.Retail = "RETAIL", e.Warehouse = "WAREHOUSE", e))(Gn || {});
4046
4056
  class Vn {
4047
4057
  constructor(t) {
4048
4058
  Pe(this, "api");
4049
- this.api = qn(
4059
+ this.api = Fn(
4050
4060
  new Xt(`${t}/apps/sq-api`, {
4051
4061
  headers: {
4052
4062
  "X-SQ-CLIENT": "ShopifyAppProxy"
@@ -4636,6 +4646,16 @@ class Vn {
4636
4646
  smsVerified: t.purchasingCustomer.smsVerified
4637
4647
  } : null;
4638
4648
  }
4649
+ /**
4650
+ * getPurchasingCustomerBarcode は顧客の会員証バーコード情報を返します。
4651
+ */
4652
+ async getPurchasingCustomerBarcode() {
4653
+ const t = await this.api.GetPurchasingCustomerBarcode();
4654
+ return t.purchasingCustomer ? {
4655
+ id: t.purchasingCustomer.id,
4656
+ barcode: t.purchasingCustomer.barcode
4657
+ } : null;
4658
+ }
4639
4659
  /**
4640
4660
  * getPurchasingCustomerRetailOrders は顧客の店舗受取注文一覧を取得します。
4641
4661
  * @param first 取得する注文数の上限
@@ -4787,7 +4807,7 @@ class Vn {
4787
4807
  }
4788
4808
  }
4789
4809
  export {
4790
- Fn as CurrencyCode,
4791
- Bn as LocationType,
4810
+ Bn as CurrencyCode,
4811
+ Gn as LocationType,
4792
4812
  Vn as SDK
4793
4813
  };