octopian-configuration-apis 1.0.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/README.md +104 -0
- package/package.json +18 -0
- package/src/CoreServices/configurationServices.js +1501 -0
- package/src/CoreServices/darAlBerServices.js +239 -0
- package/src/config.js +22 -0
- package/src/index.d.ts +908 -0
- package/src/index.js +101 -0
- package/src/modals/input-modals/CreateNewCorrespondenceInput.ts +7 -0
- package/src/modals/input-modals/GetAssetBlazorViewInput.ts +4 -0
- package/src/modals/input-modals/GetAssetListInput.ts +8 -0
- package/src/modals/input-modals/GetAttributeTypesInput.ts +6 -0
- package/src/modals/input-modals/GetDABAssetsInput.ts +4 -0
- package/src/modals/input-modals/GetDocumentTypesInput.ts +6 -0
- package/src/modals/input-modals/GetInteractorListInput.ts +5 -0
- package/src/modals/input-modals/GetItemListInput.ts +8 -0
- package/src/modals/input-modals/GetPositionsInput.ts +6 -0
- package/src/modals/input-modals/GetRoleListByPermissionInput.ts +13 -0
- package/src/modals/input-modals/GetServiceAttributeListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceCategoryInput.ts +6 -0
- package/src/modals/input-modals/GetServiceListInput.ts +10 -0
- package/src/modals/input-modals/GetServiceStepListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceSubCategoryInput.ts +7 -0
- package/src/modals/input-modals/GetStepTypesInput.ts +7 -0
- package/src/modals/input-modals/LoginUserInput.ts +8 -0
- package/src/modals/input-modals/MaintainAttributeListInput.ts +6 -0
- package/src/modals/input-modals/MaintainAttributeTypeInput.ts +142 -0
- package/src/modals/input-modals/MaintainSubCategoryInput.ts +6 -0
- package/src/modals/output-modals/BaseResponse.ts +13 -0
- package/src/modals/output-modals/GetAssetBlazorViewOutput.ts +11 -0
- package/src/modals/output-modals/GetAssetListOutput.ts +92 -0
- package/src/modals/output-modals/GetAttributeTypesOutput.ts +37 -0
- package/src/modals/output-modals/GetDefaultConfigurationOutput.ts +273 -0
- package/src/modals/output-modals/GetDocumentTypesOutput.ts +23 -0
- package/src/modals/output-modals/GetInteractorListOutput.ts +81 -0
- package/src/modals/output-modals/GetInteractorTypeListOutput.ts +59 -0
- package/src/modals/output-modals/GetItemListOutput.ts +92 -0
- package/src/modals/output-modals/GetPositionsOutput.ts +10 -0
- package/src/modals/output-modals/GetRoleListByPermissionOutput.ts +18 -0
- package/src/modals/output-modals/GetServiceAttributeListOutput.ts +95 -0
- package/src/modals/output-modals/GetServiceCategoryOutput.ts +62 -0
- package/src/modals/output-modals/GetServiceListOutput.ts +183 -0
- package/src/modals/output-modals/GetServiceStepListOutput.ts +163 -0
- package/src/modals/output-modals/GetServiceSubCategoryOuput.ts +71 -0
- package/src/modals/output-modals/GetStepTypesOutput.ts +7 -0
- package/src/modals/output-modals/GetUnitListOutput.ts +27 -0
- package/src/modals/output-modals/LoginUserOutput.ts +8 -0
- package/src/sdkUtilities.js +22 -0
- package/src/web-services/apiConstants.js +99 -0
- package/src/web-services/apiHandler.js +154 -0
|
@@ -0,0 +1,1501 @@
|
|
|
1
|
+
import { ConfigurationAPIConstants } from "../web-services/apiConstants";
|
|
2
|
+
import { SetToken } from "../sdkUtilities";
|
|
3
|
+
import * as apiHandler from "../web-services/apiHandler";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* Submits a request to login using the provided input data.
|
|
8
|
+
*
|
|
9
|
+
* @param {LoginUserInput} Input
|
|
10
|
+
* The data required to process the request to login.
|
|
11
|
+
*
|
|
12
|
+
* @param {number} Timeout
|
|
13
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
14
|
+
*
|
|
15
|
+
* @returns {BaseResponse<LoginUserOutput | BaseErrorResponse>}
|
|
16
|
+
* An object containing the response from the Login API,
|
|
17
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
18
|
+
* {
|
|
19
|
+
* Message: Success,
|
|
20
|
+
* StatusCode: 200,
|
|
21
|
+
* Result: LoginUserOutput,
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
export async function Login(LoginDTO, Timeout = 30000) {
|
|
25
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
26
|
+
ConfigurationAPIConstants.uriLogin(),
|
|
27
|
+
LoginDTO,
|
|
28
|
+
null,
|
|
29
|
+
Timeout
|
|
30
|
+
);
|
|
31
|
+
if (APIResponse.StatusCode == 200) {
|
|
32
|
+
SetToken(APIResponse.Result.Token);
|
|
33
|
+
}
|
|
34
|
+
return APIResponse;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description
|
|
39
|
+
* Submits a request to become a benefit grantor using the provided input data.
|
|
40
|
+
*
|
|
41
|
+
* @param {GetServiceListInput} Input
|
|
42
|
+
* The data required to process the request to become a benefit grantor.
|
|
43
|
+
* pageSize: number;
|
|
44
|
+
* pageIndex: number;
|
|
45
|
+
* interactorTypeId: number;
|
|
46
|
+
* serviceCategoryId: number;
|
|
47
|
+
* serviceSubCategoryId: number;
|
|
48
|
+
* serviceId: number;
|
|
49
|
+
* serviceIdList: number[];
|
|
50
|
+
* shortcutServiceId: number;
|
|
51
|
+
*
|
|
52
|
+
* @param {string} AuthToken
|
|
53
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
54
|
+
*
|
|
55
|
+
* @param {number} Timeout
|
|
56
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
57
|
+
*
|
|
58
|
+
* @returns {BaseResponse<GetServiceListOutput[] | BaseErrorResponse>}
|
|
59
|
+
* An object containing the response from the GetServiceList API,
|
|
60
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
61
|
+
* {
|
|
62
|
+
* Message: Success,
|
|
63
|
+
* StatusCode: 200,
|
|
64
|
+
* Result: GetServiceListOutput[],
|
|
65
|
+
* }
|
|
66
|
+
*/
|
|
67
|
+
export async function GetServiceList(Input, AuthToken = null, Timeout = 30000) {
|
|
68
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
69
|
+
ConfigurationAPIConstants.uriGetServiceList(),
|
|
70
|
+
Input,
|
|
71
|
+
AuthToken,
|
|
72
|
+
Timeout
|
|
73
|
+
);
|
|
74
|
+
return APIResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @description
|
|
79
|
+
* Submits a request to maintain a list of services using the provided input data.
|
|
80
|
+
*
|
|
81
|
+
* @param {GetServiceListOutput[]} Input
|
|
82
|
+
* The list of services to maintain.
|
|
83
|
+
*
|
|
84
|
+
* @param {string} AuthToken
|
|
85
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
86
|
+
*
|
|
87
|
+
* @param {number} Timeout
|
|
88
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
89
|
+
*
|
|
90
|
+
* @returns {BaseResponse<GetServiceListOutput[] | BaseErrorResponse>}
|
|
91
|
+
* An object containing the response from the MaintainServiceList API,
|
|
92
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
93
|
+
* {
|
|
94
|
+
* Message: Success,
|
|
95
|
+
* StatusCode: 200,
|
|
96
|
+
* Result: GetServiceListOutput[],
|
|
97
|
+
* }
|
|
98
|
+
*/
|
|
99
|
+
export async function MaintainServiceList(
|
|
100
|
+
Input,
|
|
101
|
+
AuthToken = null,
|
|
102
|
+
Timeout = 30000
|
|
103
|
+
) {
|
|
104
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
105
|
+
ConfigurationAPIConstants.uriMaintainServiceList(),
|
|
106
|
+
Input,
|
|
107
|
+
AuthToken,
|
|
108
|
+
Timeout
|
|
109
|
+
);
|
|
110
|
+
return APIResponse;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @description
|
|
115
|
+
* Submits a request to get a list of service steps using the provided input data.
|
|
116
|
+
*
|
|
117
|
+
* @param {GetServiceStepListInput} Input
|
|
118
|
+
* The data required to process the request to get a list of service steps.
|
|
119
|
+
*
|
|
120
|
+
* @param {string} AuthToken
|
|
121
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
122
|
+
*
|
|
123
|
+
* @param {number} Timeout
|
|
124
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
125
|
+
*
|
|
126
|
+
* @returns {BaseResponse<GetServiceStepListOutput[] | BaseErrorResponse>}
|
|
127
|
+
* An object containing the response from the GetServiceStepList API,
|
|
128
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
129
|
+
* {
|
|
130
|
+
* Message: Success,
|
|
131
|
+
* StatusCode: 200,
|
|
132
|
+
* Result: GetServiceStepListOutput[],
|
|
133
|
+
* }
|
|
134
|
+
*/
|
|
135
|
+
export async function GetServiceStepList(
|
|
136
|
+
Input,
|
|
137
|
+
AuthToken = null,
|
|
138
|
+
Timeout = 30000
|
|
139
|
+
) {
|
|
140
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
141
|
+
ConfigurationAPIConstants.uriGetServiceStepList(),
|
|
142
|
+
Input,
|
|
143
|
+
AuthToken,
|
|
144
|
+
Timeout
|
|
145
|
+
);
|
|
146
|
+
return APIResponse;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @description
|
|
151
|
+
* Submits a request to maintain a list of service steps using the provided input data.
|
|
152
|
+
*
|
|
153
|
+
* @param {GetServiceStepListOutput[]} Input
|
|
154
|
+
* The list of service steps to maintain.
|
|
155
|
+
*
|
|
156
|
+
* @param {string} AuthToken
|
|
157
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
158
|
+
*
|
|
159
|
+
* @param {number} Timeout
|
|
160
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
161
|
+
*
|
|
162
|
+
* @returns {BaseResponse<GetServiceStepListOutput[] | BaseErrorResponse>}
|
|
163
|
+
* An object containing the response from the MaintainServiceStepList API,
|
|
164
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
165
|
+
* {
|
|
166
|
+
* Message: Success,
|
|
167
|
+
* StatusCode: 200,
|
|
168
|
+
* Result: GetServiceStepListOutput[],
|
|
169
|
+
* }
|
|
170
|
+
*/
|
|
171
|
+
export async function MaintainServiceStepList(
|
|
172
|
+
Input,
|
|
173
|
+
AuthToken = null,
|
|
174
|
+
Timeout = 30000
|
|
175
|
+
) {
|
|
176
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
177
|
+
ConfigurationAPIConstants.uriMaintainServiceStepList(),
|
|
178
|
+
Input,
|
|
179
|
+
AuthToken,
|
|
180
|
+
Timeout
|
|
181
|
+
);
|
|
182
|
+
return APIResponse;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @description
|
|
187
|
+
* Submits a request to get a list of attributes using the provided input data.
|
|
188
|
+
*
|
|
189
|
+
* @param {GetServiceAttributeListInput} Input
|
|
190
|
+
* The data required to process the request to get a list of attributes.
|
|
191
|
+
*
|
|
192
|
+
* @param {string} AuthToken
|
|
193
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
194
|
+
*
|
|
195
|
+
* @param {number} Timeout
|
|
196
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
197
|
+
*
|
|
198
|
+
* @returns {BaseResponse<GetServiceAttributeListOutput[] | BaseErrorResponse>}
|
|
199
|
+
* An object containing the response from the GetAttributeList API,
|
|
200
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
201
|
+
* {
|
|
202
|
+
* Message: Success,
|
|
203
|
+
* StatusCode: 200,
|
|
204
|
+
* Result: GetServiceAttributeListOutput[],
|
|
205
|
+
* }
|
|
206
|
+
*/
|
|
207
|
+
export async function GetAttributeList(
|
|
208
|
+
Input,
|
|
209
|
+
AuthToken = null,
|
|
210
|
+
Timeout = 30000
|
|
211
|
+
) {
|
|
212
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
213
|
+
ConfigurationAPIConstants.uriGetAttributeList(),
|
|
214
|
+
Input,
|
|
215
|
+
AuthToken,
|
|
216
|
+
Timeout
|
|
217
|
+
);
|
|
218
|
+
return APIResponse;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @description
|
|
223
|
+
* Submits a request to maintain a list of attributes using the provided input data.
|
|
224
|
+
*
|
|
225
|
+
* @param {MaintainAttributeListInput} Input
|
|
226
|
+
* The data required to process the request to maintain a list of attributes.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} AuthToken
|
|
229
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
230
|
+
*
|
|
231
|
+
* @param {number} Timeout
|
|
232
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
233
|
+
*
|
|
234
|
+
* @returns {BaseResponse<GetServiceAttributeListOutput[] | BaseErrorResponse>}
|
|
235
|
+
* An object containing the response from the MaintainAttributeList API,
|
|
236
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
237
|
+
* {
|
|
238
|
+
* Message: Success,
|
|
239
|
+
* StatusCode: 200,
|
|
240
|
+
* Result: GetServiceAttributeListOutput[],
|
|
241
|
+
* }
|
|
242
|
+
*/
|
|
243
|
+
export async function MaintainAttributeList(
|
|
244
|
+
Input,
|
|
245
|
+
AuthToken = null,
|
|
246
|
+
Timeout = 30000
|
|
247
|
+
) {
|
|
248
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
249
|
+
ConfigurationAPIConstants.uriMaintainAttributeList(),
|
|
250
|
+
Input,
|
|
251
|
+
AuthToken,
|
|
252
|
+
Timeout
|
|
253
|
+
);
|
|
254
|
+
return APIResponse;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @description
|
|
259
|
+
* Submits a request to get a list of service categories using the provided input data.
|
|
260
|
+
*
|
|
261
|
+
* @param {GetServiceCategoryInput} Input
|
|
262
|
+
* The data required to process the request to get a list of service categories.
|
|
263
|
+
*
|
|
264
|
+
* @param {string} AuthToken
|
|
265
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
266
|
+
*
|
|
267
|
+
* @param {number} Timeout
|
|
268
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
269
|
+
*
|
|
270
|
+
* @returns {BaseResponse<GetServiceCategoryOutput[] | BaseErrorResponse>}
|
|
271
|
+
* An object containing the response from the GetServiceCategoryList API,
|
|
272
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
273
|
+
* {
|
|
274
|
+
* Message: Success,
|
|
275
|
+
* StatusCode: 200,
|
|
276
|
+
* Result: GetServiceCategoryOutput[],
|
|
277
|
+
* }
|
|
278
|
+
*/
|
|
279
|
+
export async function GetServiceCategoryList(
|
|
280
|
+
Input,
|
|
281
|
+
AuthToken = null,
|
|
282
|
+
Timeout = 30000
|
|
283
|
+
) {
|
|
284
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
285
|
+
ConfigurationAPIConstants.uriGetServiceCategoryList(),
|
|
286
|
+
Input,
|
|
287
|
+
AuthToken,
|
|
288
|
+
Timeout
|
|
289
|
+
);
|
|
290
|
+
return APIResponse;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @description
|
|
295
|
+
* Submits a request to maintain a list of service categories using the provided input data.
|
|
296
|
+
*
|
|
297
|
+
* @param {GetServiceCategoryOutput[]} Input
|
|
298
|
+
* The list of service categories to maintain.
|
|
299
|
+
*
|
|
300
|
+
* @param {string} AuthToken
|
|
301
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
302
|
+
*
|
|
303
|
+
* @param {number} Timeout
|
|
304
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
305
|
+
*
|
|
306
|
+
* @returns {BaseResponse<GetServiceCategoryOutput[] | BaseErrorResponse>}
|
|
307
|
+
* An object containing the response from the MaintainServiceCategoryList API,
|
|
308
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
309
|
+
* {
|
|
310
|
+
* Message: Success,
|
|
311
|
+
* StatusCode: 200,
|
|
312
|
+
* Result: GetServiceCategoryOutput[],
|
|
313
|
+
* }
|
|
314
|
+
*/
|
|
315
|
+
export async function MaintainServiceCategoryList(
|
|
316
|
+
Input,
|
|
317
|
+
AuthToken = null,
|
|
318
|
+
Timeout = 30000
|
|
319
|
+
) {
|
|
320
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
321
|
+
ConfigurationAPIConstants.uriMaintainServiceCategoryList(),
|
|
322
|
+
Input,
|
|
323
|
+
AuthToken,
|
|
324
|
+
Timeout
|
|
325
|
+
);
|
|
326
|
+
return APIResponse;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @description
|
|
331
|
+
* Submits a request to get a list of service subcategories using the provided input data.
|
|
332
|
+
*
|
|
333
|
+
* @param {GetServiceSubCategoryInput} Input
|
|
334
|
+
* The data required to process the request to get a list of service subcategories.
|
|
335
|
+
*
|
|
336
|
+
* @param {string} AuthToken
|
|
337
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
338
|
+
*
|
|
339
|
+
* @param {number} Timeout
|
|
340
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
341
|
+
*
|
|
342
|
+
* @returns {BaseResponse<GetServiceSubCategoryOutput[] | BaseErrorResponse>}
|
|
343
|
+
* An object containing the response from the GetServiceSubCategoryList API,
|
|
344
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
345
|
+
* {
|
|
346
|
+
* Message: Success,
|
|
347
|
+
* StatusCode: 200,
|
|
348
|
+
* Result: GetServiceSubCategoryOutput[],
|
|
349
|
+
* }
|
|
350
|
+
*/
|
|
351
|
+
export async function GetServiceSubCategoryList(
|
|
352
|
+
Input,
|
|
353
|
+
AuthToken = null,
|
|
354
|
+
Timeout = 30000
|
|
355
|
+
) {
|
|
356
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
357
|
+
ConfigurationAPIConstants.uriGetServiceSubCategoryList(),
|
|
358
|
+
Input,
|
|
359
|
+
AuthToken,
|
|
360
|
+
Timeout
|
|
361
|
+
);
|
|
362
|
+
return APIResponse;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @description
|
|
367
|
+
* Submits a request to maintain a list of service subcategories using the provided input data.
|
|
368
|
+
*
|
|
369
|
+
* @param {MaintainSubCategoryInput} Input
|
|
370
|
+
* The data required to process the request to maintain a list of service subcategories.
|
|
371
|
+
*
|
|
372
|
+
* @param {string} AuthToken
|
|
373
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
374
|
+
*
|
|
375
|
+
* @param {number} Timeout
|
|
376
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
377
|
+
*
|
|
378
|
+
* @returns {BaseResponse<GetServiceSubCategoryOutput[] | BaseErrorResponse>}
|
|
379
|
+
* An object containing the response from the MaintainServiceSubCategoryList API,
|
|
380
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
381
|
+
* {
|
|
382
|
+
* Message: Success,
|
|
383
|
+
* StatusCode: 200,
|
|
384
|
+
* Result: GetServiceSubCategoryOutput[],
|
|
385
|
+
* }
|
|
386
|
+
*/
|
|
387
|
+
export async function MaintainServiceSubCategoryList(
|
|
388
|
+
Input,
|
|
389
|
+
AuthToken = null,
|
|
390
|
+
Timeout = 30000
|
|
391
|
+
) {
|
|
392
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
393
|
+
ConfigurationAPIConstants.uriMaintainServiceSubCategoryList(),
|
|
394
|
+
Input,
|
|
395
|
+
AuthToken,
|
|
396
|
+
Timeout
|
|
397
|
+
);
|
|
398
|
+
return APIResponse;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @description
|
|
403
|
+
* Submits a request to get a list of assets using the provided input data.
|
|
404
|
+
*
|
|
405
|
+
* @param {GetAssetListInput} Input
|
|
406
|
+
* The data required to process the request to get a list of assets.
|
|
407
|
+
*
|
|
408
|
+
* @param {string} AuthToken
|
|
409
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
410
|
+
*
|
|
411
|
+
* @param {number} Timeout
|
|
412
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
413
|
+
*
|
|
414
|
+
* @returns {BaseResponse<GetAssetListOutput[] | BaseErrorResponse>}
|
|
415
|
+
* An object containing the response from the GetAssetList API,
|
|
416
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
417
|
+
* {
|
|
418
|
+
* Message: Success,
|
|
419
|
+
* StatusCode: 200,
|
|
420
|
+
* Result: GetAssetListOutput[],
|
|
421
|
+
* }
|
|
422
|
+
*/
|
|
423
|
+
export async function GetAssetList(Input, AuthToken = null, Timeout = 30000) {
|
|
424
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
425
|
+
ConfigurationAPIConstants.uriGetAssetList(),
|
|
426
|
+
Input,
|
|
427
|
+
AuthToken,
|
|
428
|
+
Timeout
|
|
429
|
+
);
|
|
430
|
+
return APIResponse;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @description
|
|
435
|
+
* Submits a request to get a list of assets using the provided input data.
|
|
436
|
+
*
|
|
437
|
+
* @param {GetAssetBlazorViewInput} Input
|
|
438
|
+
* The data required to process the request to get a list of assets.
|
|
439
|
+
*
|
|
440
|
+
* @param {string} AuthToken
|
|
441
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
442
|
+
*
|
|
443
|
+
* @param {number} Timeout
|
|
444
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
445
|
+
*
|
|
446
|
+
* @returns {BaseResponse<GetAssetBlazorViewOutput[] | BaseErrorResponse>}
|
|
447
|
+
* An object containing the response from the GetAssetBlazorViewList API,
|
|
448
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
449
|
+
* {
|
|
450
|
+
* Message: Success,
|
|
451
|
+
* StatusCode: 200,
|
|
452
|
+
* Result: GetAssetBlazorViewOutput[],
|
|
453
|
+
* }
|
|
454
|
+
*/
|
|
455
|
+
export async function GetAssetBlazorViewList(
|
|
456
|
+
Input,
|
|
457
|
+
AuthToken = null,
|
|
458
|
+
Timeout = 30000
|
|
459
|
+
) {
|
|
460
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
461
|
+
ConfigurationAPIConstants.uriGetAssetBlazorViewList(),
|
|
462
|
+
Input,
|
|
463
|
+
AuthToken,
|
|
464
|
+
Timeout
|
|
465
|
+
);
|
|
466
|
+
return APIResponse;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @description
|
|
471
|
+
* Submits a request to maintain a list of assets using the provided input data.
|
|
472
|
+
*
|
|
473
|
+
* @param {GetAssetListOutput[]} Input
|
|
474
|
+
* The list of assets to maintain.
|
|
475
|
+
*
|
|
476
|
+
* @param {string} AuthToken
|
|
477
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
478
|
+
*
|
|
479
|
+
* @param {number} Timeout
|
|
480
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
481
|
+
*
|
|
482
|
+
* @returns {BaseResponse<GetAssetListOutput[] | BaseErrorResponse>}
|
|
483
|
+
* An object containing the response from the MaintainAssetList API,
|
|
484
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
485
|
+
* {
|
|
486
|
+
* Message: Success,
|
|
487
|
+
* StatusCode: 200,
|
|
488
|
+
* Result: GetAssetListOutput[],
|
|
489
|
+
* }
|
|
490
|
+
*/
|
|
491
|
+
export async function MaintainAssetList(
|
|
492
|
+
Input,
|
|
493
|
+
AuthToken = null,
|
|
494
|
+
Timeout = 30000
|
|
495
|
+
) {
|
|
496
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
497
|
+
ConfigurationAPIConstants.uriMaintainAssetList(),
|
|
498
|
+
Input,
|
|
499
|
+
AuthToken,
|
|
500
|
+
Timeout
|
|
501
|
+
);
|
|
502
|
+
return APIResponse;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @description
|
|
507
|
+
* Submits a request to get a list of items using the provided input data.
|
|
508
|
+
*
|
|
509
|
+
* @param {GetItemListInput} Input
|
|
510
|
+
* The data required to process the request to get a list of items.
|
|
511
|
+
*
|
|
512
|
+
* @param {string} AuthToken
|
|
513
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
514
|
+
*
|
|
515
|
+
* @param {number} Timeout
|
|
516
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
517
|
+
*
|
|
518
|
+
* @returns {BaseResponse<GetItemListOutput[] | BaseErrorResponse>}
|
|
519
|
+
* An object containing the response from the GetItemList API,
|
|
520
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
521
|
+
* {
|
|
522
|
+
* Message: Success,
|
|
523
|
+
* StatusCode: 200,
|
|
524
|
+
* Result: GetItemListOutput[],
|
|
525
|
+
* }
|
|
526
|
+
*/
|
|
527
|
+
export async function GetItemList(Input, AuthToken = null, Timeout = 30000) {
|
|
528
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
529
|
+
ConfigurationAPIConstants.uriGetItemList(),
|
|
530
|
+
Input,
|
|
531
|
+
AuthToken,
|
|
532
|
+
Timeout
|
|
533
|
+
);
|
|
534
|
+
return APIResponse;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @description
|
|
539
|
+
* Submits a request to maintain a list of items using the provided input data.
|
|
540
|
+
*
|
|
541
|
+
* @param {GetItemListOutput[]} Input
|
|
542
|
+
* The list of items to maintain.
|
|
543
|
+
*
|
|
544
|
+
* @param {string} AuthToken
|
|
545
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
546
|
+
*
|
|
547
|
+
* @param {number} Timeout
|
|
548
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
549
|
+
*
|
|
550
|
+
* @returns {BaseResponse<GetItemListOutput[] | BaseErrorResponse>}
|
|
551
|
+
* An object containing the response from the MaintainItemList API,
|
|
552
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
553
|
+
* {
|
|
554
|
+
* Message: Success,
|
|
555
|
+
* StatusCode: 200,
|
|
556
|
+
* Result: GetItemListOutput[],
|
|
557
|
+
* }
|
|
558
|
+
*/
|
|
559
|
+
export async function MaintainItemList(
|
|
560
|
+
Input,
|
|
561
|
+
AuthToken = null,
|
|
562
|
+
Timeout = 30000
|
|
563
|
+
) {
|
|
564
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
565
|
+
ConfigurationAPIConstants.uriMaintainItemList(),
|
|
566
|
+
Input,
|
|
567
|
+
AuthToken,
|
|
568
|
+
Timeout
|
|
569
|
+
);
|
|
570
|
+
return APIResponse;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @description
|
|
575
|
+
* Submits a request to get a list of positions using the provided input data.
|
|
576
|
+
*
|
|
577
|
+
* @param {GetPositionsInput} Input
|
|
578
|
+
* The data required to process the request to get a list of positions.
|
|
579
|
+
*
|
|
580
|
+
* @param {string} AuthToken
|
|
581
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
582
|
+
*
|
|
583
|
+
* @param {number} Timeout
|
|
584
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
585
|
+
*
|
|
586
|
+
* @returns {BaseResponse<GetPositionsOutput[] | BaseErrorResponse>}
|
|
587
|
+
* An object containing the response from the GetPositionList API,
|
|
588
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
589
|
+
* {
|
|
590
|
+
* Message: Success,
|
|
591
|
+
* StatusCode: 200,
|
|
592
|
+
* Result: GetPositionsOutput[],
|
|
593
|
+
* }
|
|
594
|
+
*/
|
|
595
|
+
export async function GetPositionList(
|
|
596
|
+
Input,
|
|
597
|
+
AuthToken = null,
|
|
598
|
+
Timeout = 30000
|
|
599
|
+
) {
|
|
600
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
601
|
+
ConfigurationAPIConstants.uriGetPositionList(),
|
|
602
|
+
Input,
|
|
603
|
+
AuthToken,
|
|
604
|
+
Timeout
|
|
605
|
+
);
|
|
606
|
+
return APIResponse;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @description
|
|
611
|
+
* Submits a request to maintain a list of positions using the provided input data.
|
|
612
|
+
*
|
|
613
|
+
* @param {GetPositionsOutput[]} Input
|
|
614
|
+
* The list of positions to maintain.
|
|
615
|
+
*
|
|
616
|
+
* @param {string} AuthToken
|
|
617
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
618
|
+
*
|
|
619
|
+
* @param {number} Timeout
|
|
620
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
621
|
+
*
|
|
622
|
+
* @returns {BaseResponse<GetPositionsOutput[] | BaseErrorResponse>}
|
|
623
|
+
* An object containing the response from the MaintainPositionList API,
|
|
624
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
625
|
+
* {
|
|
626
|
+
* Message: Success,
|
|
627
|
+
* StatusCode: 200,
|
|
628
|
+
* Result: GetPositionsOutput[],
|
|
629
|
+
* }
|
|
630
|
+
*/
|
|
631
|
+
export async function MaintainPositionList(
|
|
632
|
+
Input,
|
|
633
|
+
AuthToken = null,
|
|
634
|
+
Timeout = 30000
|
|
635
|
+
) {
|
|
636
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
637
|
+
ConfigurationAPIConstants.uriMaintainPositionList(),
|
|
638
|
+
Input,
|
|
639
|
+
AuthToken,
|
|
640
|
+
Timeout
|
|
641
|
+
);
|
|
642
|
+
return APIResponse;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* @description
|
|
647
|
+
* Submits a request to get a list of step types using the provided input data.
|
|
648
|
+
*
|
|
649
|
+
* @param {GetStepTypesInput} Input
|
|
650
|
+
* The data required to process the request to get a list of step types.
|
|
651
|
+
*
|
|
652
|
+
* @param {string} AuthToken
|
|
653
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
654
|
+
*
|
|
655
|
+
* @param {number} Timeout
|
|
656
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
657
|
+
*
|
|
658
|
+
* @returns {BaseResponse<GetStepTypesOutput[] | BaseErrorResponse>}
|
|
659
|
+
* An object containing the response from the GetStepTypeList API,
|
|
660
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
661
|
+
* {
|
|
662
|
+
* Message: Success,
|
|
663
|
+
* StatusCode: 200,
|
|
664
|
+
* Result: GetStepTypesOutput[],
|
|
665
|
+
* }
|
|
666
|
+
*/
|
|
667
|
+
export async function GetStepTypeList(
|
|
668
|
+
Input,
|
|
669
|
+
AuthToken = null,
|
|
670
|
+
Timeout = 30000
|
|
671
|
+
) {
|
|
672
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
673
|
+
ConfigurationAPIConstants.uriGetStepTypeList(),
|
|
674
|
+
Input,
|
|
675
|
+
AuthToken,
|
|
676
|
+
Timeout
|
|
677
|
+
);
|
|
678
|
+
return APIResponse;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @description
|
|
683
|
+
* Submits a request to maintain a list of step types using the provided input data.
|
|
684
|
+
*
|
|
685
|
+
* @param {GetStepTypesOutput[]} Input
|
|
686
|
+
* The list of step types to maintain.
|
|
687
|
+
*
|
|
688
|
+
* @param {string} AuthToken
|
|
689
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
690
|
+
*
|
|
691
|
+
* @param {number} Timeout
|
|
692
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
693
|
+
*
|
|
694
|
+
* @returns {BaseResponse<GetStepTypesOutput[] | BaseErrorResponse>}
|
|
695
|
+
* An object containing the response from the MaintainStepTypeList API,
|
|
696
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
697
|
+
* {
|
|
698
|
+
* Message: Success,
|
|
699
|
+
* StatusCode: 200,
|
|
700
|
+
* Result: GetStepTypesOutput[],
|
|
701
|
+
* }
|
|
702
|
+
*/
|
|
703
|
+
export async function MaintainStepTypeList(
|
|
704
|
+
Input,
|
|
705
|
+
AuthToken = null,
|
|
706
|
+
Timeout = 30000
|
|
707
|
+
) {
|
|
708
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
709
|
+
ConfigurationAPIConstants.uriMaintainStepTypeList(),
|
|
710
|
+
Input,
|
|
711
|
+
AuthToken,
|
|
712
|
+
Timeout
|
|
713
|
+
);
|
|
714
|
+
return APIResponse;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @description
|
|
719
|
+
* Submits a request to get a list of document types using the provided input data.
|
|
720
|
+
*
|
|
721
|
+
* @param {GetDocumentTypesInput} Input
|
|
722
|
+
* The data required to process the request to get a list of document types.
|
|
723
|
+
*
|
|
724
|
+
* @param {string} AuthToken
|
|
725
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
726
|
+
*
|
|
727
|
+
* @param {number} Timeout
|
|
728
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
729
|
+
*
|
|
730
|
+
* @returns {BaseResponse<GetDocumentTypesOutput[] | BaseErrorResponse>}
|
|
731
|
+
* An object containing the response from the GetDocumentTypeList API,
|
|
732
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
733
|
+
* {
|
|
734
|
+
* Message: Success,
|
|
735
|
+
* StatusCode: 200,
|
|
736
|
+
* Result: GetDocumentTypesOutput[],
|
|
737
|
+
* }
|
|
738
|
+
*/
|
|
739
|
+
export async function GetDocumentTypeList(
|
|
740
|
+
Input,
|
|
741
|
+
AuthToken = null,
|
|
742
|
+
Timeout = 30000
|
|
743
|
+
) {
|
|
744
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
745
|
+
ConfigurationAPIConstants.uriGetDocumentTypeList(),
|
|
746
|
+
Input,
|
|
747
|
+
AuthToken,
|
|
748
|
+
Timeout
|
|
749
|
+
);
|
|
750
|
+
return APIResponse;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* @description
|
|
755
|
+
* Submits a request to maintain a list of document types using the provided input data.
|
|
756
|
+
*
|
|
757
|
+
* @param {GetDocumentTypesOutput[]} Input
|
|
758
|
+
* The list of document types to maintain.
|
|
759
|
+
*
|
|
760
|
+
* @param {string} AuthToken
|
|
761
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
762
|
+
*
|
|
763
|
+
* @param {number} Timeout
|
|
764
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
765
|
+
*
|
|
766
|
+
* @returns {BaseResponse<GetDocumentTypesOutput[] | BaseErrorResponse>}
|
|
767
|
+
* An object containing the response from the MaintainDocumentTypeList API,
|
|
768
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
769
|
+
* {
|
|
770
|
+
* Message: Success,
|
|
771
|
+
* StatusCode: 200,
|
|
772
|
+
* Result: GetDocumentTypesOutput[],
|
|
773
|
+
* }
|
|
774
|
+
*/
|
|
775
|
+
export async function MaintainDocumentTypeList(
|
|
776
|
+
Input,
|
|
777
|
+
AuthToken = null,
|
|
778
|
+
Timeout = 30000
|
|
779
|
+
) {
|
|
780
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
781
|
+
ConfigurationAPIConstants.uriMaintainDocumentTypeList(),
|
|
782
|
+
Input,
|
|
783
|
+
AuthToken,
|
|
784
|
+
Timeout
|
|
785
|
+
);
|
|
786
|
+
return APIResponse;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* @description
|
|
791
|
+
* Submits a request to get a list of attribute types using the provided input data.
|
|
792
|
+
*
|
|
793
|
+
* @param {GetAttributeTypesInput} Input
|
|
794
|
+
* The data required to process the request to get a list of attribute types.
|
|
795
|
+
*
|
|
796
|
+
* @param {string} AuthToken
|
|
797
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
798
|
+
*
|
|
799
|
+
* @param {number} Timeout
|
|
800
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
801
|
+
*
|
|
802
|
+
* @returns {BaseResponse<GetAttributeTypesOutput[] | BaseErrorResponse>}
|
|
803
|
+
* An object containing the response from the GetAttributeTypeList API,
|
|
804
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
805
|
+
* {
|
|
806
|
+
* Message: Success,
|
|
807
|
+
* StatusCode: 200,
|
|
808
|
+
* Result: GetAttributeTypesOutput[],
|
|
809
|
+
* }
|
|
810
|
+
*/
|
|
811
|
+
export async function GetAttributeTypeList(
|
|
812
|
+
Input,
|
|
813
|
+
AuthToken = null,
|
|
814
|
+
Timeout = 30000
|
|
815
|
+
) {
|
|
816
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
817
|
+
ConfigurationAPIConstants.uriGetAttributeTypeList(),
|
|
818
|
+
Input,
|
|
819
|
+
AuthToken,
|
|
820
|
+
Timeout
|
|
821
|
+
);
|
|
822
|
+
return APIResponse;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* @description
|
|
827
|
+
* Submits a request to maintain a list of attribute types using the provided input data.
|
|
828
|
+
*
|
|
829
|
+
* @param {MaintainAttributeTypeInput} Input
|
|
830
|
+
* The list of attribute types to maintain.
|
|
831
|
+
*
|
|
832
|
+
* @param {string} AuthToken
|
|
833
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
834
|
+
*
|
|
835
|
+
* @param {number} Timeout
|
|
836
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
837
|
+
*
|
|
838
|
+
* @returns {BaseResponse<GetAttributeTypesOutput[] | BaseErrorResponse>}
|
|
839
|
+
* An object containing the response from the MaintainAttributeTypeList API,
|
|
840
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
841
|
+
* {
|
|
842
|
+
* Message: Success,
|
|
843
|
+
* StatusCode: 200,
|
|
844
|
+
* Result: GetAttributeTypesOutput[],
|
|
845
|
+
* }
|
|
846
|
+
*/
|
|
847
|
+
export async function MaintainAttributeTypeList(
|
|
848
|
+
Input,
|
|
849
|
+
AuthToken = null,
|
|
850
|
+
Timeout = 30000
|
|
851
|
+
) {
|
|
852
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
853
|
+
ConfigurationAPIConstants.uriMaintainAttributeTypeList(),
|
|
854
|
+
Input,
|
|
855
|
+
AuthToken,
|
|
856
|
+
Timeout
|
|
857
|
+
);
|
|
858
|
+
return APIResponse;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* @description
|
|
863
|
+
* Submits a request to get a list of default configurations (stakeholders details).
|
|
864
|
+
*
|
|
865
|
+
* @param {string} AuthToken
|
|
866
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
867
|
+
*
|
|
868
|
+
* @param {number} Timeout
|
|
869
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
870
|
+
*
|
|
871
|
+
* @returns {BaseResponse<GetDefaultConfigurationListOutput | BaseErrorResponse>}
|
|
872
|
+
* An object containing the response from the GetDefaultConfigurationList API,
|
|
873
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
874
|
+
* {
|
|
875
|
+
* Message: Success,
|
|
876
|
+
* StatusCode: 200,
|
|
877
|
+
* Result: GetDefaultConfigurationListOutput[],
|
|
878
|
+
* }
|
|
879
|
+
*/
|
|
880
|
+
export async function GetDefaultConfigurationList(
|
|
881
|
+
AuthToken = null,
|
|
882
|
+
Timeout = 30000
|
|
883
|
+
) {
|
|
884
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
885
|
+
ConfigurationAPIConstants.uriGetDefaultConfigurationList(),
|
|
886
|
+
null,
|
|
887
|
+
AuthToken,
|
|
888
|
+
Timeout
|
|
889
|
+
);
|
|
890
|
+
return APIResponse;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* @description
|
|
895
|
+
* Submits a request to get a list of interactor types using the provided input data.
|
|
896
|
+
*
|
|
897
|
+
* @param {number} stakeholderId
|
|
898
|
+
* The stakeholder id to get the interactor types for.
|
|
899
|
+
*
|
|
900
|
+
* @param {string} AuthToken
|
|
901
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
902
|
+
*
|
|
903
|
+
* @param {number} Timeout
|
|
904
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
905
|
+
*
|
|
906
|
+
* @returns {BaseResponse<GetInteractorTypeListOutput[] | BaseErrorResponse>}
|
|
907
|
+
* An object containing the response from the GetInteractorTypeList API,
|
|
908
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
909
|
+
*/
|
|
910
|
+
export async function GetInteractorTypeList(
|
|
911
|
+
stakeholderId,
|
|
912
|
+
AuthToken = null,
|
|
913
|
+
Timeout = 30000
|
|
914
|
+
) {
|
|
915
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
916
|
+
ConfigurationAPIConstants.uriGetInteractorTypeList(),
|
|
917
|
+
{ interactorTypeId: -12345, stakeholderId: stakeholderId },
|
|
918
|
+
AuthToken,
|
|
919
|
+
Timeout
|
|
920
|
+
);
|
|
921
|
+
return APIResponse;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* @description
|
|
926
|
+
* Submits a request to get a list of units using the provided input data.
|
|
927
|
+
*
|
|
928
|
+
* @param {GetUnitListInput} Input
|
|
929
|
+
* The data required to process the request to get a list of units.
|
|
930
|
+
*
|
|
931
|
+
* @param {string} AuthToken
|
|
932
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
933
|
+
*
|
|
934
|
+
* @param {number} Timeout
|
|
935
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
936
|
+
*
|
|
937
|
+
* @returns {BaseResponse<GetUnitListOutput[] | BaseErrorResponse>}
|
|
938
|
+
* An object containing the response from the GetUnitList API,
|
|
939
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
940
|
+
*/
|
|
941
|
+
export async function GetUnitList(
|
|
942
|
+
interactorTypeId,
|
|
943
|
+
AuthToken = null,
|
|
944
|
+
Timeout = 30000
|
|
945
|
+
) {
|
|
946
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
947
|
+
ConfigurationAPIConstants.uriGetUnitList(),
|
|
948
|
+
{ interactorTypeId: interactorTypeId, unitId: -12345 },
|
|
949
|
+
AuthToken,
|
|
950
|
+
Timeout
|
|
951
|
+
);
|
|
952
|
+
return APIResponse;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* @description
|
|
957
|
+
* Submits a request to get a list of interactors using the provided input data.
|
|
958
|
+
*
|
|
959
|
+
* @param {GetInteractorListInput} Input
|
|
960
|
+
* The data required to process the request to get a list of interactors.
|
|
961
|
+
*
|
|
962
|
+
* @param {string} AuthToken
|
|
963
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
964
|
+
*
|
|
965
|
+
* @param {number} Timeout
|
|
966
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
967
|
+
*
|
|
968
|
+
* @returns {BaseResponse<GetInteractorListOutput[] | BaseErrorResponse>}
|
|
969
|
+
* An object containing the response from the GetInteractorList API,
|
|
970
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
971
|
+
*/
|
|
972
|
+
export async function GetInteractorList(
|
|
973
|
+
input,
|
|
974
|
+
AuthToken = null,
|
|
975
|
+
Timeout = 30000
|
|
976
|
+
) {
|
|
977
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
978
|
+
ConfigurationAPIConstants.uriGetInteractorList(),
|
|
979
|
+
{ interactorTypeId: -12345,interactorId : -12345,linkedInteractorId: -12345, unitId: input.unitId,pageIndex: input.pageIndex,pageSize: input.pageSize },
|
|
980
|
+
AuthToken,
|
|
981
|
+
Timeout
|
|
982
|
+
);
|
|
983
|
+
return APIResponse;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* @description
|
|
987
|
+
* Submits a request to get a list of roles by permission using the provided input data.
|
|
988
|
+
*
|
|
989
|
+
* @param {object} Input
|
|
990
|
+
* The data required to process the request to get a list of roles by permission.
|
|
991
|
+
* {"pageIndex":0,"pageSize":0,"interactorTypeId":0,"roleTypeId":0,"isProvider":false,"isRequester":false,"isAgent":false,"isSystemGenerated":false,"isDerived":false,"isSystem":false}
|
|
992
|
+
*
|
|
993
|
+
* @param {string} AuthToken
|
|
994
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
995
|
+
*
|
|
996
|
+
* @param {number} Timeout
|
|
997
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
998
|
+
*
|
|
999
|
+
* @returns {BaseResponse<GetRoleListByPermissionOutput[] | BaseErrorResponse>}
|
|
1000
|
+
* An object containing the response from the GetRoleListByPermission API,
|
|
1001
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
1002
|
+
*/
|
|
1003
|
+
export async function GetRoleListByPermission(
|
|
1004
|
+
Input,
|
|
1005
|
+
AuthToken = null,
|
|
1006
|
+
Timeout = 30000
|
|
1007
|
+
) {
|
|
1008
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
1009
|
+
ConfigurationAPIConstants.uriGetRoleListByPermission(),
|
|
1010
|
+
Input,
|
|
1011
|
+
AuthToken,
|
|
1012
|
+
Timeout
|
|
1013
|
+
);
|
|
1014
|
+
return APIResponse;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* @description
|
|
1019
|
+
* Submits a request to create a write SAS using the provided input data.
|
|
1020
|
+
*
|
|
1021
|
+
* @param {string} AuthToken
|
|
1022
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
1023
|
+
*
|
|
1024
|
+
* @param {number} Timeout
|
|
1025
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
1026
|
+
*
|
|
1027
|
+
* @returns {BaseResponse<string | BaseErrorResponse>}
|
|
1028
|
+
* An object containing the response from the CreateWriteSAS API,
|
|
1029
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
1030
|
+
*/
|
|
1031
|
+
export async function CreateWriteSAS(AuthToken = null, Timeout = 30000) {
|
|
1032
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
1033
|
+
ConfigurationAPIConstants.uriCreateWriteSAS(),
|
|
1034
|
+
null,
|
|
1035
|
+
AuthToken,
|
|
1036
|
+
Timeout
|
|
1037
|
+
);
|
|
1038
|
+
return APIResponse;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
//#region custom services
|
|
1042
|
+
export async function getCorrespondenceList(AuthToken = null, Timeout = 30000) {
|
|
1043
|
+
let interactorTypes = await GetInteractorTypeList(-12345, AuthToken, Timeout);
|
|
1044
|
+
let interactorTypeId = interactorTypes?.Result?.find(
|
|
1045
|
+
(x) => x.Alias === "Correspondence"
|
|
1046
|
+
)?.InteractorTypeId;
|
|
1047
|
+
if (!interactorTypeId)
|
|
1048
|
+
return {
|
|
1049
|
+
Message: "Correspondence interactor type not found",
|
|
1050
|
+
StatusCode: 404,
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
let services = await GetServiceList(
|
|
1054
|
+
{ interactorTypeId: interactorTypeId },
|
|
1055
|
+
AuthToken,
|
|
1056
|
+
Timeout
|
|
1057
|
+
);
|
|
1058
|
+
return services;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* @description
|
|
1063
|
+
* Submits a request to create a new correspondence using the provided input data.
|
|
1064
|
+
*
|
|
1065
|
+
* @param {object} Input
|
|
1066
|
+
* The data required to process the request to create a new correspondence.
|
|
1067
|
+
* {name:"",description:"",subCategoryAlias:""}
|
|
1068
|
+
*
|
|
1069
|
+
* @param {string} AuthToken
|
|
1070
|
+
* Optional authentication token for authorization purposes. Default is null.
|
|
1071
|
+
*
|
|
1072
|
+
* @param {number} Timeout
|
|
1073
|
+
* Optional time in milliseconds to wait before the request times out. Default is 30000.
|
|
1074
|
+
*
|
|
1075
|
+
* @returns {BaseResponse<object | BaseErrorResponse>}
|
|
1076
|
+
* An object containing the response from the CreateNewCorrespondence API,
|
|
1077
|
+
* including a success message, status code, and any additional data returned by the API.
|
|
1078
|
+
*/
|
|
1079
|
+
export async function CreateNewCorrespondence(
|
|
1080
|
+
Input,
|
|
1081
|
+
AuthToken = null,
|
|
1082
|
+
Timeout = 30000
|
|
1083
|
+
) {
|
|
1084
|
+
let interactorTypes = await GetInteractorTypeList(-12345, AuthToken, Timeout);
|
|
1085
|
+
let interactorTypeId = interactorTypes?.Result?.find(
|
|
1086
|
+
(x) => x.Alias === "Correspondence"
|
|
1087
|
+
)?.InteractorTypeId;
|
|
1088
|
+
let serviceSubCategories = await GetServiceSubCategoryList(
|
|
1089
|
+
{ interactorTypeId: interactorTypeId },
|
|
1090
|
+
AuthToken,
|
|
1091
|
+
Timeout
|
|
1092
|
+
);
|
|
1093
|
+
let serviceSubCategoryId = serviceSubCategories?.Result?.filter(
|
|
1094
|
+
(x) => x.Alias === Input.subCategoryAlias
|
|
1095
|
+
);
|
|
1096
|
+
if (!serviceSubCategoryId)
|
|
1097
|
+
return { Message: "Service sub category not found", StatusCode: 404 };
|
|
1098
|
+
let APIResponse = await MaintainServiceList(
|
|
1099
|
+
[
|
|
1100
|
+
{
|
|
1101
|
+
serviceId: 0,
|
|
1102
|
+
serviceSubCategoryId: serviceSubCategoryId[0].ServiceSubCategoryId,
|
|
1103
|
+
weight: "",
|
|
1104
|
+
name: Input.name,
|
|
1105
|
+
translations: "",
|
|
1106
|
+
description: Input.description,
|
|
1107
|
+
descriptionTranslations: "",
|
|
1108
|
+
alias: Input.name.replaceAll(" ", ""),
|
|
1109
|
+
uiviewAlias: "Standard",
|
|
1110
|
+
version: "",
|
|
1111
|
+
versionId: null,
|
|
1112
|
+
attributeSetId: null,
|
|
1113
|
+
externalImagePath: "",
|
|
1114
|
+
isPublished: true,
|
|
1115
|
+
isActive: true,
|
|
1116
|
+
isSimpleService: false,
|
|
1117
|
+
isGuestPublic: true,
|
|
1118
|
+
isGuestPublicChanged: false,
|
|
1119
|
+
isQrguestPublic: false,
|
|
1120
|
+
isQrGuestPublicChanged: false,
|
|
1121
|
+
isSocialMediaGuestPublic: false,
|
|
1122
|
+
isSocialMediaGuestPublicChanged: false,
|
|
1123
|
+
isGrantAccessToAllInteractorTypeUnits: true,
|
|
1124
|
+
ownerRoleId: null,
|
|
1125
|
+
agentRoleId: null,
|
|
1126
|
+
roleAgentName: "test Agent",
|
|
1127
|
+
roleOwnerName: "test Owner",
|
|
1128
|
+
imagePath: null,
|
|
1129
|
+
fullImagePath: null,
|
|
1130
|
+
extraLine1: "",
|
|
1131
|
+
extraLine2: "",
|
|
1132
|
+
cost: "",
|
|
1133
|
+
price: "",
|
|
1134
|
+
receipt: "",
|
|
1135
|
+
quantity: "",
|
|
1136
|
+
staticAttributePagesCount: 0,
|
|
1137
|
+
attributePageWaitingList: "",
|
|
1138
|
+
attributePagesTitles: "",
|
|
1139
|
+
attributePagesCount: 1,
|
|
1140
|
+
parameterPagesTitles: "",
|
|
1141
|
+
parameterPagesCount: 0,
|
|
1142
|
+
assetsFilter: "",
|
|
1143
|
+
hasDynamicAssets: true,
|
|
1144
|
+
itemsFilter: "",
|
|
1145
|
+
hasDynamicItems: true,
|
|
1146
|
+
isBulkOrder: false,
|
|
1147
|
+
bulkOrderAttribute: "",
|
|
1148
|
+
isBulkOrderExternalId: false,
|
|
1149
|
+
isSelfService: true,
|
|
1150
|
+
isCombined: false,
|
|
1151
|
+
offlineSupport: false,
|
|
1152
|
+
isItemsFirst: false,
|
|
1153
|
+
isClientFacing: true,
|
|
1154
|
+
addToCart: true,
|
|
1155
|
+
isShortcutProxy: false,
|
|
1156
|
+
isQuickOrder: false,
|
|
1157
|
+
isTranslationEnabled: false,
|
|
1158
|
+
isRequestable: true,
|
|
1159
|
+
isPhantom: false,
|
|
1160
|
+
isNeutralEmotion: false,
|
|
1161
|
+
isHideQuantity: false,
|
|
1162
|
+
isRecommended: false,
|
|
1163
|
+
isSecondary: false,
|
|
1164
|
+
isTemplate: false,
|
|
1165
|
+
isAutoAdd: false,
|
|
1166
|
+
isNew: false,
|
|
1167
|
+
isIntegration: false,
|
|
1168
|
+
isVoting: false,
|
|
1169
|
+
customFlag: false,
|
|
1170
|
+
hideAttributesGroups: false,
|
|
1171
|
+
hideAttributes: false,
|
|
1172
|
+
hideAssetsSubgroups: false,
|
|
1173
|
+
hideItemsSubgroups: false,
|
|
1174
|
+
disableValidation: false,
|
|
1175
|
+
customField1: "",
|
|
1176
|
+
customField2: "",
|
|
1177
|
+
customField3: "",
|
|
1178
|
+
customField4: "",
|
|
1179
|
+
customField5: "",
|
|
1180
|
+
isValidationEnabled: false,
|
|
1181
|
+
validationRule: "",
|
|
1182
|
+
validationRuleFailedComment: "",
|
|
1183
|
+
validationRuleFailedCommentTranslation: "",
|
|
1184
|
+
multiValidationRules: "",
|
|
1185
|
+
isPublicSearchEnabled: false,
|
|
1186
|
+
searchCategory: "",
|
|
1187
|
+
searchSubCategory: "",
|
|
1188
|
+
searchTags: "",
|
|
1189
|
+
rfidtags: "",
|
|
1190
|
+
ibeaconId: "",
|
|
1191
|
+
location: "",
|
|
1192
|
+
geoRange: 1,
|
|
1193
|
+
geoRangeUitype: 0,
|
|
1194
|
+
geoRangeUivalue: 1,
|
|
1195
|
+
searchTextConcat: "",
|
|
1196
|
+
isInterCompany: false,
|
|
1197
|
+
interCompanyConnectionId: null,
|
|
1198
|
+
isStaticInterCompanyCatalog: false,
|
|
1199
|
+
offlineInterCompanyCatalogFilePath: "",
|
|
1200
|
+
isRequesterVisible: true,
|
|
1201
|
+
isProviderVisible: true,
|
|
1202
|
+
hasSelector: false,
|
|
1203
|
+
selectorListAttributeResultId: null,
|
|
1204
|
+
selectorDetailedAttributeResultId: null,
|
|
1205
|
+
isAssetSearchKeysFilter: false,
|
|
1206
|
+
hasAssets: false,
|
|
1207
|
+
isItemSearchKeysFilter: false,
|
|
1208
|
+
hasItems: false,
|
|
1209
|
+
isShortcut: false,
|
|
1210
|
+
shortcutInteractorTypeId: null,
|
|
1211
|
+
shortcutServiceCategoryId: null,
|
|
1212
|
+
shortcutServiceSubCategoryId: null,
|
|
1213
|
+
shortcutServiceId: null,
|
|
1214
|
+
isQuestionnaire: false,
|
|
1215
|
+
questionnaireTemplateId: null,
|
|
1216
|
+
isChatbot: false,
|
|
1217
|
+
extendedColor: "#00000000",
|
|
1218
|
+
extendedTextColor: "#FF000000",
|
|
1219
|
+
showExtended: false,
|
|
1220
|
+
extendedAlignment: 0,
|
|
1221
|
+
showExtendedText: false,
|
|
1222
|
+
extendedHorizontalShift: 6,
|
|
1223
|
+
hideBackground: false,
|
|
1224
|
+
extendedImagePath: "",
|
|
1225
|
+
extendedFullImagePath: null,
|
|
1226
|
+
hasBackgroundImages: false,
|
|
1227
|
+
isOverrideColorThemeing: false,
|
|
1228
|
+
isOverrideBackgroundImage: false,
|
|
1229
|
+
iphoneBgPortraitV1imagePath: "",
|
|
1230
|
+
iphoneBgLandscapeV1imagePath: "",
|
|
1231
|
+
iphoneBgPortraitV2imagePath: "",
|
|
1232
|
+
iphoneBgLandscapeV2imagePath: "",
|
|
1233
|
+
androidBgPortraitSmallImagePath: "",
|
|
1234
|
+
androidBgLandscapeSmallImagePath: "",
|
|
1235
|
+
androidBgPortraitMediumImagePath: "",
|
|
1236
|
+
androidBgLandscapeMediumImagePath: "",
|
|
1237
|
+
androidBgPortraitLargeImagePath: "",
|
|
1238
|
+
androidBgLandscapeLargeImagePath: "",
|
|
1239
|
+
androidBgPortraitXlargeImagePath: "",
|
|
1240
|
+
androidBgLandscapeXlargeImagePath: "",
|
|
1241
|
+
iphoneBgPortraitV3imagePath: "",
|
|
1242
|
+
iphoneBgLandscapeV3imagePath: "",
|
|
1243
|
+
ipadBgPortraitV1imagePath: "",
|
|
1244
|
+
ipadBgLandscapeV1imagePath: "",
|
|
1245
|
+
ipadBgPortraitV2imagePath: "",
|
|
1246
|
+
ipadBgLandscapeV2imagePath: "",
|
|
1247
|
+
androidBgPortraitSmallImagePath: "",
|
|
1248
|
+
androidBgLandscapeSmallImagePath: "",
|
|
1249
|
+
androidBgPortraitMediumImagePath: "",
|
|
1250
|
+
androidBgLandscapeMediumImagePath: "",
|
|
1251
|
+
androidBgPortraitLargeImagePath: "",
|
|
1252
|
+
androidBgLandscapeLargeImagePath: "",
|
|
1253
|
+
androidBgPortraitXlargeImagePath: "",
|
|
1254
|
+
androidBgLandscapeXlargeImagePath: "",
|
|
1255
|
+
iphoneBgPortraitV4imagePath: "",
|
|
1256
|
+
iphoneBgLandscapeV4imagePath: "",
|
|
1257
|
+
iphoneBgPortraitV5imagePath: "",
|
|
1258
|
+
iphoneBgLandscapeV5imagePath: "",
|
|
1259
|
+
ipadBgPortraitV3imagePath: "",
|
|
1260
|
+
ipadBgLandscapeV3imagePath: "",
|
|
1261
|
+
androidBgPortraitXxlargeImagePath: "",
|
|
1262
|
+
androidBgLandscapeXxlargeImagePath: "",
|
|
1263
|
+
androidBgPortraitXxxlargeImagePath: "",
|
|
1264
|
+
androidBgLandscapeXxxlargeImagePath: "",
|
|
1265
|
+
galleryImagesString: "",
|
|
1266
|
+
fullGalleryImagesString: null,
|
|
1267
|
+
dtoState: 1,
|
|
1268
|
+
serviceSubCategoryDto: null,
|
|
1269
|
+
optimisticTime: 0,
|
|
1270
|
+
pessimisticTime: 0,
|
|
1271
|
+
noDeliveryTime: 0,
|
|
1272
|
+
reportAttributes: "",
|
|
1273
|
+
offlineItemListFilePath: "",
|
|
1274
|
+
offlineAssetListFilePath: "",
|
|
1275
|
+
hasParameters: false,
|
|
1276
|
+
isHideSelector: false,
|
|
1277
|
+
hasOfflineAssets: false,
|
|
1278
|
+
hasOfflineItems: false,
|
|
1279
|
+
hasStaticAttributes: false,
|
|
1280
|
+
timeStamp: null,
|
|
1281
|
+
rv: "",
|
|
1282
|
+
serviceGuid: null,
|
|
1283
|
+
offlineServiceAttributesFilePath: "",
|
|
1284
|
+
onClickShow: "",
|
|
1285
|
+
isMigrated: false,
|
|
1286
|
+
gptIntention: "test",
|
|
1287
|
+
gptPrompt: "",
|
|
1288
|
+
mainGPTPrompt: null,
|
|
1289
|
+
secondaryGPTPrompt: null,
|
|
1290
|
+
tertiaryGPTPrompt: null,
|
|
1291
|
+
gptPromptFormatted: { value: "" },
|
|
1292
|
+
uiViewUrl: "",
|
|
1293
|
+
hasExternalAssets: null,
|
|
1294
|
+
hasExternalItems: null,
|
|
1295
|
+
formFilePath: null,
|
|
1296
|
+
fullFormFilePath: null,
|
|
1297
|
+
workFlowEditorFilePath: null,
|
|
1298
|
+
fullWorkFlowEditorFilePath: null,
|
|
1299
|
+
workFlowMetaDataFilePath: null,
|
|
1300
|
+
fullWorkFlowMetaDataFilePath: null,
|
|
1301
|
+
isBpmn: false,
|
|
1302
|
+
isBpmnGeneratedStepsModified: null,
|
|
1303
|
+
isTrackable: true,
|
|
1304
|
+
orderByAttributeAlias1: null,
|
|
1305
|
+
directManagerRoleId: null,
|
|
1306
|
+
superiorManagerRoleId: null,
|
|
1307
|
+
roleDirectManagerName: "test Direct Manager",
|
|
1308
|
+
roleSuperiorManagerName: "test Superior Manager",
|
|
1309
|
+
selectorListViewDetails: null,
|
|
1310
|
+
selectorDetailedViewDetails: null,
|
|
1311
|
+
deploymentEnvironment: "DEV",
|
|
1312
|
+
},
|
|
1313
|
+
],
|
|
1314
|
+
AuthToken,
|
|
1315
|
+
Timeout
|
|
1316
|
+
);
|
|
1317
|
+
if (APIResponse.StatusCode === 200) {
|
|
1318
|
+
let configuration = await GetDefaultConfigurationList(AuthToken, Timeout);
|
|
1319
|
+
let stepTypeId = configuration.Result.StepTypeDtos[0].StepTypeId;
|
|
1320
|
+
let stakeholderId = configuration?.Result?.StakeholderDtos?.filter(
|
|
1321
|
+
(x) => x.Alias === "Correspondence"
|
|
1322
|
+
)[0].StakeholderId;
|
|
1323
|
+
let providerRoleId = configuration.Result.RoleDtos[0].RoleId;
|
|
1324
|
+
let providerRoleTypeId = configuration.Result.RoleDtos[0].RoleTypeId;
|
|
1325
|
+
let steps = ["Initiate", "Review", "Sign", "Provider Approval"];
|
|
1326
|
+
let addedService = APIResponse.Result;
|
|
1327
|
+
let addedServiceSteps = [];
|
|
1328
|
+
for (let index = 0; index < steps.length; index++) {
|
|
1329
|
+
addedServiceSteps.push({
|
|
1330
|
+
preApprovalRule: null,
|
|
1331
|
+
preApprovalRuleFailedComment: null,
|
|
1332
|
+
preIsInProcess: false,
|
|
1333
|
+
serviceId: addedService[0].ServiceId,
|
|
1334
|
+
serviceStepId: 0,
|
|
1335
|
+
isMainstream: true,
|
|
1336
|
+
isNotification: false,
|
|
1337
|
+
isAcknowledgment: false,
|
|
1338
|
+
stepTypeId: stepTypeId,
|
|
1339
|
+
name: steps[index],
|
|
1340
|
+
translations: null,
|
|
1341
|
+
attributeSetId: 0,
|
|
1342
|
+
stakeholderId: stakeholderId,
|
|
1343
|
+
interactorTypeId: interactorTypeId,
|
|
1344
|
+
providerRoleTypeId: providerRoleTypeId,
|
|
1345
|
+
providerRoleId: providerRoleId,
|
|
1346
|
+
isSumResults: false,
|
|
1347
|
+
isVotingHideDetails: false,
|
|
1348
|
+
isSendToAllProviders: false,
|
|
1349
|
+
uiviewAlias: null,
|
|
1350
|
+
isSlaenabled: false,
|
|
1351
|
+
optimisticTime: 0,
|
|
1352
|
+
optimisticTimeUivalue: 0,
|
|
1353
|
+
optimisticTimeUitype: 1,
|
|
1354
|
+
isOptimisticEscalationEnabled: false,
|
|
1355
|
+
optimisticEscalationProviderRoleAttributeName: null,
|
|
1356
|
+
optimisticEscalationProviderRoleId: null,
|
|
1357
|
+
pessimisticTime: 0,
|
|
1358
|
+
pessimisticTimeUivalue: 0,
|
|
1359
|
+
pessimisticTimeUitype: 1,
|
|
1360
|
+
isPessimisticEscalationEnabled: false,
|
|
1361
|
+
pessimisticEscalationProviderRoleAttributeName: null,
|
|
1362
|
+
pessimisticEscalationProviderRoleId: null,
|
|
1363
|
+
noDeliveryTime: 0,
|
|
1364
|
+
noDeliveryTimeUivalue: 0,
|
|
1365
|
+
noDeliveryTimeUitype: 1,
|
|
1366
|
+
isNoDeliveryEscalationEnabled: false,
|
|
1367
|
+
noDeliveryEscalationProviderRoleAttributeName: null,
|
|
1368
|
+
noDeliveryEscalationProviderRoleId: null,
|
|
1369
|
+
targetTime: 60,
|
|
1370
|
+
targetTimeUivalue: 1,
|
|
1371
|
+
targetTimeUitype: 1,
|
|
1372
|
+
costUivalue: 1,
|
|
1373
|
+
costUitype: 1,
|
|
1374
|
+
sequenceNo: index,
|
|
1375
|
+
isComposite: false,
|
|
1376
|
+
hasNotification: false,
|
|
1377
|
+
hasAcknowledgment: false,
|
|
1378
|
+
parentServiceStepId: null,
|
|
1379
|
+
isAssignable: false,
|
|
1380
|
+
assignableInteractorTypeId: null,
|
|
1381
|
+
assignableRoleTypeId: null,
|
|
1382
|
+
extraLine1: null,
|
|
1383
|
+
extraLine2: null,
|
|
1384
|
+
preActivationRule: null,
|
|
1385
|
+
preActivationRuleFailedComment: null,
|
|
1386
|
+
isNeutralEmotion: false,
|
|
1387
|
+
isReturnable: false,
|
|
1388
|
+
returnableRoleTypeAttributes: null,
|
|
1389
|
+
isNotfiySummary: false,
|
|
1390
|
+
isNotifyDetails: false,
|
|
1391
|
+
isNotifyReceipt: false,
|
|
1392
|
+
isNotifyProvider: true,
|
|
1393
|
+
notifyOtherAsProvider: null,
|
|
1394
|
+
isNotifyRequester: true,
|
|
1395
|
+
notifyOtherAsRequester: null,
|
|
1396
|
+
isNotifyPrinter: false,
|
|
1397
|
+
notificationDefaultPrinterId: null,
|
|
1398
|
+
isWiggleNotificationEnabled: false,
|
|
1399
|
+
isWiggleActionEnabled: false,
|
|
1400
|
+
wiggleAction: null,
|
|
1401
|
+
wiggleNotificationTimeSpan: null,
|
|
1402
|
+
wiggleActionAfterMin: null,
|
|
1403
|
+
providerRoleAttributeName: null,
|
|
1404
|
+
expiresAfterTimeUivalue: 0,
|
|
1405
|
+
expiresAfterTime: 0,
|
|
1406
|
+
expiresAfterTimeUitype: null,
|
|
1407
|
+
autoApproveUivalue: 0,
|
|
1408
|
+
autoApproveValue: 0,
|
|
1409
|
+
autoApproveUitype: null,
|
|
1410
|
+
isRequesterVisible: true,
|
|
1411
|
+
isProviderVisible: true,
|
|
1412
|
+
isShowReceipt: false,
|
|
1413
|
+
isExpiresAfterEnabled: false,
|
|
1414
|
+
isAutoApprove: false,
|
|
1415
|
+
postApprovalRule: null,
|
|
1416
|
+
postApprovalRuleFailedComment: null,
|
|
1417
|
+
isInProcess: false,
|
|
1418
|
+
customActivatedStepMessage:
|
|
1419
|
+
"Kindly note that request\u003Cb\u003E #{1}\u003C/b\u003E\u003Cbr/\u003E by \u003Cb\u003E{6}\u003C/b\u003E\u003Cbr/\u003Eis waiting for your action.",
|
|
1420
|
+
customClosedStepMessage:
|
|
1421
|
+
"Kindly note that the status of your\u003Cbr/\u003E\u003Cb\u003E{2}\u003C/b\u003E\u003Cb\u003E #{1}\u003C/b\u003E\u003Cbr/\u003E has changed to \u003Cb\u003E{4}\u003C/b\u003E\u003Cbr/\u003E for \u003Cb\u003E{3}\u003C/b\u003E step.",
|
|
1422
|
+
isProviderRoleAttributeId: false,
|
|
1423
|
+
autoApproveConditionFailedAction: null,
|
|
1424
|
+
expiresAfterConditionFailedAction: null,
|
|
1425
|
+
dtoState: 1,
|
|
1426
|
+
parentHasChild: false,
|
|
1427
|
+
financialsString: null,
|
|
1428
|
+
isIntegration: false,
|
|
1429
|
+
integrationCondition: null,
|
|
1430
|
+
integrationMethodId: null,
|
|
1431
|
+
integrationFunctionName: null,
|
|
1432
|
+
integrationParameters: null,
|
|
1433
|
+
integrationResult: null,
|
|
1434
|
+
level: 1,
|
|
1435
|
+
forLevel: 2,
|
|
1436
|
+
expanded: false,
|
|
1437
|
+
serviceDto: null,
|
|
1438
|
+
impersonateAsProvider: null,
|
|
1439
|
+
compositeTypeId: 0,
|
|
1440
|
+
compositeLine1: null,
|
|
1441
|
+
compositeLine2: null,
|
|
1442
|
+
multiplierAttributeId: null,
|
|
1443
|
+
customActivatedEmailStepNotificationMessageId: null,
|
|
1444
|
+
customClosedEmailStepNotificationMessageId: null,
|
|
1445
|
+
customActivatedSignalRstepNotificationMessageId: null,
|
|
1446
|
+
customClosedSignalRstepNotificationMessageId: null,
|
|
1447
|
+
customActivatedPushStepNotificationMessageId: null,
|
|
1448
|
+
customClosedPushStepNotificationMessageId: null,
|
|
1449
|
+
customActivatedSmsStepNotificationMessageId: null,
|
|
1450
|
+
customClosedSmsStepNotificationMessageId: null,
|
|
1451
|
+
isEmailNotificationEnabled: false,
|
|
1452
|
+
isSignalRnotificationEnabled: false,
|
|
1453
|
+
isPushNotificationEnabled: false,
|
|
1454
|
+
isSmsNotificationEnabled: false,
|
|
1455
|
+
dispatchExpirationInMinutes: 3,
|
|
1456
|
+
isDispatch: null,
|
|
1457
|
+
isClinicalCoding: null,
|
|
1458
|
+
dispatchEverySeconds: null,
|
|
1459
|
+
acceptBeforeSeconds: null,
|
|
1460
|
+
notFoundAfterSeconds: null,
|
|
1461
|
+
dispatchDistanceWithtinMeters: null,
|
|
1462
|
+
recommendedCode: null,
|
|
1463
|
+
medicalRecord: null,
|
|
1464
|
+
selectedCode: null,
|
|
1465
|
+
diagnosis: null,
|
|
1466
|
+
codedMedicalRecord: null,
|
|
1467
|
+
bpmntypeId: 0,
|
|
1468
|
+
dispatchServiceType: null,
|
|
1469
|
+
isCopyRequesterAssets: null,
|
|
1470
|
+
isCopyRequesterItems: null,
|
|
1471
|
+
isSkippable: false,
|
|
1472
|
+
skippableRule: null,
|
|
1473
|
+
isApplyToChildsRequest: null,
|
|
1474
|
+
checkOutLockInMinutes: 60,
|
|
1475
|
+
isRestrictedRejection: false,
|
|
1476
|
+
minimumRequiredApprovalsToTakeAction: 0,
|
|
1477
|
+
mainGPTPrompt: null,
|
|
1478
|
+
secondaryGPTPrompt: null,
|
|
1479
|
+
tertioryGPTPrompt: null,
|
|
1480
|
+
gptIntention: null,
|
|
1481
|
+
gptPrompt: null,
|
|
1482
|
+
childServiceStepDtoList: [],
|
|
1483
|
+
privilegeLevel: null,
|
|
1484
|
+
refId: null,
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
let APIResponseSteps = await MaintainServiceStepList(
|
|
1488
|
+
addedServiceSteps,
|
|
1489
|
+
AuthToken,
|
|
1490
|
+
Timeout
|
|
1491
|
+
);
|
|
1492
|
+
return {
|
|
1493
|
+
Message: "Service created successfully",
|
|
1494
|
+
StatusCode: 200,
|
|
1495
|
+
Result: addedService,
|
|
1496
|
+
};
|
|
1497
|
+
} else {
|
|
1498
|
+
return APIResponse;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
//#endregion
|