@compassdigital/sdk.typescript 3.77.0 → 4.0.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.
- package/lib/index.d.ts +103 -81
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +90 -63
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +50 -0
- package/lib/interface/ai.d.ts.map +1 -0
- package/lib/interface/ai.js +5 -0
- package/lib/interface/ai.js.map +1 -0
- package/lib/interface/calendar.d.ts +1 -1
- package/lib/interface/datalake.d.ts +3 -3
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/delivery.d.ts +2 -2
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/file.d.ts +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +24 -24
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/location.d.ts +23 -14
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/location.js +12 -0
- package/lib/interface/location.js.map +1 -1
- package/lib/interface/mealplan.d.ts +6 -5
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +585 -492
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/menu.js +6 -0
- package/lib/interface/menu.js.map +1 -1
- package/lib/interface/notification.d.ts +2 -2
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +6 -6
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +11 -6
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/partner.js +6 -0
- package/lib/interface/partner.js.map +1 -1
- package/lib/interface/payment.d.ts +4 -4
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/payment.js +1 -1
- package/lib/interface/payment.js.map +1 -1
- package/lib/interface/promo.d.ts +13 -6
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/promo.js +8 -0
- package/lib/interface/promo.js.map +1 -1
- package/lib/interface/report.d.ts +8 -8
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +14 -9
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/shoppingcart.js +5 -0
- package/lib/interface/shoppingcart.js.map +1 -1
- package/lib/interface/task.d.ts +14 -14
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +16 -21
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +5 -5
- package/lib/interface/vendor.d.ts.map +1 -1
- package/manifest.json +4 -0
- package/package.json +2 -2
- package/src/index.ts +248 -193
- package/src/interface/ai.ts +72 -0
- package/src/interface/announcement.ts +1 -1
- package/src/interface/calendar.ts +1 -1
- package/src/interface/datalake.ts +5 -3
- package/src/interface/delivery.ts +15 -2
- package/src/interface/file.ts +1 -1
- package/src/interface/frictionless.ts +30 -36
- package/src/interface/location.ts +28 -20
- package/src/interface/mealplan.ts +8 -6
- package/src/interface/menu.ts +671 -574
- package/src/interface/notification.ts +2 -2
- package/src/interface/order.ts +23 -12
- package/src/interface/partner.ts +10 -6
- package/src/interface/payment.ts +5 -5
- package/src/interface/promo.ts +12 -6
- package/src/interface/report.ts +8 -8
- package/src/interface/shoppingcart.ts +14 -9
- package/src/interface/task.ts +26 -14
- package/src/interface/user.ts +21 -27
- package/src/interface/vendor.ts +5 -5
package/src/interface/vendor.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface ApplicationPatchBody {
|
|
|
46
46
|
};
|
|
47
47
|
[index: string]: any;
|
|
48
48
|
};
|
|
49
|
-
status?:
|
|
49
|
+
status?: "pending" | "approved" | "rejected";
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface Application {
|
|
@@ -71,7 +71,7 @@ export interface Application {
|
|
|
71
71
|
vendor_id?: string;
|
|
72
72
|
[index: string]: any;
|
|
73
73
|
};
|
|
74
|
-
status?:
|
|
74
|
+
status?: "pending" | "approved" | "rejected";
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface Applications {
|
|
@@ -146,7 +146,7 @@ export interface Key {
|
|
|
146
146
|
client_password?: string;
|
|
147
147
|
// Date the key becomes expired
|
|
148
148
|
date_expires?: string;
|
|
149
|
-
environment?:
|
|
149
|
+
environment?: "dev" | "staging" | "v1";
|
|
150
150
|
permissions?: string[];
|
|
151
151
|
// Flag identifying if the key is latest
|
|
152
152
|
active?: boolean;
|
|
@@ -158,7 +158,7 @@ export interface KeyPostBody {
|
|
|
158
158
|
vendor_id: string;
|
|
159
159
|
// Date the key becomes expired
|
|
160
160
|
date_expires: string;
|
|
161
|
-
environment:
|
|
161
|
+
environment: "dev" | "staging" | "v1";
|
|
162
162
|
permissions: string[];
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -211,7 +211,7 @@ export interface PostVendorApplicationRequest extends BaseRequest {
|
|
|
211
211
|
// GET /vendor/application - Get a list of all applications
|
|
212
212
|
|
|
213
213
|
export interface GetVendorApplicationQuery {
|
|
214
|
-
status?:
|
|
214
|
+
status?: "pending" | "approved" | "rejected";
|
|
215
215
|
// Pagination token to start query from
|
|
216
216
|
last_evaluated_key?: string;
|
|
217
217
|
// Graphql query string
|