gap-nodejs-sdk 1.0.371 → 1.0.372

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.
@@ -23,10 +23,27 @@ export declare const DashboardReportModel: (data: any) => {
23
23
  totalGoCheckinReview: any;
24
24
  totalYelpReview: any;
25
25
  totalGoogleReview: any;
26
- lastGoCheckinReview: any;
27
- lastYelpReview: any;
28
- lastGoogleReview: any;
26
+ lastGoCheckinReview: {
27
+ user_name: any;
28
+ rating: any;
29
+ content: any;
30
+ time_create: any;
31
+ };
32
+ lastYelpReview: {
33
+ user_name: any;
34
+ rating: any;
35
+ content: any;
36
+ time_create: any;
37
+ };
38
+ lastGoogleReview: {
39
+ user_name: any;
40
+ rating: any;
41
+ content: any;
42
+ time_create: any;
43
+ };
29
44
  };
45
+ totalCampaignEmailSent: any;
46
+ totalCampaignSmsSent: any;
30
47
  };
31
48
  export declare const DashboardReportChartModel: (data: any) => {
32
49
  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":"AAyBA,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU5C,CAAC;AAEH,eAAO,MAAM,yBAAyB,SAAU,GAAG;;;;CAIjD,CAAC"}
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/dashboard.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY5C,CAAC;AAEH,eAAO,MAAM,yBAAyB,SAAU,GAAG;;;;CAIjD,CAAC"}
@@ -17,20 +17,29 @@ const IncomeModel = (data) => {
17
17
  isShow: (_b = data === null || data === void 0 ? void 0 : data.isShow) !== null && _b !== void 0 ? _b : null,
18
18
  });
19
19
  };
20
+ const LastReviewDetailModel = (data) => {
21
+ var _a, _b, _c, _d;
22
+ return ({
23
+ user_name: (_a = data === null || data === void 0 ? void 0 : data.user_name) !== null && _a !== void 0 ? _a : null,
24
+ rating: (_b = data === null || data === void 0 ? void 0 : data.rating) !== null && _b !== void 0 ? _b : null,
25
+ content: (_c = data === null || data === void 0 ? void 0 : data.content) !== null && _c !== void 0 ? _c : null,
26
+ time_create: (_d = data === null || data === void 0 ? void 0 : data.time_create) !== null && _d !== void 0 ? _d : null,
27
+ });
28
+ };
20
29
  const ReviewModel = (data) => {
21
- var _a, _b, _c, _d, _e, _f, _g;
30
+ var _a, _b, _c, _d;
22
31
  return ({
23
32
  totalReview: (_a = data === null || data === void 0 ? void 0 : data.totalReview) !== null && _a !== void 0 ? _a : null,
24
33
  totalGoCheckinReview: (_b = data === null || data === void 0 ? void 0 : data.totalGoCheckinReview) !== null && _b !== void 0 ? _b : null,
25
34
  totalYelpReview: (_c = data === null || data === void 0 ? void 0 : data.totalYelpReview) !== null && _c !== void 0 ? _c : null,
26
35
  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,
36
+ lastGoCheckinReview: LastReviewDetailModel(data === null || data === void 0 ? void 0 : data.lastGoCheckinReview),
37
+ lastYelpReview: LastReviewDetailModel(data === null || data === void 0 ? void 0 : data.lastYelpReview),
38
+ lastGoogleReview: LastReviewDetailModel(data === null || data === void 0 ? void 0 : data.lastGoogleReview),
30
39
  });
31
40
  };
