@compassdigital/sdk.typescript 4.67.0 → 4.69.0

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 (87) hide show
  1. package/lib/index.d.ts +58 -57
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +503 -501
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/ai.d.ts +1 -1
  6. package/lib/interface/ai.d.ts.map +1 -1
  7. package/lib/interface/announcement.d.ts +1 -1
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/auth.d.ts +3 -3
  10. package/lib/interface/auth.d.ts.map +1 -1
  11. package/lib/interface/calendar.d.ts +2 -2
  12. package/lib/interface/calendar.d.ts.map +1 -1
  13. package/lib/interface/centricos.d.ts +11 -11
  14. package/lib/interface/centricos.d.ts.map +1 -1
  15. package/lib/interface/compassconnect.d.ts +1 -1
  16. package/lib/interface/compassconnect.d.ts.map +1 -1
  17. package/lib/interface/config.d.ts +1 -1
  18. package/lib/interface/config.d.ts.map +1 -1
  19. package/lib/interface/datalake.d.ts +1 -1
  20. package/lib/interface/datalake.d.ts.map +1 -1
  21. package/lib/interface/email.d.ts +1 -1
  22. package/lib/interface/email.d.ts.map +1 -1
  23. package/lib/interface/file.d.ts +2 -2
  24. package/lib/interface/file.d.ts.map +1 -1
  25. package/lib/interface/frictionless.d.ts +9 -9
  26. package/lib/interface/frictionless.d.ts.map +1 -1
  27. package/lib/interface/kds.d.ts +1 -1
  28. package/lib/interface/kds.d.ts.map +1 -1
  29. package/lib/interface/location.d.ts +6 -4
  30. package/lib/interface/location.d.ts.map +1 -1
  31. package/lib/interface/mealplan.d.ts +2 -1
  32. package/lib/interface/mealplan.d.ts.map +1 -1
  33. package/lib/interface/menu.d.ts +149 -109
  34. package/lib/interface/menu.d.ts.map +1 -1
  35. package/lib/interface/notification.d.ts +3 -3
  36. package/lib/interface/notification.d.ts.map +1 -1
  37. package/lib/interface/order.d.ts +7 -7
  38. package/lib/interface/order.d.ts.map +1 -1
  39. package/lib/interface/partner.d.ts +10 -10
  40. package/lib/interface/partner.d.ts.map +1 -1
  41. package/lib/interface/payment.d.ts +3 -3
  42. package/lib/interface/payment.d.ts.map +1 -1
  43. package/lib/interface/promo.d.ts +8 -8
  44. package/lib/interface/promo.d.ts.map +1 -1
  45. package/lib/interface/report.d.ts +10 -10
  46. package/lib/interface/report.d.ts.map +1 -1
  47. package/lib/interface/search.d.ts +8 -8
  48. package/lib/interface/search.d.ts.map +1 -1
  49. package/lib/interface/shoppingcart.d.ts +7 -7
  50. package/lib/interface/shoppingcart.d.ts.map +1 -1
  51. package/lib/interface/task.d.ts +8 -8
  52. package/lib/interface/task.d.ts.map +1 -1
  53. package/lib/interface/tax.d.ts +2 -2
  54. package/lib/interface/tax.d.ts.map +1 -1
  55. package/lib/interface/user.d.ts +16 -16
  56. package/lib/interface/user.d.ts.map +1 -1
  57. package/lib/interface/vendor.d.ts +6 -6
  58. package/lib/interface/vendor.d.ts.map +1 -1
  59. package/package.json +1 -1
  60. package/src/index.ts +10395 -10394
  61. package/src/interface/ai.ts +22 -22
  62. package/src/interface/announcement.ts +60 -60
  63. package/src/interface/auth.ts +68 -68
  64. package/src/interface/calendar.ts +94 -94
  65. package/src/interface/centricos.ts +145 -145
  66. package/src/interface/compassconnect.ts +59 -59
  67. package/src/interface/config.ts +166 -166
  68. package/src/interface/datalake.ts +13 -13
  69. package/src/interface/email.ts +13 -13
  70. package/src/interface/file.ts +18 -18
  71. package/src/interface/frictionless.ts +177 -177
  72. package/src/interface/kds.ts +49 -49
  73. package/src/interface/location.ts +771 -769
  74. package/src/interface/mealplan.ts +155 -154
  75. package/src/interface/menu.ts +4079 -4018
  76. package/src/interface/notification.ts +51 -51
  77. package/src/interface/order.ts +464 -464
  78. package/src/interface/partner.ts +823 -823
  79. package/src/interface/payment.ts +278 -278
  80. package/src/interface/promo.ts +373 -373
  81. package/src/interface/report.ts +348 -348
  82. package/src/interface/search.ts +135 -135
  83. package/src/interface/shoppingcart.ts +429 -429
  84. package/src/interface/task.ts +212 -212
  85. package/src/interface/tax.ts +69 -69
  86. package/src/interface/user.ts +410 -410
  87. package/src/interface/vendor.ts +215 -215
