@builtbystack/sq-shopify-theme-sdk 0.0.32 → 0.0.33

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
@@ -439,6 +439,18 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
439
439
 
440
440
  ***
441
441
 
442
+ #### getPurchasingCustomerSMS()
443
+
444
+ > **getPurchasingCustomerSMS**(): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
445
+
446
+ getPurchasingCustomerSMS は顧客のSMS認証情報を返します。
447
+
448
+ ##### Returns
449
+
450
+ `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
451
+
452
+ ***
453
+
442
454
  #### getPurchasingCustomerSharing()
443
455
 
444
456
  > **getPurchasingCustomerSharing**(): `Promise`\<`null` \| [`PurchasingCustomerSharing`](#type-aliasespurchasingcustomersharingmd)\>
@@ -485,7 +497,7 @@ mileItemExchange は指定したマイル商品を交換します。
485
497
 
486
498
  > **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
487
499
 
488
- purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
500
+ purchasingCustomerActivateCustomerSharing はアクティベーションコードを入力して顧客を有効化する。
489
501
 
490
502
  ##### Parameters
491
503
 
@@ -509,6 +521,46 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
509
521
 
510
522
  `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
511
523
 
524
+ ***
525
+
526
+ #### purchasingCustomerSendSMSVerificationCode()
527
+
528
+ > **purchasingCustomerSendSMSVerificationCode**(`phone`): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
529
+
530
+ purchasingCustomerSendSMSVerificationCode は指定された電話番号に対して、SMS認証用コード(数字6桁)を送信します。
531
+
532
+ ##### Parameters
533
+
534
+ • **phone**: `string`
535
+
536
+ SMS認証コードを送信する電話番号
537
+
538
+ ##### Returns
539
+
540
+ `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
541
+
542
+ ***
543
+
544
+ #### purchasingCustomerVerifySMS()
545
+
546
+ > **purchasingCustomerVerifySMS**(`phone`, `verificationCode`): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
547
+
548
+ purchasingCustomerVerifySMS はSMS認証用コード(数字6桁)を指定して、SMS認証を行います。
549
+
550
+ ##### Parameters
551
+
552
+ • **phone**: `string`
553
+
554
+ SMS認証コードを送信した電話番号
555
+
556
+ • **verificationCode**: `string`
557
+
558
+ SMS認証用コード
559
+
560
+ ##### Returns
561
+
562
+ `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
563
+
512
564
  # Enumerations
513
565
 
514
566
 
@@ -629,6 +681,7 @@ LocationType はロケーションの種別を表す
629
681
  - [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
630
682
  - [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
631
683
  - [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
684
+ - [PurchasingCustomerSMS](#type-aliasespurchasingcustomersmsmd)
632
685
  - [PurchasingCustomerSharing](#type-aliasespurchasingcustomersharingmd)
633
686
  - [Tenant](#type-aliasestenantmd)
634
687
 
@@ -2065,6 +2118,39 @@ PurchasingCustomerMetafield は購入者のカスタムメタフィールドを
2065
2118
  > **value**: `string`
2066
2119
 
2067
2120
 
2121
+ <a name="type-aliasespurchasingcustomersmsmd"></a>
2122
+
2123
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
2124
+
2125
+ ***
2126
+
2127
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomerSMS
2128
+
2129
+ ## Type Alias: PurchasingCustomerSMS
2130
+
2131
+ > **PurchasingCustomerSMS**: `object`
2132
+
2133
+ PurchasingCustomerSMS は、顧客のSMS認証情報を表す。
2134
+
2135
+ ### Type declaration
2136
+
2137
+ #### id
2138
+
2139
+ > **id**: `string`
2140
+
2141
+ #### smsVerified
2142
+
2143
+ > **smsVerified**: `boolean`
2144
+
2145
+ この会員がSMS認証を行ったかどうかを表すフラグ
2146
+
2147
+ #### smsVerifiedPhone
2148
+
2149
+ > **smsVerifiedPhone**: `string`
2150
+
2151
+ この会員がSMS認証を行った電話番号
2152
+
2153
+
2068
2154
  <a name="type-aliasespurchasingcustomersharingmd"></a>
2069
2155
 
2070
2156
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -667,6 +667,21 @@ export declare type PurchasingCustomerSharing = {
667
667
  purchasingCustomers: PurchasingCustomer[];
668
668
  };
669
669
 
670
+ /**
671
+ * PurchasingCustomerSMS は、顧客のSMS認証情報を表す。
672
+ */
673
+ export declare type PurchasingCustomerSMS = {
674
+ id: string;
675
+ /**
676
+ * この会員がSMS認証を行ったかどうかを表すフラグ
677
+ */
678
+ smsVerified: boolean;
679
+ /**
680
+ * この会員がSMS認証を行った電話番号
681
+ */
682
+ smsVerifiedPhone: string;
683
+ };
684
+
670
685
  export declare class SDK {
671
686
  private api;
672
687
  constructor(apiURL: string);
@@ -755,7 +770,7 @@ export declare class SDK {
755
770
  */
756
771
  purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
757
772
  /**
758
- * purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
773
+ * purchasingCustomerActivateCustomerSharing はアクティベーションコードを入力して顧客を有効化する。
759
774
  */
760
775
  purchasingCustomerActivateCustomerSharing(email: string, activationCode: string): Promise<PurchasingCustomer | null>;
761
776
  /**
@@ -789,12 +804,29 @@ export declare class SDK {
789
804
  * @param {MileOrderSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
790
805
  */
791
806
  getMileOrders(first?: number, after?: string, isReverse?: boolean, sortKeys?: MileOrderSortKey): Promise<MileOrders | null>;
807
+ /**
808
+ * getPurchasingCustomerSMS は顧客のSMS認証情報を返します。
809
+ */
810
+ getPurchasingCustomerSMS(): Promise<PurchasingCustomerSMS | null>;
792
811
  /**
793
812
  * mileItemExchange は指定したマイル商品を交換します。
794
813
  *
795
814
  * @param {mileItemID} mileItemID 交換したいマイル商品のID。
796
815
  */
797
816
  mileItemExchange(mileItemID: string): Promise<MileOrder | null>;
817
+ /**
818
+ * purchasingCustomerSendSMSVerificationCode は指定された電話番号に対して、SMS認証用コード(数字6桁)を送信します。
819
+ *
820
+ * @param {string} phone SMS認証コードを送信する電話番号
821
+ */
822
+ purchasingCustomerSendSMSVerificationCode(phone: string): Promise<PurchasingCustomerSMS | null>;
823
+ /**
824
+ * purchasingCustomerVerifySMS はSMS認証用コード(数字6桁)を指定して、SMS認証を行います。
825
+ *
826
+ * @param {string} phone SMS認証コードを送信した電話番号
827
+ * @param {string} verificationCode SMS認証用コード
828
+ */
829
+ purchasingCustomerVerifySMS(phone: string, verificationCode: string): Promise<PurchasingCustomerSMS | null>;
798
830
  }
799
831
 
800
832
  declare enum ShopifyMileItemSortKey {