@builtbystack/sq-shopify-theme-sdk 0.0.31 → 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 +94 -2
- package/dist/sq-shopify-theme-sdk.d.ts +38 -2
- package/dist/sq-shopify-theme-sdk.js +347 -259
- package/dist/sq-shopify-theme-sdk.umd.js +83 -51
- package/package.json +1 -1
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
|
|
|
@@ -1386,6 +1439,12 @@ MileItems はマイル商品の一覧を取得するための情報を表す。
|
|
|
1386
1439
|
|
|
1387
1440
|
オブジェクトのID
|
|
1388
1441
|
|
|
1442
|
+
#### isCancelled
|
|
1443
|
+
|
|
1444
|
+
> **isCancelled**: `boolean`
|
|
1445
|
+
|
|
1446
|
+
Shopifyマイル交換履歴をキャンセルしたかどうか
|
|
1447
|
+
|
|
1389
1448
|
#### mileItem
|
|
1390
1449
|
|
|
1391
1450
|
> **mileItem**: [`MileItem`](#type-aliasesmileitemmd)
|
|
@@ -1552,7 +1611,7 @@ PointCampaignOrderRuleTargetCustomerRank は会員ランク種別のポイント
|
|
|
1552
1611
|
|
|
1553
1612
|
> `optional` **fixedPoint**: `string`
|
|
1554
1613
|
|
|
1555
|
-
|
|
1614
|
+
顧客に適用されるキャンペーン固定ポイント
|
|
1556
1615
|
以下の場合はnullを返す
|
|
1557
1616
|
- 該当キャンペーンが存在しない場合
|
|
1558
1617
|
- 未ログイン状態の場合
|
|
@@ -2059,6 +2118,39 @@ PurchasingCustomerMetafield は購入者のカスタムメタフィールドを
|
|
|
2059
2118
|
> **value**: `string`
|
|
2060
2119
|
|
|
2061
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
|
+
|
|
2062
2154
|
<a name="type-aliasespurchasingcustomersharingmd"></a>
|
|
2063
2155
|
|
|
2064
2156
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -356,6 +356,10 @@ export declare type MileOrder = {
|
|
|
356
356
|
* 交換日時
|
|
357
357
|
*/
|
|
358
358
|
exchangedAt: Date;
|
|
359
|
+
/**
|
|
360
|
+
* Shopifyマイル交換履歴をキャンセルしたかどうか
|
|
361
|
+
*/
|
|
362
|
+
isCancelled: boolean;
|
|
359
363
|
};
|
|
360
364
|
|
|
361
365
|
/**
|
|
@@ -440,7 +444,7 @@ export declare type PointCampaignOrderRuleTargetCustomerRank = {
|
|
|
440
444
|
*/
|
|
441
445
|
multiplier?: string;
|
|
442
446
|
/**
|
|
443
|
-
*
|
|
447
|
+
* 顧客に適用されるキャンペーン固定ポイント
|
|
444
448
|
* 以下の場合はnullを返す
|
|
445
449
|
* - 該当キャンペーンが存在しない場合
|
|
446
450
|
* - 未ログイン状態の場合
|
|
@@ -663,6 +667,21 @@ export declare type PurchasingCustomerSharing = {
|
|
|
663
667
|
purchasingCustomers: PurchasingCustomer[];
|
|
664
668
|
};
|
|
665
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
|
+
|
|
666
685
|
export declare class SDK {
|
|
667
686
|
private api;
|
|
668
687
|
constructor(apiURL: string);
|
|
@@ -751,7 +770,7 @@ export declare class SDK {
|
|
|
751
770
|
*/
|
|
752
771
|
purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
|
|
753
772
|
/**
|
|
754
|
-
* purchasingCustomerActivateCustomerSharing
|
|
773
|
+
* purchasingCustomerActivateCustomerSharing はアクティベーションコードを入力して顧客を有効化する。
|
|
755
774
|
*/
|
|
756
775
|
purchasingCustomerActivateCustomerSharing(email: string, activationCode: string): Promise<PurchasingCustomer | null>;
|
|
757
776
|
/**
|
|
@@ -785,12 +804,29 @@ export declare class SDK {
|
|
|
785
804
|
* @param {MileOrderSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
|
|
786
805
|
*/
|
|
787
806
|
getMileOrders(first?: number, after?: string, isReverse?: boolean, sortKeys?: MileOrderSortKey): Promise<MileOrders | null>;
|
|
807
|
+
/**
|
|
808
|
+
* getPurchasingCustomerSMS は顧客のSMS認証情報を返します。
|
|
809
|
+
*/
|
|
810
|
+
getPurchasingCustomerSMS(): Promise<PurchasingCustomerSMS | null>;
|
|
788
811
|
/**
|
|
789
812
|
* mileItemExchange は指定したマイル商品を交換します。
|
|
790
813
|
*
|
|
791
814
|
* @param {mileItemID} mileItemID 交換したいマイル商品のID。
|
|
792
815
|
*/
|
|
793
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>;
|
|
794
830
|
}
|
|
795
831
|
|
|
796
832
|
declare enum ShopifyMileItemSortKey {
|