@compassdigital/sdk.typescript 4.924.0 → 4.925.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 +1 -38
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -45
- package/lib/index.js.map +1 -1
- package/lib/interface/vendor.d.ts +0 -89
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -110
- package/src/interface/vendor.ts +0 -125
|
@@ -4,63 +4,6 @@ export interface Error {
|
|
|
4
4
|
code?: number;
|
|
5
5
|
data?: Record<string, any>;
|
|
6
6
|
}
|
|
7
|
-
export interface ApplicationPostBody {
|
|
8
|
-
name: string;
|
|
9
|
-
phone: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
email: string;
|
|
12
|
-
meta?: {
|
|
13
|
-
website?: string;
|
|
14
|
-
contact?: {
|
|
15
|
-
first_name?: string;
|
|
16
|
-
last_name?: string;
|
|
17
|
-
phone_number?: string;
|
|
18
|
-
};
|
|
19
|
-
[index: string]: any;
|
|
20
|
-
};
|
|
21
|
-
captcha_token: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ApplicationPatchBody {
|
|
24
|
-
id?: string;
|
|
25
|
-
name?: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
email?: string;
|
|
28
|
-
phone?: string;
|
|
29
|
-
meta?: {
|
|
30
|
-
website?: string;
|
|
31
|
-
contact?: {
|
|
32
|
-
first_name?: string;
|
|
33
|
-
last_name?: string;
|
|
34
|
-
phone_number?: string;
|
|
35
|
-
};
|
|
36
|
-
[index: string]: any;
|
|
37
|
-
};
|
|
38
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
39
|
-
}
|
|
40
|
-
export interface Application {
|
|
41
|
-
id?: string;
|
|
42
|
-
date_created?: string;
|
|
43
|
-
date_modified?: string;
|
|
44
|
-
name?: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
email?: string;
|
|
47
|
-
phone?: string;
|
|
48
|
-
meta?: {
|
|
49
|
-
website?: string;
|
|
50
|
-
contact?: {
|
|
51
|
-
first_name?: string;
|
|
52
|
-
last_name?: string;
|
|
53
|
-
phone_number?: string;
|
|
54
|
-
};
|
|
55
|
-
vendor_id?: string;
|
|
56
|
-
[index: string]: any;
|
|
57
|
-
};
|
|
58
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
59
|
-
}
|
|
60
|
-
export interface Applications {
|
|
61
|
-
last_evaluated_key?: string;
|
|
62
|
-
applications: Application[];
|
|
63
|
-
}
|
|
64
7
|
export interface Vendor {
|
|
65
8
|
id?: string;
|
|
66
9
|
name?: string;
|
|
@@ -155,38 +98,6 @@ export interface TokenResponse {
|
|
|
155
98
|
expires_in: number;
|
|
156
99
|
scope: string;
|
|
157
100
|
}
|
|
158
|
-
export type PostVendorApplicationBody = ApplicationPostBody;
|
|
159
|
-
export type PostVendorApplicationResponse = Application;
|
|
160
|
-
export interface PostVendorApplicationRequest extends BaseRequest {
|
|
161
|
-
body: PostVendorApplicationBody;
|
|
162
|
-
}
|
|
163
|
-
export interface GetVendorApplicationsQuery {
|
|
164
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
165
|
-
last_evaluated_key?: string;
|
|
166
|
-
}
|
|
167
|
-
export type GetVendorApplicationsResponse = Applications;
|
|
168
|
-
export interface GetVendorApplicationsRequest extends BaseRequest, RequestQuery<GetVendorApplicationsQuery> {
|
|
169
|
-
}
|
|
170
|
-
export interface GetVendorApplicationPath {
|
|
171
|
-
id: string;
|
|
172
|
-
}
|
|
173
|
-
export type GetVendorApplicationResponse = Application;
|
|
174
|
-
export interface GetVendorApplicationRequest extends BaseRequest, GetVendorApplicationPath {
|
|
175
|
-
}
|
|
176
|
-
export interface PatchVendorApplicationPath {
|
|
177
|
-
id: string;
|
|
178
|
-
}
|
|
179
|
-
export type PatchVendorApplicationBody = ApplicationPatchBody;
|
|
180
|
-
export type PatchVendorApplicationResponse = Application;
|
|
181
|
-
export interface PatchVendorApplicationRequest extends BaseRequest, PatchVendorApplicationPath {
|
|
182
|
-
body: PatchVendorApplicationBody;
|
|
183
|
-
}
|
|
184
|
-
export interface DeleteVendorApplicationPath {
|
|
185
|
-
id: string;
|
|
186
|
-
}
|
|
187
|
-
export type DeleteVendorApplicationResponse = Success;
|
|
188
|
-
export interface DeleteVendorApplicationRequest extends BaseRequest, DeleteVendorApplicationPath {
|
|
189
|
-
}
|
|
190
101
|
export interface PostVendorQuery {
|
|
191
102
|
email?: boolean;
|
|
192
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../src/interface/vendor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,KAAK;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../src/interface/vendor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,KAAK;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE;QACN,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AAW,2BAA2B;IAE3C,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,2BAA2B,GAAG,aAAa,CAAC;AAExD,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,8BAA+B,SAAQ,WAAW,EAAE,2BAA2B;IAC/F,IAAI,EAAE,2BAA2B,CAAC;CAClC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1196,14 +1196,6 @@ import {
|
|
|
1196
1196
|
} from './interface/compassconnect';
|
|
1197
1197
|
|
|
1198
1198
|
import {
|
|
1199
|
-
PostVendorApplicationBody,
|
|
1200
|
-
PostVendorApplicationResponse,
|
|
1201
|
-
GetVendorApplicationsQuery,
|
|
1202
|
-
GetVendorApplicationsResponse,
|
|
1203
|
-
GetVendorApplicationResponse,
|
|
1204
|
-
PatchVendorApplicationBody,
|
|
1205
|
-
PatchVendorApplicationResponse,
|
|
1206
|
-
DeleteVendorApplicationResponse,
|
|
1207
1199
|
PostVendorQuery,
|
|
1208
1200
|
PostVendorBody,
|
|
1209
1201
|
PostVendorResponse,
|
|
@@ -14086,108 +14078,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14086
14078
|
);
|
|
14087
14079
|
}
|
|
14088
14080
|
|
|
14089
|
-
/**
|
|
14090
|
-
* POST /vendor/application - Create a new application for review
|
|
14091
|
-
*
|
|
14092
|
-
* @param body
|
|
14093
|
-
* @param options - additional request options
|
|
14094
|
-
*/
|
|
14095
|
-
post_vendor_application(
|
|
14096
|
-
body: PostVendorApplicationBody,
|
|
14097
|
-
options?: RequestOptions,
|
|
14098
|
-
): ResponsePromise<PostVendorApplicationResponse> {
|
|
14099
|
-
return this.request(
|
|
14100
|
-
'vendor',
|
|
14101
|
-
'/vendor/application',
|
|
14102
|
-
'POST',
|
|
14103
|
-
`/vendor/application`,
|
|
14104
|
-
body,
|
|
14105
|
-
options,
|
|
14106
|
-
);
|
|
14107
|
-
}
|
|
14108
|
-
|
|
14109
|
-
/**
|
|
14110
|
-
* GET /vendor/application - Get a list of all applications
|
|
14111
|
-
*
|
|
14112
|
-
* @param options - additional request options
|
|
14113
|
-
*/
|
|
14114
|
-
get_vendor_applications(
|
|
14115
|
-
options?: {
|
|
14116
|
-
query?: GetVendorApplicationsQuery;
|
|
14117
|
-
} & RequestOptions,
|
|
14118
|
-
): ResponsePromise<GetVendorApplicationsResponse> {
|
|
14119
|
-
return this.request(
|
|
14120
|
-
'vendor',
|
|
14121
|
-
'/vendor/application',
|
|
14122
|
-
'GET',
|
|
14123
|
-
`/vendor/application`,
|
|
14124
|
-
null,
|
|
14125
|
-
options,
|
|
14126
|
-
);
|
|
14127
|
-
}
|
|
14128
|
-
|
|
14129
|
-
/**
|
|
14130
|
-
* GET /vendor/application/{id} - Get a single application by ID
|
|
14131
|
-
*
|
|
14132
|
-
* @param id
|
|
14133
|
-
* @param options - additional request options
|
|
14134
|
-
*/
|
|
14135
|
-
get_vendor_application(
|
|
14136
|
-
id: string,
|
|
14137
|
-
options?: RequestOptions,
|
|
14138
|
-
): ResponsePromise<GetVendorApplicationResponse> {
|
|
14139
|
-
return this.request(
|
|
14140
|
-
'vendor',
|
|
14141
|
-
'/vendor/application/{id}',
|
|
14142
|
-
'GET',
|
|
14143
|
-
`/vendor/application/${id}`,
|
|
14144
|
-
null,
|
|
14145
|
-
options,
|
|
14146
|
-
);
|
|
14147
|
-
}
|
|
14148
|
-
|
|
14149
|
-
/**
|
|
14150
|
-
* PATCH /vendor/application/{id} - Update an application (or update status)
|
|
14151
|
-
*
|
|
14152
|
-
* @param id
|
|
14153
|
-
* @param body
|
|
14154
|
-
* @param options - additional request options
|
|
14155
|
-
*/
|
|
14156
|
-
patch_vendor_application(
|
|
14157
|
-
id: string,
|
|
14158
|
-
body: PatchVendorApplicationBody,
|
|
14159
|
-
options?: RequestOptions,
|
|
14160
|
-
): ResponsePromise<PatchVendorApplicationResponse> {
|
|
14161
|
-
return this.request(
|
|
14162
|
-
'vendor',
|
|
14163
|
-
'/vendor/application/{id}',
|
|
14164
|
-
'PATCH',
|
|
14165
|
-
`/vendor/application/${id}`,
|
|
14166
|
-
body,
|
|
14167
|
-
options,
|
|
14168
|
-
);
|
|
14169
|
-
}
|
|
14170
|
-
|
|
14171
|
-
/**
|
|
14172
|
-
* DELETE /vendor/application/{id} - Delete an application by ID
|
|
14173
|
-
*
|
|
14174
|
-
* @param id
|
|
14175
|
-
* @param options - additional request options
|
|
14176
|
-
*/
|
|
14177
|
-
delete_vendor_application(
|
|
14178
|
-
id: string,
|
|
14179
|
-
options?: RequestOptions,
|
|
14180
|
-
): ResponsePromise<DeleteVendorApplicationResponse> {
|
|
14181
|
-
return this.request(
|
|
14182
|
-
'vendor',
|
|
14183
|
-
'/vendor/application/{id}',
|
|
14184
|
-
'DELETE',
|
|
14185
|
-
`/vendor/application/${id}`,
|
|
14186
|
-
null,
|
|
14187
|
-
options,
|
|
14188
|
-
);
|
|
14189
|
-
}
|
|
14190
|
-
|
|
14191
14081
|
/**
|
|
14192
14082
|
* POST /vendor - Create new vendor
|
|
14193
14083
|
*
|
package/src/interface/vendor.ts
CHANGED
|
@@ -9,73 +9,6 @@ export interface Error {
|
|
|
9
9
|
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export interface ApplicationPostBody {
|
|
13
|
-
name: string;
|
|
14
|
-
phone: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
email: string;
|
|
17
|
-
// Property to store any additional data
|
|
18
|
-
meta?: {
|
|
19
|
-
website?: string;
|
|
20
|
-
// Contact info
|
|
21
|
-
contact?: {
|
|
22
|
-
first_name?: string;
|
|
23
|
-
last_name?: string;
|
|
24
|
-
phone_number?: string;
|
|
25
|
-
};
|
|
26
|
-
[index: string]: any;
|
|
27
|
-
};
|
|
28
|
-
captcha_token: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ApplicationPatchBody {
|
|
32
|
-
id?: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
description?: string;
|
|
35
|
-
email?: string;
|
|
36
|
-
phone?: string;
|
|
37
|
-
// Property to store any additional data
|
|
38
|
-
meta?: {
|
|
39
|
-
website?: string;
|
|
40
|
-
// Contact info
|
|
41
|
-
contact?: {
|
|
42
|
-
first_name?: string;
|
|
43
|
-
last_name?: string;
|
|
44
|
-
phone_number?: string;
|
|
45
|
-
};
|
|
46
|
-
[index: string]: any;
|
|
47
|
-
};
|
|
48
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface Application {
|
|
52
|
-
id?: string;
|
|
53
|
-
date_created?: string;
|
|
54
|
-
date_modified?: string;
|
|
55
|
-
name?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
email?: string;
|
|
58
|
-
phone?: string;
|
|
59
|
-
// Property to store any additional data
|
|
60
|
-
meta?: {
|
|
61
|
-
website?: string;
|
|
62
|
-
// Contact info
|
|
63
|
-
contact?: {
|
|
64
|
-
first_name?: string;
|
|
65
|
-
last_name?: string;
|
|
66
|
-
phone_number?: string;
|
|
67
|
-
};
|
|
68
|
-
vendor_id?: string;
|
|
69
|
-
[index: string]: any;
|
|
70
|
-
};
|
|
71
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface Applications {
|
|
75
|
-
last_evaluated_key?: string;
|
|
76
|
-
applications: Application[];
|
|
77
|
-
}
|
|
78
|
-
|
|
79
12
|
export interface Vendor {
|
|
80
13
|
id?: string;
|
|
81
14
|
name?: string;
|
|
@@ -198,64 +131,6 @@ export interface TokenResponse {
|
|
|
198
131
|
scope: string;
|
|
199
132
|
}
|
|
200
133
|
|
|
201
|
-
// POST /vendor/application - Create a new application for review
|
|
202
|
-
|
|
203
|
-
export type PostVendorApplicationBody = ApplicationPostBody;
|
|
204
|
-
|
|
205
|
-
export type PostVendorApplicationResponse = Application;
|
|
206
|
-
|
|
207
|
-
export interface PostVendorApplicationRequest extends BaseRequest {
|
|
208
|
-
body: PostVendorApplicationBody;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// GET /vendor/application - Get a list of all applications
|
|
212
|
-
|
|
213
|
-
export interface GetVendorApplicationsQuery {
|
|
214
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
215
|
-
// Pagination token to start query from
|
|
216
|
-
last_evaluated_key?: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type GetVendorApplicationsResponse = Applications;
|
|
220
|
-
|
|
221
|
-
export interface GetVendorApplicationsRequest
|
|
222
|
-
extends BaseRequest,
|
|
223
|
-
RequestQuery<GetVendorApplicationsQuery> {}
|
|
224
|
-
|
|
225
|
-
// GET /vendor/application/{id} - Get a single application by ID
|
|
226
|
-
|
|
227
|
-
export interface GetVendorApplicationPath {
|
|
228
|
-
id: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type GetVendorApplicationResponse = Application;
|
|
232
|
-
|
|
233
|
-
export interface GetVendorApplicationRequest extends BaseRequest, GetVendorApplicationPath {}
|
|
234
|
-
|
|
235
|
-
// PATCH /vendor/application/{id} - Update an application (or update status)
|
|
236
|
-
|
|
237
|
-
export interface PatchVendorApplicationPath {
|
|
238
|
-
id: string;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export type PatchVendorApplicationBody = ApplicationPatchBody;
|
|
242
|
-
|
|
243
|
-
export type PatchVendorApplicationResponse = Application;
|
|
244
|
-
|
|
245
|
-
export interface PatchVendorApplicationRequest extends BaseRequest, PatchVendorApplicationPath {
|
|
246
|
-
body: PatchVendorApplicationBody;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// DELETE /vendor/application/{id} - Delete an application by ID
|
|
250
|
-
|
|
251
|
-
export interface DeleteVendorApplicationPath {
|
|
252
|
-
id: string;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export type DeleteVendorApplicationResponse = Success;
|
|
256
|
-
|
|
257
|
-
export interface DeleteVendorApplicationRequest extends BaseRequest, DeleteVendorApplicationPath {}
|
|
258
|
-
|
|
259
134
|
// POST /vendor - Create new vendor
|
|
260
135
|
|
|
261
136
|
export interface PostVendorQuery {
|