@optima-chat/tiktok-cli 0.4.0 → 0.5.0
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/dist/index.js +23 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -167,6 +167,18 @@ var COMMANDS = [
|
|
|
167
167
|
body: {}
|
|
168
168
|
})
|
|
169
169
|
},
|
|
170
|
+
{
|
|
171
|
+
name: "products get",
|
|
172
|
+
summary: "\u5355\u4E2A\u5546\u54C1\u5B8C\u6574\u8BE6\u60C5\uFF08--product id\uFF1B\u9010\u5B57\u6BB5\u56DE\u8BFB\u7528\uFF1A\u6807\u9898/\u63CF\u8FF0/\u56FE/SKU/\u4EF7/\u5E93\u5B58/\u91CD\u91CF/\u5C3A\u5BF8/\u5C5E\u6027\uFF09",
|
|
173
|
+
run: ({ shop, args: args2 }) => proxy("GET", shop, `/product/202309/products/${args2.product}`, {})
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "products diagnose",
|
|
177
|
+
summary: "\u5546\u54C1\u5B98\u65B9\u95EE\u9898\u8BCA\u65AD\uFF08--product \u9017\u53F7\u5206\u9694\u672C\u5E97\u81EA\u6709\u5546\u54C1 id\uFF09",
|
|
178
|
+
run: ({ shop, args: args2 }) => proxy("GET", shop, "/product/202405/products/diagnoses", {
|
|
179
|
+
query: { product_ids: String(args2.product ?? "") }
|
|
180
|
+
})
|
|
181
|
+
},
|
|
170
182
|
{
|
|
171
183
|
name: "promotions list",
|
|
172
184
|
summary: "\u4FC3\u9500\u6D3B\u52A8\u5217\u8868\uFF08--status ONGOING/NOT_START/EXPIRED\uFF09",
|
|
@@ -185,6 +197,17 @@ var COMMANDS = [
|
|
|
185
197
|
}
|
|
186
198
|
})
|
|
187
199
|
},
|
|
200
|
+
// ===== 账号状态只读命令 =====
|
|
201
|
+
{
|
|
202
|
+
name: "seller status",
|
|
203
|
+
summary: "\u8D26\u53F7/\u5E97\u94FA\u72B6\u6001\uFF08seller_status/shop_statuses/tax_form_status\uFF09",
|
|
204
|
+
run: ({ shop }) => proxy("GET", shop, "/seller/202508/status", {})
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "seller permissions",
|
|
208
|
+
summary: "\u5DF2\u6388\u6743\u6743\u9650\u5217\u8868",
|
|
209
|
+
run: ({ shop }) => proxy("GET", shop, "/seller/202309/permissions", {})
|
|
210
|
+
},
|
|
188
211
|
// ===== 建品前置只读辅助命令 =====
|
|
189
212
|
{
|
|
190
213
|
name: "products prerequisites",
|