@builtbystack/sq-shopify-theme-sdk 0.0.12 → 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 +52 -0
- package/dist/sq-shopify-theme-sdk.d.ts +14 -0
- package/dist/sq-shopify-theme-sdk.js +307 -258
- package/dist/sq-shopify-theme-sdk.umd.js +52 -30
- package/package.json +1 -1
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`
|
|
@@ -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 }
|
|
@@ -350,6 +356,14 @@ export declare class SDK {
|
|
|
350
356
|
* getPurchasingCustomerDiscountCodeCount は顧客に紐付くDiscountCodeの数を返します。
|
|
351
357
|
*/
|
|
352
358
|
getPurchasingCustomerDiscountCodeCount(): Promise<number>;
|
|
359
|
+
/**
|
|
360
|
+
* getSharingPurchasingCustomerCount は顧客が共有化している数を返します。
|
|
361
|
+
*/
|
|
362
|
+
getSharingPurchasingCustomerCount(): Promise<number>;
|
|
363
|
+
/**
|
|
364
|
+
* purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信する。
|
|
365
|
+
*/
|
|
366
|
+
purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
|
|
353
367
|
}
|
|
354
368
|
|
|
355
369
|
export { }
|