@corsa-labs/sdk 4.6.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.
Files changed (73) hide show
  1. package/dist/ComplianceClient.d.ts +4 -0
  2. package/dist/ComplianceClient.js +6 -0
  3. package/dist/ComplianceClient.js.map +1 -1
  4. package/dist/models/ActionConfigDto.d.ts +19 -0
  5. package/dist/models/ActionConfigDto.js +15 -0
  6. package/dist/models/ActionConfigDto.js.map +1 -0
  7. package/dist/models/ChecklistItemResponseDto.d.ts +74 -0
  8. package/dist/models/ChecklistItemResponseDto.js +18 -0
  9. package/dist/models/ChecklistItemResponseDto.js.map +1 -0
  10. package/dist/models/ChecklistResponseDto.d.ts +62 -0
  11. package/dist/models/ChecklistResponseDto.js +26 -0
  12. package/dist/models/ChecklistResponseDto.js.map +1 -0
  13. package/dist/models/ChecklistTemplateItemResponseDto.d.ts +45 -0
  14. package/dist/models/ChecklistTemplateItemResponseDto.js +18 -0
  15. package/dist/models/ChecklistTemplateItemResponseDto.js.map +1 -0
  16. package/dist/models/ChecklistTemplateResponseDto.d.ts +50 -0
  17. package/dist/models/ChecklistTemplateResponseDto.js +17 -0
  18. package/dist/models/ChecklistTemplateResponseDto.js.map +1 -0
  19. package/dist/models/ConditionDto.d.ts +47 -0
  20. package/dist/models/ConditionDto.js +23 -0
  21. package/dist/models/ConditionDto.js.map +1 -0
  22. package/dist/models/ConditionsDto.d.ts +11 -0
  23. package/dist/models/ConditionsDto.js +3 -0
  24. package/dist/models/ConditionsDto.js.map +1 -0
  25. package/dist/models/CorporateClientDto.d.ts +6 -5
  26. package/dist/models/CorporateClientDto.js.map +1 -1
  27. package/dist/models/CreateChecklistTemplateItemDto.d.ts +0 -11
  28. package/dist/models/CreateChecklistTemplateItemDto.js.map +1 -1
  29. package/dist/models/CreateCorporateClientDto.d.ts +1 -0
  30. package/dist/models/CreateCorporateClientDto.js.map +1 -1
  31. package/dist/models/CreateIndividualClientDto.d.ts +1 -0
  32. package/dist/models/CreateIndividualClientDto.js.map +1 -1
  33. package/dist/models/CreateRuleDto.d.ts +38 -0
  34. package/dist/models/CreateRuleDto.js +16 -0
  35. package/dist/models/CreateRuleDto.js.map +1 -0
  36. package/dist/models/DeleteRuleDto.d.ts +6 -0
  37. package/dist/models/DeleteRuleDto.js +3 -0
  38. package/dist/models/DeleteRuleDto.js.map +1 -0
  39. package/dist/models/DisableRuleDto.d.ts +6 -0
  40. package/dist/models/DisableRuleDto.js +3 -0
  41. package/dist/models/DisableRuleDto.js.map +1 -0
  42. package/dist/models/IndividualClientDto.d.ts +5 -4
  43. package/dist/models/IndividualClientDto.js.map +1 -1
  44. package/dist/models/RuleResponseDto.d.ts +25 -0
  45. package/dist/models/RuleResponseDto.js +19 -0
  46. package/dist/models/RuleResponseDto.js.map +1 -0
  47. package/dist/models/UpdateChecklistItemDto.d.ts +9 -6
  48. package/dist/models/UpdateChecklistItemDto.js.map +1 -1
  49. package/dist/models/UpdateChecklistTemplateItemDto.d.ts +0 -11
  50. package/dist/models/UpdateChecklistTemplateItemDto.js.map +1 -1
  51. package/dist/models/UpdateCorporateClientDto.d.ts +2 -0
  52. package/dist/models/UpdateCorporateClientDto.js.map +1 -1
  53. package/dist/models/UpdateIndividualClientDto.d.ts +2 -0
  54. package/dist/models/UpdateIndividualClientDto.js.map +1 -1
  55. package/dist/models/UpdateRuleDto.d.ts +20 -0
  56. package/dist/models/UpdateRuleDto.js +13 -0
  57. package/dist/models/UpdateRuleDto.js.map +1 -0
  58. package/dist/models/UpdateTransactionDto.d.ts +28 -0
  59. package/dist/models/UpdateTransactionDto.js +3 -0
  60. package/dist/models/UpdateTransactionDto.js.map +1 -0
  61. package/dist/services/ChecklistTemplatesService.d.ts +72 -0
  62. package/dist/services/ChecklistTemplatesService.js +177 -0
  63. package/dist/services/ChecklistTemplatesService.js.map +1 -0
  64. package/dist/services/ChecklistsService.d.ts +8 -70
  65. package/dist/services/ChecklistsService.js +8 -173
  66. package/dist/services/ChecklistsService.js.map +1 -1
  67. package/dist/services/RulesService.d.ts +249 -0
  68. package/dist/services/RulesService.js +333 -0
  69. package/dist/services/RulesService.js.map +1 -0
  70. package/dist/services/TransactionsService.d.ts +12 -3
  71. package/dist/services/TransactionsService.js +22 -4
  72. package/dist/services/TransactionsService.js.map +1 -1
  73. package/package.json +1 -1
