@corsa-labs/sdk 4.5.0 → 4.7.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 +2 -0
- package/dist/ComplianceClient.js +3 -0
- package/dist/ComplianceClient.js.map +1 -1
- package/dist/models/AssociateBankAccountWithClientDto.d.ts +1 -1
- package/dist/models/AssociateBlockchainWalletWithClientDto.d.ts +1 -1
- package/dist/models/ChecklistItemResponseDto.d.ts +74 -0
- package/dist/models/ChecklistItemResponseDto.js +18 -0
- package/dist/models/ChecklistItemResponseDto.js.map +1 -0
- package/dist/models/ChecklistResponseDto.d.ts +62 -0
- package/dist/models/ChecklistResponseDto.js +26 -0
- package/dist/models/ChecklistResponseDto.js.map +1 -0
- package/dist/models/ChecklistTemplateItemResponseDto.d.ts +45 -0
- package/dist/models/ChecklistTemplateItemResponseDto.js +18 -0
- package/dist/models/ChecklistTemplateItemResponseDto.js.map +1 -0
- package/dist/models/ChecklistTemplateResponseDto.d.ts +50 -0
- package/dist/models/ChecklistTemplateResponseDto.js +17 -0
- package/dist/models/ChecklistTemplateResponseDto.js.map +1 -0
- package/dist/models/ClientSumsubDto.d.ts +11 -0
- package/dist/models/ClientSumsubDto.js +3 -0
- package/dist/models/ClientSumsubDto.js.map +1 -0
- package/dist/models/CorporateClientDto.d.ts +8 -6
- package/dist/models/CorporateClientDto.js +1 -0
- package/dist/models/CorporateClientDto.js.map +1 -1
- package/dist/models/CorporateClientIntegrationsDto.d.ts +3 -2
- package/dist/models/CorporateClientPEPDto.d.ts +1 -1
- package/dist/models/CorporateClientSourceOfFundsDto.d.ts +1 -1
- package/dist/models/CreateAlertDto.d.ts +2 -2
- package/dist/models/CreateBankAccountDto.d.ts +2 -2
- package/dist/models/CreateBlockchainWalletDto.d.ts +1 -1
- package/dist/models/CreateCaseDto.d.ts +5 -5
- package/dist/models/CreateChecklistTemplateItemDto.d.ts +0 -11
- package/dist/models/CreateChecklistTemplateItemDto.js.map +1 -1
- package/dist/models/CreateCorporateClientDto.d.ts +5 -3
- package/dist/models/CreateCorporateClientDto.js +1 -0
- package/dist/models/CreateCorporateClientDto.js.map +1 -1
- package/dist/models/CreateIndividualClientDto.d.ts +5 -3
- package/dist/models/CreateIndividualClientDto.js +1 -0
- package/dist/models/CreateIndividualClientDto.js.map +1 -1
- package/dist/models/CreateIndividualMemberDto.d.ts +1 -1
- package/dist/models/IndividualClientDto.d.ts +7 -5
- package/dist/models/IndividualClientDto.js +1 -0
- package/dist/models/IndividualClientDto.js.map +1 -1
- package/dist/models/IndividualClientIntegrationsDto.d.ts +3 -2
- package/dist/models/RelateAttachmentsDto.d.ts +1 -1
- package/dist/models/SumsubVerificationDto.d.ts +23 -0
- package/dist/models/SumsubVerificationDto.js +3 -0
- package/dist/models/SumsubVerificationDto.js.map +1 -0
- package/dist/models/SumsubVerificationImageDto.d.ts +26 -0
- package/dist/models/SumsubVerificationImageDto.js +3 -0
- package/dist/models/SumsubVerificationImageDto.js.map +1 -0
- package/dist/models/UpdateAlertDto.d.ts +3 -3
- package/dist/models/UpdateBankAccountDto.d.ts +2 -2
- package/dist/models/UpdateBlockchainWalletDto.d.ts +1 -1
- package/dist/models/UpdateChecklistItemDto.d.ts +9 -6
- package/dist/models/UpdateChecklistItemDto.js.map +1 -1
- package/dist/models/UpdateChecklistTemplateItemDto.d.ts +0 -11
- package/dist/models/UpdateChecklistTemplateItemDto.js.map +1 -1
- package/dist/models/UpdateCorporateClientDto.d.ts +8 -5
- package/dist/models/UpdateCorporateClientDto.js +1 -0
- package/dist/models/UpdateCorporateClientDto.js.map +1 -1
- package/dist/models/UpdateIndividualClientDto.d.ts +8 -5
- package/dist/models/UpdateIndividualClientDto.js +1 -0
- package/dist/models/UpdateIndividualClientDto.js.map +1 -1
- package/dist/models/UpdateTransactionDto.d.ts +28 -0
- package/dist/models/UpdateTransactionDto.js +3 -0
- package/dist/models/UpdateTransactionDto.js.map +1 -0
- package/dist/services/ChecklistTemplatesService.d.ts +72 -0
- package/dist/services/ChecklistTemplatesService.js +177 -0
- package/dist/services/ChecklistTemplatesService.js.map +1 -0
- package/dist/services/ChecklistsService.d.ts +8 -70
- package/dist/services/ChecklistsService.js +8 -173
- package/dist/services/ChecklistsService.js.map +1 -1
- package/dist/services/TransactionsService.d.ts +12 -3
- package/dist/services/TransactionsService.js +22 -4
- package/dist/services/TransactionsService.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,G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ACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA5LD,8DA4LC"}
|
|
@@ -1,87 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ChecklistItemResponseDto } from '../models/ChecklistItemResponseDto';
|
|
2
|
+
import type { ChecklistResponseDto } from '../models/ChecklistResponseDto';
|
|
3
3
|
import type { UpdateChecklistItemDto } from '../models/UpdateChecklistItemDto';
|
|
4
|
-
import type { UpdateChecklistTemplateDto } from '../models/UpdateChecklistTemplateDto';
|
|
5
|
-
import type { UpdateChecklistTemplateItemDto } from '../models/UpdateChecklistTemplateItemDto';
|
|
6
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
5
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
8
6
|
export declare class ChecklistsService {
|
|
9
7
|
readonly httpRequest: BaseHttpRequest;
|
|
10
8
|
constructor(httpRequest: BaseHttpRequest);
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param
|
|
14
|
-
* @returns
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
createChecklistTemplate(requestBody: CreateChecklistTemplateDto): CancelablePromise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Get checklist templates by platform
|
|
20
|
-
* @param platformId The platform ID to filter templates by
|
|
21
|
-
* @param entityType Optional entity type filter
|
|
22
|
-
* @returns any Checklist templates retrieved successfully
|
|
23
|
-
* @throws ApiError
|
|
24
|
-
*/
|
|
25
|
-
getChecklistTemplatesByPlatform(platformId: string, entityType?: string): CancelablePromise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* Get checklist template by ID
|
|
28
|
-
* @param id The ID of the checklist template
|
|
29
|
-
* @returns any Checklist template retrieved successfully
|
|
30
|
-
* @throws ApiError
|
|
31
|
-
*/
|
|
32
|
-
getChecklistTemplateById(id: string): CancelablePromise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Update checklist template
|
|
35
|
-
* @param id The ID of the checklist template to update
|
|
36
|
-
* @param requestBody
|
|
37
|
-
* @returns any Checklist template updated successfully
|
|
38
|
-
* @throws ApiError
|
|
39
|
-
*/
|
|
40
|
-
updateChecklistTemplate(id: string, requestBody: UpdateChecklistTemplateDto): CancelablePromise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Delete checklist template
|
|
43
|
-
* @param id The ID of the checklist template to delete
|
|
44
|
-
* @returns void
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
deleteChecklistTemplate(id: string): CancelablePromise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Add item to template
|
|
50
|
-
* @param id The ID of the checklist template
|
|
51
|
-
* @param requestBody
|
|
52
|
-
* @returns any Template item created successfully
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
addItemToTemplate(id: string, requestBody: CreateChecklistTemplateItemDto): CancelablePromise<any>;
|
|
56
|
-
/**
|
|
57
|
-
* Update template item
|
|
58
|
-
* @param itemId The ID of the template item to update
|
|
59
|
-
* @param requestBody
|
|
60
|
-
* @returns any Template item updated successfully
|
|
61
|
-
* @throws ApiError
|
|
62
|
-
*/
|
|
63
|
-
updateTemplateItem(itemId: string, requestBody: UpdateChecklistTemplateItemDto): CancelablePromise<any>;
|
|
64
|
-
/**
|
|
65
|
-
* Delete template item
|
|
66
|
-
* @param itemId The ID of the template item to delete
|
|
67
|
-
* @returns void
|
|
10
|
+
* Get checklist for an entity
|
|
11
|
+
* @param entityId ID of the entity to get the checklist for
|
|
12
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
68
13
|
* @throws ApiError
|
|
69
14
|
*/
|
|
70
|
-
|
|
15
|
+
getChecklistByEntity(entityId: string): CancelablePromise<ChecklistResponseDto>;
|
|
71
16
|
/**
|
|
72
17
|
* Update checklist item
|
|
73
18
|
* @param checklistId The ID of the checklist containing the item
|
|
74
19
|
* @param itemId The ID of the checklist item to update
|
|
75
20
|
* @param requestBody
|
|
76
|
-
* @returns
|
|
77
|
-
* @throws ApiError
|
|
78
|
-
*/
|
|
79
|
-
updateChecklistItem(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<any>;
|
|
80
|
-
/**
|
|
81
|
-
* Get checklist for an entity
|
|
82
|
-
* @param entityId ID of the entity to get the checklist for
|
|
83
|
-
* @returns any Checklist retrieved successfully
|
|
21
|
+
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
84
22
|
* @throws ApiError
|
|
85
23
|
*/
|
|
86
|
-
|
|
24
|
+
updateChecklistItem(checklistId: string, itemId: string, requestBody: UpdateChecklistItemDto): CancelablePromise<ChecklistItemResponseDto>;
|
|
87
25
|
}
|
|
@@ -7,166 +7,20 @@ class ChecklistsService {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
12
|
-
* @returns
|
|
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 any Checklist templates retrieved successfully
|
|
10
|
+
* Get checklist for an entity
|
|
11
|
+
* @param entityId ID of the entity to get the checklist for
|
|
12
|
+
* @returns ChecklistResponseDto Checklist retrieved successfully
|
|
32
13
|
* @throws ApiError
|
|
33
14
|
*/
|
|
34
|
-
|
|
15
|
+
getChecklistByEntity(entityId) {
|
|
35
16
|
return this.httpRequest.request({
|
|
36
17
|
method: 'GET',
|
|
37
|
-
url: '/v1/
|
|
18
|
+
url: '/v1/checklists/entity',
|
|
38
19
|
query: {
|
|
39
|
-
'
|
|
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 any 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 any 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 any 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 any 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,
|
|
20
|
+
'entityId': entityId,
|
|
167
21
|
},
|
|
168
22
|
errors: {
|
|
169
|
-
|
|
23
|
+
400: `Bad request - missing entityId`,
|
|
170
24
|
500: `Internal server error`,
|
|
171
25
|
},
|
|
172
26
|
});
|
|
@@ -176,7 +30,7 @@ class ChecklistsService {
|
|
|
176
30
|
* @param checklistId The ID of the checklist containing the item
|
|
177
31
|
* @param itemId The ID of the checklist item to update
|
|
178
32
|
* @param requestBody
|
|
179
|
-
* @returns
|
|
33
|
+
* @returns ChecklistItemResponseDto Checklist item updated successfully
|
|
180
34
|
* @throws ApiError
|
|
181
35
|
*/
|
|
182
36
|
updateChecklistItem(checklistId, itemId, requestBody) {
|
|
@@ -196,25 +50,6 @@ class ChecklistsService {
|
|
|
196
50
|
},
|
|
197
51
|
});
|
|
198
52
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Get checklist for an entity
|
|
201
|
-
* @param entityId ID of the entity to get the checklist for
|
|
202
|
-
* @returns any Checklist retrieved successfully
|
|
203
|
-
* @throws ApiError
|
|
204
|
-
*/
|
|
205
|
-
getChecklistByEntity(entityId) {
|
|
206
|
-
return this.httpRequest.request({
|
|
207
|
-
method: 'GET',
|
|
208
|
-
url: '/v1/checklist/entity',
|
|
209
|
-
query: {
|
|
210
|
-
'entityId': entityId,
|
|
211
|
-
},
|
|
212
|
-
errors: {
|
|
213
|
-
400: `Bad request - missing entityId`,
|
|
214
|
-
500: `Internal server error`,
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
53
|
}
|
|
219
54
|
exports.ChecklistsService = ChecklistsService;
|
|
220
55
|
//# 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":";;;AASA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,oBAAoB,CACvB,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,6CAA6C;YAClD,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,4BAA4B;gBACjC,GAAG,EAAE,uCAAuC;gBAC5C,GAAG,EAAE,uBAAuB;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AApDD,8CAoDC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { TransactionDto } from '../models/TransactionDto';
|
|
2
2
|
import type { TransactionStatusDto } from '../models/TransactionStatusDto';
|
|
3
|
+
import type { UpdateTransactionDto } from '../models/UpdateTransactionDto';
|
|
3
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
5
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
6
|
export declare class TransactionsService {
|
|
6
7
|
readonly httpRequest: BaseHttpRequest;
|
|
7
8
|
constructor(httpRequest: BaseHttpRequest);
|
|
8
9
|
/**
|
|
9
|
-
* Update
|
|
10
|
+
* Update a transaction
|
|
10
11
|
* @param id
|
|
11
12
|
* @param requestBody
|
|
12
|
-
* @returns
|
|
13
|
+
* @returns TransactionDto
|
|
13
14
|
* @throws ApiError
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
updateTransaction(id: string, requestBody: UpdateTransactionDto): CancelablePromise<TransactionDto>;
|
|
16
17
|
/**
|
|
17
18
|
* Get a transaction by ID or referenceId
|
|
18
19
|
* @param id
|
|
@@ -21,4 +22,12 @@ export declare class TransactionsService {
|
|
|
21
22
|
* @throws ApiError
|
|
22
23
|
*/
|
|
23
24
|
getTransactionById(id: string, integrationId?: string): CancelablePromise<TransactionDto>;
|
|
25
|
+
/**
|
|
26
|
+
* Update the status of a transaction
|
|
27
|
+
* @param id
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns any
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
updateTransactionStatus(id: string, requestBody: TransactionStatusDto): CancelablePromise<any>;
|
|
24
33
|
}
|
|
@@ -7,16 +7,16 @@ class TransactionsService {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Update
|
|
10
|
+
* Update a transaction
|
|
11
11
|
* @param id
|
|
12
12
|
* @param requestBody
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns TransactionDto
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
updateTransaction(id, requestBody) {
|
|
17
17
|
return this.httpRequest.request({
|
|
18
18
|
method: 'PUT',
|
|
19
|
-
url: '/v1/transactions/{id}
|
|
19
|
+
url: '/v1/transactions/{id}',
|
|
20
20
|
path: {
|
|
21
21
|
'id': id,
|
|
22
22
|
},
|
|
@@ -43,6 +43,24 @@ class TransactionsService {
|
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Update the status of a transaction
|
|
48
|
+
* @param id
|
|
49
|
+
* @param requestBody
|
|
50
|
+
* @returns any
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
updateTransactionStatus(id, requestBody) {
|
|
54
|
+
return this.httpRequest.request({
|
|
55
|
+
method: 'PUT',
|
|
56
|
+
url: '/v1/transactions/{id}/updateStatus',
|
|
57
|
+
path: {
|
|
58
|
+
'id': id,
|
|
59
|
+
},
|
|
60
|
+
body: requestBody,
|
|
61
|
+
mediaType: 'application/json',
|
|
62
|
+
});
|
|
63
|
+
}
|
|
46
64
|
}
|
|
47
65
|
exports.TransactionsService = TransactionsService;
|
|
48
66
|
//# sourceMappingURL=TransactionsService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionsService.js","sourceRoot":"","sources":["../../services/TransactionsService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TransactionsService.js","sourceRoot":"","sources":["../../services/TransactionsService.ts"],"names":[],"mappings":";;;AASA,MAAa,mBAAmB;IACA;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,iBAAiB,CACpB,EAAU,EACV,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,kBAAkB,CACrB,EAAU,EACV,aAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,KAAK,EAAE;gBACH,eAAe,EAAE,aAAa;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,uBAAuB,CAC1B,EAAU,EACV,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oCAAoC;YACzC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AAlED,kDAkEC"}
|