@compassdigital/sdk.typescript 4.41.1 → 4.42.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 +46 -51
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -45
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +58 -2
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +23 -0
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +0 -12
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +141 -111
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +2 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +0 -37
- package/lib/interface/partner.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +68 -121
- package/src/interface/auth.ts +77 -2
- package/src/interface/compassconnect.ts +29 -1
- package/src/interface/frictionless.ts +0 -23
- package/src/interface/menu.ts +159 -105
- package/src/interface/order.ts +4 -0
- package/src/interface/partner.ts +0 -68
|
@@ -25,6 +25,34 @@ export interface Auth {
|
|
|
25
25
|
token?: string;
|
|
26
26
|
expires?: string;
|
|
27
27
|
};
|
|
28
|
+
// Access token string (should be moved inside access object under real scenarios)
|
|
29
|
+
access_token?: string;
|
|
30
|
+
// Duration in seconds until the access token expires (should be moved inside access object under real scenarios)
|
|
31
|
+
expires_in?: number;
|
|
32
|
+
// Unix timestamp when the token expires (should be moved inside access object under real scenarios)
|
|
33
|
+
expires_at?: number;
|
|
34
|
+
attributes?: {
|
|
35
|
+
clientName?: string;
|
|
36
|
+
company?: string;
|
|
37
|
+
country?: string;
|
|
38
|
+
credentialType?: string;
|
|
39
|
+
department?: string;
|
|
40
|
+
email?: string;
|
|
41
|
+
first_name?: string;
|
|
42
|
+
full_name?: string;
|
|
43
|
+
last_name?: string;
|
|
44
|
+
locale?: string;
|
|
45
|
+
logon_username?: string;
|
|
46
|
+
mobile?: string;
|
|
47
|
+
samlAuthenticationStatementAuthMethod?: string;
|
|
48
|
+
telephone?: string;
|
|
49
|
+
title?: string;
|
|
50
|
+
userPrincipalName?: string;
|
|
51
|
+
};
|
|
52
|
+
// Identifier of the user or session
|
|
53
|
+
id?: string;
|
|
54
|
+
// Refresh token string (should be moved inside refresh object under real scenarios)
|
|
55
|
+
refresh_token?: string;
|
|
28
56
|
}
|
|
29
57
|
|
|
30
58
|
export interface Compassconnect {
|
|
@@ -36,7 +64,7 @@ export interface Compassconnects {
|
|
|
36
64
|
compassconnects: Compassconnect[];
|
|
37
65
|
}
|
|
38
66
|
|
|
39
|
-
// GET /compassconnect/
|
|
67
|
+
// GET /compassconnect/oms_token - Gets an OMS token
|
|
40
68
|
|
|
41
69
|
export interface GetCompassconnectOmsTokenQuery {
|
|
42
70
|
// The SSO code recieved from login
|
|
@@ -217,19 +217,6 @@ export interface AmazonJWOOrderingResponseDTO {
|
|
|
217
217
|
purchaseId: string;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
export interface StandardCognitionEventDTO {
|
|
221
|
-
// Value that uniquely identifies each event that occurs in Standard Cognition's system
|
|
222
|
-
event_id: string;
|
|
223
|
-
// Contains an enumerated string that tells the system what type of event took place. Current values are external-customer-order-created for when a new order is created and external-customer-order-state-changed for when an order changes state
|
|
224
|
-
event_type: "external-customer-order-created" | "external-customer-order-state-changed";
|
|
225
|
-
// Value that uniquely identifies each customer in Standard Cognition's system. Coincides with our Checkin ID
|
|
226
|
-
external_customer_id: string;
|
|
227
|
-
// Value that uniquely identifies each store in Standard Cognition's system
|
|
228
|
-
tenant_id: string;
|
|
229
|
-
// Value that uniquely identifies each order in Standard Cognition's system
|
|
230
|
-
order_id: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
220
|
// GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
|
|
234
221
|
|
|
235
222
|
export interface GetFrictionlessBrandFrictionlessStatusPath {
|
|
@@ -377,13 +364,3 @@ export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse =
|
|
|
377
364
|
export interface PostFrictionlessAmazonJwoConnectorV1OrderPurchasesRequest extends BaseRequest {
|
|
378
365
|
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody;
|
|
379
366
|
}
|
|
380
|
-
|
|
381
|
-
// POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
|
|
382
|
-
|
|
383
|
-
export type PostFrictionlessWebhookStandardcognitionBody = StandardCognitionEventDTO;
|
|
384
|
-
|
|
385
|
-
export type PostFrictionlessWebhookStandardcognitionResponse = {};
|
|
386
|
-
|
|
387
|
-
export interface PostFrictionlessWebhookStandardcognitionRequest extends BaseRequest {
|
|
388
|
-
body: PostFrictionlessWebhookStandardcognitionBody;
|
|
389
|
-
}
|