@builtbystack/sq-shopify-theme-sdk 0.0.32 → 0.0.34
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 +105 -1
- package/dist/sq-shopify-theme-sdk.d.ts +42 -1
- package/dist/sq-shopify-theme-sdk.js +1367 -1050
- package/dist/sq-shopify-theme-sdk.umd.js +103 -56
- package/package.json +27 -24
package/README.md
CHANGED
|
@@ -51,6 +51,24 @@ SDKは名前空間 `SQ` 内に存在するため、SDKの初期化は `new SQ.SD
|
|
|
51
51
|
|
|
52
52
|
### Methods
|
|
53
53
|
|
|
54
|
+
#### DiscountUsageCreate()
|
|
55
|
+
|
|
56
|
+
> **DiscountUsageCreate**(`orderPriceAdjustmentRuleID`): `Promise`\<`null` \| `object`\>
|
|
57
|
+
|
|
58
|
+
DiscountUsageCreate は指定した注文価格調整の利用履歴を作成します。
|
|
59
|
+
|
|
60
|
+
##### Parameters
|
|
61
|
+
|
|
62
|
+
• **orderPriceAdjustmentRuleID**: `string`
|
|
63
|
+
|
|
64
|
+
利用する注文価格調整ルールのID
|
|
65
|
+
|
|
66
|
+
##### Returns
|
|
67
|
+
|
|
68
|
+
`Promise`\<`null` \| `object`\>
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
54
72
|
#### getEstimatedShopifyCartLineItemPoint()
|
|
55
73
|
|
|
56
74
|
> **getEstimatedShopifyCartLineItemPoint**(`currencyCode`, `taxesIncluded`, `sku`, `quantity`, `unitPrice`): `Promise`\<`null` \| [`EstimatedPoint`](#type-aliasesestimatedpointmd)\>
|
|
@@ -439,6 +457,18 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
|
|
|
439
457
|
|
|
440
458
|
***
|
|
441
459
|
|
|
460
|
+
#### getPurchasingCustomerSMS()
|
|
461
|
+
|
|
462
|
+
> **getPurchasingCustomerSMS**(): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
463
|
+
|
|
464
|
+
getPurchasingCustomerSMS は顧客のSMS認証情報を返します。
|
|
465
|
+
|
|
466
|
+
##### Returns
|
|
467
|
+
|
|
468
|
+
`Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
469
|
+
|
|
470
|
+
***
|
|
471
|
+
|
|
442
472
|
#### getPurchasingCustomerSharing()
|
|
443
473
|
|
|
444
474
|
> **getPurchasingCustomerSharing**(): `Promise`\<`null` \| [`PurchasingCustomerSharing`](#type-aliasespurchasingcustomersharingmd)\>
|
|
@@ -485,7 +515,7 @@ mileItemExchange は指定したマイル商品を交換します。
|
|
|
485
515
|
|
|
486
516
|
> **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
|
|
487
517
|
|
|
488
|
-
purchasingCustomerActivateCustomerSharing
|
|
518
|
+
purchasingCustomerActivateCustomerSharing はアクティベーションコードを入力して顧客を有効化する。
|
|
489
519
|
|
|
490
520
|
##### Parameters
|
|
491
521
|
|
|
@@ -509,6 +539,46 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
|
|
|
509
539
|
|
|
510
540
|
`Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
|
|
511
541
|
|
|
542
|
+
***
|
|
543
|
+
|
|
544
|
+
#### purchasingCustomerSendSMSVerificationCode()
|
|
545
|
+
|
|
546
|
+
> **purchasingCustomerSendSMSVerificationCode**(`phone`): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
547
|
+
|
|
548
|
+
purchasingCustomerSendSMSVerificationCode は指定された電話番号に対して、SMS認証用コード(数字6桁)を送信します。
|
|
549
|
+
|
|
550
|
+
##### Parameters
|
|
551
|
+
|
|
552
|
+
• **phone**: `string`
|
|
553
|
+
|
|
554
|
+
SMS認証コードを送信する電話番号
|
|
555
|
+
|
|
556
|
+
##### Returns
|
|
557
|
+
|
|
558
|
+
`Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
559
|
+
|
|
560
|
+
***
|
|
561
|
+
|
|
562
|
+
#### purchasingCustomerVerifySMS()
|
|
563
|
+
|
|
564
|
+
> **purchasingCustomerVerifySMS**(`phone`, `verificationCode`): `Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
565
|
+
|
|
566
|
+
purchasingCustomerVerifySMS はSMS認証用コード(数字6桁)を指定して、SMS認証を行います。
|
|
567
|
+
|
|
568
|
+
##### Parameters
|
|
569
|
+
|
|
570
|
+
• **phone**: `string`
|
|
571
|
+
|
|
572
|
+
SMS認証コードを送信した電話番号
|
|
573
|
+
|
|
574
|
+
• **verificationCode**: `string`
|
|
575
|
+
|
|
576
|
+
SMS認証用コード
|
|
577
|
+
|
|
578
|
+
##### Returns
|
|
579
|
+
|
|
580
|
+
`Promise`\<`null` \| [`PurchasingCustomerSMS`](#type-aliasespurchasingcustomersmsmd)\>
|
|
581
|
+
|
|
512
582
|
# Enumerations
|
|
513
583
|
|
|
514
584
|
|
|
@@ -629,6 +699,7 @@ LocationType はロケーションの種別を表す
|
|
|
629
699
|
- [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
|
|
630
700
|
- [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
|
|
631
701
|
- [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
|
|
702
|
+
- [PurchasingCustomerSMS](#type-aliasespurchasingcustomersmsmd)
|
|
632
703
|
- [PurchasingCustomerSharing](#type-aliasespurchasingcustomersharingmd)
|
|
633
704
|
- [Tenant](#type-aliasestenantmd)
|
|
634
705
|
|
|
@@ -2065,6 +2136,39 @@ PurchasingCustomerMetafield は購入者のカスタムメタフィールドを
|
|
|
2065
2136
|
> **value**: `string`
|
|
2066
2137
|
|
|
2067
2138
|
|
|
2139
|
+
<a name="type-aliasespurchasingcustomersmsmd"></a>
|
|
2140
|
+
|
|
2141
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
2142
|
+
|
|
2143
|
+
***
|
|
2144
|
+
|
|
2145
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomerSMS
|
|
2146
|
+
|
|
2147
|
+
## Type Alias: PurchasingCustomerSMS
|
|
2148
|
+
|
|
2149
|
+
> **PurchasingCustomerSMS**: `object`
|
|
2150
|
+
|
|
2151
|
+
PurchasingCustomerSMS は、顧客のSMS認証情報を表す。
|
|
2152
|
+
|
|
2153
|
+
### Type declaration
|
|
2154
|
+
|
|
2155
|
+
#### id
|
|
2156
|
+
|
|
2157
|
+
> **id**: `string`
|
|
2158
|
+
|
|
2159
|
+
#### smsVerified
|
|
2160
|
+
|
|
2161
|
+
> **smsVerified**: `boolean`
|
|
2162
|
+
|
|
2163
|
+
この会員がSMS認証を行ったかどうかを表すフラグ
|
|
2164
|
+
|
|
2165
|
+
#### smsVerifiedPhone
|
|
2166
|
+
|
|
2167
|
+
> **smsVerifiedPhone**: `string`
|
|
2168
|
+
|
|
2169
|
+
この会員がSMS認証を行った電話番号
|
|
2170
|
+
|
|
2171
|
+
|
|
2068
2172
|
<a name="type-aliasespurchasingcustomersharingmd"></a>
|
|
2069
2173
|
|
|
2070
2174
|
[**@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,38 @@ 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>;
|
|
830
|
+
/**
|
|
831
|
+
* DiscountUsageCreate は指定した注文価格調整の利用履歴を作成します。
|
|
832
|
+
*
|
|
833
|
+
* @param {string} orderPriceAdjustmentRuleID 利用する注文価格調整ルールのID
|
|
834
|
+
*/
|
|
835
|
+
DiscountUsageCreate(orderPriceAdjustmentRuleID: string): Promise<{
|
|
836
|
+
__typename?: "OrderPriceAdjustmentRule";
|
|
837
|
+
id: string;
|
|
838
|
+
} | null>;
|
|
798
839
|
}
|
|
799
840
|
|
|
800
841
|
declare enum ShopifyMileItemSortKey {
|