@builtbystack/sq-shopify-theme-sdk 0.0.11 → 0.0.14

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
@@ -236,6 +236,30 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
236
236
 
237
237
  `Promise`\<`null` \| [`PurchasingCustomerMetafield`](#type-aliasespurchasingcustomermetafieldmd)\>
238
238
 
239
+ ***
240
+
241
+ #### getSharingPurchasingCustomerCount()
242
+
243
+ > **getSharingPurchasingCustomerCount**(): `Promise`\<`number`\>
244
+
245
+ getSharingPurchasingCustomerCount は顧客が共有化している数を返します。
246
+
247
+ ##### Returns
248
+
249
+ `Promise`\<`number`\>
250
+
251
+ ***
252
+
253
+ #### purchasingCustomerSendCustomerSharingActivationCode()
254
+
255
+ > **purchasingCustomerSendCustomerSharingActivationCode**(): `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
256
+
257
+ purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
258
+
259
+ ##### Returns
260
+
261
+ `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
262
+
239
263
 
240
264
  <a name="globalsmd"></a>
241
265
 
@@ -256,6 +280,7 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
256
280
  - [CustomerRankCalculationCondition](#type-aliasescustomerrankcalculationconditionmd)
257
281
  - [CustomerRankCalculationPeriod](#type-aliasescustomerrankcalculationperiodmd)
258
282
  - [CustomerRankRule](#type-aliasescustomerrankrulemd)
283
+ - [CustomerSharingActivationCode](#type-aliasescustomersharingactivationcodemd)
259
284
  - [Location](#type-aliaseslocationmd)
260
285
  - [LocationAvailabilities](#type-aliaseslocationavailabilitiesmd)
261
286
  - [LocationAvailability](#type-aliaseslocationavailabilitymd)
@@ -492,6 +517,29 @@ CustomerRankRule は会員ランクのルールを表す。
492
517
  この会員ランクへのランクアップに必要な値。会員ランクの算出方法によりthresholdが指す値は異なり、獲得ポイントと購入金額のどちらかになる。
493
518
 
494
519
 
520
+ <a name="type-aliasescustomersharingactivationcodemd"></a>
521
+
522
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
523
+
524
+ ***
525
+
526
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / CustomerSharingActivationCode
527
+
528
+ ## Type Alias: CustomerSharingActivationCode
529
+
530
+ > **CustomerSharingActivationCode**: `object`
531
+
532
+ ### Type declaration
533
+
534
+ #### customerSharingActivationCodeID
535
+
536
+ > **customerSharingActivationCodeID**: `string`
537
+
538
+ #### purchasingCustomerID
539
+
540
+ > **purchasingCustomerID**: `string`
541
+
542
+
495
543
  <a name="type-aliaseslocationmd"></a>
496
544
 
497
545
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -516,6 +564,10 @@ Location は ShopifyIntegration に紐付いている Location を表す。
516
564
 
517
565
  > **id**: `string`
518
566
 
567
+ #### mapURL?
568
+
569
+ > `optional` **mapURL**: `string`
570
+
519
571
  #### name
520
572
 
521
573
  > **name**: `string`
@@ -836,6 +888,10 @@ PurchasingCustomerDiscount は購入者の割引情報を表す。
836
888
 
837
889
  ### Type declaration
838
890
 
891
+ #### applicableLocationCount
892
+
893
+ > **applicableLocationCount**: `number`
894
+
839
895
  #### code
840
896
 
841
897
  > **code**: `string`
@@ -858,10 +914,18 @@ Discountがこの顧客で有効かどうかを表す。
858
914
 
859
915
  > **endsAt**: `Date`
860
916
 
917
+ #### hasApplicableLocations
918
+
919
+ > **hasApplicableLocations**: `boolean`
920
+
861
921
  #### id
862
922
 
863
923
  > **id**: `string`
864
924
 
925
+ #### shopifyStoreApplicable
926
+
927
+ > **shopifyStoreApplicable**: `boolean`
928
+
865
929
  #### startsAt
866
930
 
867
931
  > **startsAt**: `Date`
@@ -99,6 +99,11 @@ export declare type CustomerRankRule = {
99
99
  threshold: number;
100
100
  };
101
101
 
102
+ export declare type CustomerSharingActivationCode = {
103
+ purchasingCustomerID: string;
104
+ customerSharingActivationCodeID: string;
105
+ };
106
+
102
107
  /**
103
108
  * Location は ShopifyIntegration に紐付いている Location を表す。
104
109
  */
@@ -106,6 +111,7 @@ declare type Location_2 = {
106
111
  id: string;
107
112
  name: string;
108
113
  phone: string;
114
+ mapURL?: string;
109
115
  address?: Address;
110
116
  };
111
117
  export { Location_2 as Location }
@@ -257,6 +263,9 @@ export declare type PurchasingCustomerDiscount = {
257
263
  * Discountがこの顧客で有効かどうかを表す。
258
264
  */
259
265
  customerApplicable: boolean;
266
+ shopifyStoreApplicable: boolean;
267
+ applicableLocationCount: number;
268
+ hasApplicableLocations: boolean;
260
269
  startsAt: Date;
261
270
  endsAt: Date;
262
271
  createdAt: Date;
@@ -324,6 +333,7 @@ export declare class SDK {
324
333
  /**
325
334
  * getPurchasingCustomerDiscounts は購入者の割引情報を返します。
326
335
  *
336
+ * @param {string} [retailLocationID] 取得したい割引情報が適用されているLocationのID。
327
337
  * @param {number} [first] 取得してくる個数。デフォルトは250。
328
338
  * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
329
339
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
@@ -346,6 +356,14 @@ export declare class SDK {
346
356
  * getPurchasingCustomerDiscountCodeCount は顧客に紐付くDiscountCodeの数を返します。
347
357
  */
348
358
  getPurchasingCustomerDiscountCodeCount(): Promise<number>;
359
+ /**
360
+ * getSharingPurchasingCustomerCount は顧客が共有化している数を返します。
361
+ */
362
+ getSharingPurchasingCustomerCount(): Promise<number>;
363
+ /**
364
+ * purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
365
+ */
366
+ purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
349
367
  }
350
368
 
351
369
  export { }