@@ -1,67 +1,67 @@
1
1
  /* eslint-disable */
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
3
 
4
- import { RequestQuery, BaseRequest } from "./util";
4
+ import { RequestQuery, BaseRequest } from './util';
5
5
 
6
6
  export interface Error {
7
- error?: string;
8
- code?: number;
9
- data?: Record<string, any>;
7
+ error?: string;
8
+ code?: number;
9
+ data?: Record<string, any>;
10
10
  }
11
11
 
12
12
  export interface Notification {
13
- // notification
14
- id: string;
15
- title?: string;
16
- text: string;
17
- date_modified?: string;
18
- status?: NotificationStatus;
19
- release_date?: string;
13
+ // notification
14
+ id: string;
15
+ title?: string;
16
+ text: string;
17
+ date_modified?: string;
18
+ status?: NotificationStatus;
19
+ release_date?: string;
20
20
  }
21
21
 
22
22
  export interface NotificationBody {
23
- title?: string;
24
- text: string;
25
- realm: "cdl" | "boost" | "thrive" | "nourish" | "rogers" | "jjkitchen";
26
- // Recipient of the notifications. Example: specific realm, role or user id
27
- target: string;
28
- release_date?: string;
23
+ title?: string;
24
+ text: string;
25
+ realm: 'cdl' | 'boost' | 'thrive' | 'nourish' | 'rogers' | 'jjkitchen';
26
+ // Recipient of the notifications. Example: specific realm, role or user id
27
+ target: string;
28
+ release_date?: string;
29
29
  }
30
30
 
31
31
  export interface PushNotificationBody {
32
- title: string;
33
- text: string;
34
- // Recipient of the notifications. Example: specific realm, role or user id
35
- target: string;
36
- data?: Record<string, any>;
32
+ title: string;
33
+ text: string;
34
+ // Recipient of the notifications. Example: specific realm, role or user id
35
+ target: string;
36
+ data?: Record<string, any>;
37
37
  }
38
38
 
39
39
  export interface NotificationStatus {
40
- read?: boolean;
41
- released?: boolean;
40
+ read?: boolean;
41
+ released?: boolean;
42
42
  }
43
43
 
44
44
  export interface Success {
45
- success?: boolean;
45
+ success?: boolean;
46
46
  }
47
47
 
48
48
  // GET /notification - Get all notifications
49
49
 
50
50
  export interface GetNotificationsQuery {
51
- // Realm of notifications
52
- realm: "cdl" | "boost" | "thrive" | "nourish" | "rogers" | "jjkitchen";
53
- // Recipient of the notifications. Can be the whole realm, role or user id
54
- target: string;
55
- // Start date of the notifications. If not provided will default to 90 days ago.
56
- start?: string;
57
- // End date of the notifications. If not provided will default to current date.
58
- end?: string;
59
- // Graphql query string
60
- _query?: string;
51
+ // Realm of notifications
52
+ realm: 'cdl' | 'boost' | 'thrive' | 'nourish' | 'rogers' | 'jjkitchen';
53
+ // Recipient of the notifications. Can be the whole realm, role or user id
54
+ target: string;
55
+ // Start date of the notifications. If not provided will default to 90 days ago.
56
+ start?: string;
57
+ // End date of the notifications. If not provided will default to current date.
58
+ end?: string;
59
+ // Graphql query string
60
+ _query?: string;
61
61
  }
