gap-nodejs-sdk 1.0.367 → 1.0.369

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.
Files changed (38) hide show
  1. package/dist/api/go_check_in_api/1.0.0/api/dashboard.d.ts +11 -0
  2. package/dist/api/go_check_in_api/1.0.0/api/dashboard.d.ts.map +1 -0
  3. package/dist/api/go_check_in_api/1.0.0/api/dashboard.js +28 -0
  4. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts +1 -0
  5. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
  6. package/dist/api/go_check_in_api/1.0.0/api/index.js +1 -0
  7. package/dist/api/go_check_in_api/1.0.0/endpoints/dashboard.d.ts +6 -0
  8. package/dist/api/go_check_in_api/1.0.0/endpoints/dashboard.d.ts.map +1 -0
  9. package/dist/api/go_check_in_api/1.0.0/endpoints/dashboard.js +4 -0
  10. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -0
  11. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
  12. package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +1 -0
  13. package/dist/api/go_check_in_api/1.0.0/interfaces/dashboard.d.ts +3 -0
  14. package/dist/api/go_check_in_api/1.0.0/interfaces/dashboard.d.ts.map +1 -0
  15. package/dist/api/go_check_in_api/1.0.0/interfaces/dashboard.js +2 -0
  16. package/dist/api/go_check_in_api/1.0.0/models/dashboard.d.ts +36 -0
  17. package/dist/api/go_check_in_api/1.0.0/models/dashboard.d.ts.map +1 -0
  18. package/dist/api/go_check_in_api/1.0.0/models/dashboard.js +53 -0
  19. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +1 -0
  20. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
  21. package/dist/api/go_check_in_api/1.0.0/models/index.js +1 -0
  22. package/dist/api/go_check_in_api/1.0.0/types/request/dashboard.d.ts +6 -0
  23. package/dist/api/go_check_in_api/1.0.0/types/request/dashboard.d.ts.map +1 -0
  24. package/dist/api/go_check_in_api/1.0.0/types/request/dashboard.js +1 -0
  25. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +1 -0
  26. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
  27. package/dist/api/go_check_in_api/1.0.0/types/request/index.js +1 -0
  28. package/dist/api/go_check_in_api/1.0.0/types/response/dashboard.d.ts +41 -0
  29. package/dist/api/go_check_in_api/1.0.0/types/response/dashboard.d.ts.map +1 -0
  30. package/dist/api/go_check_in_api/1.0.0/types/response/dashboard.js +1 -0
  31. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +1 -0
  32. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
  33. package/dist/api/go_check_in_api/1.0.0/types/response/index.js +1 -0
  34. package/dist/api/go_check_in_api/index.d.ts +1 -0
  35. package/dist/api/go_check_in_api/index.d.ts.map +1 -1
  36. package/dist/api/go_check_in_api/index.js +1 -0
  37. package/dist/gap-sdk.js +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import DashboardAbstractClass from "../interfaces/dashboard";
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
+ export default class Dashboard extends Base implements DashboardAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static getDashboardReport(query?: Request.GetDashboardReportRequest): Promise<Response.GetDashboardReportResponse>;
9
+ static getDashboardReportChart(query?: Request.GetDashboardReportChartRequest): Promise<Response.GetDashboardReportChartResponse>;
10
+ }
11
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/dashboard.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,MAAM,yBAAyB,CAAC;AAC7D,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,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,IAAK,YAAW,sBAAsB;IACzE,OAAc,WAAW,gBAAoB;WAEzB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAU3G,uBAAuB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CASjJ"}
@@ -0,0 +1,28 @@
1
+ import { __awaiter } from "tslib";
2
+ import { dashboard } from "../endpoints";
3
+ import Base from "../../../../base/Base";
4
+ import { GapApiVersion } from "../../../../base_type";
5
+ import * as Model from "../models";
6
+ export default class Dashboard extends Base {
7
+ static getDashboardReport(query) {
8
+ var _a;
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: dashboard.GET_DASHBOARD_REPORT,
12
+ query: query
13
+ });
14
+ return Model.DashboardReportModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
15
+ });
16
+ }
17
+ static getDashboardReportChart(query) {
18
+ var _a;
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const response = yield this.client.get({
21
+ path: dashboard.GET_DASHBOARD_REPORT_CHART,
22
+ query: query
23
+ });
24
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(Model.DashboardReportChartModel);
25
+ });
26
+ }
27
+ }
28
+ Dashboard.API_VERSION = GapApiVersion.V1;
@@ -13,4 +13,5 @@ export { default as Group } from "./group";
13
13
  export { default as Reward } from "./reward";
