gap-nodejs-sdk 1.0.362 → 1.0.363
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/checkin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBzC,CAAA;AA8JD,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C1C,CAAA;
|
|
1
|
+
{"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/checkin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBzC,CAAA;AA8JD,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C1C,CAAA;AAoFD,eAAO,MAAM,uBAAuB,SAAU,GAAG;;;;;;;;;;;;CAchD,CAAA;AAED,eAAO,MAAM,2BAA2B,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BpD,CAAA;AAwED,eAAO,MAAM,uBAAuB,SAAU,GAAG;;;;;;;;;;;;;;CAgBhD,CAAA;AAED,eAAO,MAAM,0BAA0B,SAAU,GAAG;;;;CAMnD,CAAA;AAWD,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7C,CAAA"}
|
|
@@ -233,7 +233,22 @@ const ListRedeem = (data) => {
|
|
|
233
233
|
return data;
|
|
234
234
|
};
|
|
235
235
|
const ListPromotion = (data) => {
|
|
236
|
-
return data
|
|
236
|
+
return (data || [].map((item) => {
|
|
237
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
238
|
+
return {
|
|
239
|
+
id: (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : null,
|
|
240
|
+
campaign_id: (_b = item === null || item === void 0 ? void 0 : item.campaign_id) !== null && _b !== void 0 ? _b : null,
|
|
241
|
+
code: (_c = item === null || item === void 0 ? void 0 : item.code) !== null && _c !== void 0 ? _c : null,
|
|
242
|
+
customer_id: (_d = item === null || item === void 0 ? void 0 : item.customer_id) !== null && _d !== void 0 ? _d : null,
|
|
243
|
+
created_at: (_e = item === null || item === void 0 ? void 0 : item.created_at) !== null && _e !== void 0 ? _e : null,
|
|
244
|
+
updated_at: (_f = item === null || item === void 0 ? void 0 : item.updated_at) !== null && _f !== void 0 ? _f : null,
|
|
245
|
+
is_used: (_g = item === null || item === void 0 ? void 0 : item.is_used) !== null && _g !== void 0 ? _g : null,
|
|
246
|
+
expired_date: (_h = item === null || item === void 0 ? void 0 : item.expired_date) !== null && _h !== void 0 ? _h : null,
|
|
247
|
+
limit_used: (_j = item === null || item === void 0 ? void 0 : item.limit_used) !== null && _j !== void 0 ? _j : null,
|
|
248
|
+
total_used: (_k = item === null || item === void 0 ? void 0 : item.total_used) !== null && _k !== void 0 ? _k : null,
|
|
249
|
+
campaign: (_l = Campaign(item === null || item === void 0 ? void 0 : item.campaign)) !== null && _l !== void 0 ? _l : null,
|
|
250
|
+
};
|
|
251
|
+
}));
|
|
237
252
|
};
|
|
238
253
|
const Invoice = (data) => {
|
|
239
254
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|