@builtbystack/sq-shopify-theme-sdk 0.0.20 → 0.0.23

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 CHANGED
@@ -105,12 +105,20 @@ getLocationAvailability は渡されたSKUとLocationIDにおける在庫情報
105
105
 
106
106
  #### getLocations()
107
107
 
108
- > **getLocations**(`first`?, `after`?, `isReverse`?): `Promise`\<[`Locations`](#type-aliaseslocationsmd)\>
108
+ > **getLocations**(`tag`?, `provinceCodes`?, `first`?, `after`?, `isReverse`?): `Promise`\<[`Locations`](#type-aliaseslocationsmd)\>
109
109
 
110
110
  getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。
111
111
 
112
112
  ##### Parameters
113
113
 
114
+ • **tag?**: `string`
115
+
116
+ 取得したいLocationのタグ。
117
+
118
+ • **provinceCodes?**: `string`[]
119
+
120
+ 取得したいLocationの都道府県コード。
121
+
114
122
  • **first?**: `number`
115
123
 
116
124
  取得してくる個数。デフォルトは250。
@@ -129,6 +137,16 @@ getLocations は ShopifyIntegration に紐づく LocationGroup の Location の
129
137
 
130
138
  ***
131
139
 
140
+ #### getPointCampaignOrderRuleTargetCustomerRank()
141
+
142
+ > **getPointCampaignOrderRuleTargetCustomerRank**(): `Promise`\<`null` \| [`PointCampaignOrderRuleTargetCustomerRank`](#type-aliasespointcampaignorderruletargetcustomerrankmd)\>
143
+
144
+ ##### Returns
145
+
146
+ `Promise`\<`null` \| [`PointCampaignOrderRuleTargetCustomerRank`](#type-aliasespointcampaignorderruletargetcustomerrankmd)\>
147
+
148
+ ***
149
+
132
150
  #### getPointChangeActivities()
133
151
 
134
152
  > **getPointChangeActivities**(`first`?, `after`?, `isReverse`?, `sortKeys`?): `Promise`\<`null` \| [`PointChangeActivities`](#type-aliasespointchangeactivitiesmd)\>
@@ -346,6 +364,8 @@ purchasingCustomerSendCustomerSharingActivationCode はログインしている
346
364
  - [LocationAvailability](#type-aliaseslocationavailabilitymd)
347
365
  - [Locations](#type-aliaseslocationsmd)
348
366
  - [PageInfo](#type-aliasespageinfomd)
367
+ - [PointCampaignOrderRule](#type-aliasespointcampaignorderrulemd)
368
+ - [PointCampaignOrderRuleTargetCustomerRank](#type-aliasespointcampaignorderruletargetcustomerrankmd)
349
369
  - [PointChange](#type-aliasespointchangemd)
350
370
  - [PointChangeActivities](#type-aliasespointchangeactivitiesmd)
351
371
  - [PointChangeActivity](#type-aliasespointchangeactivitymd)
@@ -667,6 +687,10 @@ Location は ShopifyIntegration に紐付いている Location を表す。
667
687
 
668
688
  > **phone**: `string`
669
689
 
690
+ #### tags
691
+
692
+ > **tags**: `string`[]
693
+
670
694
 
671
695
  <a name="type-aliaseslocationavailabilitiesmd"></a>
672
696
 
@@ -789,6 +813,78 @@ hasPreviousPage は前のページがあるかどうかを表す。
789
813
  startCursor は一覧の先頭のカーソルを表す。
790
814
 
791
815
 
816
+ <a name="type-aliasespointcampaignorderrulemd"></a>
817
+
818
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
819
+
820
+ ***
821
+
822
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PointCampaignOrderRule
823
+
824
+ ## Type Alias: PointCampaignOrderRule
825
+
826
+ > **PointCampaignOrderRule**: `object`
827
+
828
+ PointCampaignOrderRule はポイントキャンペーンの設定を表す。
829
+
830
+ ### Type declaration
831
+
832
+ #### id
833
+
834
+ > **id**: `string`
835
+
836
+ #### title
837
+
838
+ > **title**: `string`
839
+
840
+ キャンペーンのタイトル
841
+
842
+
843
+ <a name="type-aliasespointcampaignorderruletargetcustomerrankmd"></a>
844
+
845
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
846
+
847
+ ***
848
+
849
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / PointCampaignOrderRuleTargetCustomerRank
850
+
851
+ ## Type Alias: PointCampaignOrderRuleTargetCustomerRank
852
+
853
+ > **PointCampaignOrderRuleTargetCustomerRank**: `object`
854
+
855
+ PointCampaignOrderRuleTargetCustomerRank は会員ランク種別のポイントキャンペーンの設定を表す。
856
+ 以下の場合はnullを返す
857
+ - 開催期間中であるキャンペーンが存在しない場合
858
+ - 存在するが種別が会員ランクではない場合
859
+ - 未ログインの場合
860
+
861
+ ### Type declaration
862
+
863
+ #### fixedPoint?
864
+
865
+ > `optional` **fixedPoint**: `string`
866
+
867
+ 顧客に適用されるキャンペーン倍率
868
+ 以下の場合はnullを返す
869
+ - 該当キャンペーンが存在しない場合
870
+ - 未ログイン状態の場合
871
+ - 計算方法が固定ポイントでない場合
872
+
873
+ #### multiplier?
874
+
875
+ > `optional` **multiplier**: `string`
876
+
877
+ 顧客に適用されるキャンペーン倍率
878
+ 以下の場合はnullを返す
879
+ - 該当キャンペーンが存在しない場合
880
+ - 未ログイン状態の場合
881
+ - 計算方法が倍率でない場合
882
+
883
+ #### pointCampaignOrderRule
884
+
885
+ > **pointCampaignOrderRule**: [`PointCampaignOrderRule`](#type-aliasespointcampaignorderrulemd)
886
+
887
+
792
888
  <a name="type-aliasespointchangemd"></a>
793
889
 
794
890
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -999,6 +1095,12 @@ Product は商品情報を表す。
999
1095
 
1000
1096
  > **id**: `string`
1001
1097
 
1098
+ #### isLocalPickupAvailable
1099
+
1100
+ > **isLocalPickupAvailable**: `boolean`
1101
+
1102
+ 商品の店舗受取が可能な場合にtrueが返る
1103
+
1002
1104
  #### title
1003
1105
 
1004
1106
  > **title**: `string`
@@ -1036,14 +1138,26 @@ ProductVariant は商品のバリエーションを表す。
1036
1138
 
1037
1139
  > **inventoryItem**: [`InventoryItem`](#type-aliasesinventoryitemmd)
1038
1140
 
1141
+ 在庫情報
1142
+
1039
1143
  #### isBackOrderEnable
1040
1144
 
1041
1145
  > **isBackOrderEnable**: `boolean`
1042
1146
 
1147
+ 予約販売が設定されている場合にtrueが返る
1148
+
1149
+ #### isLocalPickupAvailable
1150
+
1151
+ > **isLocalPickupAvailable**: `boolean`
1152
+
1153
+ 商品の店舗受取が可能な場合にtrueが返る
1154
+
1043
1155
  #### title
1044
1156
 
1045
1157
  > **title**: `string`
1046
1158
 
1159
+ 商品バリエーションのタイトル
1160
+
1047
1161
 
1048
1162
  <a name="type-aliasesproductvariantsmd"></a>
1049
1163
 
@@ -120,6 +120,7 @@ declare type Location_2 = {
120
120
  name: string;
121
121
  phone: string;
122
122
  mapURL?: string;
123
+ tags: string[];
123
124
  address?: Address;
124
125
  };
125
126
  export { Location_2 as Location }
@@ -177,6 +178,44 @@ export declare type PageInfo = {
177
178
  hasPreviousPage: boolean;
178
179
  };
179
180
 
181
+ /**
182
+ * PointCampaignOrderRule はポイントキャンペーンの設定を表す。
183
+ */
184
+ export declare type PointCampaignOrderRule = {
185
+ id: string;
186
+ /**
187
+ * キャンペーンのタイトル
188
+ */
189
+ title: string;
190
+ };
191
+
192
+ /**
193
+ * PointCampaignOrderRuleTargetCustomerRank は会員ランク種別のポイントキャンペーンの設定を表す。
194
+ * 以下の場合はnullを返す
195
+ * - 開催期間中であるキャンペーンが存在しない場合
196
+ * - 存在するが種別が会員ランクではない場合
197
+ * - 未ログインの場合
198
+ */
199
+ export declare type PointCampaignOrderRuleTargetCustomerRank = {
200
+ pointCampaignOrderRule: PointCampaignOrderRule;
201
+ /**
202
+ * 顧客に適用されるキャンペーン倍率
203
+ * 以下の場合はnullを返す
204
+ * - 該当キャンペーンが存在しない場合
205
+ * - 未ログイン状態の場合
206
+ * - 計算方法が倍率でない場合
207
+ */
208
+ multiplier?: string;
209
+ /**
210
+ * 顧客に適用されるキャンペーン倍率
211
+ * 以下の場合はnullを返す
212
+ * - 該当キャンペーンが存在しない場合
213
+ * - 未ログイン状態の場合
214
+ * - 計算方法が固定ポイントでない場合
215
+ */
216
+ fixedPoint?: string;
217
+ };
218
+
180
219
  /**
181
220
  * PointChange はポイントの変動を表す。
182
221
  */
@@ -273,6 +312,10 @@ export declare type Product = {
273
312
  * 商品が持つバリエーションに1つでも予約販売設定がされている場合trueが返る
274
313
  */
275
314
  hasBackOrderProductVariants: boolean;
315
+ /**
316
+ * 商品の店舗受取が可能な場合にtrueが返る
317
+ */
318
+ isLocalPickupAvailable: boolean;
276
319
  /**
277
320
  * 商品のバリエーション一覧
278
321
  */
@@ -284,8 +327,21 @@ export declare type Product = {
284
327
  */
285
328
  export declare type ProductVariant = {
286
329
  id: string;
330
+ /**
331
+ * 商品バリエーションのタイトル
332
+ */
287
333
  title: string;
334
+ /**
335
+ * 予約販売が設定されている場合にtrueが返る
336
+ */
288
337
  isBackOrderEnable: boolean;
338
+ /**
339
+ * 商品の店舗受取が可能な場合にtrueが返る
340
+ */
341
+ isLocalPickupAvailable: boolean;
342
+ /**
343
+ * 在庫情報
344
+ */
289
345
  inventoryItem: InventoryItem;
290
346
  };
291
347
 
@@ -390,11 +446,13 @@ export declare class SDK {
390
446
  /**
391
447
  * getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。
392
448
  *
449
+ * @param {string} [tag] 取得したいLocationのタグ。
450
+ * @param {string[]} [provinceCodes] 取得したいLocationの都道府県コード。
393
451
  * @param {number} [first] 取得してくる個数。デフォルトは250。
394
452
  * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
395
453
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
396
454
  */
397
- getLocations(first?: number, after?: string, isReverse?: boolean): Promise<Locations>;
455
+ getLocations(tag?: string, provinceCodes?: string[], first?: number, after?: string, isReverse?: boolean): Promise<Locations>;
398
456
  /**
399
457
  * getPurchasingCustomerDiscounts は購入者の割引情報を返します。
400
458
  *
@@ -430,6 +488,7 @@ export declare class SDK {
430
488
  */
431
489
  getPurchasingCustomerSharing(): Promise<PurchasingCustomerSharing | null>;
432
490
  getProduct(id: string, first?: number, after?: string, isReverse?: boolean, sortKeys?: ProductVariantSortKeys): Promise<Product | null>;
491
+ getPointCampaignOrderRuleTargetCustomerRank(): Promise<PointCampaignOrderRuleTargetCustomerRank | null>;
433
492
  /**
434
493
  * purchasingCustomerSendCustomerSharingActivationCode はログインしているアカウントのメールアドレスに顧客情報共有のためのアクティベーションコードを送信します。
435
494
  */