@builtbystack/sq-shopify-theme-sdk 0.0.30 → 0.0.32

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
@@ -220,6 +220,66 @@ getMileChangeActivities は購入者のマイル変動履歴を返します。
220
220
 
221
221
  ***
222
222
 
223
+ #### getMileItems()
224
+
225
+ > **getMileItems**(`first`?, `after`?, `isReverse`?, `sortKeys`?): `Promise`\<`null` \| [`MileItems`](#type-aliasesmileitemsmd)\>
226
+
227
+ getMileItems は顧客が利用可能なマイル交換商品の一覧を返します。
228
+
229
+ ##### Parameters
230
+
231
+ • **first?**: `number`
232
+
233
+ 取得してくる個数。デフォルトは250。
234
+
235
+ • **after?**: `string`
236
+
237
+ ページングの値。指定しない場合先頭から取得してくる。
238
+
239
+ • **isReverse?**: `boolean`
240
+
241
+ 並び順。デフォルトはfalse。
242
+
243
+ • **sortKeys?**: `ShopifyMileItemSortKey`
244
+
245
+ ソートキー。デフォルトはCREATED_AT。
246
+
247
+ ##### Returns
248
+
249
+ `Promise`\<`null` \| [`MileItems`](#type-aliasesmileitemsmd)\>
250
+
251
+ ***
252
+
253
+ #### getMileOrders()
254
+
255
+ > **getMileOrders**(`first`?, `after`?, `isReverse`?, `sortKeys`?): `Promise`\<`null` \| [`MileOrders`](#type-aliasesmileordersmd)\>
256
+
257
+ getMileOrders は顧客のマイル交換履歴の一覧を返します。
258
+
259
+ ##### Parameters
260
+
261
+ • **first?**: `number`
262
+
263
+ 取得してくる個数。デフォルトは250。
264
+
265
+ • **after?**: `string`
266
+
267
+ ページングの値。指定しない場合先頭から取得してくる。
268
+
269
+ • **isReverse?**: `boolean`
270
+
271
+ 並び順。デフォルトはfalse。
272
+
273
+ • **sortKeys?**: `MileOrderSortKey`
274
+
275
+ ソートキー。デフォルトはCREATED_AT。
276
+
277
+ ##### Returns
278
+
279
+ `Promise`\<`null` \| [`MileOrders`](#type-aliasesmileordersmd)\>
280
+
281
+ ***
282
+
223
283
  #### getMiles()
224
284
 
225
285
  > **getMiles**(): `Promise`\<`null` \| [`Miles`](#type-aliasesmilesmd)\>
@@ -403,6 +463,24 @@ getSharingPurchasingCustomerCount は顧客が共有化している数を返し
403
463
 
404
464
  ***
405
465
 
466
+ #### mileItemExchange()
467
+
468
+ > **mileItemExchange**(`mileItemID`): `Promise`\<`null` \| [`MileOrder`](#type-aliasesmileordermd)\>
469
+
470
+ mileItemExchange は指定したマイル商品を交換します。
471
+
472
+ ##### Parameters
473
+
474
+ • **mileItemID**: `string`
475
+
476
+ 交換したいマイル商品のID。
477
+
478
+ ##### Returns
479
+
480
+ `Promise`\<`null` \| [`MileOrder`](#type-aliasesmileordermd)\>
481
+
482
+ ***
483
+
406
484
  #### purchasingCustomerActivateCustomerSharing()
407
485
 
408
486
  > **purchasingCustomerActivateCustomerSharing**(`email`, `activationCode`): `Promise`\<`null` \| [`PurchasingCustomer`](#type-aliasespurchasingcustomermd)\>
@@ -531,6 +609,10 @@ LocationType はロケーションの種別を表す
531
609
  - [MileChange](#type-aliasesmilechangemd)
532
610
  - [MileChangeActivities](#type-aliasesmilechangeactivitiesmd)
533
611
  - [MileChangeActivity](#type-aliasesmilechangeactivitymd)
612
+ - [MileItem](#type-aliasesmileitemmd)
613
+ - [MileItems](#type-aliasesmileitemsmd)
614
+ - [MileOrder](#type-aliasesmileordermd)
615
+ - [MileOrders](#type-aliasesmileordersmd)
534
616
  - [Miles](#type-aliasesmilesmd)
535
617
  - [PageInfo](#type-aliasespageinfomd)
536
618
  - [PointCampaignOrderRule](#type-aliasespointcampaignorderrulemd)
@@ -1176,6 +1258,178 @@ MileChangeActivity はマイルの変動の履歴を表す。
1176
1258
  > **title**: `string`
1177
1259
 
1178
1260
 
1261
+ <a name="type-aliasesmileitemmd"></a>
1262
+
1263
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
1264
+
1265
+ ***
1266
+
1267
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / MileItem
1268
+
1269
+ ## Type Alias: MileItem
1270
+
1271
+ > **MileItem**: `object`
1272
+
1273
+ MileItem はマイル商品の情報を表す。
1274
+
1275
+ ### Type declaration
1276
+
1277
+ #### customerExchangeable
1278
+
1279
+ > **customerExchangeable**: `boolean`
1280
+
1281
+ 交換可能かどうか
1282
+
1283
+ #### description
1284
+
1285
+ > **description**: `string`
1286
+
1287
+ マイル商品の説明
1288
+
1289
+ #### endsAt?
1290
+
1291
+ > `optional` **endsAt**: `Date`
1292
+
1293
+ 交換可能期間の終了日時
1294
+
1295
+ #### id
1296
+
1297
+ > **id**: `string`
1298
+
1299
+ オブジェクトのID
1300
+
1301
+ #### isActive
1302
+
1303
+ > **isActive**: `boolean`
1304
+
1305
+ 現在交換可能かどうか
1306
+
1307
+ #### isScheduled
1308
+
1309
+ > **isScheduled**: `boolean`
1310
+
1311
+ 交換開始前かどうか
1312
+
1313
+ #### miles
1314
+
1315
+ > **miles**: `number`
1316
+
1317
+ マイル商品の画像URL
1318
+
1319
+ #### sku
1320
+
1321
+ > **sku**: `string`
1322
+
1323
+ マイル商品のSKU
1324
+
1325
+ #### startsAt
1326
+
1327
+ > **startsAt**: `Date`
1328
+
1329
+ 交換可能期間の開始日時
1330
+
1331
+ #### title
1332
+
1333
+ > **title**: `string`
1334
+
1335
+ マイル商品のタイトル
1336
+
1337
+
1338
+ <a name="type-aliasesmileitemsmd"></a>
1339
+
1340
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
1341
+
1342
+ ***
1343
+
1344
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / MileItems
1345
+
1346
+ ## Type Alias: MileItems
1347
+
1348
+ > **MileItems**: `object`
1349
+
1350
+ MileItems はマイル商品の一覧を取得するための情報を表す。
1351
+
1352
+ ### Type declaration
1353
+
1354
+ #### nodes
1355
+
1356
+ > **nodes**: [`MileItem`](#type-aliasesmileitemmd)[]
1357
+
1358
+ #### pageInfo
1359
+
1360
+ > **pageInfo**: [`PageInfo`](#type-aliasespageinfomd)
1361
+
1362
+
1363
+ <a name="type-aliasesmileordermd"></a>
1364
+
1365
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
1366
+
1367
+ ***
1368
+
1369
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / MileOrder
1370
+
1371
+ ## Type Alias: MileOrder
1372
+
1373
+ > **MileOrder**: `object`
1374
+
1375
+ ### Type declaration
1376
+
1377
+ #### exchangedAt
1378
+
1379
+ > **exchangedAt**: `Date`
1380
+
1381
+ 交換日時
1382
+
1383
+ #### id
1384
+
1385
+ > **id**: `string`
1386
+
1387
+ オブジェクトのID
1388
+
1389
+ #### isCancelled
1390
+
1391
+ > **isCancelled**: `boolean`
1392
+
1393
+ Shopifyマイル交換履歴をキャンセルしたかどうか
1394
+
1395
+ #### mileItem
1396
+
1397
+ > **mileItem**: [`MileItem`](#type-aliasesmileitemmd)
1398
+
1399
+ 交換したマイル商品
1400
+
1401
+ #### miles
1402
+
1403
+ > **miles**: `number`
1404
+
1405
+ 使用したマイル数
1406
+
1407
+
1408
+ <a name="type-aliasesmileordersmd"></a>
1409
+
1410
+ [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
1411
+
1412
+ ***
1413
+
1414
+ [@builtbystack/sq-shopify-theme-sdk](#globalsmd) / MileOrders
1415
+
1416
+ ## Type Alias: MileOrders
1417
+
1418
+ > **MileOrders**: `object`
1419
+
1420
+ MileOrders はマイル商品の交換履歴の一覧を取得するための情報を表す。
1421
+
1422
+ ### Type declaration
1423
+
1424
+ #### nodes
1425
+
1426
+ > **nodes**: [`MileOrder`](#type-aliasesmileordermd)[]
1427
+
1428
+ #### pageInfo
1429
+
1430
+ > **pageInfo**: [`PageInfo`](#type-aliasespageinfomd)
1431
+
1432
+
1179
1433
  <a name="type-aliasesmilesmd"></a>
1180
1434
 
1181
1435
  [**@builtbystack/sq-shopify-theme-sdk**](#readmemd) • **Docs**
@@ -1304,7 +1558,7 @@ PointCampaignOrderRuleTargetCustomerRank は会員ランク種別のポイント
1304
1558
 
1305
1559
  > `optional` **fixedPoint**: `string`
1306
1560
 
1307
- 顧客に適用されるキャンペーン倍率
1561
+ 顧客に適用されるキャンペーン固定ポイント
1308
1562
  以下の場合はnullを返す
1309
1563
  - 該当キャンペーンが存在しない場合
1310
1564
  - 未ログイン状態の場合
@@ -285,6 +285,95 @@ declare enum MileChangeActivitySortKey {
285
285
  MileChangeCreatedAt = "MILE_CHANGE_CREATED_AT"
286
286
  }
287
287
 
288
+ /**
289
+ * MileItem はマイル商品の情報を表す。
290
+ */
291
+ export declare type MileItem = {
292
+ /**
293
+ * オブジェクトのID
294
+ */
295
+ id: string;
296
+ /**
297
+ * マイル商品のタイトル
298
+ */
299
+ title: string;
300
+ /**
301
+ * マイル商品の説明
302
+ */
303
+ description: string;
304
+ /**
305
+ * マイル商品の画像URL
306
+ */
307
+ miles: number;
308
+ /**
309
+ * マイル商品のSKU
310
+ */
311
+ sku: string;
312
+ /**
313
+ * 現在交換可能かどうか
314
+ */
315
+ isActive: boolean;
316
+ /**
317
+ * 交換開始前かどうか
318
+ */
319
+ isScheduled: boolean;
320
+ /**
321
+ * 交換可能かどうか
322
+ */
323
+ customerExchangeable: boolean;
324
+ /**
325
+ * 交換可能期間の開始日時
326
+ */
327
+ startsAt: Date;
328
+ /**
329
+ * 交換可能期間の終了日時
330
+ */
331
+ endsAt?: Date;
332
+ };
333
+
334
+ /**
335
+ * MileItems はマイル商品の一覧を取得するための情報を表す。
336
+ */
337
+ export declare type MileItems = {
338
+ nodes: MileItem[];
339
+ pageInfo: PageInfo;
340
+ };
341
+
342
+ export declare type MileOrder = {
343
+ /**
344
+ * オブジェクトのID
345
+ */
346
+ id: string;
347
+ /**
348
+ * 交換したマイル商品
349
+ */
350
+ mileItem: MileItem;
351
+ /**
352
+ * 使用したマイル数
353
+ */
354
+ miles: number;
355
+ /**
356
+ * 交換日時
357
+ */
358
+ exchangedAt: Date;
359
+ /**
360
+ * Shopifyマイル交換履歴をキャンセルしたかどうか
361
+ */
362
+ isCancelled: boolean;
363
+ };
364
+
365
+ /**
366
+ * MileOrders はマイル商品の交換履歴の一覧を取得するための情報を表す。
367
+ */
368
+ export declare type MileOrders = {
369
+ nodes: MileOrder[];
370
+ pageInfo: PageInfo;
371
+ };
372
+
373
+ declare enum MileOrderSortKey {
374
+ CreatedAt = "CREATED_AT"
375
+ }
376
+
288
377
  /**
289
378
  * Miles は SDK から取得できるマイルの情報を表す。
290
379
  */
@@ -355,7 +444,7 @@ export declare type PointCampaignOrderRuleTargetCustomerRank = {
355
444
  */
356
445
  multiplier?: string;
357
446
  /**
358
- * 顧客に適用されるキャンペーン倍率
447
+ * 顧客に適用されるキャンペーン固定ポイント
359
448
  * 以下の場合はnullを返す
360
449
  * - 該当キャンペーンが存在しない場合
361
450
  * - 未ログイン状態の場合
@@ -682,6 +771,34 @@ export declare class SDK {
682
771
  * @param {MileChangeActivitySortKey} [sortKeys] ソートキー。CREATED_ATかMILE_CHANGE_CREATED_ATを渡す。デフォルトはCREATED_AT。
683
772
  */
684
773
  getMileChangeActivities(first?: number, after?: string, isReverse?: boolean, sortKeys?: MileChangeActivitySortKey): Promise<MileChangeActivities | null>;
774
+ /**
775
+ * getMileItems は顧客が利用可能なマイル交換商品の一覧を返します。
776
+ *
777
+ * @param {number} [first] 取得してくる個数。デフォルトは250。
778
+ * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
779
+ * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
780
+ * @param {ShopifyMileItemSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
781
+ */
782
+ getMileItems(first?: number, after?: string, isReverse?: boolean, sortKeys?: ShopifyMileItemSortKey): Promise<MileItems | null>;
783
+ /**
784
+ * getMileOrders は顧客のマイル交換履歴の一覧を返します。
785
+ *
786
+ * @param {number} [first] 取得してくる個数。デフォルトは250。
787
+ * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
788
+ * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
789
+ * @param {MileOrderSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
790
+ */
791
+ getMileOrders(first?: number, after?: string, isReverse?: boolean, sortKeys?: MileOrderSortKey): Promise<MileOrders | null>;
792
+ /**
793
+ * mileItemExchange は指定したマイル商品を交換します。
794
+ *
795
+ * @param {mileItemID} mileItemID 交換したいマイル商品のID。
796
+ */
797
+ mileItemExchange(mileItemID: string): Promise<MileOrder | null>;
798
+ }
799
+
800
+ declare enum ShopifyMileItemSortKey {
801
+ CreatedAt = "CREATED_AT"
685
802
  }
686
803
 
687
804
  /**