@congminh1254/shopee-sdk 1.3.0 → 1.5.2
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/lib/managers/ads.manager.d.ts +7 -0
- package/lib/managers/ads.manager.js +7 -0
- package/lib/managers/ads.manager.js.map +1 -1
- package/lib/managers/ams.manager.d.ts +332 -0
- package/lib/managers/ams.manager.js +601 -0
- package/lib/managers/ams.manager.js.map +1 -0
- package/lib/managers/index.d.ts +2 -0
- package/lib/managers/index.js +2 -0
- package/lib/managers/index.js.map +1 -1
- package/lib/managers/logistics.manager.d.ts +13 -1
- package/lib/managers/logistics.manager.js +33 -0
- package/lib/managers/logistics.manager.js.map +1 -1
- package/lib/managers/product.manager.d.ts +9 -1
- package/lib/managers/product.manager.js +25 -0
- package/lib/managers/product.manager.js.map +1 -1
- package/lib/managers/shop.manager.d.ts +13 -1
- package/lib/managers/shop.manager.js +33 -0
- package/lib/managers/shop.manager.js.map +1 -1
- package/lib/managers/video.manager.d.ts +166 -0
- package/lib/managers/video.manager.js +273 -0
- package/lib/managers/video.manager.js.map +1 -0
- package/lib/schemas/account-health.d.ts +67 -0
- package/lib/schemas/account-health.js.map +1 -1
- package/lib/schemas/ams.d.ts +1037 -0
- package/lib/schemas/ams.js +2 -0
- package/lib/schemas/ams.js.map +1 -0
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.js +1 -0
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/logistics.d.ts +67 -0
- package/lib/schemas/order.d.ts +24 -0
- package/lib/schemas/order.js.map +1 -1
- package/lib/schemas/product.d.ts +139 -0
- package/lib/schemas/shop.d.ts +98 -0
- package/lib/schemas/video.d.ts +688 -0
- package/lib/schemas/video.js +2 -0
- package/lib/schemas/video.js.map +1 -0
- package/lib/sdk.d.ts +4 -0
- package/lib/sdk.js +4 -0
- package/lib/sdk.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { BaseManager } from "./base.manager.js";
|
|
2
|
+
import { ShopeeFetch } from "../fetch.js";
|
|
3
|
+
export class VideoManager extends BaseManager {
|
|
4
|
+
constructor(config) {
|
|
5
|
+
super(config);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Delete video
|
|
9
|
+
*
|
|
10
|
+
* Use this API to delete videos. You can delete videos with draft status or post status.
|
|
11
|
+
*
|
|
12
|
+
* @param params - Parameters for deleting video
|
|
13
|
+
* @param params.videoUploadIdList - List of video_upload_ids to delete (for draft status)
|
|
14
|
+
* @param params.postIdList - List of post_ids to delete (for post status)
|
|
15
|
+
*
|
|
16
|
+
* @returns A promise that resolves to the delete response containing:
|
|
17
|
+
* - successList: List of videos deleted successfully
|
|
18
|
+
* - failureList: List of videos that failed to delete
|
|
19
|
+
*/
|
|
20
|
+
async deleteVideo(params) {
|
|
21
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/delete_video`, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
auth: true,
|
|
24
|
+
body: params,
|
|
25
|
+
});
|
|
26
|
+
return response;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Edit video information
|
|
30
|
+
*
|
|
31
|
+
* Use this API to edit video information including caption, cover image, linked products, and schedule settings.
|
|
32
|
+
*
|
|
33
|
+
* @param params - Parameters for editing video info
|
|
34
|
+
* @param params.videoUploadList - List of videos to edit (max 5)
|
|
35
|
+
*
|
|
36
|
+
* @returns A promise that resolves to the edit response containing:
|
|
37
|
+
* - successList: List of video_upload_ids edited successfully
|
|
38
|
+
* - failureList: List of video_upload_ids that failed to edit
|
|
39
|
+
*/
|
|
40
|
+
async editVideoInfo(params) {
|
|
41
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/edit_video_info`, {
|
|
42
|
+
method: "POST",
|
|
43
|
+
auth: true,
|
|
44
|
+
body: params,
|
|
45
|
+
});
|
|
46
|
+
return response;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get cover list
|
|
50
|
+
*
|
|
51
|
+
* Use this API to get available cover images for a video.
|
|
52
|
+
*
|
|
53
|
+
* @param params - Parameters for getting cover list
|
|
54
|
+
* @param params.videoUploadId - ID of uploaded video
|
|
55
|
+
*
|
|
56
|
+
* @returns A promise that resolves to the cover list response
|
|
57
|
+
*/
|
|
58
|
+
async getCoverList(params) {
|
|
59
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_cover_list`, {
|
|
60
|
+
method: "GET",
|
|
61
|
+
auth: true,
|
|
62
|
+
params: params,
|
|
63
|
+
});
|
|
64
|
+
return response;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get metric trend
|
|
68
|
+
*
|
|
69
|
+
* Use this API to get metric trends for videos over a time period.
|
|
70
|
+
*
|
|
71
|
+
* @param params - Parameters for getting metric trend
|
|
72
|
+
*
|
|
73
|
+
* @returns A promise that resolves to the metric trend response
|
|
74
|
+
*/
|
|
75
|
+
async getMetricTrend(params) {
|
|
76
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_metric_trend`, {
|
|
77
|
+
method: "GET",
|
|
78
|
+
auth: true,
|
|
79
|
+
params: params,
|
|
80
|
+
});
|
|
81
|
+
return response;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get overview performance
|
|
85
|
+
*
|
|
86
|
+
* Use this API to get overview performance metrics for videos.
|
|
87
|
+
*
|
|
88
|
+
* @param params - Parameters for getting overview performance
|
|
89
|
+
*
|
|
90
|
+
* @returns A promise that resolves to the overview performance response
|
|
91
|
+
*/
|
|
92
|
+
async getOverviewPerformance(params) {
|
|
93
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_overview_performance`, {
|
|
94
|
+
method: "GET",
|
|
95
|
+
auth: true,
|
|
96
|
+
params: params,
|
|
97
|
+
});
|
|
98
|
+
return response;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get product performance list
|
|
102
|
+
*
|
|
103
|
+
* Use this API to get performance metrics for products linked to videos.
|
|
104
|
+
*
|
|
105
|
+
* @param params - Parameters for getting product performance list
|
|
106
|
+
*
|
|
107
|
+
* @returns A promise that resolves to the product performance list response
|
|
108
|
+
*/
|
|
109
|
+
async getProductPerformanceList(params) {
|
|
110
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_product_performance_list`, {
|
|
111
|
+
method: "GET",
|
|
112
|
+
auth: true,
|
|
113
|
+
params: params,
|
|
114
|
+
});
|
|
115
|
+
return response;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get user demographics
|
|
119
|
+
*
|
|
120
|
+
* Use this API to get demographic information of video viewers.
|
|
121
|
+
*
|
|
122
|
+
* @param params - Optional parameters (currently no parameters required)
|
|
123
|
+
*
|
|
124
|
+
* @returns A promise that resolves to the user demographics response
|
|
125
|
+
*/
|
|
126
|
+
async getUserDemographics(params) {
|
|
127
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_user_demographics`, {
|
|
128
|
+
method: "GET",
|
|
129
|
+
auth: true,
|
|
130
|
+
params: (params || {}),
|
|
131
|
+
});
|
|
132
|
+
return response;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get video detail
|
|
136
|
+
*
|
|
137
|
+
* Use this API to get detailed information about a video.
|
|
138
|
+
*
|
|
139
|
+
* @param params - Parameters for getting video detail
|
|
140
|
+
*
|
|
141
|
+
* @returns A promise that resolves to the video detail response
|
|
142
|
+
*/
|
|
143
|
+
async getVideoDetail(params) {
|
|
144
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_detail`, {
|
|
145
|
+
method: "GET",
|
|
146
|
+
auth: true,
|
|
147
|
+
params: params,
|
|
148
|
+
});
|
|
149
|
+
return response;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get video detail audience distribution
|
|
153
|
+
*
|
|
154
|
+
* Use this API to get audience distribution for a specific video.
|
|
155
|
+
*
|
|
156
|
+
* @param params - Parameters for getting video detail audience distribution
|
|
157
|
+
*
|
|
158
|
+
* @returns A promise that resolves to the video detail audience distribution response
|
|
159
|
+
*/
|
|
160
|
+
async getVideoDetailAudienceDistribution(params) {
|
|
161
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_detail_audience_distribution`, {
|
|
162
|
+
method: "GET",
|
|
163
|
+
auth: true,
|
|
164
|
+
params: params,
|
|
165
|
+
});
|
|
166
|
+
return response;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Get video detail metric trend
|
|
170
|
+
*
|
|
171
|
+
* Use this API to get metric trends for a specific video.
|
|
172
|
+
*
|
|
173
|
+
* @param params - Parameters for getting video detail metric trend
|
|
174
|
+
*
|
|
175
|
+
* @returns A promise that resolves to the video detail metric trend response
|
|
176
|
+
*/
|
|
177
|
+
async getVideoDetailMetricTrend(params) {
|
|
178
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_detail_metric_trend`, {
|
|
179
|
+
method: "GET",
|
|
180
|
+
auth: true,
|
|
181
|
+
params: params,
|
|
182
|
+
});
|
|
183
|
+
return response;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Get video detail performance
|
|
187
|
+
*
|
|
188
|
+
* Use this API to get performance metrics for a specific video.
|
|
189
|
+
*
|
|
190
|
+
* @param params - Parameters for getting video detail performance
|
|
191
|
+
*
|
|
192
|
+
* @returns A promise that resolves to the video detail performance response
|
|
193
|
+
*/
|
|
194
|
+
async getVideoDetailPerformance(params) {
|
|
195
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_detail_performance`, {
|
|
196
|
+
method: "GET",
|
|
197
|
+
auth: true,
|
|
198
|
+
params: params,
|
|
199
|
+
});
|
|
200
|
+
return response;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Get video detail product performance
|
|
204
|
+
*
|
|
205
|
+
* Use this API to get performance metrics for products linked to a specific video.
|
|
206
|
+
*
|
|
207
|
+
* @param params - Parameters for getting video detail product performance
|
|
208
|
+
*
|
|
209
|
+
* @returns A promise that resolves to the video detail product performance response
|
|
210
|
+
*/
|
|
211
|
+
async getVideoDetailProductPerformance(params) {
|
|
212
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_detail_product_performance`, {
|
|
213
|
+
method: "GET",
|
|
214
|
+
auth: true,
|
|
215
|
+
params: params,
|
|
216
|
+
});
|
|
217
|
+
return response;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get video list
|
|
221
|
+
*
|
|
222
|
+
* Use this API to get a list of videos.
|
|
223
|
+
*
|
|
224
|
+
* @param params - Parameters for getting video list
|
|
225
|
+
*
|
|
226
|
+
* @returns A promise that resolves to the video list response
|
|
227
|
+
*/
|
|
228
|
+
async getVideoList(params) {
|
|
229
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_list`, {
|
|
230
|
+
method: "GET",
|
|
231
|
+
auth: true,
|
|
232
|
+
params: params,
|
|
233
|
+
});
|
|
234
|
+
return response;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Get video performance list
|
|
238
|
+
*
|
|
239
|
+
* Use this API to get performance metrics for multiple videos.
|
|
240
|
+
*
|
|
241
|
+
* @param params - Parameters for getting video performance list
|
|
242
|
+
*
|
|
243
|
+
* @returns A promise that resolves to the video performance list response
|
|
244
|
+
*/
|
|
245
|
+
async getVideoPerformanceList(params) {
|
|
246
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/get_video_performance_list`, {
|
|
247
|
+
method: "GET",
|
|
248
|
+
auth: true,
|
|
249
|
+
params: params,
|
|
250
|
+
});
|
|
251
|
+
return response;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Post video
|
|
255
|
+
*
|
|
256
|
+
* Use this API to post videos to Shopee Video.
|
|
257
|
+
*
|
|
258
|
+
* @param params - Parameters for posting video
|
|
259
|
+
*
|
|
260
|
+
* @returns A promise that resolves to the post video response containing:
|
|
261
|
+
* - successList: List of videos posted successfully
|
|
262
|
+
* - failureList: List of videos that failed to post
|
|
263
|
+
*/
|
|
264
|
+
async postVideo(params) {
|
|
265
|
+
const response = await ShopeeFetch.fetch(this.config, `/video/post_video`, {
|
|
266
|
+
method: "POST",
|
|
267
|
+
auth: true,
|
|
268
|
+
body: params,
|
|
269
|
+
});
|
|
270
|
+
return response;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
//# sourceMappingURL=video.manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.manager.js","sourceRoot":"","sources":["../../src/managers/video.manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAkC1C,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C,YAAY,MAAoB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,WAAW,CAAC,MAAyB;QACzC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,CAAC,MAAM,EACX,qBAAqB,EACrB;YACE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM;SACb,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,aAAa,CAAC,MAA2B;QAC7C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,CAAC,MAAM,EACX,wBAAwB,EACxB;YACE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM;SACb,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,YAAY,CAAC,MAA0B;QAC3C,MAAM,QAA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8C;QAE9C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,CAAC,MAAM,EACX,6CAA6C,EAC7C;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAGP;SACF,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAAC,MAA0B;QAC3C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,CAAC,MAAM,EACX,uBAAuB,EACvB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAGP;SACF,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,uBAAuB,CAC3B,MAAqC;QAErC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,CAAC,MAAM,EACX,mCAAmC,EACnC;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAGP;SACF,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,SAAS,CAAC,MAAuB;QACrC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CAAoB,IAAI,CAAC,MAAM,EAAE,mBAAmB,EAAE;YAC5F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -243,6 +243,14 @@ export interface LateShipmentOrder {
|
|
|
243
243
|
actual_shipping_time: number;
|
|
244
244
|
/** Number of days the order was late by */
|
|
245
245
|
late_by_days: number;
|
|
246
|
+
/** Courier actual pick up time */
|
|
247
|
+
actual_pick_up_time?: number;
|
|
248
|
+
/** Logistics Company */
|
|
249
|
+
shipping_channel?: string;
|
|
250
|
+
/** First mile shipping type. Applicable values: Pickup, Drop off */
|
|
251
|
+
first_mile_type?: string;
|
|
252
|
+
/** Diagnosis of the issue */
|
|
253
|
+
diagnosis_scenario?: string[];
|
|
246
254
|
}
|
|
247
255
|
/**
|
|
248
256
|
* Fast handover order information
|
|
@@ -252,12 +260,26 @@ export interface FastHandoverOrder {
|
|
|
252
260
|
order_sn: string;
|
|
253
261
|
/** Parcel ID */
|
|
254
262
|
parcel_id: number;
|
|
263
|
+
/** Display Parcel ID */
|
|
264
|
+
parcel_display_id?: string;
|
|
255
265
|
/** Confirmed date timestamp */
|
|
256
266
|
confirm_time: number;
|
|
257
267
|
/** Parcel drop off / pickup datetime */
|
|
258
268
|
handover_time: number;
|
|
259
269
|
/** Fast handover deadline timestamp */
|
|
260
270
|
handover_deadline: number;
|
|
271
|
+
/** Fast handover due date timestamp */
|
|
272
|
+
fast_handover_due_date?: number;
|
|
273
|
+
/** Seller arrange pick up time */
|
|
274
|
+
arrange_pick_up_time?: number;
|
|
275
|
+
/** Logistics Company */
|
|
276
|
+
shipping_channel?: string;
|
|
277
|
+
/** First mile shipping type. Applicable values: Pickup, Drop off */
|
|
278
|
+
first_mile_type?: string;
|
|
279
|
+
/** First Mile Tracking No */
|
|
280
|
+
first_mile_tracking_no?: string;
|
|
281
|
+
/** Diagnosis of the issue */
|
|
282
|
+
diagnosis_scenario?: string[];
|
|
261
283
|
}
|
|
262
284
|
/**
|
|
263
285
|
* On-time pickup failure rate daily detail
|
|
@@ -336,6 +358,41 @@ export interface NddListing {
|
|
|
336
358
|
*/
|
|
337
359
|
current_ndd_status: number;
|
|
338
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* Preparation time order information
|
|
363
|
+
* Used for metric_id 4 (Preparation Time)
|
|
364
|
+
*/
|
|
365
|
+
export interface PreparationTimeOrder {
|
|
366
|
+
/** Order SN */
|
|
367
|
+
order_sn: string;
|
|
368
|
+
/** Order Paid Time (field named order_create_time in API) */
|
|
369
|
+
order_create_time: number;
|
|
370
|
+
/** Seller arrange pick up time timestamp */
|
|
371
|
+
arrange_pick_up_time?: number;
|
|
372
|
+
/** Courier actual pick up time timestamp */
|
|
373
|
+
actual_pick_up_time?: number;
|
|
374
|
+
/** Preparation Days */
|
|
375
|
+
preparation_days?: number;
|
|
376
|
+
/** Logistics Company */
|
|
377
|
+
shipping_channel?: string;
|
|
378
|
+
/** First mile shipping type. Applicable values: Pickup, Drop off */
|
|
379
|
+
first_mile_type?: string;
|
|
380
|
+
/** First Mile Tracking No */
|
|
381
|
+
first_mile_tracking_no?: string;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* SDD (Same Day Delivery) listing information
|
|
385
|
+
*/
|
|
386
|
+
export interface SddListing {
|
|
387
|
+
/** Item ID */
|
|
388
|
+
item_id: number;
|
|
389
|
+
/**
|
|
390
|
+
* Current SDD status. Applicable values:
|
|
391
|
+
* 1: Yes
|
|
392
|
+
* 0: No
|
|
393
|
+
*/
|
|
394
|
+
current_sdd_status: number;
|
|
395
|
+
}
|
|
339
396
|
/**
|
|
340
397
|
* Response for the get metric source detail API
|
|
341
398
|
*/
|
|
@@ -395,6 +452,16 @@ export interface GetMetricSourceDetailResponse extends BaseResponse {
|
|
|
395
452
|
* Only present for metric_id: 97 (% NDD Listings)
|
|
396
453
|
*/
|
|
397
454
|
ndd_listing_list?: NddListing[];
|
|
455
|
+
/**
|
|
456
|
+
* Relevant listings for % SDD Listings.
|
|
457
|
+
* Only present for metric_id: 96 (% SDD Listings)
|
|
458
|
+
*/
|
|
459
|
+
sdd_listing_list?: SddListing[];
|
|
460
|
+
/**
|
|
461
|
+
* Affected parcels for Preparation Time.
|
|
462
|
+
* Only present for metric_id: 4 (Preparation Time)
|
|
463
|
+
*/
|
|
464
|
+
apt_order_list?: PreparationTimeOrder[];
|
|
398
465
|
};
|
|
399
466
|
}
|
|
400
467
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-health.js","sourceRoot":"","sources":["../../src/schemas/account-health.ts"],"names":[],"mappings":"AA8CA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+EAA0B,CAAA;IAC1B,uEAAsB,CAAA;IACtB,uFAA8B,CAAA;AAChC,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAU,CAAA;IACV,uDAAc,CAAA;IACd,+CAAU,CAAA;IACV,yCAAO,CAAA;IACP,2CAAQ,CAAA;AACV,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,yDAAQ,CAAA;IACR,mFAAqB,CAAA;IACrB,yDAAQ,CAAA;IACR,mEAAa,CAAA;AACf,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;
|
|
1
|
+
{"version":3,"file":"account-health.js","sourceRoot":"","sources":["../../src/schemas/account-health.ts"],"names":[],"mappings":"AA8CA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+EAA0B,CAAA;IAC1B,uEAAsB,CAAA;IACtB,uFAA8B,CAAA;AAChC,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAU,CAAA;IACV,uDAAc,CAAA;IACd,+CAAU,CAAA;IACV,yCAAO,CAAA;IACP,2CAAQ,CAAA;AACV,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,yDAAQ,CAAA;IACR,mFAAqB,CAAA;IACrB,yDAAQ,CAAA;IACR,mEAAa,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