14
14
  export { default as Review } from "./review";
15
15
  export { default as Invoice } from "./invoice";
16
+ export { default as Dashboard } from "./dashboard";
16
17
  //# 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;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,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;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC"}
@@ -13,3 +13,4 @@ export { default as Group } from "./group";
13
13
  export { default as Reward } from "./reward";
14
14
  export { default as Review } from "./review";
15
15
  export { default as Invoice } from "./invoice";
16
+ export { default as Dashboard } from "./dashboard";
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ GET_DASHBOARD_REPORT: string;
3
+ GET_DASHBOARD_REPORT_CHART: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/dashboard.ts"],"names":[],"mappings":";;;;AAAA,wBAGC"}
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_DASHBOARD_REPORT: '/v1/gocheckin/dashboard/site/report',
3
+ GET_DASHBOARD_REPORT_CHART: '/v1/gocheckin/dashboard/site/report-chart',
4
+ };
@@ -13,4 +13,5 @@ export { default as group } from "./group";
13
13
  export { default as reward } from "./reward";
14
14
  export { default as review } from "./review";
15
15
  export { default as invoice } from "./invoice";
16
+ export { default as dashboard } from "./dashboard";
16
17
  //# 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;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,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;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC"}
@@ -13,3 +13,4 @@ export { default as group } from "./group";
13
13
  export { default as reward } from "./reward";
14
14
  export { default as review } from "./review";
15
15
  export { default as invoice } from "./invoice";
