@corsa-labs/sdk 4.7.0 → 4.9.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/dist/ComplianceClient.d.ts +0 -2
- package/dist/ComplianceClient.js +0 -3
- package/dist/ComplianceClient.js.map +1 -1
- package/dist/models/ClientSumsubDto.d.ts +12 -0
- package/dist/services/ChecklistsService.d.ts +91 -1
- package/dist/services/ChecklistsService.js +231 -1
- package/dist/services/ChecklistsService.js.map +1 -1
- package/package.json +1 -1
- package/dist/services/ChecklistTemplatesService.d.ts +0 -72
- package/dist/services/ChecklistTemplatesService.js +0 -177
- package/dist/services/ChecklistTemplatesService.js.map +0 -1
|
@@ -6,7 +6,6 @@ import { BankAccountsService } from './services/BankAccountsService';
|
|
|
6
6
|
import { BlockchainWalletsService } from './services/BlockchainWalletsService';
|
|
7
7
|
import { CasesService } from './services/CasesService';
|
|
8
8
|
import { ChecklistsService } from './services/ChecklistsService';
|
|
9
|
-
import { ChecklistTemplatesService } from './services/ChecklistTemplatesService';
|
|
10
9
|
import { ClientsService } from './services/ClientsService';
|
|
11
10
|
import { DepositsService } from './services/DepositsService';
|
|
12
11
|
import { MembersService } from './services/MembersService';
|
|
@@ -23,7 +22,6 @@ export declare class ComplianceClient {
|
|
|
23
22
|
readonly blockchainWallets: BlockchainWalletsService;
|
|
24
23
|
readonly cases: CasesService;
|
|
25
24
|
readonly checklists: ChecklistsService;
|
|
26
|
-
readonly checklistTemplates: ChecklistTemplatesService;
|
|
27
25
|
readonly clients: ClientsService;
|
|
28
26
|
readonly deposits: DepositsService;
|
|
29
27
|
readonly members: MembersService;
|
package/dist/ComplianceClient.js
CHANGED
|
@@ -8,7 +8,6 @@ const BankAccountsService_1 = require("./services/BankAccountsService");
|
|
|
8
8
|
const BlockchainWalletsService_1 = require("./services/BlockchainWalletsService");
|
|
9
9
|
const CasesService_1 = require("./services/CasesService");
|
|
10
10
|
const ChecklistsService_1 = require("./services/ChecklistsService");
|
|
11
|
-
const ChecklistTemplatesService_1 = require("./services/ChecklistTemplatesService");
|
|
12
11
|
const ClientsService_1 = require("./services/ClientsService");
|
|
13
12
|
const DepositsService_1 = require("./services/DepositsService");
|
|
14
13
|
const MembersService_1 = require("./services/MembersService");
|
|
@@ -24,7 +23,6 @@ class ComplianceClient {
|
|
|
24
23
|
blockchainWallets;
|
|
25
24
|
cases;
|
|
26
25
|
checklists;
|
|
27
|
-
checklistTemplates;
|
|
28
26
|
clients;
|
|
29
27
|
deposits;
|
|
30
28
|
members;
|
|
@@ -52,7 +50,6 @@ class ComplianceClient {
|
|
|
52
50
|
this.blockchainWallets = new BlockchainWalletsService_1.BlockchainWalletsService(this.request);
|
|
53
51
|
this.cases = new CasesService_1.CasesService(this.request);
|
|
54
52
|
this.checklists = new ChecklistsService_1.ChecklistsService(this.request);
|
|
55
|
-
this.checklistTemplates = new ChecklistTemplatesService_1.ChecklistTemplatesService(this.request);
|
|
56
53
|
this.clients = new ClientsService_1.ClientsService(this.request);
|
|
57
54
|
this.deposits = new DepositsService_1.DepositsService(this.request);
|
|
58
55
|
this.members = new MembersService_1.MembersService(this.request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplianceClient.js","sourceRoot":"","sources":["../ComplianceClient.ts"],"names":[],"mappings":";;;AAMA,8DAA2D;AAC3D,4DAAyD;AACzD,sEAAmE;AACnE,wEAAqE;AACrE,kFAA+E;AAC/E,0DAAuD;AACvD,oEAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"ComplianceClient.js","sourceRoot":"","sources":["../ComplianceClient.ts"],"names":[],"mappings":";;;AAMA,8DAA2D;AAC3D,4DAAyD;AACzD,sEAAmE;AACnE,wEAAqE;AACrE,kFAA+E;AAC/E,0DAAuD;AACvD,oEAAiE;AACjE,8DAA2D;AAC3D,gEAA6D;AAC7D,8DAA2D;AAC3D,gEAA6D;AAC7D,0DAAuD;AACvD,4DAAyD;AACzD,wEAAqE;AACrE,sEAAmE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AAC,UAAU,GAAG,IAAI,qCAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,yCAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,WAAW,GAAG,IAAI,uCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;CACJ;AA3CD,4CA2CC"}
|
|
@@ -4,6 +4,18 @@ export type ClientSumsubDto = {
|
|
|
4
4
|
* Sumsub applicant ID
|
|
5
5
|
*/
|
|
6
6
|
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Status of the verification image
|
|
9
|
+
*/
|
|
10
|
+
status?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Reject labels if the image was rejected
|
|
13
|
+
*/
|
|
14
|
+
rejectLabels?: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Reason for rejection if applicable
|
|
17
|
+
*/
|
|
18
|
+
reason?: string;
|
|
7
19
|
/**
|
|
8
20
|
* Sumsub verifications
|
|
9
21
|
*/
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
import type { ChecklistItemResponseDto } from '../models/ChecklistItemResponseDto';
|
|
2
2
|
import type { ChecklistResponseDto } from '../models/ChecklistResponseDto';
|
|
3
|
+
import type { ChecklistTemplateItemResponseDto } from '../models/ChecklistTemplateItemResponseDto';
|
|
4
|
+
import type { ChecklistTemplateResponseDto } from '../models/ChecklistTemplateResponseDto';
|
|
5
|
+
import type { CreateChecklistTemplateDto } from '../models/CreateChecklistTemplateDto';
|
|
6
|
+
import type { CreateChecklistTemplateItemDto } from '../models/CreateChecklistTemplateItemDto';
|
|
3
7
|
import type { UpdateChecklistItemDto } from '../models/UpdateChecklistItemDto';
|
|
8
|
+
import type { UpdateChecklistTemplateDto } from '../models/UpdateChecklistTemplateDto';
|
|
9
|
+
import type { UpdateChecklistTemplateItemDto } from '../models/UpdateChecklistTemplateItemDto';
|
|
4
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
11
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
12
|
export declare class ChecklistsService {
|
|
7
13
|
readonly httpRequest: BaseHttpRequest;
|
|
8
14
|
constructor(httpRequest: BaseHttpRequest);
|
|
15
|
+
/**
|
|
16
|
+
* Get the newest active checklist for an entity
|
|
17
|
+
* @param entityId ID of the entity to get the checklist for
|
|
18
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
getEntityChecklist(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
9
22
|
/**
|
|
10
23
|
* Get checklist for an entity
|
|
11
24
|
* @param entityId ID of the entity to get the checklist for
|
|
12
25
|
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
13
26
|
* @throws ApiError
|
|
14
27
|
*/
|
|
15
|
-
|
|
28
|
+
getChecklistByEntity1(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
16
29
|
/**
|
|
17
30
|
* Update checklist item
|
|
18
31
|
* @param checklistId The ID of the checklist containing the item
|
|
@@ -22,4 +35,81 @@ export declare class ChecklistsService {
|
|
|
22
35
|
* @throws ApiError
|
|
23
36
|
*/
|
|
24
37
|
updateChecklistItem(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<ChecklistItemResponseDto>;
|
|
38
|
+
/**
|
|
39
|
+
* Update checklist item
|
|
40
|
+
* @param checklistId The ID of the checklist containing the item
|
|
41
|
+
* @param itemId The ID of the checklist item to update
|
|
42
|
+
* @param requestBody
|
|
43
|
+
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
updateChecklistItem1(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<ChecklistItemResponseDto>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated
|
|
49
|
+
* Get checklist for an entity. Note: This is deprecated, please use getEntityChecklist instead (/v1/checklists/entity).
|
|
50
|
+
* @param entityId ID of the entity to get the checklist for
|
|
51
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
getChecklistByEntity(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a new checklist template
|
|
57
|
+
* @param requestBody
|
|
58
|
+
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
createChecklistTemplate(requestBody: CreateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
62
|
+
/**
|
|
63
|
+
* Get checklist templates by platform
|
|
64
|
+
* @param platformId The platform ID to filter templates by
|
|
65
|
+
* @param entityType Optional entity type filter
|
|
66
|
+
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
67
|
+
* @throws ApiError
|
|
68
|
+
*/
|
|
69
|
+
getChecklistTemplatesByPlatform(platformId: string, entityType?: string): CancelablePromise<Array<ChecklistTemplateResponseDto>>;
|
|
70
|
+
/**
|
|
71
|
+
* Get checklist template by ID
|
|
72
|
+
* @param id The ID of the checklist template
|
|
73
|
+
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
getChecklistTemplateById(id: string): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
77
|
+
/**
|
|
78
|
+
* Update checklist template
|
|
79
|
+
* @param id The ID of the checklist template to update
|
|
80
|
+
* @param requestBody
|
|
81
|
+
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
updateChecklistTemplate(id: string, requestBody: UpdateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
85
|
+
/**
|
|
86
|
+
* Delete checklist template
|
|
87
|
+
* @param id The ID of the checklist template to delete
|
|
88
|
+
* @returns void
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
deleteChecklistTemplate(id: string): CancelablePromise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Add item to template
|
|
94
|
+
* @param id The ID of the checklist template
|
|
95
|
+
* @param requestBody
|
|
96
|
+
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
addItemToTemplate(id: string, requestBody: CreateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
100
|
+
/**
|
|
101
|
+
* Update template item
|
|
102
|
+
* @param itemId The ID of the template item to update
|
|
103
|
+
* @param requestBody
|
|
104
|
+
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
updateTemplateItem(itemId: string, requestBody: UpdateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
108
|
+
/**
|
|
109
|
+
* Delete template item
|
|
110
|
+
* @param itemId The ID of the template item to delete
|
|
111
|
+
* @returns void
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
deleteTemplateItem(itemId: string): CancelablePromise<void>;
|
|
25
115
|
}
|
|
@@ -6,13 +6,32 @@ class ChecklistsService {
|
|
|
6
6
|
constructor(httpRequest) {
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the newest active checklist for an entity
|
|
11
|
+
* @param entityId ID of the entity to get the checklist for
|
|
12
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
getEntityChecklist(entityId) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/v1/checklist/entity',
|
|
19
|
+
query: {
|
|
20
|
+
'entityId': entityId,
|
|
21
|
+
},
|
|
22
|
+
errors: {
|
|
23
|
+
400: `Bad request - missing entityId`,
|
|
24
|
+
500: `Internal server error`,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
9
28
|
/**
|
|
10
29
|
* Get checklist for an entity
|
|
11
30
|
* @param entityId ID of the entity to get the checklist for
|
|
12
31
|
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
13
32
|
* @throws ApiError
|
|
14
33
|
*/
|
|
15
|
-
|
|
34
|
+
getChecklistByEntity1(entityId) {
|
|
16
35
|
return this.httpRequest.request({
|
|
17
36
|
method: 'GET',
|
|
18
37
|
url: '/v1/checklists/entity',
|
|
@@ -34,6 +53,31 @@ class ChecklistsService {
|
|
|
34
53
|
* @throws ApiError
|
|
35
54
|
*/
|
|
36
55
|
updateChecklistItem(checklistId, itemId, requestBody) {
|
|
56
|
+
return this.httpRequest.request({
|
|
57
|
+
method: 'PUT',
|
|
58
|
+
url: '/v1/checklist/{checklistId}/items/{itemId}',
|
|
59
|
+
path: {
|
|
60
|
+
'checklistId': checklistId,
|
|
61
|
+
'itemId': itemId,
|
|
62
|
+
},
|
|
63
|
+
body: requestBody,
|
|
64
|
+
mediaType: 'application/json',
|
|
65
|
+
errors: {
|
|
66
|
+
400: `Bad request - invalid data`,
|
|
67
|
+
404: `Checklist or checklist item not found`,
|
|
68
|
+
500: `Internal server error`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Update checklist item
|
|
74
|
+
* @param checklistId The ID of the checklist containing the item
|
|
75
|
+
* @param itemId The ID of the checklist item to update
|
|
76
|
+
* @param requestBody
|
|
77
|
+
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
updateChecklistItem1(checklistId, itemId, requestBody) {
|
|
37
81
|
return this.httpRequest.request({
|
|
38
82
|
method: 'PUT',
|
|
39
83
|
url: '/v1/checklists/{checklistId}/items/{itemId}',
|
|
@@ -50,6 +94,192 @@ class ChecklistsService {
|
|
|
50
94
|
},
|
|
51
95
|
});
|
|
52
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
* Get checklist for an entity. Note: This is deprecated, please use getEntityChecklist instead (/v1/checklists/entity).
|
|
100
|
+
* @param entityId ID of the entity to get the checklist for
|
|
101
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
102
|
+
* @throws ApiError
|
|
103
|
+
*/
|
|
104
|
+
getChecklistByEntity(entityId) {
|
|
105
|
+
return this.httpRequest.request({
|
|
106
|
+
method: 'GET',
|
|
107
|
+
url: '/v1/checklist/entity',
|
|
108
|
+
query: {
|
|
109
|
+
'entityId': entityId,
|
|
110
|
+
},
|
|
111
|
+
errors: {
|
|
112
|
+
400: `Bad request - missing entityId`,
|
|
113
|
+
500: `Internal server error`,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create a new checklist template
|
|
119
|
+
* @param requestBody
|
|
120
|
+
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
createChecklistTemplate(requestBody) {
|
|
124
|
+
return this.httpRequest.request({
|
|
125
|
+
method: 'POST',
|
|
126
|
+
url: '/v1/checklist-templates',
|
|
127
|
+
body: requestBody,
|
|
128
|
+
mediaType: 'application/json',
|
|
129
|
+
errors: {
|
|
130
|
+
400: `Bad request - invalid data`,
|
|
131
|
+
500: `Internal server error`,
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Get checklist templates by platform
|
|
137
|
+
* @param platformId The platform ID to filter templates by
|
|
138
|
+
* @param entityType Optional entity type filter
|
|
139
|
+
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
140
|
+
* @throws ApiError
|
|
141
|
+
*/
|
|
142
|
+
getChecklistTemplatesByPlatform(platformId, entityType) {
|
|
143
|
+
return this.httpRequest.request({
|
|
144
|
+
method: 'GET',
|
|
145
|
+
url: '/v1/checklist-templates',
|
|
146
|
+
query: {
|
|
147
|
+
'platformId': platformId,
|
|
148
|
+
'entityType': entityType,
|
|
149
|
+
},
|
|
150
|
+
errors: {
|
|
151
|
+
400: `Bad request - missing platformId`,
|
|
152
|
+
500: `Internal server error`,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get checklist template by ID
|
|
158
|
+
* @param id The ID of the checklist template
|
|
159
|
+
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
160
|
+
* @throws ApiError
|
|
161
|
+
*/
|
|
162
|
+
getChecklistTemplateById(id) {
|
|
163
|
+
return this.httpRequest.request({
|
|
164
|
+
method: 'GET',
|
|
165
|
+
url: '/v1/checklist-templates/{id}',
|
|
166
|
+
path: {
|
|
167
|
+
'id': id,
|
|
168
|
+
},
|
|
169
|
+
errors: {
|
|
170
|
+
404: `Checklist template not found`,
|
|
171
|
+
500: `Internal server error`,
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Update checklist template
|
|
177
|
+
* @param id The ID of the checklist template to update
|
|
178
|
+
* @param requestBody
|
|
179
|
+
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
180
|
+
* @throws ApiError
|
|
181
|
+
*/
|
|
182
|
+
updateChecklistTemplate(id, requestBody) {
|
|
183
|
+
return this.httpRequest.request({
|
|
184
|
+
method: 'PUT',
|
|
185
|
+
url: '/v1/checklist-templates/{id}',
|
|
186
|
+
path: {
|
|
187
|
+
'id': id,
|
|
188
|
+
},
|
|
189
|
+
body: requestBody,
|
|
190
|
+
mediaType: 'application/json',
|
|
191
|
+
errors: {
|
|
192
|
+
400: `Bad request - invalid data`,
|
|
193
|
+
404: `Checklist template not found`,
|
|
194
|
+
500: `Internal server error`,
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Delete checklist template
|
|
200
|
+
* @param id The ID of the checklist template to delete
|
|
201
|
+
* @returns void
|
|
202
|
+
* @throws ApiError
|
|
203
|
+
*/
|
|
204
|
+
deleteChecklistTemplate(id) {
|
|
205
|
+
return this.httpRequest.request({
|
|
206
|
+
method: 'DELETE',
|
|
207
|
+
url: '/v1/checklist-templates/{id}',
|
|
208
|
+
path: {
|
|
209
|
+
'id': id,
|
|
210
|
+
},
|
|
211
|
+
errors: {
|
|
212
|
+
404: `Checklist template not found`,
|
|
213
|
+
500: `Internal server error`,
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Add item to template
|
|
219
|
+
* @param id The ID of the checklist template
|
|
220
|
+
* @param requestBody
|
|
221
|
+
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
222
|
+
* @throws ApiError
|
|
223
|
+
*/
|
|
224
|
+
addItemToTemplate(id, requestBody) {
|
|
225
|
+
return this.httpRequest.request({
|
|
226
|
+
method: 'POST',
|
|
227
|
+
url: '/v1/checklist-templates/{id}/items',
|
|
228
|
+
path: {
|
|
229
|
+
'id': id,
|
|
230
|
+
},
|
|
231
|
+
body: requestBody,
|
|
232
|
+
mediaType: 'application/json',
|
|
233
|
+
errors: {
|
|
234
|
+
400: `Bad request - invalid data`,
|
|
235
|
+
404: `Checklist template not found`,
|
|
236
|
+
500: `Internal server error`,
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Update template item
|
|
242
|
+
* @param itemId The ID of the template item to update
|
|
243
|
+
* @param requestBody
|
|
244
|
+
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
245
|
+
* @throws ApiError
|
|
246
|
+
*/
|
|
247
|
+
updateTemplateItem(itemId, requestBody) {
|
|
248
|
+
return this.httpRequest.request({
|
|
249
|
+
method: 'PUT',
|
|
250
|
+
url: '/v1/checklist-templates/items/{itemId}',
|
|
251
|
+
path: {
|
|
252
|
+
'itemId': itemId,
|
|
253
|
+
},
|
|
254
|
+
body: requestBody,
|
|
255
|
+
mediaType: 'application/json',
|
|
256
|
+
errors: {
|
|
257
|
+
400: `Bad request - invalid data`,
|
|
258
|
+
404: `Template item not found`,
|
|
259
|
+
500: `Internal server error`,
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Delete template item
|
|
265
|
+
* @param itemId The ID of the template item to delete
|
|
266
|
+
* @returns void
|
|
267
|
+
* @throws ApiError
|
|
268
|
+
*/
|
|
269
|
+
deleteTemplateItem(itemId) {
|
|
270
|
+
return this.httpRequest.request({
|
|
271
|
+
method: 'DELETE',
|
|
272
|
+
url: '/v1/checklist-templates/items/{itemId}',
|
|
273
|
+
path: {
|
|
274
|
+
'itemId': itemId,
|
|
275
|
+
},
|
|
276
|
+
errors: {
|
|
277
|
+
400: `Cannot delete template item in use`,
|
|
278
|
+
404: `Template item not found`,
|
|
279
|
+
500: `Internal server error`,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
}
|
|
53
283
|
}
|
|
54
284
|
exports.ChecklistsService = ChecklistsService;
|
|
55
285
|
//# sourceMappingURL=ChecklistsService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChecklistsService.js","sourceRoot":"","sources":["../../services/ChecklistsService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ChecklistsService.js","sourceRoot":"","sources":["../../services/ChecklistsService.ts"],"names":[],"mappings":";;;AAeA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,kBAAkB,CACrB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;YAC3B,KAAK,EAAE;gBACH,UAAU,EAAE,QAAQ;aACvB;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,gCAAgC;gBACrC,GAAG,EAAE,uBAAuB;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,qBAAqB,CACxB,QAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,UAAU,EAAE,QAAQ;aACvB;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,gCAAgC;gBACrC,GAAG,EAAE,uBAAuB;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,mBAAmB,CACtB,WAAmB,EACnB,MAAc,EACd,WAAmC;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4CAA4C;YACjD,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,QAAQ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D,8CAsTC"}
|
package/package.json
CHANGED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { ChecklistTemplateItemResponseDto } from '../models/ChecklistTemplateItemResponseDto';
|
|
2
|
-
import type { ChecklistTemplateResponseDto } from '../models/ChecklistTemplateResponseDto';
|
|
3
|
-
import type { CreateChecklistTemplateDto } from '../models/CreateChecklistTemplateDto';
|
|
4
|
-
import type { CreateChecklistTemplateItemDto } from '../models/CreateChecklistTemplateItemDto';
|
|
5
|
-
import type { UpdateChecklistTemplateDto } from '../models/UpdateChecklistTemplateDto';
|
|
6
|
-
import type { UpdateChecklistTemplateItemDto } from '../models/UpdateChecklistTemplateItemDto';
|
|
7
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
-
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
9
|
-
export declare class ChecklistTemplatesService {
|
|
10
|
-
readonly httpRequest: BaseHttpRequest;
|
|
11
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
-
/**
|
|
13
|
-
* Create a new checklist template
|
|
14
|
-
* @param requestBody
|
|
15
|
-
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
createChecklistTemplate(requestBody: CreateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
19
|
-
/**
|
|
20
|
-
* Get checklist templates by platform
|
|
21
|
-
* @param platformId The platform ID to filter templates by
|
|
22
|
-
* @param entityType Optional entity type filter
|
|
23
|
-
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
24
|
-
* @throws ApiError
|
|
25
|
-
*/
|
|
26
|
-
getChecklistTemplatesByPlatform(platformId: string, entityType?: string): CancelablePromise<Array<ChecklistTemplateResponseDto>>;
|
|
27
|
-
/**
|
|
28
|
-
* Get checklist template by ID
|
|
29
|
-
* @param id The ID of the checklist template
|
|
30
|
-
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
31
|
-
* @throws ApiError
|
|
32
|
-
*/
|
|
33
|
-
getChecklistTemplateById(id: string): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
34
|
-
/**
|
|
35
|
-
* Update checklist template
|
|
36
|
-
* @param id The ID of the checklist template to update
|
|
37
|
-
* @param requestBody
|
|
38
|
-
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
39
|
-
* @throws ApiError
|
|
40
|
-
*/
|
|
41
|
-
updateChecklistTemplate(id: string, requestBody: UpdateChecklistTemplateDto): CancelablePromise<ChecklistTemplateResponseDto>;
|
|
42
|
-
/**
|
|
43
|
-
* Delete checklist template
|
|
44
|
-
* @param id The ID of the checklist template to delete
|
|
45
|
-
* @returns void
|
|
46
|
-
* @throws ApiError
|
|
47
|
-
*/
|
|
48
|
-
deleteChecklistTemplate(id: string): CancelablePromise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Add item to template
|
|
51
|
-
* @param id The ID of the checklist template
|
|
52
|
-
* @param requestBody
|
|
53
|
-
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
54
|
-
* @throws ApiError
|
|
55
|
-
*/
|
|
56
|
-
addItemToTemplate(id: string, requestBody: CreateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
57
|
-
/**
|
|
58
|
-
* Update template item
|
|
59
|
-
* @param itemId The ID of the template item to update
|
|
60
|
-
* @param requestBody
|
|
61
|
-
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
62
|
-
* @throws ApiError
|
|
63
|
-
*/
|
|
64
|
-
updateTemplateItem(itemId: string, requestBody: UpdateChecklistTemplateItemDto): CancelablePromise<ChecklistTemplateItemResponseDto>;
|
|
65
|
-
/**
|
|
66
|
-
* Delete template item
|
|
67
|
-
* @param itemId The ID of the template item to delete
|
|
68
|
-
* @returns void
|
|
69
|
-
* @throws ApiError
|
|
70
|
-
*/
|
|
71
|
-
deleteTemplateItem(itemId: string): CancelablePromise<void>;
|
|
72
|
-
}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplatesService = void 0;
|
|
4
|
-
class ChecklistTemplatesService {
|
|
5
|
-
httpRequest;
|
|
6
|
-
constructor(httpRequest) {
|
|
7
|
-
this.httpRequest = httpRequest;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a new checklist template
|
|
11
|
-
* @param requestBody
|
|
12
|
-
* @returns ChecklistTemplateResponseDto Checklist template created successfully
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
createChecklistTemplate(requestBody) {
|
|
16
|
-
return this.httpRequest.request({
|
|
17
|
-
method: 'POST',
|
|
18
|
-
url: '/v1/checklist-templates',
|
|
19
|
-
body: requestBody,
|
|
20
|
-
mediaType: 'application/json',
|
|
21
|
-
errors: {
|
|
22
|
-
400: `Bad request - invalid data`,
|
|
23
|
-
500: `Internal server error`,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get checklist templates by platform
|
|
29
|
-
* @param platformId The platform ID to filter templates by
|
|
30
|
-
* @param entityType Optional entity type filter
|
|
31
|
-
* @returns ChecklistTemplateResponseDto Templates retrieved successfully
|
|
32
|
-
* @throws ApiError
|
|
33
|
-
*/
|
|
34
|
-
getChecklistTemplatesByPlatform(platformId, entityType) {
|
|
35
|
-
return this.httpRequest.request({
|
|
36
|
-
method: 'GET',
|
|
37
|
-
url: '/v1/checklist-templates',
|
|
38
|
-
query: {
|
|
39
|
-
'platformId': platformId,
|
|
40
|
-
'entityType': entityType,
|
|
41
|
-
},
|
|
42
|
-
errors: {
|
|
43
|
-
400: `Bad request - missing platformId`,
|
|
44
|
-
500: `Internal server error`,
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Get checklist template by ID
|
|
50
|
-
* @param id The ID of the checklist template
|
|
51
|
-
* @returns ChecklistTemplateResponseDto Checklist template retrieved successfully
|
|
52
|
-
* @throws ApiError
|
|
53
|
-
*/
|
|
54
|
-
getChecklistTemplateById(id) {
|
|
55
|
-
return this.httpRequest.request({
|
|
56
|
-
method: 'GET',
|
|
57
|
-
url: '/v1/checklist-templates/{id}',
|
|
58
|
-
path: {
|
|
59
|
-
'id': id,
|
|
60
|
-
},
|
|
61
|
-
errors: {
|
|
62
|
-
404: `Checklist template not found`,
|
|
63
|
-
500: `Internal server error`,
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Update checklist template
|
|
69
|
-
* @param id The ID of the checklist template to update
|
|
70
|
-
* @param requestBody
|
|
71
|
-
* @returns ChecklistTemplateResponseDto Checklist template updated successfully
|
|
72
|
-
* @throws ApiError
|
|
73
|
-
*/
|
|
74
|
-
updateChecklistTemplate(id, requestBody) {
|
|
75
|
-
return this.httpRequest.request({
|
|
76
|
-
method: 'PUT',
|
|
77
|
-
url: '/v1/checklist-templates/{id}',
|
|
78
|
-
path: {
|
|
79
|
-
'id': id,
|
|
80
|
-
},
|
|
81
|
-
body: requestBody,
|
|
82
|
-
mediaType: 'application/json',
|
|
83
|
-
errors: {
|
|
84
|
-
400: `Bad request - invalid data`,
|
|
85
|
-
404: `Checklist template not found`,
|
|
86
|
-
500: `Internal server error`,
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Delete checklist template
|
|
92
|
-
* @param id The ID of the checklist template to delete
|
|
93
|
-
* @returns void
|
|
94
|
-
* @throws ApiError
|
|
95
|
-
*/
|
|
96
|
-
deleteChecklistTemplate(id) {
|
|
97
|
-
return this.httpRequest.request({
|
|
98
|
-
method: 'DELETE',
|
|
99
|
-
url: '/v1/checklist-templates/{id}',
|
|
100
|
-
path: {
|
|
101
|
-
'id': id,
|
|
102
|
-
},
|
|
103
|
-
errors: {
|
|
104
|
-
404: `Checklist template not found`,
|
|
105
|
-
500: `Internal server error`,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Add item to template
|
|
111
|
-
* @param id The ID of the checklist template
|
|
112
|
-
* @param requestBody
|
|
113
|
-
* @returns ChecklistTemplateItemResponseDto Template item created successfully
|
|
114
|
-
* @throws ApiError
|
|
115
|
-
*/
|
|
116
|
-
addItemToTemplate(id, requestBody) {
|
|
117
|
-
return this.httpRequest.request({
|
|
118
|
-
method: 'POST',
|
|
119
|
-
url: '/v1/checklist-templates/{id}/items',
|
|
120
|
-
path: {
|
|
121
|
-
'id': id,
|
|
122
|
-
},
|
|
123
|
-
body: requestBody,
|
|
124
|
-
mediaType: 'application/json',
|
|
125
|
-
errors: {
|
|
126
|
-
400: `Bad request - invalid data`,
|
|
127
|
-
404: `Checklist template not found`,
|
|
128
|
-
500: `Internal server error`,
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Update template item
|
|
134
|
-
* @param itemId The ID of the template item to update
|
|
135
|
-
* @param requestBody
|
|
136
|
-
* @returns ChecklistTemplateItemResponseDto Template item updated successfully
|
|
137
|
-
* @throws ApiError
|
|
138
|
-
*/
|
|
139
|
-
updateTemplateItem(itemId, requestBody) {
|
|
140
|
-
return this.httpRequest.request({
|
|
141
|
-
method: 'PUT',
|
|
142
|
-
url: '/v1/checklist-templates/items/{itemId}',
|
|
143
|
-
path: {
|
|
144
|
-
'itemId': itemId,
|
|
145
|
-
},
|
|
146
|
-
body: requestBody,
|
|
147
|
-
mediaType: 'application/json',
|
|
148
|
-
errors: {
|
|
149
|
-
400: `Bad request - invalid data`,
|
|
150
|
-
404: `Template item not found`,
|
|
151
|
-
500: `Internal server error`,
|
|
152
|
-
},
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Delete template item
|
|
157
|
-
* @param itemId The ID of the template item to delete
|
|
158
|
-
* @returns void
|
|
159
|
-
* @throws ApiError
|
|
160
|
-
*/
|
|
161
|
-
deleteTemplateItem(itemId) {
|
|
162
|
-
return this.httpRequest.request({
|
|
163
|
-
method: 'DELETE',
|
|
164
|
-
url: '/v1/checklist-templates/items/{itemId}',
|
|
165
|
-
path: {
|
|
166
|
-
'itemId': itemId,
|
|
167
|
-
},
|
|
168
|
-
errors: {
|
|
169
|
-
400: `Cannot delete template item in use`,
|
|
170
|
-
404: `Template item not found`,
|
|
171
|
-
500: `Internal server error`,
|
|
172
|
-
},
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
exports.ChecklistTemplatesService = ChecklistTemplatesService;
|
|
177
|
-
//# sourceMappingURL=ChecklistTemplatesService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChecklistTemplatesService.js","sourceRoot":"","sources":["../../services/ChecklistTemplatesService.ts"],"names":[],"mappings":";;;AAYA,MAAa,yBAAyB;IACN;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,uBAAuB,CAC1B,WAAuC;QAEvC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,4BAA4B;gBACjC,GAAG,EAAE,uBAAuB;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,+BAA+B,CAClC,UAAkB,EAClB,UAAmB;QAEnB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,YAAY,EAAE,UAAU;gBACxB,YAAY,EAAE,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