@builtbystack/sq-shopify-theme-sdk 0.0.6 → 0.0.8
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.doc.md +1 -1
- package/README.md +98 -8
- package/dist/sq-shopify-theme-sdk.d.ts +28 -6
- package/dist/sq-shopify-theme-sdk.js +864 -735
- package/dist/sq-shopify-theme-sdk.umd.js +84 -33
- package/package.json +1 -1
package/README.doc.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
# @builtbystack/sq-shopify-theme-sdk
|
|
9
9
|
|
|
10
|
-
以下のScript
|
|
10
|
+
以下のScriptタグで読み込んでください。
|
|
11
11
|
|
|
12
12
|
`@x.x.x` で指定されているバージョンは適宜最新のものを利用してください。
|
|
13
13
|
|
|
@@ -239,6 +239,7 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
|
|
|
239
239
|
|
|
240
240
|
## Type Aliases
|
|
241
241
|
|
|
242
|
+
- [Address](#type-aliasesaddressmd)
|
|
242
243
|
- [CustomerRank](#type-aliasescustomerrankmd)
|
|
243
244
|
- [CustomerRankCalculationCondition](#type-aliasescustomerrankcalculationconditionmd)
|
|
244
245
|
- [CustomerRankCalculationPeriod](#type-aliasescustomerrankcalculationperiodmd)
|
|
@@ -251,6 +252,7 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
|
|
|
251
252
|
- [PointChange](#type-aliasespointchangemd)
|
|
252
253
|
- [PointChangeActivities](#type-aliasespointchangeactivitiesmd)
|
|
253
254
|
- [PointChangeActivity](#type-aliasespointchangeactivitymd)
|
|
255
|
+
- [PointMultiplierCustomerRankRule](#type-aliasespointmultipliercustomerrankrulemd)
|
|
254
256
|
- [Points](#type-aliasespointsmd)
|
|
255
257
|
- [PurchasingCustomerDiscount](#type-aliasespurchasingcustomerdiscountmd)
|
|
256
258
|
- [PurchasingCustomerDiscounts](#type-aliasespurchasingcustomerdiscountsmd)
|
|
@@ -259,6 +261,59 @@ getPurchasingCustomerMetafield は渡されたnamespaceとkeyに一致する現
|
|
|
259
261
|
# Type Aliases
|
|
260
262
|
|
|
261
263
|
|
|
264
|
+
<a name="type-aliasesaddressmd"></a>
|
|
265
|
+
|
|
266
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
267
|
+
|
|
268
|
+
***
|
|
269
|
+
|
|
270
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / Address
|
|
271
|
+
|
|
272
|
+
## Type Alias: Address
|
|
273
|
+
|
|
274
|
+
> **Address**: `object`
|
|
275
|
+
|
|
276
|
+
Address はLocationの住所を表す。
|
|
277
|
+
|
|
278
|
+
### Type declaration
|
|
279
|
+
|
|
280
|
+
#### address1
|
|
281
|
+
|
|
282
|
+
> **address1**: `string`
|
|
283
|
+
|
|
284
|
+
#### address2
|
|
285
|
+
|
|
286
|
+
> **address2**: `string`
|
|
287
|
+
|
|
288
|
+
#### city
|
|
289
|
+
|
|
290
|
+
> **city**: `string`
|
|
291
|
+
|
|
292
|
+
#### country
|
|
293
|
+
|
|
294
|
+
> **country**: `string`
|
|
295
|
+
|
|
296
|
+
#### countryCode
|
|
297
|
+
|
|
298
|
+
> **countryCode**: `string`
|
|
299
|
+
|
|
300
|
+
#### id
|
|
301
|
+
|
|
302
|
+
> **id**: `string`
|
|
303
|
+
|
|
304
|
+
#### postalCode
|
|
305
|
+
|
|
306
|
+
> **postalCode**: `string`
|
|
307
|
+
|
|
308
|
+
#### province
|
|
309
|
+
|
|
310
|
+
> **province**: `string`
|
|
311
|
+
|
|
312
|
+
#### provinceCode
|
|
313
|
+
|
|
314
|
+
> **provinceCode**: `string`
|
|
315
|
+
|
|
316
|
+
|
|
262
317
|
<a name="type-aliasescustomerrankmd"></a>
|
|
263
318
|
|
|
264
319
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -299,6 +354,10 @@ CustomerRank は会員ランクを表す。
|
|
|
299
354
|
|
|
300
355
|
> **name**: `string`
|
|
301
356
|
|
|
357
|
+
#### pointMultiplier?
|
|
358
|
+
|
|
359
|
+
> `optional` **pointMultiplier**: [`PointMultiplierCustomerRankRule`](#type-aliasespointmultipliercustomerrankrulemd)
|
|
360
|
+
|
|
302
361
|
#### purchasePriceToRankUp
|
|
303
362
|
|
|
304
363
|
> **purchasePriceToRankUp**: `number`
|
|
@@ -407,6 +466,10 @@ Location は ShopifyIntegration に紐付いている Location を表す。
|
|
|
407
466
|
|
|
408
467
|
### Type declaration
|
|
409
468
|
|
|
469
|
+
#### address?
|
|
470
|
+
|
|
471
|
+
> `optional` **address**: [`Address`](#type-aliasesaddressmd)
|
|
472
|
+
|
|
410
473
|
#### id
|
|
411
474
|
|
|
412
475
|
> **id**: `string`
|
|
@@ -415,6 +478,10 @@ Location は ShopifyIntegration に紐付いている Location を表す。
|
|
|
415
478
|
|
|
416
479
|
> **name**: `string`
|
|
417
480
|
|
|
481
|
+
#### phone
|
|
482
|
+
|
|
483
|
+
> **phone**: `string`
|
|
484
|
+
|
|
418
485
|
|
|
419
486
|
<a name="type-aliaseslocationavailabilitiesmd"></a>
|
|
420
487
|
|
|
@@ -465,16 +532,10 @@ inventoryQuantity は在庫数を表す。
|
|
|
465
532
|
|
|
466
533
|
#### location
|
|
467
534
|
|
|
468
|
-
> **location**: `
|
|
535
|
+
> **location**: [`Location`](#type-aliaseslocationmd)
|
|
469
536
|
|
|
470
537
|
location は在庫のLocationを表す。
|
|
471
538
|
|
|
472
|
-
#### location.name
|
|
473
|
-
|
|
474
|
-
> **name**: `string`
|
|
475
|
-
|
|
476
|
-
name はLocationの名前を表す。
|
|
477
|
-
|
|
478
539
|
|
|
479
540
|
<a name="type-aliaseslocationsmd"></a>
|
|
480
541
|
|
|
@@ -640,6 +701,35 @@ PointChangeActivity はポイントの変動の履歴を表す。
|
|
|
640
701
|
> **title**: `string`
|
|
641
702
|
|
|
642
703
|
|
|
704
|
+
<a name="type-aliasespointmultipliercustomerrankrulemd"></a>
|
|
705
|
+
|
|
706
|
+
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
707
|
+
|
|
708
|
+
***
|
|
709
|
+
|
|
710
|
+
[@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PointMultiplierCustomerRankRule
|
|
711
|
+
|
|
712
|
+
## Type Alias: PointMultiplierCustomerRankRule
|
|
713
|
+
|
|
714
|
+
> **PointMultiplierCustomerRankRule**: `object`
|
|
715
|
+
|
|
716
|
+
PointMultiplierCustomerRankRule はこの会員ランクの注文時ポイント倍率を表す。
|
|
717
|
+
|
|
718
|
+
### Type declaration
|
|
719
|
+
|
|
720
|
+
#### customerRankRule
|
|
721
|
+
|
|
722
|
+
> **customerRankRule**: [`CustomerRankRule`](#type-aliasescustomerrankrulemd)
|
|
723
|
+
|
|
724
|
+
#### id
|
|
725
|
+
|
|
726
|
+
> **id**: `string`
|
|
727
|
+
|
|
728
|
+
#### multiplier
|
|
729
|
+
|
|
730
|
+
> **multiplier**: `string`
|
|
731
|
+
|
|
732
|
+
|
|
643
733
|
<a name="type-aliasespointsmd"></a>
|
|
644
734
|
|
|
645
735
|
[**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Address はLocationの住所を表す。
|
|
3
|
+
*/
|
|
4
|
+
export declare type Address = {
|
|
5
|
+
id: string;
|
|
6
|
+
countryCode: string;
|
|
7
|
+
country: string;
|
|
8
|
+
postalCode: string;
|
|
9
|
+
provinceCode: string;
|
|
10
|
+
province: string;
|
|
11
|
+
city: string;
|
|
12
|
+
address1: string;
|
|
13
|
+
address2: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* CustomerRank は会員ランクを表す。
|
|
3
18
|
*/
|
|
@@ -10,6 +25,7 @@ export declare type CustomerRank = {
|
|
|
10
25
|
lowerRank?: CustomerRankRule;
|
|
11
26
|
purchasePriceToRankUp: number;
|
|
12
27
|
threshold: number;
|
|
28
|
+
pointMultiplier?: PointMultiplierCustomerRankRule;
|
|
13
29
|
};
|
|
14
30
|
|
|
15
31
|
/**
|
|
@@ -44,6 +60,8 @@ export declare type CustomerRankRule = {
|
|
|
44
60
|
declare type Location_2 = {
|
|
45
61
|
id: string;
|
|
46
62
|
name: string;
|
|
63
|
+
phone: string;
|
|
64
|
+
address?: Address;
|
|
47
65
|
};
|
|
48
66
|
export { Location_2 as Location }
|
|
49
67
|
|
|
@@ -62,12 +80,7 @@ export declare type LocationAvailability = {
|
|
|
62
80
|
/**
|
|
63
81
|
* location は在庫のLocationを表す。
|
|
64
82
|
*/
|
|
65
|
-
location:
|
|
66
|
-
/**
|
|
67
|
-
* name はLocationの名前を表す。
|
|
68
|
-
*/
|
|
69
|
-
name: string;
|
|
70
|
-
};
|
|
83
|
+
location: Location_2;
|
|
71
84
|
/**
|
|
72
85
|
* inventoryQuantity は在庫数を表す。
|
|
73
86
|
*/
|
|
@@ -140,6 +153,15 @@ declare enum PointChangeActivitySortKey {
|
|
|
140
153
|
PointChangeCreatedAt = "POINT_CHANGE_CREATED_AT"
|
|
141
154
|
}
|
|
142
155
|
|
|
156
|
+
/**
|
|
157
|
+
* PointMultiplierCustomerRankRule はこの会員ランクの注文時ポイント倍率を表す。
|
|
158
|
+
*/
|
|
159
|
+
export declare type PointMultiplierCustomerRankRule = {
|
|
160
|
+
id: string;
|
|
161
|
+
customerRankRule: CustomerRankRule;
|
|
162
|
+
multiplier: string;
|
|
163
|
+
};
|
|
164
|
+
|
|
143
165
|
/**
|
|
144
166
|
* Points は SDK から取得できるポイントの情報を表す。
|
|
145
167
|
*/
|