16
+ export { default as dashboard } from "./dashboard";
@@ -0,0 +1,3 @@
1
+ export default abstract class Dashboard {
2
+ }
3
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/dashboard.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,SAAS;CACtC"}
@@ -0,0 +1,2 @@
1
+ export default class Dashboard {
2
+ }
@@ -0,0 +1,36 @@
1
+ export declare const DashboardReportModel: (data: any) => {
2
+ business_name: any;
3
+ id: any;
4
+ member_since: any;
5
+ totalDelivery: any;
6
+ totalRedemption: any;
7
+ income: {
8
+ totalIncome: any;
9
+ isShow: any;
10
+ };
11
+ lessRedemption: any;
12
+ customer: {
13
+ all: any;
14
+ vip: any;
15
+ regular: any;
16
+ new: any;
17
+ atrisk: any;
18
+ normal: any;
19
+ booking: any;
20
+ };
21
+ review: {
22
+ totalReview: any;
23
+ totalGoCheckinReview: any;
24
+ totalYelpReview: any;
25
+ totalGoogleReview: any;
26
+ lastGoCheckinReview: any;
27
+ lastYelpReview: any;
28
+ lastGoogleReview: any;
29
+ };
30
+ };
31
+ export declare const DashboardReportChartModel: (data: any) => {
32
+ category: any;
33
+ checkin: any;
34
+ new_sign_up: any;
35
+ };
36
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/dashboard.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU5C,CAAC;AAEH,eAAO,MAAM,yBAAyB,SAAU,GAAG;;;;CAIjD,CAAC"}
@@ -0,0 +1,53 @@
1
+ const CustomerModel = (data) => {
2
+ var _a, _b, _c, _d, _e, _f, _g;
3
+ return ({
4
+ all: (_a = data === null || data === void 0 ? void 0 : data.all) !== null && _a !== void 0 ? _a : null,
5
+ vip: (_b = data === null || data === void 0 ? void 0 : data.vip) !== null && _b !== void 0 ? _b : null,
6
+ regular: (_c = data === null || data === void 0 ? void 0 : data.regular) !== null && _c !== void 0 ? _c : null,
7
+ new: (_d = data === null || data === void 0 ? void 0 : data.new) !== null && _d !== void 0 ? _d : null,
8
+ atrisk: (_e = data === null || data === void 0 ? void 0 : data.atrisk) !== null && _e !== void 0 ? _e : null,
9
+ normal: (_f = data === null || data === void 0 ? void 0 : data.normal) !== null && _f !== void 0 ? _f : null,
10
+ booking: (_g = data === null || data === void 0 ? void 0 : data.booking) !== null && _g !== void 0 ? _g : null,
11
+ });
12
+ };
13
+ const IncomeModel = (data) => {
14
+ var _a, _b;
15
+ return ({
16
+ totalIncome: (_a = data === null || data === void 0 ? void 0 : data.totalIncome) !== null && _a !== void 0 ? _a : null,
17
+ isShow: (_b = data === null || data === void 0 ? void 0 : data.isShow) !== null && _b !== void 0 ? _b : null,
18
+ });
19
+ };
20
+ const ReviewModel = (data) => {
21
+ var _a, _b, _c, _d, _e, _f, _g;
22
+ return ({
23
+ totalReview: (_a = data === null || data === void 0 ? void 0 : data.totalReview) !== null && _a !== void 0 ? _a : null,
24
+ totalGoCheckinReview: (_b = data === null || data === void 0 ? void 0 : data.totalGoCheckinReview) !== null && _b !== void 0 ? _b : null,
25
+ totalYelpReview: (_c = data === null || data === void 0 ? void 0 : data.totalYelpReview) !== null && _c !== void 0 ? _c : null,
26
+ totalGoogleReview: (_d = data === null || data === void 0 ? void 0 : data.totalGoogleReview) !== null && _d !== void 0 ? _d : null,
27
+ lastGoCheckinReview: (_e = data === null || data === void 0 ? void 0 : data.lastGoCheckinReview) !== null && _e !== void 0 ? _e : null,
28
+ lastYelpReview: (_f = data === null || data === void 0 ? void 0 : data.lastYelpReview) !== null && _f !== void 0 ? _f : null,
29
+ lastGoogleReview: (_g = data === null || data === void 0 ? void 0 : data.lastGoogleReview) !== null && _g !== void 0 ? _g : null,
30
+ });
31
+ };
32
+ export const DashboardReportModel = (data) => {
33
+ var _a, _b, _c, _d, _e, _f;
34
+ return ({
35
+ business_name: (_a = data === null || data === void 0 ? void 0 : data.business_name) !== null && _a !== void 0 ? _a : null,
36
+ id: (_b = data === null || data === void 0 ? void 0 : data.id) !== null && _b !== void 0 ? _b : null,
37
+ member_since: (_c = data === null || data === void 0 ? void 0 : data.member_since) !== null && _c !== void 0 ? _c : null,
38
+ totalDelivery: (_d = data === null || data === void 0 ? void 0 : data.totalDelivery) !== null && _d !== void 0 ? _d : null,
39
+ totalRedemption: (_e = data === null || data === void 0 ? void 0 : data.totalRedemption) !== null && _e !== void 0 ? _e : null,
40
+ income: IncomeModel(data === null || data === void 0 ? void 0 : data.income),
41
+ lessRedemption: (_f = data === null || data === void 0 ? void 0 : data.lessRedemption) !== null && _f !== void 0 ? _f : null,
42
+ customer: CustomerModel(data === null || data === void 0 ? void 0 : data.customer),
43
+ review: ReviewModel(data === null || data === void 0 ? void 0 : data.review),
44
+ });
45
+ };
46
+ export const DashboardReportChartModel = (data) => {
47
+ var _a, _b, _c;
48
+ return ({
49
+ category: (_a = data === null || data === void 0 ? void 0 : data.category) !== null && _a !== void 0 ? _a : null,
50
+ checkin: (_b = data === null || data === void 0 ? void 0 : data.checkin) !== null && _b !== void 0 ? _b : null,
51
+ new_sign_up: (_c = data === null || data === void 0 ? void 0 : data.new_sign_up) !== null && _c !== void 0 ? _c : null,
52
+ });
53
+ };
@@ -13,4 +13,5 @@ export * from "./group";
13
13
  export * from "./reward";
14
14
  export * from "./review";
15
15
  export * from "./invoice";
16
+ export * from "./dashboard";
16
17
  //# 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/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;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,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;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
@@ -13,3 +13,4 @@ export * from "./group";
13
13
  export * from "./reward";
14
14
  export * from "./review";
15
15
  export * from "./invoice";
