@builtbystack/sq-shopify-theme-sdk 0.0.12 → 0.0.15

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,48 @@ 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
+ #### purchasingCustomerActivateCustomerSharing()
254
+
255
+ > **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
256
+
257
+ purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
258
+
259
+ ##### Parameters
260
+
261
+ • **email**: `string`
262
+
263
+ • **activationCode**: `string`
264
+
265
+ ##### Returns
266
+
267
+ `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
268
+
269
+ ***
270
+
271
+ #### purchasingCustomerSendCustomerSharingActivationCode()
272
+
273
+ > **purchasingCustomerSendCustomerSharingActivationCode**(): `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
274
+
275
+ purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
276
+
277
+ ##### Returns
278
+
279
+ `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
280
+
239
281
 
240
282
  <a name="globalsmd"></a>
241
283
 
@@ -256,6 +298,7 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
256
298
  - [CustomerRankCalculationCondition](#type-aliasescustomerrankcalculationconditionmd)
257
299
  - [CustomerRankCalculationPeriod](#type-aliasescustomerrankcalculationperiodmd)
258
300
  - [CustomerRankRule](#type-aliasescustomerrankrulemd)
301
+ - [CustomerSharingActivationCode](#type-aliasescustomersharingactivationcodemd)
259
302
  - [Location](#type-aliaseslocationmd)
260
303
  - [LocationAvailabilities](#type-aliaseslocationavailabilitiesmd)
261
304
  - [LocationAvailability](#type-aliaseslocationavailabilitymd)
@@ -266,6 +309,7 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
266
309
  - [PointChangeActivity](#type-aliasespointchangeactivitymd)
267
310
  - [PointMultiplierCustomerRankRule](#type-aliasespointmultipliercustomerrankrulemd)
268
311
  - [Points](#type-aliasespointsmd)
312
+ - [PurchasingCustomer](#type-aliasespurchasingcustomermd)
269
313
  - [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
270
314
  - [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
271
315
  - [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
@@ -492,6 +536,29 @@ CustomerRankRule は会員ランクのルールを表す。
492
536
  この会員ランクへのランクアップに必要な値。会員ランクの算出方法によりthresholdが指す値は異なり、獲得ポイントと購入金額のどちらかになる。
493
537
 
494
538
 
539
+ <a name="type-aliasescustomersharingactivationcodemd"></a>
540
+
541
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
542
+
543
+ ***
544
+
545
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / CustomerSharingActivationCode
546
+
547
+ ## Type Alias: CustomerSharingActivationCode
548
+
549
+ > **CustomerSharingActivationCode**: `object`
550
+
551
+ ### Type declaration
552
+
553
+ #### customerSharingActivationCodeID
554
+
555
+ > **customerSharingActivationCodeID**: `string`
556
+
557
+ #### purchasingCustomer
558
+
559
+ > **purchasingCustomer**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)
560
+
561
+
495
562
  <a name="type-aliaseslocationmd"></a>
496
563
 
497
564
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -516,6 +583,10 @@ Location は ShopifyIntegration に紐付いている Location を表す。
516
583
 
517
584
  > **id**: `string`
518
585
 
586
+ #### mapURL?
587
+
588
+ > `optional` **mapURL**: `string`
589
+
519
590
  #### name
520
591
 
521
592
  > **name**: `string`
@@ -820,6 +891,29 @@ PointsApproved は保有ポイントを表す。
820
891
  PointsPending は獲得予定ポイントを表す。
821
892
 
822
893
 
894
+ <a name="type-aliasespurchasingcustomermd"></a>
895
+
896
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
897
+
898
+ ***
899
+
900
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomer
901
+
902
+ ## Type Alias: PurchasingCustomer
903
+
904
+ > **PurchasingCustomer**: `object`
905
+
906
+ ### Type declaration
907
+
908
+ #### id
909
+
910
+ > **id**: `string`
911
+
912
+ #### sharingPurchasingCustomerCount
913
+
914
+ > **sharingPurchasingCustomerCount**: `number`
915
+
916
+
823
917
  <a name="type-aliasespurchasingcustomerdiscountmd"></a>
824
918
 
825
919
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -99,6 +99,11 @@ export declare type CustomerRankRule = {
99
99
  threshold: number;
100
100
  };
101
101
 
102
+ export declare type CustomerSharingActivationCode = {
103
+ purchasingCustomer: PurchasingCustomer;
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 }
@@ -241,6 +247,11 @@ export declare type Points = {
241
247
  pointsPending: number;
242
248
  };
243
249
 
250
+ export declare type PurchasingCustomer = {
251
+ id: string;
252
+ sharingPurchasingCustomerCount: number;
253
+ };
254
+
244
255
  /**
245
256
  * PurchasingCustomerDiscount は購入者の割引情報を表す。
246
257
  */
@@ -350,6 +361,18 @@ export declare class SDK {
350
361
  * getPurchasingCustomerDiscountCodeCount は顧客に紐付くDiscountCodeの数を返します。
351
362
  */
352
363
  getPurchasingCustomerDiscountCodeCount(): Promise<number>;
364
+ /**
365
+ * getSharingPurchasingCustomerCount は顧客が共有化している数を返します。
366
+ */
367
+ getSharingPurchasingCustomerCount(): Promise<number>;
368
+ /**
369
+ * purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
370
+ */
371
+ purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
372
+ /**
373
+ * purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
374
+ */
375
+ purchasingCustomerActivateCustomerSharing(email: string, activationCode: string): Promise<PurchasingCustomer | null>;
353
376
  }
354
377
 
355
378
  export { }