@@ -1,87 +1,25 @@
1
- import type { CreateChecklistTemplateDto } from '../models/CreateChecklistTemplateDto';
2
- import type { CreateChecklistTemplateItemDto } from '../models/CreateChecklistTemplateItemDto';
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
- * Create new checklist template
13
- * @param requestBody
14
- * @returns any Checklist template created successfully
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
- deleteTemplateItem(itemId: string): CancelablePromise<void>;
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 any Checklist item updated successfully
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
- getChecklistByEntity(entityId: string): CancelablePromise<any>;
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
- * Create new checklist template
11
- * @param requestBody
12
- * @returns any 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 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
- getChecklistTemplatesByPlatform(platformId, entityType) {
15
+ getChecklistByEntity(entityId) {
35
16
  return this.httpRequest.request({
36
17
  method: 'GET',
37
- url: '/v1/checklist-templates',
18
+ url: '/v1/checklists/entity',
38
19
  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 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
- 404: `Template item not found`,
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 any Checklist item updated successfully
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":";;;AAWA,MAAa,iBAAiB;IACE;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,EAA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;;;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"}
@@ -0,0 +1,249 @@
1
+ import type { CreateRuleDto } from '../models/CreateRuleDto';
2
+ import type { DeleteRuleDto } from '../models/DeleteRuleDto';
3
+ import type { DisableRuleDto } from '../models/DisableRuleDto';
4
+ import type { RuleResponseDto } from '../models/RuleResponseDto';
5
+ import type { UpdateRuleDto } from '../models/UpdateRuleDto';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
8
+ export declare class RulesService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * Create a new rule (draft)
13
+ * Create a new rule (draft)
14
+ * @param requestBody
15
+ * @returns RuleResponseDto
16
+ * @throws ApiError
17
+ */
18
+ createRule(requestBody: CreateRuleDto): CancelablePromise<RuleResponseDto>;
19
+ /**
20
+ * List rules with pagination
21
+ * List rules with pagination
22
+ * @param page Page number to retrieve. If you provide invalid value the default page number will applied
23
+ *
24
+ * **Example:** 1
25
+ *
26
+ *
27
+ * **Default Value:** 1
28
+ *
29
+ *
30
+ * @param limit Number of records per page.
31
+ *
32
+ *
33
+ * **Example:** 20
34
+ *
35
+ *
36
+ *
37
+ * **Default Value:** 20
38
+ *
39
+ *
40
+ *
41
+ * **Max Value:** 100
42
+ *
43
+ *
44
+ * If provided value is greater than max value, max value will be applied.
45
+ *
46
+ * @param filterId Filter by id query param.
47
+ *
48
+ * **Format:** filter.id={$not}:OPERATION:VALUE
49
+ *
50
+ *
51
+ *
52
+ * **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
53
+ *
54
+ * **Available Operations**
55
+ * - $eq
56
+ *
57
+ * - $in
58
+ *
59
+ * - $and
60
+ *
61
+ * - $or
62
+ * @param filterName Filter by name query param.
63
+ *
64
+ * **Format:** filter.name={$not}:OPERATION:VALUE
65
+ *
66
+ *
67
+ *
68
+ * **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
69
+ *
70
+ * **Available Operations**
71
+ * - $eq
72
+ *
73
+ * - $ilike
74
+ *
75
+ * - $in
76
+ *
77
+ * - $and
78
+ *
79
+ * - $or
80
+ * @param filterStatus Filter by status query param.
81
+ *
82
+ * **Format:** filter.status={$not}:OPERATION:VALUE
83
+ *
84
+ *
85
+ *
86
+ * **Example:** filter.status=$eq:John Doe&filter.status=$in:John Doe
87
+ *
88
+ * **Available Operations**
89
+ * - $eq
90
+ *
91
+ * - $in
92
+ *
93
+ * - $and
94
+ *
95
+ * - $or
96
+ * @param filterPriority Filter by priority query param.
97
+ *
98
+ * **Format:** filter.priority={$not}:OPERATION:VALUE
99
+ *
100
+ *
101
+ *
102
+ * **Example:** filter.priority=$eq:John Doe&filter.priority=$in:John Doe
103
+ *
104
+ * **Available Operations**
105
+ * - $eq
106
+ *
107
+ * - $in
108
+ *
109
+ * - $and
110
+ *
111
+ * - $or
112
+ * @param filterUpdatedAt Filter by updatedAt query param.
113
+ *
114
+ * **Format:** filter.updatedAt={$not}:OPERATION:VALUE
115
+ *
116
+ *
117
+ *
118
+ * **Example:** filter.updatedAt=$btw:John Doe&filter.updatedAt=$gte:John Doe
119
+ *
120
+ * **Available Operations**
121
+ * - $gte
122
+ *
123
+ * - $lte
124
+ *
125
+ * - $btw
126
+ *
127
+ * - $and
128
+ *
129
+ * - $or
130
+ * @param filterCreatedAt Filter by createdAt query param.
131
+ *
132
+ * **Format:** filter.createdAt={$not}:OPERATION:VALUE
133
+ *
134
+ *
135
+ *
136
+ * **Example:** filter.createdAt=$btw:John Doe&filter.createdAt=$gte:John Doe
137
+ *
138
+ * **Available Operations**
139
+ * - $gte
140
+ *
141
+ * - $lte
142
+ *
143
+ * - $btw
144
+ *
145
+ * - $and
146
+ *
147
+ * - $or
148
+ * @param sortBy Parameter to sort by.
149
+ * To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
150
+ *
151
+ * **Format:** {fieldName}:{DIRECTION}
152
+ *
153
+ *
154
+ * **Example:** sortBy=id:DESC&sortBy=name:DESC
155
+ *
156
+ *
157
+ * **Default Value:** updatedAt:DESC
158
+ *
159
+ * **Available Fields**
160
+ * - id
161
+ *
162
+ * - name
163
+ *
164
+ * - updatedAt
165
+ *
166
+ * - createdAt
167
+ *
168
+ * - status
169
+ *
170
+ * - priority
171
+ *
172
+ * @param search Search term to filter result values
173
+ *
174
+ * **Example:** John
175
+ *
176
+ *
177
+ * **Default Value:** No default value
178
+ *
179
+ *
180
+ * @param searchBy List of fields to search by term to filter result values
181
+ *
182
+ * **Example:** name,description
183
+ *
184
+ *
185
+ * **Default Value:** By default all fields mentioned below will be used to search by term
186
+ *
187
+ * **Available Fields**
188
+ * - name
189
+ *
190
+ * - description
191
+ *
192
+ * @returns any
193
+ * @throws ApiError
194
+ */
195
+ listRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterPriority?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'status:ASC' | 'status:DESC' | 'priority:ASC' | 'priority:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
196
+ /**
197
+ * Update a draft rule
198
+ * Update a draft rule
199
+ * @param id
200
+ * @param requestBody
201
+ * @returns RuleResponseDto
202
+ * @throws ApiError
203
+ */
204
+ updateRule(id: string, requestBody: UpdateRuleDto): CancelablePromise<RuleResponseDto>;
205
+ /**
206
+ * Get a rule by ID
207
+ * Get a rule by ID
208
+ * @param id
209
+ * @param version
210
+ * @returns RuleResponseDto
211
+ * @throws ApiError
212
+ */
213
+ getRule(id: string, version?: number): CancelablePromise<RuleResponseDto>;
214
+ /**
215
+ * Update an active rule
216
+ * Update an active rule
217
+ * @param id
218
+ * @param requestBody
219
+ * @returns RuleResponseDto
220
+ * @throws ApiError
221
+ */
222
+ updateActiveRule(id: string, requestBody: UpdateRuleDto): CancelablePromise<RuleResponseDto>;
223
+ /**
224
+ * Activate a rule
225
+ * Activate a rule
226
+ * @param id
227
+ * @returns RuleResponseDto
228
+ * @throws ApiError
229
+ */
230
+ activateRule(id: string): CancelablePromise<RuleResponseDto>;
231
+ /**
232
+ * Disable an active rule
233
+ * Disable an active rule
234
+ * @param id
235
+ * @param requestBody
236
+ * @returns RuleResponseDto
237
+ * @throws ApiError
238
+ */
239
+ disableRule(id: string, requestBody: DisableRuleDto): CancelablePromise<RuleResponseDto>;
240
+ /**
241
+ * Delete a non-active rule (soft delete)
242
+ * Delete a non-active rule (soft delete)
243
+ * @param id
244
+ * @param requestBody
245
+ * @returns any
246
+ * @throws ApiError
247
+ */
248
+ deleteRule(id: string, requestBody: DeleteRuleDto): CancelablePromise<any>;
249
+ }