@builtbystack/sq-shopify-theme-sdk 0.0.3 → 0.0.4

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.
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Location は ShopifyIntegration に紐付いている Location を表す。
3
+ */
4
+ declare type Location_2 = {
5
+ id: string;
6
+ name: string;
7
+ };
8
+ export { Location_2 as Location }
9
+
1
10
  /**
2
11
  * LocationAvailabilities は LocationAvailability の一覧を取得するための情報を表す。
3
12
  */
@@ -25,6 +34,14 @@ export declare type LocationAvailability = {
25
34
  inventoryQuantity: number;
26
35
  };
27
36
 
37
+ /**
38
+ * Locations は Location の一覧を取得するための情報を表す。
39
+ */
40
+ export declare type Locations = {
41
+ nodes: Location_2[];
42
+ pageInfo: PageInfo | null;
43
+ };
44
+
28
45
  /**
29
46
  * PageInfo はページングを伴って一覧を取得したときに、その一覧のページングの情報を表す。
30
47
  */
@@ -56,6 +73,27 @@ export declare type Points = {
56
73
  pointsPending: number;
57
74
  };
58
75
 
76
+ /**
77
+ * PurchasingCustomerDiscount は購入者の割引情報を表す。
78
+ */
79
+ export declare type PurchasingCustomerDiscount = {
80
+ id: string;
81
+ title: string;
82
+ description: string;
83
+ code: string;
84
+ createdAt: Date;
85
+ updatedAt: Date;
86
+ };
87
+
88
+ /**
89
+ * DiscountCodes は PurchasingCustomerDiscount の一覧を取得するための情報を表す。
90
+ */
91
+ export declare type PurchasingCustomerDiscounts = {
92
+ id: string;
93
+ nodes: PurchasingCustomerDiscount[];
94
+ pageInfo: PageInfo | null;
95
+ };
96
+
59
97
  /**
60
98
  * PurchasingCustomerMetafield は購入者のカスタムメタフィールドを表す。
61
99
  */
@@ -74,7 +112,7 @@ export declare class SDK {
74
112
  *
75
113
  * @param {string} sku 在庫一覧を取得したい商品のSKU。
76
114
  * @param {number} [first] 取得してくる個数。デフォルトは250。
77
- * @param {string} [before] ページングの値。指定しない場合先頭から取得してくる。
115
+ * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
78
116
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
79
117
  */
80
118
  getLocationAvailabilities(sku: string, first?: number, after?: string, isReverse?: boolean): Promise<LocationAvailabilities>;
@@ -97,6 +135,22 @@ export declare class SDK {
97
135
  * 存在しない場合は0を返します。
98
136
  */
99
137
  getPoints(): Promise<Points | null>;
138
+ /**
139
+ * getLocations は ShopifyIntegration に紐づく LocationGroup の Location の一覧を取得します。
140
+ *
141
+ * @param {number} [first] 取得してくる個数。デフォルトは250。
142
+ * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
143
+ * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
144
+ */
145
+ getLocations(first?: number, after?: string, isReverse?: boolean): Promise<Locations>;
146
+ /**
147
+ * getPurchasingCustomerDiscounts は購入者の割引情報を返します。
148
+ *
149
+ * @param {number} [first] 取得してくる個数。デフォルトは250。
150
+ * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
151
+ * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
152
+ */
153
+ getPurchasingCustomerDiscounts(first?: number, after?: string, isReverse?: boolean): Promise<PurchasingCustomerDiscounts>;
100
154
  }
101
155
 
102
156
  export { }