16
+ export * from "./dashboard";
@@ -0,0 +1,6 @@
1
+ export type GetDashboardReportRequest = {};
2
+ export type GetDashboardReportChartRequest = {
3
+ start: string;
4
+ type: string;
5
+ };
6
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/dashboard.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAC3C,MAAM,MAAM,8BAA8B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -13,4 +13,5 @@ export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
15
  export * from './invoice';
16
+ export * from './dashboard';
16
17
  //# 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/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;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,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;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -13,3 +13,4 @@ export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
15
  export * from './invoice';
16
+ export * from './dashboard';
@@ -0,0 +1,41 @@
1
+ import { Nullable } from "../../../../../base_type";
2
+ type Customer = {
3
+ all: number;
4
+ vip: number;
5
+ regular: number;
6
+ new: number;
7
+ atrisk: number;
8
+ normal: number;
9
+ booking: number;
10
+ };
11
+ type Income = {
12
+ totalIncome: number;
13
+ isShow: number;
14
+ };
15
+ type Review = {
16
+ totalReview: number;
17
+ totalGoCheckinReview: string;
18
+ totalYelpReview: string;
19
+ totalGoogleReview: string;
20
+ lastGoCheckinReview: string;
21
+ lastYelpReview: string;
22
+ lastGoogleReview: string;
23
+ };
24
+ export type GetDashboardReportResponse = Nullable<{
25
+ business_name: string;
26
+ id: string;
27
+ member_since: Date;
28
+ totalDelivery: number;
29
+ totalRedemption: number;
30
+ income: Income;
31
+ lessRedemption: number;
32
+ customer: Customer;
33
+ review: Review;
34
+ }>;
35
+ export type GetDashboardReportChartResponse = Nullable<Array<{
36
+ category: string;
37
+ checkin: string;
38
+ new_sign_up: string;
39
+ }>>;
40
+ export {};
41
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +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,EAAM,MAAM,CAAC;IAChB,GAAG,EAAM,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAM,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,KAAK,MAAM,GAAG;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAO,MAAM,CAAC;CACvB,CAAA;AAED,KAAK,MAAM,GAAG;IACV,WAAW,EAAW,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAO,MAAM,CAAC;IAC7B,iBAAiB,EAAK,MAAM,CAAC;IAC7B,mBAAmB,EAAG,MAAM,CAAC;IAC7B,cAAc,EAAQ,MAAM,CAAC;IAC7B,gBAAgB,EAAM,MAAM,CAAC;CAChC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAC9C,aAAa,EAAI,MAAM,CAAC;IACxB,EAAE,EAAe,MAAM,CAAC;IACxB,YAAY,EAAK,IAAI,CAAC;IACtB,aAAa,EAAI,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAW,MAAM,CAAC;IACxB,cAAc,EAAG,MAAM,CAAC;IACxB,QAAQ,EAAS,QAAQ,CAAC;IAC1B,MAAM,EAAW,MAAM,CAAC;CAC3B,CAAC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC,KAAK,CAAC;IACzD,QAAQ,EAAK,MAAM,CAAC;IACpB,OAAO,EAAM,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC,CAAA"}
@@ -13,4 +13,5 @@ export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
15
  export * from './invoice';
16
+ export * from './dashboard';
16
17
  //# 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/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;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,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;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -13,3 +13,4 @@ export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
15
  export * from './invoice';
16
+ export * from './dashboard';
@@ -15,6 +15,7 @@ export default class GoCheckInApi {
15
15
  reward: any;
16
16
  review: any;
17
17
  invoice: any;
18
+ dashboard: any;
18
19
  constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
19
20
  }
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -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;IACT,QAAQ,MAAC;IACT,OAAO,MAAC;IACR,KAAK,MAAC;IACN,MAAM,MAAC;IACP,MAAM,MAAC;IACP,OAAO,MAAC;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAmBvF"}
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;IACT,OAAO,MAAC;IACR,KAAK,MAAC;IACN,MAAM,MAAC;IACP,MAAM,MAAC;IACP,OAAO,MAAC;IACR,SAAS,MAAC;gBAEE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAoBvF"}
@@ -19,5 +19,6 @@ export default class GoCheckInApi {
19
19
  this.reward = API.Reward;
20
20
  this.review = API.Review;
21
21
  this.invoice = API.Invoice;
22
+ this.dashboard = API.Dashboard;
22
23
  }
23
24
  }