@builtbystack/sq-shopify-theme-sdk 0.0.18 → 0.0.19
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 +138 -0
- package/dist/sq-shopify-theme-sdk.d.ts +40 -0
- package/dist/sq-shopify-theme-sdk.js +259 -192
- package/dist/sq-shopify-theme-sdk.umd.js +59 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -165,6 +165,28 @@ getPoints は、現在の保有ポイントと、獲得予定ポイントを返
|
|
|
165
165
|
|
|
166
166
|
***
|
|
167
167
|
|
|
168
|
+
#### getProduct()
|
|
169
|
+
|
|
170
|
+
> **getProduct**(`id`, `first`?, `after`?, `isReverse`?, `sortKeys`?): `Promise`\<`null` \| [`Product`](#type-aliasesproductmd)\>
|
|
171
|
+
|
|
172
|
+
##### Parameters
|
|
173
|
+
|
|
174
|
+
• **id**: `string`
|
|
175
|
+
|
|
176
|
+
• **first?**: `number`
|
|
177
|
+
|
|
178
|
+
• **after?**: `string`
|
|
179
|
+
|
|
180
|
+
• **isReverse?**: `boolean`
|
|
181
|
+
|
|
182
|
+
• **sortKeys?**: `ProductVariantSortKeys`
|
|
183
|
+
|
|
184
|
+
##### Returns
|
|
185
|
+
|
|
186
|
+
`Promise`\<`null` \| [`Product`](#type-aliasesproductmd)\>
|
|
187
|
+
|
|
188
|
+
***
|
|
189
|
+
|
|
168
190
|
#### getPurchasingCustomerCurrentRank()
|
|
169
191
|
|
|
170
192
|
> **getPurchasingCustomerCurrentRank**(): `Promise`\<`null` \| [`CustomerRank`](#type-aliasescustomerrankmd)\>
|
|
@@ -311,6 +333,7 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
|
|
|
311
333
|
- [CustomerRankCalculationPeriod](#type-aliasescustomerrankcalculationperiodmd)
|
|
312
334
|
- [CustomerRankRule](#type-aliasescustomerrankrulemd)
|
|
313
335
|
- [CustomerSharingActivationCode](#type-aliasescustomersharingactivationcodemd)
|
|
336
|
+
- [InventoryItem](#type-aliasesinventoryitemmd)
|
|
314
337
|
- [Location](#type-aliaseslocationmd)
|
|
315
338
|
- [LocationAvailabilities](#type-aliaseslocationavailabilitiesmd)
|
|
316
339
|
- [LocationAvailability](#type-aliaseslocationavailabilitymd)
|
|
@@ -321,6 +344,9 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
|
|
|
321
344
|
- [PointChangeActivity](#type-aliasespointchangeactivitymd)
|
|
322
345
|
- [PointMultiplierCustomerRankRule](#type-aliasespointmultipliercustomerrankrulemd)
|
|
323
346
|
- [Points](#type-aliasespointsmd)
|
|
347
|
+
- [Product](#type-aliasesproductmd)
|
|
348
|
+
- [ProductVariant](#type-aliasesproductvariantmd)
|
|
349
|
+
- [ProductVariants](#type-aliasesproductvariantsmd)
|
|
324
350
|
- [PurchasingCustomer](#type-aliasespurchasingcustomermd)
|
|
325
351
|
- [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
|
|
326
352
|
- [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
|
|
@@ -573,6 +599,31 @@ CustomerRankRule は会員ランクのルールを表す。
|
|
|
573
599
|
> **purchasingCustomer**: [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)
|
|
574
600
|
|
|
575
601
|
|
|
602
|
+
<a name="type-aliasesinventoryitemmd"></a>
|
|
603
|
+
|
|
604
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
605
|
+
|
|
606
|
+
***
|
|
607
|
+
|
|
608
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / InventoryItem
|
|
609
|
+
|
|
610
|
+
## Type Alias: InventoryItem
|
|
611
|
+
|
|
612
|
+
> **InventoryItem**: `object`
|
|
613
|
+
|
|
614
|
+
InventoryItem は在庫情報を表す。
|
|
615
|
+
|
|
616
|
+
### Type declaration
|
|
617
|
+
|
|
618
|
+
#### id
|
|
619
|
+
|
|
620
|
+
> **id**: `string`
|
|
621
|
+
|
|
622
|
+
#### sku
|
|
623
|
+
|
|
624
|
+
> **sku**: `string`
|
|
625
|
+
|
|
626
|
+
|
|
576
627
|
<a name="type-aliaseslocationmd"></a>
|
|
577
628
|
|
|
578
629
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -915,6 +966,93 @@ PointsApproved は保有ポイントを表す。
|
|
|
915
966
|
PointsPending は獲得予定ポイントを表す。
|
|
916
967
|
|
|
917
968
|
|
|
969
|
+
<a name="type-aliasesproductmd"></a>
|
|
970
|
+
|
|
971
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
972
|
+
|
|
973
|
+
***
|
|
974
|
+
|
|
975
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / Product
|
|
976
|
+
|
|
977
|
+
## Type Alias: Product
|
|
978
|
+
|
|
979
|
+
> **Product**: `object`
|
|
980
|
+
|
|
981
|
+
Product は商品情報を表す。
|
|
982
|
+
|
|
983
|
+
### Type declaration
|
|
984
|
+
|
|
985
|
+
#### id
|
|
986
|
+
|
|
987
|
+
> **id**: `string`
|
|
988
|
+
|
|
989
|
+
#### title
|
|
990
|
+
|
|
991
|
+
> **title**: `string`
|
|
992
|
+
|
|
993
|
+
#### variants
|
|
994
|
+
|
|
995
|
+
> **variants**: [`ProductVariants`](#type-aliasesproductvariantsmd)
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
<a name="type-aliasesproductvariantmd"></a>
|
|
999
|
+
|
|
1000
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
1001
|
+
|
|
1002
|
+
***
|
|
1003
|
+
|
|
1004
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / ProductVariant
|
|
1005
|
+
|
|
1006
|
+
## Type Alias: ProductVariant
|
|
1007
|
+
|
|
1008
|
+
> **ProductVariant**: `object`
|
|
1009
|
+
|
|
1010
|
+
ProductVariant は商品のバリエーションを表す。
|
|
1011
|
+
|
|
1012
|
+
### Type declaration
|
|
1013
|
+
|
|
1014
|
+
#### id
|
|
1015
|
+
|
|
1016
|
+
> **id**: `string`
|
|
1017
|
+
|
|
1018
|
+
#### inventoryItem
|
|
1019
|
+
|
|
1020
|
+
> **inventoryItem**: [`InventoryItem`](#type-aliasesinventoryitemmd)
|
|
1021
|
+
|
|
1022
|
+
#### isBackOrderEnable
|
|
1023
|
+
|
|
1024
|
+
> **isBackOrderEnable**: `boolean`
|
|
1025
|
+
|
|
1026
|
+
#### title
|
|
1027
|
+
|
|
1028
|
+
> **title**: `string`
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
<a name="type-aliasesproductvariantsmd"></a>
|
|
1032
|
+
|
|
1033
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
1034
|
+
|
|
1035
|
+
***
|
|
1036
|
+
|
|
1037
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / ProductVariants
|
|
1038
|
+
|
|
1039
|
+
## Type Alias: ProductVariants
|
|
1040
|
+
|
|
1041
|
+
> **ProductVariants**: `object`
|
|
1042
|
+
|
|
1043
|
+
ProductVariants は商品のバリエーションの一覧を取得するための情報を表す。
|
|
1044
|
+
|
|
1045
|
+
### Type declaration
|
|
1046
|
+
|
|
1047
|
+
#### nodes
|
|
1048
|
+
|
|
1049
|
+
> **nodes**: [`ProductVariant`](#type-aliasesproductvariantmd)[]
|
|
1050
|
+
|
|
1051
|
+
#### pageInfo
|
|
1052
|
+
|
|
1053
|
+
> **pageInfo**: [`PageInfo`](#type-aliasespageinfomd)
|
|
1054
|
+
|
|
1055
|
+
|
|
918
1056
|
<a name="type-aliasespurchasingcustomermd"></a>
|
|
919
1057
|
|
|
920
1058
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -104,6 +104,14 @@ export declare type CustomerSharingActivationCode = {
|
|
|
104
104
|
customerSharingActivationCodeID: string;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* InventoryItem は在庫情報を表す。
|
|
109
|
+
*/
|
|
110
|
+
export declare type InventoryItem = {
|
|
111
|
+
id: string;
|
|
112
|
+
sku: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
107
115
|
/**
|
|
108
116
|
* Location は ShopifyIntegration に紐付いている Location を表す。
|
|
109
117
|
*/
|
|
@@ -252,6 +260,37 @@ export declare type Points = {
|
|
|
252
260
|
pointsPending: number;
|
|
253
261
|
};
|
|
254
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Product は商品情報を表す。
|
|
265
|
+
*/
|
|
266
|
+
export declare type Product = {
|
|
267
|
+
id: string;
|
|
268
|
+
title: string;
|
|
269
|
+
variants: ProductVariants;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* ProductVariant は商品のバリエーションを表す。
|
|
274
|
+
*/
|
|
275
|
+
export declare type ProductVariant = {
|
|
276
|
+
id: string;
|
|
277
|
+
title: string;
|
|
278
|
+
isBackOrderEnable: boolean;
|
|
279
|
+
inventoryItem: InventoryItem;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* ProductVariants は商品のバリエーションの一覧を取得するための情報を表す。
|
|
284
|
+
*/
|
|
285
|
+
export declare type ProductVariants = {
|
|
286
|
+
nodes: ProductVariant[];
|
|
287
|
+
pageInfo: PageInfo;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
declare enum ProductVariantSortKeys {
|
|
291
|
+
CreatedAt = "CREATED_AT"
|
|
292
|
+
}
|
|
293
|
+
|
|
255
294
|
export declare type PurchasingCustomer = {
|
|
256
295
|
id: string;
|
|
257
296
|
sharingPurchasingCustomerCount: number;
|
|
@@ -380,6 +419,7 @@ export declare class SDK {
|
|
|
380
419
|
* getPurchasingCustomerSharing は共有化している顧客情報を返します。
|
|
381
420
|
*/
|
|
382
421
|
getPurchasingCustomerSharing(): Promise<PurchasingCustomerSharing | null>;
|
|
422
|
+
getProduct(id: string, first?: number, after?: string, isReverse?: boolean, sortKeys?: ProductVariantSortKeys): Promise<Product | null>;
|
|
383
423
|
/**
|
|
384
424
|
* purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
|
|
385
425
|
*/
|