gap-nodejs-sdk 1.0.313 → 1.0.315
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/api/go_check_in_api/1.0.0/api/campaign.d.ts +19 -0
- package/dist/api/go_check_in_api/1.0.0/api/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/campaign.js +93 -0
- package/dist/api/go_check_in_api/1.0.0/api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/campaign.d.ts +13 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/campaign.js +11 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/campaign.d.ts +3 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/campaign.js +2 -0
- package/dist/api/go_check_in_api/1.0.0/models/campaign.d.ts +75 -0
- package/dist/api/go_check_in_api/1.0.0/models/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/campaign.js +95 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/models/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/campaign.d.ts +51 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/campaign.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/request/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/campaign.d.ts +87 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/campaign.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/campaign.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/response/index.js +1 -0
- package/dist/api/go_check_in_api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/index.js +1 -0
- package/dist/api/pos_client_api/1.0.0/models/key_storage.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/models/key_storage.js +2 -1
- package/dist/api/pos_client_api/1.0.0/types/response/key_storage.d.ts +1 -0
- package/dist/api/pos_client_api/1.0.0/types/response/key_storage.d.ts.map +1 -1
- package/dist/api/settings_api/1.0.0/models/checkout.d.ts.map +1 -1
- package/dist/api/settings_api/1.0.0/models/checkout.js +3 -2
- package/dist/api/settings_api/1.0.0/types/response/checkout.d.ts +1 -0
- package/dist/api/settings_api/1.0.0/types/response/checkout.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import CampaignAbstractClass from "../interfaces/campaign";
|
|
2
|
+
import Base from "../../../../base/Base";
|
|
3
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
4
|
+
import * as Request from "../types/request";
|
|
5
|
+
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../../types";
|
|
7
|
+
export default class Campaign extends Base implements CampaignAbstractClass {
|
|
8
|
+
static API_VERSION: GapApiVersion;
|
|
9
|
+
static getCampaignPromotionGroup(query?: Request.GetCampaignPromotionGroupRequest): Promise<Response.GetCampaignPromotionGroupResponse>;
|
|
10
|
+
static getCampaignPromotionList(query?: Request.GetCampaignPromotionListRequest): Promise<DataWithMetaResponse<Response.GetCampaignPromotionListResponse>>;
|
|
11
|
+
static getCampaignPromotionListExpired(query?: Request.GetCampaignPromotionListExpiredRequest): Promise<DataWithMetaResponse<Response.GetCampaignPromotionListExpiredResponse>>;
|
|
12
|
+
static getCampaignPromotionDetail(query: Request.GetCampaignPromotionDetailRequest): Promise<Response.GetCampaignPromotionDetailResponse>;
|
|
13
|
+
static checkCampaignPromotionLimit(query?: Request.CheckCampaignPromotionLimitRequest): Promise<Response.CheckCampaignPromotionLimitResponse>;
|
|
14
|
+
static checkCampaignPromotionOptOut(query?: Request.CheckCampaignPromotionOptOutRequest): Promise<Response.CheckCampaignPromotionOptOutResponse>;
|
|
15
|
+
static createCampaignPromotion(data: Request.CreateCampaignPromotionRequest): Promise<Response.CreateCampaignPromotionResponse>;
|
|
16
|
+
static getCampaignPromotionHistory(query: Request.GetCampaignPromotionHistoryRequest): Promise<DataWithMetaResponse<Response.GetCampaignPromotionHistoryResponse>>;
|
|
17
|
+
static sendCampaignPromotionTest(query: Request.SendCampaignPromotionTestRequest): Promise<Response.SendCampaignPromotionTestResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAC,oBAAo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from "../../../../base_type";
|
|
4
|
+
import * as Model from "../models";
|
|
5
|
+
import campaign from "../endpoints/campaign";
|
|
6
|
+
import { DataWithMetaModel } from "../../../../models";
|
|
7
|
+
export default class Campaign extends Base {
|
|
8
|
+
static getCampaignPromotionGroup(query) {
|
|
9
|
+
var _a;
|
|
10
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const response = yield this.client.get({
|
|
12
|
+
path: campaign.GET_CAMPAIGN_PROMOTION_GROUP,
|
|
13
|
+
query: query
|
|
14
|
+
});
|
|
15
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.CampaignPromotionGroupModel(item));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static getCampaignPromotionList(query) {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const response = yield this.client.get({
|
|
21
|
+
path: campaign.GET_CAMPAIGN_PROMOTION_LIST,
|
|
22
|
+
query: query
|
|
23
|
+
});
|
|
24
|
+
return DataWithMetaModel(response, Model.CampaignPromotionItemModel);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
static getCampaignPromotionListExpired(query) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const response = yield this.client.get({
|
|
30
|
+
path: campaign.GET_CAMPAIGN_PROMOTION_LIST_EXPIRED,
|
|
31
|
+
query: query
|
|
32
|
+
});
|
|
33
|
+
return DataWithMetaModel(response, Model.CampaignPromotionItemModel);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static getCampaignPromotionDetail(query) {
|
|
37
|
+
var _a;
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const response = yield this.client.get({
|
|
40
|
+
path: campaign.GET_CAMPAIGN_PROMOTION_DETAIL,
|
|
41
|
+
query: query
|
|
42
|
+
});
|
|
43
|
+
return Model.CampaignPromotionItemModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static checkCampaignPromotionLimit(query) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
const response = yield this.client.get({
|
|
49
|
+
path: campaign.CHECK_CAMPAIGN_PROMOTION_LIMIT,
|
|
50
|
+
query: query
|
|
51
|
+
});
|
|
52
|
+
return response === null || response === void 0 ? void 0 : response.result.status;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
static checkCampaignPromotionOptOut(query) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const response = yield this.client.get({
|
|
58
|
+
path: campaign.CHECK_CAMPAIGN_PROMOTION_OPT_OUT,
|
|
59
|
+
query: query
|
|
60
|
+
});
|
|
61
|
+
return response === null || response === void 0 ? void 0 : response.result.status;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
static createCampaignPromotion(data) {
|
|
65
|
+
var _a;
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.client.post({
|
|
68
|
+
path: campaign.CREATE_CAMPAIGN_PROMOTION,
|
|
69
|
+
data: data
|
|
70
|
+
});
|
|
71
|
+
return Model.CampaignPromotionItemModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
static getCampaignPromotionHistory(query) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const response = yield this.client.get({
|
|
77
|
+
path: campaign.GET_CAMPAIGN_PROMOTION_HISTORY,
|
|
78
|
+
query: query
|
|
79
|
+
});
|
|
80
|
+
return DataWithMetaModel(response, Model.CampaignPromotionHistory);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
static sendCampaignPromotionTest(query) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const response = yield this.client.post({
|
|
86
|
+
path: campaign.SEND_CAMPAIGN_PROMOTION_TEST,
|
|
87
|
+
query: query
|
|
88
|
+
});
|
|
89
|
+
return response === null || response === void 0 ? void 0 : response.result.status;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
Campaign.API_VERSION = GapApiVersion.V1;
|
|
@@ -7,4 +7,5 @@ export { default as Staff } from "./staff";
|
|
|
7
7
|
export { default as Notification } from "./notification";
|
|
8
8
|
export { default as Customer } from "./customer";
|
|
9
9
|
export { default as Business } from "./business";
|
|
10
|
+
export { default as Campaign } from "./campaign";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
GET_CAMPAIGN_PROMOTION_GROUP: string;
|
|
3
|
+
GET_CAMPAIGN_PROMOTION_LIST: string;
|
|
4
|
+
GET_CAMPAIGN_PROMOTION_LIST_EXPIRED: string;
|
|
5
|
+
GET_CAMPAIGN_PROMOTION_DETAIL: string;
|
|
6
|
+
CHECK_CAMPAIGN_PROMOTION_LIMIT: string;
|
|
7
|
+
CHECK_CAMPAIGN_PROMOTION_OPT_OUT: string;
|
|
8
|
+
CREATE_CAMPAIGN_PROMOTION: string;
|
|
9
|
+
GET_CAMPAIGN_PROMOTION_HISTORY: string;
|
|
10
|
+
SEND_CAMPAIGN_PROMOTION_TEST: string;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/campaign.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wBAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
GET_CAMPAIGN_PROMOTION_GROUP: '/v1/gocheckin/campaign/promotion/get-groups',
|
|
3
|
+
GET_CAMPAIGN_PROMOTION_LIST: '/v1/gocheckin/campaign/promotion/list',
|
|
4
|
+
GET_CAMPAIGN_PROMOTION_LIST_EXPIRED: '/v1/gocheckin/campaign/promotion/list-expired',
|
|
5
|
+
GET_CAMPAIGN_PROMOTION_DETAIL: '/v1/gocheckin/campaign/promotion/get',
|
|
6
|
+
CHECK_CAMPAIGN_PROMOTION_LIMIT: '/v1/gocheckin/campaign/promotion/check-limit',
|
|
7
|
+
CHECK_CAMPAIGN_PROMOTION_OPT_OUT: '/v1/gocheckin/campaign/promotion/check-opt-out',
|
|
8
|
+
CREATE_CAMPAIGN_PROMOTION: '/v1/gocheckin/campaign/promotion/create',
|
|
9
|
+
GET_CAMPAIGN_PROMOTION_HISTORY: '/v1/gocheckin/campaign/site/get-history',
|
|
10
|
+
SEND_CAMPAIGN_PROMOTION_TEST: '/v1/gocheckin/campaign/promotion/send-test',
|
|
11
|
+
};
|
|
@@ -7,4 +7,5 @@ export { default as staff } from "./staff";
|
|
|
7
7
|
export { default as notification } from "./notification";
|
|
8
8
|
export { default as customer } from "./customer";
|
|
9
9
|
export { default as business } from "./business";
|
|
10
|
+
export { default as campaign } from "./campaign";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/campaign.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const CampaignPromotionGroupModel: (data: any) => {
|
|
2
|
+
id: any;
|
|
3
|
+
name: any;
|
|
4
|
+
customer_quantity: any;
|
|
5
|
+
};
|
|
6
|
+
export declare const CampaignPromotionItemModel: (data: any) => {
|
|
7
|
+
id: any;
|
|
8
|
+
name: any;
|
|
9
|
+
type: any;
|
|
10
|
+
created_at: any;
|
|
11
|
+
updated_at: any;
|
|
12
|
+
is_active: any;
|
|
13
|
+
delivery_time: any;
|
|
14
|
+
read_tracking: any;
|
|
15
|
+
link_tracking: any;
|
|
16
|
+
reply_tracking: any;
|
|
17
|
+
google_analytics: any;
|
|
18
|
+
expired_date: any;
|
|
19
|
+
usable_limit: any;
|
|
20
|
+
start_date: any;
|
|
21
|
+
sent_at: any;
|
|
22
|
+
total_delivered_email: any;
|
|
23
|
+
total_delivered_push: any;
|
|
24
|
+
total_delivered_sms: any;
|
|
25
|
+
total_open: any;
|
|
26
|
+
total_optout: any;
|
|
27
|
+
total_sent: any;
|
|
28
|
+
total_visits: any;
|
|
29
|
+
tracker_id: any;
|
|
30
|
+
groups: any;
|
|
31
|
+
has_promotion: any;
|
|
32
|
+
expired_day_in: any;
|
|
33
|
+
logic_type: any;
|
|
34
|
+
logic_value: any;
|
|
35
|
+
is_show_exp: any;
|
|
36
|
+
business_name: any;
|
|
37
|
+
is_sent_opt_out: any;
|
|
38
|
+
email_subject: any;
|
|
39
|
+
campaign_report: {
|
|
40
|
+
total_email_sent: any;
|
|
41
|
+
total_sms_sent: any;
|
|
42
|
+
total_receive_message: any;
|
|
43
|
+
total_claim: any;
|
|
44
|
+
total_redemption: any;
|
|
45
|
+
claim_percent: any;
|
|
46
|
+
redemption_percent: any;
|
|
47
|
+
total_income: any;
|
|
48
|
+
total_expense: any;
|
|
49
|
+
percent_expense: any;
|
|
50
|
+
};
|
|
51
|
+
promotion_campaign: {
|
|
52
|
+
content: any;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const CampaignPromotionHistory: (data: any) => {
|
|
56
|
+
customer: {
|
|
57
|
+
full_name: any;
|
|
58
|
+
phone: any;
|
|
59
|
+
email: any;
|
|
60
|
+
birthday: any;
|
|
61
|
+
visit_count: any;
|
|
62
|
+
last_visited: any;
|
|
63
|
+
create_at: any;
|
|
64
|
+
note: any;
|
|
65
|
+
lifetime_point: any;
|
|
66
|
+
current_point: any;
|
|
67
|
+
};
|
|
68
|
+
code: any;
|
|
69
|
+
created_at: any;
|
|
70
|
+
updated_at: any;
|
|
71
|
+
is_used: any;
|
|
72
|
+
limit_used: any;
|
|
73
|
+
total_used: any;
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/campaign.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,SAAU,GAAG;;;;CAMpD,CAAA;AAuBD,eAAO,MAAM,0BAA0B,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCnD,CAAA;AAiBD,eAAO,MAAM,wBAAwB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;CAUjD,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const CampaignPromotionGroupModel = (data) => {
|
|
2
|
+
var _a, _b, _c;
|
|
3
|
+
return {
|
|
4
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
customer_quantity: (_c = data === null || data === void 0 ? void 0 : data.customer_quantity) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
const CampaignReportModel = (data) => {
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11
|
+
return {
|
|
12
|
+
total_email_sent: (_a = data === null || data === void 0 ? void 0 : data.total_email_sent) !== null && _a !== void 0 ? _a : null,
|
|
13
|
+
total_sms_sent: (_b = data === null || data === void 0 ? void 0 : data.total_sms_sent) !== null && _b !== void 0 ? _b : null,
|
|
14
|
+
total_receive_message: (_c = data === null || data === void 0 ? void 0 : data.total_receive_message) !== null && _c !== void 0 ? _c : null,
|
|
15
|
+
total_claim: (_d = data === null || data === void 0 ? void 0 : data.total_claim) !== null && _d !== void 0 ? _d : null,
|
|
16
|
+
total_redemption: (_e = data === null || data === void 0 ? void 0 : data.total_redemption) !== null && _e !== void 0 ? _e : null,
|
|
17
|
+
claim_percent: (_f = data === null || data === void 0 ? void 0 : data.claim_percent) !== null && _f !== void 0 ? _f : null,
|
|
18
|
+
redemption_percent: (_g = data === null || data === void 0 ? void 0 : data.redemption_percent) !== null && _g !== void 0 ? _g : null,
|
|
19
|
+
total_income: (_h = data === null || data === void 0 ? void 0 : data.total_income) !== null && _h !== void 0 ? _h : null,
|
|
20
|
+
total_expense: (_j = data === null || data === void 0 ? void 0 : data.total_expense) !== null && _j !== void 0 ? _j : null,
|
|
21
|
+
percent_expense: (_k = data === null || data === void 0 ? void 0 : data.percent_expense) !== null && _k !== void 0 ? _k : null,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const PromotionCampaignModel = (data) => {
|
|
25
|
+
var _a;
|
|
26
|
+
return {
|
|
27
|
+
content: (_a = data === null || data === void 0 ? void 0 : data.content) !== null && _a !== void 0 ? _a : null,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export const CampaignPromotionItemModel = (data) => {
|
|
31
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
32
|
+
return {
|
|
33
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
34
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
35
|
+
type: (_c = data === null || data === void 0 ? void 0 : data.type) !== null && _c !== void 0 ? _c : null,
|
|
36
|
+
created_at: (_d = data === null || data === void 0 ? void 0 : data.created_at) !== null && _d !== void 0 ? _d : null,
|
|
37
|
+
updated_at: (_e = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _e !== void 0 ? _e : null,
|
|
38
|
+
is_active: (_f = data === null || data === void 0 ? void 0 : data.is_active) !== null && _f !== void 0 ? _f : null,
|
|
39
|
+
delivery_time: (_g = data === null || data === void 0 ? void 0 : data.delivery_time) !== null && _g !== void 0 ? _g : null,
|
|
40
|
+
read_tracking: (_h = data === null || data === void 0 ? void 0 : data.read_tracking) !== null && _h !== void 0 ? _h : null,
|
|
41
|
+
link_tracking: (_j = data === null || data === void 0 ? void 0 : data.link_tracking) !== null && _j !== void 0 ? _j : null,
|
|
42
|
+
reply_tracking: (_k = data === null || data === void 0 ? void 0 : data.reply_tracking) !== null && _k !== void 0 ? _k : null,
|
|
43
|
+
google_analytics: (_l = data === null || data === void 0 ? void 0 : data.google_analytics) !== null && _l !== void 0 ? _l : null,
|
|
44
|
+
expired_date: (_m = data === null || data === void 0 ? void 0 : data.expired_date) !== null && _m !== void 0 ? _m : null,
|
|
45
|
+
usable_limit: (_o = data === null || data === void 0 ? void 0 : data.usable_limit) !== null && _o !== void 0 ? _o : null,
|
|
46
|
+
start_date: (_p = data === null || data === void 0 ? void 0 : data.start_date) !== null && _p !== void 0 ? _p : null,
|
|
47
|
+
sent_at: (_q = data === null || data === void 0 ? void 0 : data.sent_at) !== null && _q !== void 0 ? _q : null,
|
|
48
|
+
total_delivered_email: (_r = data === null || data === void 0 ? void 0 : data.total_delivered_email) !== null && _r !== void 0 ? _r : null,
|
|
49
|
+
total_delivered_push: (_s = data === null || data === void 0 ? void 0 : data.total_delivered_push) !== null && _s !== void 0 ? _s : null,
|
|
50
|
+
total_delivered_sms: (_t = data === null || data === void 0 ? void 0 : data.total_delivered_sms) !== null && _t !== void 0 ? _t : null,
|
|
51
|
+
total_open: (_u = data === null || data === void 0 ? void 0 : data.total_open) !== null && _u !== void 0 ? _u : null,
|
|
52
|
+
total_optout: (_v = data === null || data === void 0 ? void 0 : data.total_optout) !== null && _v !== void 0 ? _v : null,
|
|
53
|
+
total_sent: (_w = data === null || data === void 0 ? void 0 : data.total_sent) !== null && _w !== void 0 ? _w : null,
|
|
54
|
+
total_visits: (_x = data === null || data === void 0 ? void 0 : data.total_visits) !== null && _x !== void 0 ? _x : null,
|
|
55
|
+
tracker_id: (_y = data === null || data === void 0 ? void 0 : data.tracker_id) !== null && _y !== void 0 ? _y : null,
|
|
56
|
+
groups: (_z = data === null || data === void 0 ? void 0 : data.groups) !== null && _z !== void 0 ? _z : null,
|
|
57
|
+
has_promotion: (_0 = data === null || data === void 0 ? void 0 : data.has_promotion) !== null && _0 !== void 0 ? _0 : null,
|
|
58
|
+
expired_day_in: (_1 = data === null || data === void 0 ? void 0 : data.expired_day_in) !== null && _1 !== void 0 ? _1 : null,
|
|
59
|
+
logic_type: (_2 = data === null || data === void 0 ? void 0 : data.logic_type) !== null && _2 !== void 0 ? _2 : null,
|
|
60
|
+
logic_value: (_3 = data === null || data === void 0 ? void 0 : data.logic_value) !== null && _3 !== void 0 ? _3 : null,
|
|
61
|
+
is_show_exp: (_4 = data === null || data === void 0 ? void 0 : data.is_show_exp) !== null && _4 !== void 0 ? _4 : null,
|
|
62
|
+
business_name: (_5 = data === null || data === void 0 ? void 0 : data.business_name) !== null && _5 !== void 0 ? _5 : null,
|
|
63
|
+
is_sent_opt_out: (_6 = data === null || data === void 0 ? void 0 : data.is_sent_opt_out) !== null && _6 !== void 0 ? _6 : null,
|
|
64
|
+
email_subject: (_7 = data === null || data === void 0 ? void 0 : data.email_subject) !== null && _7 !== void 0 ? _7 : null,
|
|
65
|
+
campaign_report: CampaignReportModel(data === null || data === void 0 ? void 0 : data.campaign_report),
|
|
66
|
+
promotion_campaign: PromotionCampaignModel(data === null || data === void 0 ? void 0 : data.promotion_campaign),
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const CustomerModel = (data) => {
|
|
70
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
71
|
+
return {
|
|
72
|
+
full_name: (_a = data === null || data === void 0 ? void 0 : data.full_name) !== null && _a !== void 0 ? _a : null,
|
|
73
|
+
phone: (_b = data === null || data === void 0 ? void 0 : data.phone) !== null && _b !== void 0 ? _b : null,
|
|
74
|
+
email: (_c = data === null || data === void 0 ? void 0 : data.email) !== null && _c !== void 0 ? _c : null,
|
|
75
|
+
birthday: (_d = data === null || data === void 0 ? void 0 : data.birthday) !== null && _d !== void 0 ? _d : null,
|
|
76
|
+
visit_count: (_e = data === null || data === void 0 ? void 0 : data.visit_count) !== null && _e !== void 0 ? _e : null,
|
|
77
|
+
last_visited: (_f = data === null || data === void 0 ? void 0 : data.last_visited) !== null && _f !== void 0 ? _f : null,
|
|
78
|
+
create_at: (_g = data === null || data === void 0 ? void 0 : data.create_at) !== null && _g !== void 0 ? _g : null,
|
|
79
|
+
note: (_h = data === null || data === void 0 ? void 0 : data.note) !== null && _h !== void 0 ? _h : null,
|
|
80
|
+
lifetime_point: (_j = data === null || data === void 0 ? void 0 : data.lifetime_point) !== null && _j !== void 0 ? _j : null,
|
|
81
|
+
current_point: (_k = data === null || data === void 0 ? void 0 : data.current_point) !== null && _k !== void 0 ? _k : null,
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export const CampaignPromotionHistory = (data) => {
|
|
85
|
+
var _a, _b, _c, _d, _e, _f;
|
|
86
|
+
return {
|
|
87
|
+
customer: CustomerModel(data === null || data === void 0 ? void 0 : data.customer),
|
|
88
|
+
code: (_a = data === null || data === void 0 ? void 0 : data.code) !== null && _a !== void 0 ? _a : null,
|
|
89
|
+
created_at: (_b = data === null || data === void 0 ? void 0 : data.created_at) !== null && _b !== void 0 ? _b : null,
|
|
90
|
+
updated_at: (_c = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _c !== void 0 ? _c : null,
|
|
91
|
+
is_used: (_d = data === null || data === void 0 ? void 0 : data.is_used) !== null && _d !== void 0 ? _d : null,
|
|
92
|
+
limit_used: (_e = data === null || data === void 0 ? void 0 : data.limit_used) !== null && _e !== void 0 ? _e : null,
|
|
93
|
+
total_used: (_f = data === null || data === void 0 ? void 0 : data.total_used) !== null && _f !== void 0 ? _f : null,
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare type GetCampaignPromotionGroupRequest = {};
|
|
2
|
+
export declare type GetCampaignPromotionListRequest = {
|
|
3
|
+
page?: number;
|
|
4
|
+
'per-page'?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type GetCampaignPromotionListExpiredRequest = {
|
|
7
|
+
page?: number;
|
|
8
|
+
'per-page'?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type GetCampaignPromotionDetailRequest = {
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type CheckCampaignPromotionLimitRequest = {};
|
|
14
|
+
export declare type CheckCampaignPromotionOptOutRequest = {};
|
|
15
|
+
export declare type CreateCampaignPromotionRequest = {
|
|
16
|
+
name: string;
|
|
17
|
+
logic_value: number;
|
|
18
|
+
logic_type: string;
|
|
19
|
+
start_date: string;
|
|
20
|
+
expired_date: string;
|
|
21
|
+
has_promotion: number;
|
|
22
|
+
groups: number[];
|
|
23
|
+
content: string;
|
|
24
|
+
type_submit: number;
|
|
25
|
+
scheduler_date: string;
|
|
26
|
+
business_name: string;
|
|
27
|
+
is_show_exp: number;
|
|
28
|
+
is_sent_opt_out: number;
|
|
29
|
+
email_subject: string;
|
|
30
|
+
file?: File;
|
|
31
|
+
};
|
|
32
|
+
export declare type GetCampaignPromotionHistoryRequest = {
|
|
33
|
+
id: number;
|
|
34
|
+
page?: number;
|
|
35
|
+
'per-page'?: number;
|
|
36
|
+
keyword?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type SendCampaignPromotionTestRequest = {
|
|
39
|
+
email_test: string;
|
|
40
|
+
phone_test: string;
|
|
41
|
+
content: string;
|
|
42
|
+
exp_date: string;
|
|
43
|
+
date_start: string;
|
|
44
|
+
email_subject: string;
|
|
45
|
+
business_name: string;
|
|
46
|
+
is_show_exp: number;
|
|
47
|
+
is_sent_opt_out: number;
|
|
48
|
+
type: string;
|
|
49
|
+
campaign_name: string;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.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,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;CACxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Nullable } from "../../../../../base_type";
|
|
2
|
+
declare type CampaignReport = Nullable<{
|
|
3
|
+
total_email_sent: string;
|
|
4
|
+
total_sms_sent: string;
|
|
5
|
+
total_receive_message: number;
|
|
6
|
+
total_claim: string;
|
|
7
|
+
total_redemption: string;
|
|
8
|
+
claim_percent: number;
|
|
9
|
+
redemption_percent: number;
|
|
10
|
+
total_income: number;
|
|
11
|
+
total_expense: number;
|
|
12
|
+
percent_expense: number;
|
|
13
|
+
}>;
|
|
14
|
+
declare type PromotionCampaign = Nullable<{
|
|
15
|
+
content: string;
|
|
16
|
+
}>;
|
|
17
|
+
declare type Customer = Nullable<{
|
|
18
|
+
full_name: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
email: any;
|
|
21
|
+
birthday?: string;
|
|
22
|
+
visit_count: number;
|
|
23
|
+
last_visited: string;
|
|
24
|
+
create_at: string;
|
|
25
|
+
note?: string;
|
|
26
|
+
lifetime_point: number;
|
|
27
|
+
current_point: number;
|
|
28
|
+
}>;
|
|
29
|
+
declare type CampaignPromotionItem = Nullable<{
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
type: string;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: any;
|
|
35
|
+
is_active: number;
|
|
36
|
+
delivery_time: any;
|
|
37
|
+
read_tracking: any;
|
|
38
|
+
link_tracking: any;
|
|
39
|
+
reply_tracking: any;
|
|
40
|
+
google_analytics: any;
|
|
41
|
+
expired_date: string;
|
|
42
|
+
usable_limit: any;
|
|
43
|
+
start_date: string;
|
|
44
|
+
sent_at: any;
|
|
45
|
+
total_delivered_email: number;
|
|
46
|
+
total_delivered_push: number;
|
|
47
|
+
total_delivered_sms: number;
|
|
48
|
+
total_open: number;
|
|
49
|
+
total_optout: number;
|
|
50
|
+
total_sent: number;
|
|
51
|
+
total_visits: number;
|
|
52
|
+
tracker_id: any;
|
|
53
|
+
groups: string;
|
|
54
|
+
has_promotion: number;
|
|
55
|
+
expired_day_in: number;
|
|
56
|
+
logic_type: string;
|
|
57
|
+
logic_value: string;
|
|
58
|
+
is_show_exp: number;
|
|
59
|
+
business_name: string;
|
|
60
|
+
is_sent_opt_out: number;
|
|
61
|
+
email_subject: string;
|
|
62
|
+
campaign_report: CampaignReport;
|
|
63
|
+
promotion_campaign: PromotionCampaign;
|
|
64
|
+
}>;
|
|
65
|
+
export declare type GetCampaignPromotionGroupResponse = Nullable<{
|
|
66
|
+
id: number;
|
|
67
|
+
name: string;
|
|
68
|
+
customer_quantity: any;
|
|
69
|
+
}[]>;
|
|
70
|
+
export declare type GetCampaignPromotionListResponse = CampaignPromotionItem[];
|
|
71
|
+
export declare type GetCampaignPromotionListExpiredResponse = CampaignPromotionItem[];
|
|
72
|
+
export declare type GetCampaignPromotionDetailResponse = CampaignPromotionItem;
|
|
73
|
+
export declare type CheckCampaignPromotionLimitResponse = Nullable<{}>;
|
|
74
|
+
export declare type CheckCampaignPromotionOptOutResponse = Nullable<{}>;
|
|
75
|
+
export declare type CreateCampaignPromotionResponse = CampaignPromotionItem;
|
|
76
|
+
export declare type GetCampaignPromotionHistoryResponse = Nullable<{
|
|
77
|
+
customer: Customer;
|
|
78
|
+
code: string;
|
|
79
|
+
created_at: string;
|
|
80
|
+
updated_at: any;
|
|
81
|
+
is_used: number;
|
|
82
|
+
limit_used: number;
|
|
83
|
+
total_used: number;
|
|
84
|
+
}[]>;
|
|
85
|
+
export declare type SendCampaignPromotionTestResponse = Nullable<{}>;
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,aAAK,cAAc,GAAG,QAAQ,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA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AQ,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,GAAG,MAAC;IACJ,KAAK,MAAC;IACN,YAAY,MAAC;IACb,QAAQ,MAAC;IACT,QAAQ,MAAC;gBAEG,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,GAAG,MAAC;IACJ,KAAK,MAAC;IACN,YAAY,MAAC;IACb,QAAQ,MAAC;IACT,QAAQ,MAAC;IACT,QAAQ,MAAC;gBAEG,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAcvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/models/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/models/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,CAqE5E"}
|