62
62
 
63
63
  export interface GetNotificationsResponse {
64
- notifications?: Notification[];
64
+ notifications?: Notification[];
65
65
  }
66
66
 
67
67
  export interface GetNotificationsRequest extends BaseRequest, RequestQuery<GetNotificationsQuery> {}
@@ -73,14 +73,14 @@ export type PostNotificationBody = NotificationBody;
73
73
  export type PostNotificationResponse = Notification;
74
74
 
75
75
  export interface PostNotificationRequest extends BaseRequest {
76
- body: PostNotificationBody;
76
+ body: PostNotificationBody;
77
77
  }
78
78
 
79
79
  // PATCH /notification/{id} - Update a notification
80
80
 
81
81
  export interface PatchNotificationPath {
82
- // Id of a notification
83
- id: string;
82
+ // Id of a notification
83
+ id: string;
84
84
  }
85
85
 
86
86
  export type PatchNotificationBody = NotificationBody;
@@ -88,14 +88,14 @@ export type PatchNotificationBody = NotificationBody;
88
88
  export type PatchNotificationResponse = Notification;
89
89
 
90
90
  export interface PatchNotificationRequest extends BaseRequest, PatchNotificationPath {
91
- body: PatchNotificationBody;
91
+ body: PatchNotificationBody;
92
92
  }
93
93
 
94
94
  // DELETE /notification/{id} - Delete a notification
95
95
 
96
96
  export interface DeleteNotificationPath {
97
- // Id of a notification
98
- id: string;
97
+ // Id of a notification
98
+ id: string;
99
99
  }
100
100
 
101
101
  export type DeleteNotificationResponse = Success;
@@ -105,8 +105,8 @@ export interface DeleteNotificationRequest extends BaseRequest, DeleteNotificati
105
105
  // POST /notification/{id}/status - Set a notification status for request user
106
106
 
107
107
  export interface PostNotificationStatusPath {
108
- // Id of a notification
109
- id: string;
108
+ // Id of a notification
109
+ id: string;
110
110
  }
111
111
 
112
112
  export type PostNotificationStatusBody = NotificationStatus;
@@ -114,7 +114,7 @@ export type PostNotificationStatusBody = NotificationStatus;
114
114
  export type PostNotificationStatusResponse = NotificationStatus;
115
115
 
116
116
  export interface PostNotificationStatusRequest extends BaseRequest, PostNotificationStatusPath {
117
- body: PostNotificationStatusBody;
117
+ body: PostNotificationStatusBody;
118
118
  }
119
119
 
120
120
  // POST /notification/device/push - Send a push notification to user's device
@@ -124,20 +124,20 @@ export type PostNotificationDevicePushBody = PushNotificationBody;
124
124
  export type PostNotificationDevicePushResponse = Success;
125
125
 
126
126
  export interface PostNotificationDevicePushRequest extends BaseRequest {
127
- body: PostNotificationDevicePushBody;
127
+ body: PostNotificationDevicePushBody;
128
128
  }
129
129
 
130
130
  // GET /notification/swagger.json - Get a swagger for notification service
131
131
 
132
132
  export interface GetNotificationSwaggerQuery {
133
- // Graphql query string
134
- _query?: string;
133
+ // Graphql query string
134
+ _query?: string;
135
135
  }
136
136
 
137
137
  export interface GetNotificationSwaggerResponse {
138
- [index: string]: any;
138
+ [index: string]: any;
139
139
  }
140
140
 
141
141
  export interface GetNotificationSwaggerRequest
142
- extends BaseRequest,
143
- RequestQuery<GetNotificationSwaggerQuery> {}
142
+ extends BaseRequest,
143
+ RequestQuery<GetNotificationSwaggerQuery> {}