@compassdigital/sdk.typescript 3.77.0 → 3.77.1
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 +91 -76
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +79 -61
- 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/datalake.d.ts +3 -3
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +22 -22
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/location.d.ts +8 -8
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +87 -86
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/payment.js +1 -1
- package/lib/interface/payment.js.map +1 -1
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +222 -188
- package/src/interface/ai.ts +72 -0
- package/src/interface/datalake.ts +5 -3
- package/src/interface/frictionless.ts +28 -34
- package/src/interface/location.ts +12 -12
- package/src/interface/menu.ts +116 -115
- package/src/interface/payment.ts +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
5
|
+
|
|
6
|
+
export interface OptionsDTO {
|
|
7
|
+
temperature?: number;
|
|
8
|
+
max_tokens?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface MessageDTO {
|
|
12
|
+
actor: string;
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface GenerateTextRequest {
|
|
17
|
+
options?: OptionsDTO;
|
|
18
|
+
messages: MessageDTO[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GenerateTextResponse {
|
|
22
|
+
messages: MessageDTO[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface BadRequestErrorDTO {
|
|
26
|
+
message: string;
|
|
27
|
+
code: number;
|
|
28
|
+
data: any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface UnauthorizedErrorDTO {
|
|
32
|
+
message: string;
|
|
33
|
+
code: number;
|
|
34
|
+
data: any;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type InternalServerErrorException = any;
|
|
38
|
+
|
|
39
|
+
export interface GenerateImageRequest {
|
|
40
|
+
prompt: string;
|
|
41
|
+
number_of_images?: number;
|
|
42
|
+
negative_prompt?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ImageDTO {
|
|
46
|
+
data: string;
|
|
47
|
+
mime_type: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface GenerateImageResponse {
|
|
51
|
+
images: ImageDTO[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// POST /ai/language/generate - Generate text from a given prompt
|
|
55
|
+
|
|
56
|
+
export type PostAiLanguageGenerateBody = GenerateTextRequest;
|
|
57
|
+
|
|
58
|
+
export type PostAiLanguageGenerateResponse = GenerateTextResponse;
|
|
59
|
+
|
|
60
|
+
export interface PostAiLanguageGenerateRequest extends BaseRequest {
|
|
61
|
+
body: PostAiLanguageGenerateBody;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// POST /ai/image/generate - Generate image from a given prompt
|
|
65
|
+
|
|
66
|
+
export type PostAiImageGenerateBody = GenerateImageRequest;
|
|
67
|
+
|
|
68
|
+
export type PostAiImageGenerateResponse = GenerateImageResponse;
|
|
69
|
+
|
|
70
|
+
export interface PostAiImageGenerateRequest extends BaseRequest {
|
|
71
|
+
body: PostAiImageGenerateBody;
|
|
72
|
+
}
|
|
@@ -29,11 +29,13 @@ export interface PostDatalakeSqlRequest extends BaseRequest {
|
|
|
29
29
|
|
|
30
30
|
// GET /swagger.json
|
|
31
31
|
|
|
32
|
-
export interface
|
|
32
|
+
export interface GetDatalakeSwaggerQuery {
|
|
33
33
|
// Graphql query string
|
|
34
34
|
_query?: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type GetDatalakeSwaggerResponse = any;
|
|
38
38
|
|
|
39
|
-
export interface
|
|
39
|
+
export interface GetDatalakeSwaggerRequest
|
|
40
|
+
extends BaseRequest,
|
|
41
|
+
RequestQuery<GetDatalakeSwaggerQuery> {}
|
|
@@ -72,90 +72,84 @@ export interface CheckCheckInStatusResponseDTO {
|
|
|
72
72
|
|
|
73
73
|
// POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
|
|
74
74
|
|
|
75
|
-
export type
|
|
76
|
-
StandardCognitionEvent;
|
|
75
|
+
export type StandardCognitionEventWebhookControllerExecuteBody = StandardCognitionEvent;
|
|
77
76
|
|
|
78
|
-
export type
|
|
77
|
+
export type StandardCognitionEventWebhookControllerExecuteResponse = any;
|
|
79
78
|
|
|
80
|
-
export interface
|
|
81
|
-
|
|
82
|
-
body: PostFrictionlessStandardCognitionEventWebhookControllerExecuteBody;
|
|
79
|
+
export interface StandardCognitionEventWebhookControllerExecuteRequest extends BaseRequest {
|
|
80
|
+
body: StandardCognitionEventWebhookControllerExecuteBody;
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
// GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
|
|
86
84
|
|
|
87
|
-
export interface
|
|
85
|
+
export interface CheckFrictionlessSupportControllerExecutePath {
|
|
88
86
|
// Brand ID as Encoded CDL ID
|
|
89
87
|
id_brand: string;
|
|
90
88
|
}
|
|
91
89
|
|
|
92
|
-
export interface
|
|
90
|
+
export interface CheckFrictionlessSupportControllerExecuteQuery {
|
|
93
91
|
// Graphql query string
|
|
94
92
|
_query?: string;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
export type
|
|
98
|
-
FrictionlessSupportResponse;
|
|
95
|
+
export type CheckFrictionlessSupportControllerExecuteResponse = FrictionlessSupportResponse;
|
|
99
96
|
|
|
100
|
-
export interface
|
|
97
|
+
export interface CheckFrictionlessSupportControllerExecuteRequest
|
|
101
98
|
extends BaseRequest,
|
|
102
|
-
RequestQuery<
|
|
103
|
-
|
|
99
|
+
RequestQuery<CheckFrictionlessSupportControllerExecuteQuery>,
|
|
100
|
+
CheckFrictionlessSupportControllerExecutePath {}
|
|
104
101
|
|
|
105
102
|
// POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
106
103
|
|
|
107
|
-
export type
|
|
108
|
-
CreateFrictionlessQRCodeCommand;
|
|
104
|
+
export type CreateQRCodeUserCheckInControllerExecuteBody = CreateFrictionlessQRCodeCommand;
|
|
109
105
|
|
|
110
|
-
export type
|
|
106
|
+
export type CreateQRCodeUserCheckInControllerExecuteResponse = {};
|
|
111
107
|
|
|
112
|
-
export interface
|
|
113
|
-
|
|
114
|
-
body: PostFrictionlessCreateQRCodeUserCheckInControllerExecuteBody;
|
|
108
|
+
export interface CreateQRCodeUserCheckInControllerExecuteRequest extends BaseRequest {
|
|
109
|
+
body: CreateQRCodeUserCheckInControllerExecuteBody;
|
|
115
110
|
}
|
|
116
111
|
|
|
117
112
|
// GET /frictionless/failed-checkins - List check-ins on error
|
|
118
113
|
|
|
119
|
-
export interface
|
|
114
|
+
export interface ListFailedCheckinsControllerExecuteQuery {
|
|
120
115
|
// Graphql query string
|
|
121
116
|
_query?: string;
|
|
122
117
|
}
|
|
123
118
|
|
|
124
|
-
export type
|
|
119
|
+
export type ListFailedCheckinsControllerExecuteResponse = FailedCheckInDTO[];
|
|
125
120
|
|
|
126
|
-
export interface
|
|
121
|
+
export interface ListFailedCheckinsControllerExecuteRequest
|
|
127
122
|
extends BaseRequest,
|
|
128
|
-
RequestQuery<
|
|
123
|
+
RequestQuery<ListFailedCheckinsControllerExecuteQuery> {}
|
|
129
124
|
|
|
130
125
|
// POST /frictionless/checkin/{id_checkin}/reprocess - Reprocess checkin on error
|
|
131
126
|
|
|
132
|
-
export interface
|
|
127
|
+
export interface ReprocessCheckinOnErrorControllerExecutePath {
|
|
133
128
|
// TODO: add parameter to swagger.json
|
|
134
129
|
id_checkin: string;
|
|
135
130
|
}
|
|
136
131
|
|
|
137
|
-
export type
|
|
132
|
+
export type ReprocessCheckinOnErrorControllerExecuteResponse = {};
|
|
138
133
|
|
|
139
|
-
export interface
|
|
134
|
+
export interface ReprocessCheckinOnErrorControllerExecuteRequest
|
|
140
135
|
extends BaseRequest,
|
|
141
|
-
|
|
136
|
+
ReprocessCheckinOnErrorControllerExecutePath {}
|
|
142
137
|
|
|
143
138
|
// GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn status
|
|
144
139
|
|
|
145
|
-
export interface
|
|
140
|
+
export interface CheckCheckinStatusControllerExecutePath {
|
|
146
141
|
// TODO: add parameter to swagger.json
|
|
147
142
|
id_checkin: string;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
|
-
export interface
|
|
145
|
+
export interface CheckCheckinStatusControllerExecuteQuery {
|
|
151
146
|
// Graphql query string
|
|
152
147
|
_query?: string;
|
|
153
148
|
}
|
|
154
149
|
|
|
155
|
-
export type
|
|
156
|
-
CheckCheckInStatusResponseDTO;
|
|
150
|
+
export type CheckCheckinStatusControllerExecuteResponse = CheckCheckInStatusResponseDTO;
|
|
157
151
|
|
|
158
|
-
export interface
|
|
152
|
+
export interface CheckCheckinStatusControllerExecuteRequest
|
|
159
153
|
extends BaseRequest,
|
|
160
|
-
RequestQuery<
|
|
161
|
-
|
|
154
|
+
RequestQuery<CheckCheckinStatusControllerExecuteQuery>,
|
|
155
|
+
CheckCheckinStatusControllerExecutePath {}
|
|
@@ -1318,38 +1318,38 @@ export interface GetLocationV2GroupsRequest
|
|
|
1318
1318
|
|
|
1319
1319
|
// GET /location/menu_association/{id}/brand - Get menu association for a brand
|
|
1320
1320
|
|
|
1321
|
-
export interface
|
|
1321
|
+
export interface GetLocationMenuAssociationBrandPath {
|
|
1322
1322
|
// brand id
|
|
1323
1323
|
id: string;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
export interface
|
|
1326
|
+
export interface GetLocationMenuAssociationBrandQuery {
|
|
1327
1327
|
// Graphql query string
|
|
1328
1328
|
_query?: string;
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
|
-
export type
|
|
1331
|
+
export type GetLocationMenuAssociationBrandResponse = MenuAssociations;
|
|
1332
1332
|
|
|
1333
|
-
export interface
|
|
1333
|
+
export interface GetLocationMenuAssociationBrandRequest
|
|
1334
1334
|
extends BaseRequest,
|
|
1335
|
-
RequestQuery<
|
|
1336
|
-
|
|
1335
|
+
RequestQuery<GetLocationMenuAssociationBrandQuery>,
|
|
1336
|
+
GetLocationMenuAssociationBrandPath {}
|
|
1337
1337
|
|
|
1338
1338
|
// GET /location/menu_association/{id}/menu - Get menu association for a brand
|
|
1339
1339
|
|
|
1340
|
-
export interface
|
|
1340
|
+
export interface GetLocationMenuAssociationMenuPath {
|
|
1341
1341
|
// menu id
|
|
1342
1342
|
id: string;
|
|
1343
1343
|
}
|
|
1344
1344
|
|
|
1345
|
-
export interface
|
|
1345
|
+
export interface GetLocationMenuAssociationMenuQuery {
|
|
1346
1346
|
// Graphql query string
|
|
1347
1347
|
_query?: string;
|
|
1348
1348
|
}
|
|
1349
1349
|
|
|
1350
|
-
export type
|
|
1350
|
+
export type GetLocationMenuAssociationMenuResponse = MenuAssociations;
|
|
1351
1351
|
|
|
1352
|
-
export interface
|
|
1352
|
+
export interface GetLocationMenuAssociationMenuRequest
|
|
1353
1353
|
extends BaseRequest,
|
|
1354
|
-
RequestQuery<
|
|
1355
|
-
|
|
1354
|
+
RequestQuery<GetLocationMenuAssociationMenuQuery>,
|
|
1355
|
+
GetLocationMenuAssociationMenuPath {}
|