gap-nodejs-sdk 1.0.413 → 1.0.415
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/models/dashboard.d.ts +8 -0
- package/dist/api/go_check_in_api/1.0.0/models/dashboard.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/models/dashboard.js +12 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/dashboard.d.ts +9 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/dashboard.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -44,6 +44,14 @@ export declare const DashboardReportModel: (data: any) => {
|
|
|
44
44
|
};
|
|
45
45
|
totalCampaignEmailSent: any;
|
|
46
46
|
totalCampaignSmsSent: any;
|
|
47
|
+
survey_checkin: {
|
|
48
|
+
facebook: any;
|
|
49
|
+
google: any;
|
|
50
|
+
instagram: any;
|
|
51
|
+
other: any;
|
|
52
|
+
total: any;
|
|
53
|
+
website: any;
|
|
54
|
+
};
|
|
47
55
|
};
|
|
48
56
|
export declare const DashboardReportChartModel: (data: any) => {
|
|
49
57
|
category: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/dashboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/dashboard.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa5C,CAAC;AAEH,eAAO,MAAM,yBAAyB,SAAU,GAAG;;;;CAIjD,CAAC"}
|
|
@@ -10,6 +10,17 @@ const CustomerModel = (data) => {
|
|
|
10
10
|
booking: (_g = data === null || data === void 0 ? void 0 : data.booking) !== null && _g !== void 0 ? _g : null,
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
+
const SurveyCheckinModel = (data) => {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
|
+
return ({
|
|
16
|
+
facebook: (_a = data === null || data === void 0 ? void 0 : data.facebook) !== null && _a !== void 0 ? _a : null,
|
|
17
|
+
google: (_b = data === null || data === void 0 ? void 0 : data.google) !== null && _b !== void 0 ? _b : null,
|
|
18
|
+
instagram: (_c = data === null || data === void 0 ? void 0 : data.instagram) !== null && _c !== void 0 ? _c : null,
|
|
19
|
+
other: (_d = data === null || data === void 0 ? void 0 : data.other) !== null && _d !== void 0 ? _d : null,
|
|
20
|
+
total: (_e = data === null || data === void 0 ? void 0 : data.total) !== null && _e !== void 0 ? _e : null,
|
|
21
|
+
website: (_f = data === null || data === void 0 ? void 0 : data.website) !== null && _f !== void 0 ? _f : null,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
13
24
|
const IncomeModel = (data) => {
|
|
14
25
|
var _a, _b;
|
|
15
26
|
return ({
|
|
@@ -52,6 +63,7 @@ export const DashboardReportModel = (data) => {
|
|
|
52
63
|
review: ReviewModel(data === null || data === void 0 ? void 0 : data.review),
|
|
53
64
|
totalCampaignEmailSent: (_g = data === null || data === void 0 ? void 0 : data.totalCampaignEmailSent) !== null && _g !== void 0 ? _g : null,
|
|
54
65
|
totalCampaignSmsSent: (_h = data === null || data === void 0 ? void 0 : data.totalCampaignSmsSent) !== null && _h !== void 0 ? _h : null,
|
|
66
|
+
survey_checkin: SurveyCheckinModel(data === null || data === void 0 ? void 0 : data.survey_checkin),
|
|
55
67
|
});
|
|
56
68
|
};
|
|
57
69
|
export const DashboardReportChartModel = (data) => {
|
|
@@ -8,6 +8,14 @@ type Customer = {
|
|
|
8
8
|
normal: number;
|
|
9
9
|
booking: number;
|
|
10
10
|
};
|
|
11
|
+
type SurveyCheckin = {
|
|
12
|
+
facebook: string;
|
|
13
|
+
google: string;
|
|
14
|
+
instagram: string;
|
|
15
|
+
other: string;
|
|
16
|
+
total: string;
|
|
17
|
+
website: string;
|
|
18
|
+
};
|
|
11
19
|
type Income = {
|
|
12
20
|
totalIncome: number;
|
|
13
21
|
isShow: number;
|
|
@@ -39,6 +47,7 @@ export type GetDashboardReportResponse = Nullable<{
|
|
|
39
47
|
review: Review;
|
|
40
48
|
totalCampaignEmailSent: string;
|
|
41
49
|
totalCampaignSmsSent: string;
|
|
50
|
+
survey_checkin: SurveyCheckin;
|
|
42
51
|
}>;
|
|
43
52
|
export type GetDashboardReportChartResponse = Nullable<Array<{
|
|
44
53
|
category: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,KAAK,QAAQ,GAAG;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,KAAK,MAAM,GAAG;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,KAAK,MAAM,GAAG;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,gBAAgB,CAAC;IACtC,cAAc,EAAE,gBAAgB,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;CACtC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,IAAI,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,KAAK,QAAQ,GAAG;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,KAAK,aAAa,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,KAAK,MAAM,GAAG;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACpB,SAAS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