@builtbystack/sq-shopify-theme-sdk 0.0.14 → 0.0.16
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 +121 -3
- package/dist/sq-shopify-theme-sdk.d.ts +34 -2
- package/dist/sq-shopify-theme-sdk.js +801 -701
- package/dist/sq-shopify-theme-sdk.umd.js +80 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -238,6 +238,18 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
|
|
|
238
238
|
|
|
239
239
|
***
|
|
240
240
|
|
|
241
|
+
#### getPurchasingCustomerSharing()
|
|
242
|
+
|
|
243
|
+
> **getPurchasingCustomerSharing**(): `Promise`\<`null` \| [`PurchasingCustomerSharing`](#type-aliasespurchasingcustomersharingmd)\>
|
|
244
|
+
|
|
245
|
+
getPurchasingCustomerSharing は共有化している顧客情報を返します。
|
|
246
|
+
|
|
247
|
+
##### Returns
|
|
248
|
+
|
|
249
|
+
`Promise`\<`null` \| [`PurchasingCustomerSharing`](#type-aliasespurchasingcustomersharingmd)\>
|
|
250
|
+
|
|
251
|
+
***
|
|
252
|
+
|
|
241
253
|
#### getSharingPurchasingCustomerCount()
|
|
242
254
|
|
|
243
255
|
> **getSharingPurchasingCustomerCount**(): `Promise`\<`number`\>
|
|
@@ -250,11 +262,29 @@ getSharingPurchasingCustomerCount は顧客が共有化している数を返し
|
|
|
250
262
|
|
|
251
263
|
***
|
|
252
264
|
|
|
265
|
+
#### purchasingCustomerActivateCustomerSharing()
|
|
266
|
+
|
|
267
|
+
> **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
|
|
268
|
+
|
|
269
|
+
purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
|
|
270
|
+
|
|
271
|
+
##### Parameters
|
|
272
|
+
|
|
273
|
+
• **email**: `string`
|
|
274
|
+
|
|
275
|
+
• **activationCode**: `string`
|
|
276
|
+
|
|
277
|
+
##### Returns
|
|
278
|
+
|
|
279
|
+
`Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
|
|
280
|
+
|
|
281
|
+
***
|
|
282
|
+
|
|
253
283
|
#### purchasingCustomerSendCustomerSharingActivationCode()
|
|
254
284
|
|
|
255
285
|
> **purchasingCustomerSendCustomerSharingActivationCode**(): `Promise`\<`null` \| [`CustomerSharingActivationCode`](#type-aliasescustomersharingactivationcodemd)\>
|
|
256
286
|
|
|
257
|
-
purchasingCustomerSendCustomerSharingActivationCode
|
|
287
|
+
purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
|
|
258
288
|
|
|
259
289
|
##### Returns
|
|
260
290
|
|
|
@@ -291,9 +321,12 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
|
|
|
291
321
|
- [PointChangeActivity](#type-aliasespointchangeactivitymd)
|
|
292
322
|
- [PointMultiplierCustomerRankRule](#type-aliasespointmultipliercustomerrankrulemd)
|
|
293
323
|
- [Points](#type-aliasespointsmd)
|
|
324
|
+
- [PurchasingCustomer](#type-aliasespurchasingcustomermd)
|
|
294
325
|
- [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
|
|
295
326
|
- [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
|
|
296
327
|
- [PurchasingCustomerMetafield](#type-aliasespurchasingcustomermetafieldmd)
|
|
328
|
+
- [PurchasingCustomerSharing](#type-aliasespurchasingcustomersharingmd)
|
|
329
|
+
- [Tenant](#type-aliasestenantmd)
|
|
297
330
|
|
|
298
331
|
# Type Aliases
|
|
299
332
|
|
|
@@ -535,9 +568,9 @@ CustomerRankRule は会員ランクのルールを表す。
|
|
|
535
568
|
|
|
536
569
|
> **customerSharingActivationCodeID**: `string`
|
|
537
570
|
|
|
538
|
-
####
|
|
571
|
+
#### purchasingCustomer
|
|
539
572
|
|
|
540
|
-
> **
|
|
573
|
+
> **purchasingCustomer**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)
|
|
541
574
|
|
|
542
575
|
|
|
543
576
|
<a name="type-aliaseslocationmd"></a>
|
|
@@ -755,6 +788,12 @@ PointChangeのコミットタイムスタンプ
|
|
|
755
788
|
|
|
756
789
|
ポイントの発生日時
|
|
757
790
|
|
|
791
|
+
#### tenant
|
|
792
|
+
|
|
793
|
+
> **tenant**: [`Tenant`](#type-aliasestenantmd)
|
|
794
|
+
|
|
795
|
+
ポイントに紐づくテナント情報
|
|
796
|
+
|
|
758
797
|
|
|
759
798
|
<a name="type-aliasespointchangeactivitiesmd"></a>
|
|
760
799
|
|
|
@@ -809,6 +848,10 @@ PointChangeActivity はポイントの変動の履歴を表す。
|
|
|
809
848
|
|
|
810
849
|
> `optional` **retailLocation**: [`Location`](#type-aliaseslocationmd)
|
|
811
850
|
|
|
851
|
+
#### tenant
|
|
852
|
+
|
|
853
|
+
> **tenant**: [`Tenant`](#type-aliasestenantmd)
|
|
854
|
+
|
|
812
855
|
#### title
|
|
813
856
|
|
|
814
857
|
> **title**: `string`
|
|
@@ -872,6 +915,33 @@ PointsApproved は保有ポイントを表す。
|
|
|
872
915
|
PointsPending は獲得予定ポイントを表す。
|
|
873
916
|
|
|
874
917
|
|
|
918
|
+
<a name="type-aliasespurchasingcustomermd"></a>
|
|
919
|
+
|
|
920
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
921
|
+
|
|
922
|
+
***
|
|
923
|
+
|
|
924
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomer
|
|
925
|
+
|
|
926
|
+
## Type Alias: PurchasingCustomer
|
|
927
|
+
|
|
928
|
+
> **PurchasingCustomer**: `object`
|
|
929
|
+
|
|
930
|
+
### Type declaration
|
|
931
|
+
|
|
932
|
+
#### id
|
|
933
|
+
|
|
934
|
+
> **id**: `string`
|
|
935
|
+
|
|
936
|
+
#### sharingPurchasingCustomerCount
|
|
937
|
+
|
|
938
|
+
> **sharingPurchasingCustomerCount**: `number`
|
|
939
|
+
|
|
940
|
+
#### tenant
|
|
941
|
+
|
|
942
|
+
> **tenant**: [`Tenant`](#type-aliasestenantmd)
|
|
943
|
+
|
|
944
|
+
|
|
875
945
|
<a name="type-aliasespurchasingcustomerdiscountmd"></a>
|
|
876
946
|
|
|
877
947
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -1005,3 +1075,51 @@ PurchasingCustomerMetafield は購入者のカスタムメタフィールドを
|
|
|
1005
1075
|
#### value
|
|
1006
1076
|
|
|
1007
1077
|
> **value**: `string`
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
<a name="type-aliasespurchasingcustomersharingmd"></a>
|
|
1081
|
+
|
|
1082
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
1083
|
+
|
|
1084
|
+
***
|
|
1085
|
+
|
|
1086
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PurchasingCustomerSharing
|
|
1087
|
+
|
|
1088
|
+
## Type Alias: PurchasingCustomerSharing
|
|
1089
|
+
|
|
1090
|
+
> **PurchasingCustomerSharing**: `object`
|
|
1091
|
+
|
|
1092
|
+
### Type declaration
|
|
1093
|
+
|
|
1094
|
+
#### id
|
|
1095
|
+
|
|
1096
|
+
> **id**: `string`
|
|
1097
|
+
|
|
1098
|
+
#### purchasingCustomers
|
|
1099
|
+
|
|
1100
|
+
> **purchasingCustomers**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)[]
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<a name="type-aliasestenantmd"></a>
|
|
1104
|
+
|
|
1105
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
1106
|
+
|
|
1107
|
+
***
|
|
1108
|
+
|
|
1109
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / Tenant
|
|
1110
|
+
|
|
1111
|
+
## Type Alias: Tenant
|
|
1112
|
+
|
|
1113
|
+
> **Tenant**: `object`
|
|
1114
|
+
|
|
1115
|
+
Tenant はテナント情報を表す。
|
|
1116
|
+
|
|
1117
|
+
### Type declaration
|
|
1118
|
+
|
|
1119
|
+
#### id
|
|
1120
|
+
|
|
1121
|
+
> **id**: `string`
|
|
1122
|
+
|
|
1123
|
+
#### name
|
|
1124
|
+
|
|
1125
|
+
> **name**: `string`
|
|
@@ -100,7 +100,7 @@ export declare type CustomerRankRule = {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
export declare type CustomerSharingActivationCode = {
|
|
103
|
-
|
|
103
|
+
purchasingCustomer: PurchasingCustomer;
|
|
104
104
|
customerSharingActivationCodeID: string;
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -195,6 +195,10 @@ export declare type PointChange = {
|
|
|
195
195
|
* ポイントの発生日時
|
|
196
196
|
*/
|
|
197
197
|
pointChangeCreatedAt: Date;
|
|
198
|
+
/**
|
|
199
|
+
* ポイントに紐づくテナント情報
|
|
200
|
+
*/
|
|
201
|
+
tenant: Tenant;
|
|
198
202
|
/**
|
|
199
203
|
* PointChangeのコミットタイムスタンプ
|
|
200
204
|
*/
|
|
@@ -217,6 +221,7 @@ export declare type PointChangeActivity = {
|
|
|
217
221
|
title: string;
|
|
218
222
|
pointChange: PointChange;
|
|
219
223
|
retailLocation?: Location_2;
|
|
224
|
+
tenant: Tenant;
|
|
220
225
|
};
|
|
221
226
|
|
|
222
227
|
declare enum PointChangeActivitySortKey {
|
|
@@ -247,6 +252,12 @@ export declare type Points = {
|
|
|
247
252
|
pointsPending: number;
|
|
248
253
|
};
|
|
249
254
|
|
|
255
|
+
export declare type PurchasingCustomer = {
|
|
256
|
+
id: string;
|
|
257
|
+
sharingPurchasingCustomerCount: number;
|
|
258
|
+
tenant: Tenant;
|
|
259
|
+
};
|
|
260
|
+
|
|
250
261
|
/**
|
|
251
262
|
* PurchasingCustomerDiscount は購入者の割引情報を表す。
|
|
252
263
|
*/
|
|
@@ -291,6 +302,11 @@ export declare type PurchasingCustomerMetafield = {
|
|
|
291
302
|
value: string;
|
|
292
303
|
};
|
|
293
304
|
|
|
305
|
+
export declare type PurchasingCustomerSharing = {
|
|
306
|
+
id: string;
|
|
307
|
+
purchasingCustomers: PurchasingCustomer[];
|
|
308
|
+
};
|
|
309
|
+
|
|
294
310
|
export declare class SDK {
|
|
295
311
|
private api;
|
|
296
312
|
constructor(apiURL: string);
|
|
@@ -361,9 +377,25 @@ export declare class SDK {
|
|
|
361
377
|
*/
|
|
362
378
|
getSharingPurchasingCustomerCount(): Promise<number>;
|
|
363
379
|
/**
|
|
364
|
-
*
|
|
380
|
+
* getPurchasingCustomerSharing は共有化している顧客情報を返します。
|
|
381
|
+
*/
|
|
382
|
+
getPurchasingCustomerSharing(): Promise<PurchasingCustomerSharing | null>;
|
|
383
|
+
/**
|
|
384
|
+
* purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
|
|
365
385
|
*/
|
|
366
386
|
purchasingCustomerSendCustomerSharingActivationCode(): Promise<CustomerSharingActivationCode | null>;
|
|
387
|
+
/**
|
|
388
|
+
* purchasingCustomerActivateCustomerSharing はクティベーションコードを入力して顧客を有効化する。
|
|
389
|
+
*/
|
|
390
|
+
purchasingCustomerActivateCustomerSharing(email: string, activationCode: string): Promise<PurchasingCustomer | null>;
|
|
367
391
|
}
|
|
368
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Tenant はテナント情報を表す。
|
|
395
|
+
*/
|
|
396
|
+
export declare type Tenant = {
|
|
397
|
+
id: string;
|
|
398
|
+
name: string;
|
|
399
|
+
};
|
|
400
|
+
|
|
369
401
|
export { }
|