32
41
  export const DashboardReportModel = (data) => {
33
- var _a, _b, _c, _d, _e, _f;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h;
34
43
  return ({
35
44
  business_name: (_a = data === null || data === void 0 ? void 0 : data.business_name) !== null && _a !== void 0 ? _a : null,
36
45
  id: (_b = data === null || data === void 0 ? void 0 : data.id) !== null && _b !== void 0 ? _b : null,
@@ -41,6 +50,8 @@ export const DashboardReportModel = (data) => {
41
50
  lessRedemption: (_f = data === null || data === void 0 ? void 0 : data.lessRedemption) !== null && _f !== void 0 ? _f : null,
42
51
  customer: CustomerModel(data === null || data === void 0 ? void 0 : data.customer),
43
52
  review: ReviewModel(data === null || data === void 0 ? void 0 : data.review),
53
+ totalCampaignEmailSent: (_g = data === null || data === void 0 ? void 0 : data.totalCampaignEmailSent) !== null && _g !== void 0 ? _g : null,
54
+ totalCampaignSmsSent: (_h = data === null || data === void 0 ? void 0 : data.totalCampaignSmsSent) !== null && _h !== void 0 ? _h : null,
44
55
  });
45
56
  };
46
57
  export const DashboardReportChartModel = (data) => {
@@ -10,7 +10,7 @@ export type GetBusinessSiteInfoResponse = Nullable<{
10
10
  short_name: string;
11
11
  phone: string;
12
12
  open_time: any;
13
- industry_id: any;
13
+ industry_id: number;
14
14
  website: any;
15
15
  facebook_url: string;
16
16
  yelp_url: string;
@@ -31,7 +31,38 @@ export type GetBusinessSiteInfoResponse = Nullable<{
31
31
  web_booking_active: string;
32
32
  timezone: string;
33
33
  }>;
34
- export type UpdateBusinessSiteInfoResponse = GetBusinessSiteInfoResponse;
34
+ export type UpdateBusinessSiteInfoResponse = {
35
+ map_location: any[];
36
+ id: number;
37
+ name: string;
38
+ address: string;
39
+ city: string;
40
+ postal_code: string;
41
+ state_code: string;
42
+ short_name: string;
43
+ phone: string;
44
+ open_time: any;
45
+ industry_id: number;
46
+ website: any;
47
+ facebook_url: string;
48
+ yelp_url: string;
49
+ google_url: string;
50
+ twitter_user: any;
51
+ instagram_user: any;
52
+ created_at: string;
53
+ updated_at: string;
54
+ logo_image: string;
55
+ cover_image: string;
56
+ business_code: any;
57
+ description: string;
58
+ check_yelp: number;
59
+ check_google: number;
60
+ country_code: string;
61
+ map_url: string;
62
+ order_active: number;
63
+ web_booking_active: string;
64
+ timezone: string;
65
+ };
35
66
  export type UploadResponse = Nullable<{
36
67
  name: string;
37
68
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/business.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IAC/C,YAAY,EAAE,GAAG,EAAE,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,GAAG,CAAA;IACd,WAAW,EAAE,GAAG,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,GAAG,CAAA;IACjB,cAAc,EAAE,GAAG,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,GAAG,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,2BAA2B,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACrB,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/business.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IAC/C,YAAY,EAAE,GAAG,EAAE,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,GAAG,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,GAAG,CAAA;IACjB,cAAc,EAAE,GAAG,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;I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nB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACrB,EAAE,CAAC,CAAA"}
@@ -12,14 +12,20 @@ type Income = {
12
12
  totalIncome: number;
13
13
  isShow: number;
14
14
  };
15
+ type LastReviewDetail = {
16
+ user_name: string;
17
+ rating: number;
18
+ content: string;
19
+ time_create: string;
20
+ };
15
21
  type Review = {
16
22
  totalReview: number;
17
23
  totalGoCheckinReview: string;
18
24
  totalYelpReview: string;
19
25
  totalGoogleReview: string;
20
- lastGoCheckinReview: string;
21
- lastYelpReview: string;
22
- lastGoogleReview: string;
26
+ lastGoCheckinReview: LastReviewDetail;
27
+ lastYelpReview: LastReviewDetail;
28
+ lastGoogleReview: LastReviewDetail;
23
29
  };
24
30
  export type GetDashboardReportResponse = Nullable<{
25
31
  business_name: string;
@@ -31,6 +37,8 @@ export type GetDashboardReportResponse = Nullable<{
31
37
  lessRedemption: number;
32
38
  customer: Customer;
33
39
  review: Review;
40
+ totalCampaignEmailSent: string;
41
+ totalCampaignSmsSent: string;
34
42
  }>;
35
43
  export type GetDashboardReportChartResponse = Nullable<Array<{
36
44
  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,EAAM,MAAM,CAAC;IAChB,GAAG,EAAM,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAM,MAAM,CAAC;IAChB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