@solibo/home-api 1.41.1 → 1.42.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 (71) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
  2. package/kotlin-kotlin-stdlib.mjs +0 -4
  3. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  4. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2 -234
  5. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/solibo-sdk-sdk-api-accounting.mjs +581 -514
  8. package/solibo-sdk-sdk-api-accounting.mjs.map +1 -1
  9. package/solibo-sdk-sdk-api-board.mjs +531 -472
  10. package/solibo-sdk-sdk-api-board.mjs.map +1 -1
  11. package/solibo-sdk-sdk-api-communication.mjs +3595 -3221
  12. package/solibo-sdk-sdk-api-communication.mjs.map +1 -1
  13. package/solibo-sdk-sdk-api-company.mjs +4382 -3959
  14. package/solibo-sdk-sdk-api-company.mjs.map +1 -1
  15. package/solibo-sdk-sdk-api-conversation.mjs +9152 -8320
  16. package/solibo-sdk-sdk-api-conversation.mjs.map +1 -1
  17. package/solibo-sdk-sdk-api-document.mjs +7517 -6991
  18. package/solibo-sdk-sdk-api-document.mjs.map +1 -1
  19. package/solibo-sdk-sdk-api-economy.mjs +966 -856
  20. package/solibo-sdk-sdk-api-economy.mjs.map +1 -1
  21. package/solibo-sdk-sdk-api-expense.mjs +1015 -902
  22. package/solibo-sdk-sdk-api-expense.mjs.map +1 -1
  23. package/solibo-sdk-sdk-api-follow-up.mjs +113 -98
  24. package/solibo-sdk-sdk-api-follow-up.mjs.map +1 -1
  25. package/solibo-sdk-sdk-api-homepage.mjs +4147 -3763
  26. package/solibo-sdk-sdk-api-homepage.mjs.map +1 -1
  27. package/solibo-sdk-sdk-api-insurance.mjs +778 -695
  28. package/solibo-sdk-sdk-api-insurance.mjs.map +1 -1
  29. package/solibo-sdk-sdk-api-invoice.mjs +1179 -1050
  30. package/solibo-sdk-sdk-api-invoice.mjs.map +1 -1
  31. package/solibo-sdk-sdk-api-invoicing.mjs +11671 -10553
  32. package/solibo-sdk-sdk-api-invoicing.mjs.map +1 -1
  33. package/solibo-sdk-sdk-api-issue.mjs +1750 -1566
  34. package/solibo-sdk-sdk-api-issue.mjs.map +1 -1
  35. package/solibo-sdk-sdk-api-loan.mjs +1281 -1143
  36. package/solibo-sdk-sdk-api-loan.mjs.map +1 -1
  37. package/solibo-sdk-sdk-api-marketing.mjs +383 -337
  38. package/solibo-sdk-sdk-api-marketing.mjs.map +1 -1
  39. package/solibo-sdk-sdk-api-meeting.mjs +2388 -2154
  40. package/solibo-sdk-sdk-api-meeting.mjs.map +1 -1
  41. package/solibo-sdk-sdk-api-organization.mjs +1577 -1408
  42. package/solibo-sdk-sdk-api-organization.mjs.map +1 -1
  43. package/solibo-sdk-sdk-api-parking.mjs +1660 -1489
  44. package/solibo-sdk-sdk-api-parking.mjs.map +1 -1
  45. package/solibo-sdk-sdk-api-person.mjs +1488 -1339
  46. package/solibo-sdk-sdk-api-person.mjs.map +1 -1
  47. package/solibo-sdk-sdk-api-resident-communication.mjs +5547 -5028
  48. package/solibo-sdk-sdk-api-resident-communication.mjs.map +1 -1
  49. package/solibo-sdk-sdk-api-resident.mjs +2699 -2368
  50. package/solibo-sdk-sdk-api-resident.mjs.map +1 -1
  51. package/solibo-sdk-sdk-api-routines.mjs +1235 -1096
  52. package/solibo-sdk-sdk-api-routines.mjs.map +1 -1
  53. package/solibo-sdk-sdk-api-scoped-contact.mjs +704 -638
  54. package/solibo-sdk-sdk-api-scoped-contact.mjs.map +1 -1
  55. package/solibo-sdk-sdk-api-section.mjs +4076 -3685
  56. package/solibo-sdk-sdk-api-section.mjs.map +1 -1
  57. package/solibo-sdk-sdk-api-settlement.mjs +2151 -1931
  58. package/solibo-sdk-sdk-api-settlement.mjs.map +1 -1
  59. package/solibo-sdk-sdk-api-storage.mjs +1621 -1454
  60. package/solibo-sdk-sdk-api-storage.mjs.map +1 -1
  61. package/solibo-sdk-sdk-api-supplier.mjs +2286 -2044
  62. package/solibo-sdk-sdk-api-supplier.mjs.map +1 -1
  63. package/solibo-sdk-sdk-api-task.mjs +818 -727
  64. package/solibo-sdk-sdk-api-task.mjs.map +1 -1
  65. package/solibo-sdk-sdk-api-third-party-information.mjs +1332 -1185
  66. package/solibo-sdk-sdk-api-third-party-information.mjs.map +1 -1
  67. package/solibo-sdk-sdk-api-user.mjs +1059 -945
  68. package/solibo-sdk-sdk-api-user.mjs.map +1 -1
  69. package/solibo-sdk-sdk-core.mjs +121 -155
  70. package/solibo-sdk-sdk-core.mjs.map +1 -1
  71. package/solibo-sdk-sdk-home-api.d.mts +716 -2
@@ -4,18 +4,18 @@ import {
4
4
  protoOf180f3jzyo7rfj as protoOf,
5
5
  objectCreate1ve4bgxiu4x98 as objectCreate,
6
6
  CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
7
+ await3n7kedgocftsv as await_0,
8
+ get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
9
+ initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
10
+ promisify1z0ncraq1ipzh as promisify,
11
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
12
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
7
13
  listOf1jh22dvmctj1r as listOf,
8
14
  LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
9
15
  replace3le3ie7l9k8aq as replace,
10
- get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
11
16
  arrayOf1akklvh2at202 as arrayOf,
12
17
  createKType31ecntyyaay3k as createKType,
13
- initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
14
- await3n7kedgocftsv as await_0,
15
18
  listOfvhqybd2zx248 as listOf_0,
16
- Unit_instance3kz1zqli6gr1r as Unit_instance,
17
- promisify1z0ncraq1ipzh as promisify,
18
- initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
19
19
  Unitkvevlwgzwiuc as Unit,
20
20
  LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
21
21
  lazy1261dae0bgscp as lazy,
@@ -43,15 +43,15 @@ import {
43
43
  Companion_getInstance1if1t4zy98q04 as Companion_getInstance,
44
44
  ApiClient_init_$Init$1zeqbeizsm394 as ApiClient_init_$Init$,
45
45
  ApiClient_init_$Init$38ftv1s10hf6v as ApiClient_init_$Init$_0,
46
+ ApiClient2azxax1pjdtdm as ApiClient,
46
47
  RequestMethod_POST_getInstance29fppyvplo8n0 as RequestMethod_POST_getInstance,
47
48
  RequestConfig10esd7ix0dbbm as RequestConfig,
48
49
  TypedBodyProvider2ertybblisp23 as TypedBodyProvider,
49
50
  HttpResponse53ki0v36vqo7 as HttpResponse,
50
- RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
51
- RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
52
- ApiClient2azxax1pjdtdm as ApiClient,
53
51
  RequestMethod_DELETE_getInstance298derfb6aued as RequestMethod_DELETE_getInstance,
52
+ RequestMethod_GET_getInstance1hbf807ypkdh8 as RequestMethod_GET_getInstance,
54
53
  toMultiValue5gsdsvx60e2f as toMultiValue,
54
+ RequestMethod_PUT_getInstance20qfhqm35d9pr as RequestMethod_PUT_getInstance,
55
55
  Companion_getInstance17vrvbsf9z29l as Companion_getInstance_0,
56
56
  Companion_getInstance3057p97vj4ryy as Companion_getInstance_1,
57
57
  $serializer_getInstance272ffvahts1y9 as $serializer_getInstance,
@@ -83,32 +83,32 @@ import {
83
83
  var imul = Math.imul;
84
84
  //endregion
85
85
  //region block: pre-declaration
86
- initMetadataForCoroutine($createHmsRoutineSettingsCOROUTINE$, CoroutineImpl);
87
86
  initMetadataForCoroutine($createHmsRoutineSettings$suspendBridgeCOROUTINE$, CoroutineImpl);
88
- initMetadataForCoroutine($putHmsRoutineSettingsCOROUTINE$, CoroutineImpl);
89
87
  initMetadataForCoroutine($putHmsRoutineSettings$suspendBridgeCOROUTINE$, CoroutineImpl);
90
- initMetadataForCoroutine($showHmsCompanySettingsCOROUTINE$, CoroutineImpl);
91
88
  initMetadataForCoroutine($showHmsCompanySettings$suspendBridgeCOROUTINE$, CoroutineImpl);
92
89
  initMetadataForClass(HMSApi, 'HMSApi', create, ApiClient, VOID, [2, 3]);
93
- initMetadataForCoroutine($createRoutineCOROUTINE$, CoroutineImpl);
94
90
  initMetadataForCoroutine($createRoutine$suspendBridgeCOROUTINE$, CoroutineImpl);
95
- initMetadataForCoroutine($deleteRoutineCOROUTINE$, CoroutineImpl);
96
91
  initMetadataForCoroutine($deleteRoutine$suspendBridgeCOROUTINE$, CoroutineImpl);
97
- initMetadataForCoroutine($indexRoutinesCOROUTINE$, CoroutineImpl);
98
92
  initMetadataForCoroutine($indexRoutines$suspendBridgeCOROUTINE$, CoroutineImpl);
99
- initMetadataForCoroutine($indexRoutinesGroupDraftsCOROUTINE$, CoroutineImpl);
100
93
  initMetadataForCoroutine($indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$, CoroutineImpl);
101
- initMetadataForCoroutine($indexRoutinesGroupsCOROUTINE$, CoroutineImpl);
102
94
  initMetadataForCoroutine($indexRoutinesGroups$suspendBridgeCOROUTINE$, CoroutineImpl);
103
- initMetadataForCoroutine($indexRoutinesTypesCOROUTINE$, CoroutineImpl);
104
95
  initMetadataForCoroutine($indexRoutinesTypes$suspendBridgeCOROUTINE$, CoroutineImpl);
105
- initMetadataForCoroutine($indexRoutinesUserCOROUTINE$, CoroutineImpl);
106
96
  initMetadataForCoroutine($indexRoutinesUser$suspendBridgeCOROUTINE$, CoroutineImpl);
107
- initMetadataForCoroutine($showRoutineCOROUTINE$, CoroutineImpl);
108
97
  initMetadataForCoroutine($showRoutine$suspendBridgeCOROUTINE$, CoroutineImpl);
109
- initMetadataForCoroutine($updateRoutineCOROUTINE$, CoroutineImpl);
110
98
  initMetadataForCoroutine($updateRoutine$suspendBridgeCOROUTINE$, CoroutineImpl);
111
99
  initMetadataForClass(RoutinesApi, 'RoutinesApi', create_0, ApiClient, VOID, [4, 2, 7, 6, 5, 8, 3]);
100
+ initMetadataForCoroutine($createHmsRoutineSettingsOperationCOROUTINE$, CoroutineImpl);
101
+ initMetadataForCoroutine($createRoutineOperationCOROUTINE$, CoroutineImpl);
102
+ initMetadataForCoroutine($deleteRoutineOperationCOROUTINE$, CoroutineImpl);
103
+ initMetadataForCoroutine($indexRoutinesGroupDraftsOperationCOROUTINE$, CoroutineImpl);
104
+ initMetadataForCoroutine($indexRoutinesGroupsOperationCOROUTINE$, CoroutineImpl);
105
+ initMetadataForCoroutine($indexRoutinesOperationCOROUTINE$, CoroutineImpl);
106
+ initMetadataForCoroutine($indexRoutinesTypesOperationCOROUTINE$, CoroutineImpl);
107
+ initMetadataForCoroutine($indexRoutinesUserOperationCOROUTINE$, CoroutineImpl);
108
+ initMetadataForCoroutine($putHmsRoutineSettingsOperationCOROUTINE$, CoroutineImpl);
109
+ initMetadataForCoroutine($showHmsCompanySettingsOperationCOROUTINE$, CoroutineImpl);
110
+ initMetadataForCoroutine($showRoutineOperationCOROUTINE$, CoroutineImpl);
111
+ initMetadataForCoroutine($updateRoutineOperationCOROUTINE$, CoroutineImpl);
112
112
  initMetadataForCompanion(Companion);
113
113
  initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
114
114
  initMetadataForClass(CreateHmsSettingsCommand, 'CreateHmsSettingsCommand', CreateHmsSettingsCommand, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_5});
@@ -190,67 +190,6 @@ function HMSApi_init_$Init$_0(baseUrl, httpClient, $this) {
190
190
  function createWithClient(baseUrl, httpClient) {
191
191
  return HMSApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(HMSApi)));
192
192
  }
193
- function $createHmsRoutineSettingsCOROUTINE$(_this__u8e3s4, companyId, createHmsSettingsCommand, resultContinuation) {
194
- CoroutineImpl.call(this, resultContinuation);
195
- this._this__u8e3s4__1 = _this__u8e3s4;
196
- this.companyId_1 = companyId;
197
- this.createHmsSettingsCommand_1 = createHmsSettingsCommand;
198
- }
199
- protoOf($createHmsRoutineSettingsCOROUTINE$).doResume_5yljmg_k$ = function () {
200
- var suspendResult = this.result_1;
201
- $sm: do
202
- try {
203
- var tmp = this.state_1;
204
- switch (tmp) {
205
- case 0:
206
- this.exceptionState_1 = 2;
207
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
208
- var localVariableBody = this.createHmsSettingsCommand_1;
209
- var localVariableQuery = LinkedHashMap_init_$Create$();
210
- var localVariableHeaders = LinkedHashMap_init_$Create$();
211
- var tmp0_method = RequestMethod_POST_getInstance();
212
- var tmp1_path = replace('/companies/{companyId}/hms/initialize', '{companyId}', this.companyId_1.toString());
213
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
214
- this.state_1 = 1;
215
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
216
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
217
- return suspendResult;
218
- }
219
-
220
- continue $sm;
221
- case 1:
222
- var this_0 = suspendResult;
223
- var tmp_0 = getKClass(HmsSettings);
224
- var tmp_1 = null instanceof HmsSettings;
225
- var tmp_2;
226
- try {
227
- tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
228
- } catch ($p) {
229
- var tmp_3;
230
- if ($p instanceof Error) {
231
- var _unused_var__etf5q3 = $p;
232
- tmp_3 = null;
233
- } else {
234
- throw $p;
235
- }
236
- tmp_2 = tmp_3;
237
- }
238
-
239
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
240
- case 2:
241
- throw this.exception_1;
242
- }
243
- } catch ($p_0) {
244
- var e = $p_0;
245
- if (this.exceptionState_1 === 2) {
246
- throw e;
247
- } else {
248
- this.state_1 = this.exceptionState_1;
249
- this.exception_1 = e;
250
- }
251
- }
252
- while (true);
253
- };
254
193
  function $createHmsRoutineSettings$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createHmsSettingsCommand, resultContinuation) {
255
194
  CoroutineImpl.call(this, resultContinuation);
256
195
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -305,67 +244,6 @@ protoOf($createHmsRoutineSettings$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
305
244
  }
306
245
  while (true);
307
246
  };
308
- function $putHmsRoutineSettingsCOROUTINE$(_this__u8e3s4, companyId, updateHmsSettingsCommand, resultContinuation) {
309
- CoroutineImpl.call(this, resultContinuation);
310
- this._this__u8e3s4__1 = _this__u8e3s4;
311
- this.companyId_1 = companyId;
312
- this.updateHmsSettingsCommand_1 = updateHmsSettingsCommand;
313
- }
314
- protoOf($putHmsRoutineSettingsCOROUTINE$).doResume_5yljmg_k$ = function () {
315
- var suspendResult = this.result_1;
316
- $sm: do
317
- try {
318
- var tmp = this.state_1;
319
- switch (tmp) {
320
- case 0:
321
- this.exceptionState_1 = 2;
322
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
323
- var localVariableBody = this.updateHmsSettingsCommand_1;
324
- var localVariableQuery = LinkedHashMap_init_$Create$();
325
- var localVariableHeaders = LinkedHashMap_init_$Create$();
326
- var tmp0_method = RequestMethod_PUT_getInstance();
327
- var tmp1_path = replace('/companies/{companyId}/hms/settings', '{companyId}', this.companyId_1.toString());
328
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
329
- this.state_1 = 1;
330
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
331
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
332
- return suspendResult;
333
- }
334
-
335
- continue $sm;
336
- case 1:
337
- var this_0 = suspendResult;
338
- var tmp_0 = getKClass(HmsSettings);
339
- var tmp_1 = null instanceof HmsSettings;
340
- var tmp_2;
341
- try {
342
- tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
343
- } catch ($p) {
344
- var tmp_3;
345
- if ($p instanceof Error) {
346
- var _unused_var__etf5q3 = $p;
347
- tmp_3 = null;
348
- } else {
349
- throw $p;
350
- }
351
- tmp_2 = tmp_3;
352
- }
353
-
354
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
355
- case 2:
356
- throw this.exception_1;
357
- }
358
- } catch ($p_0) {
359
- var e = $p_0;
360
- if (this.exceptionState_1 === 2) {
361
- throw e;
362
- } else {
363
- this.state_1 = this.exceptionState_1;
364
- this.exception_1 = e;
365
- }
366
- }
367
- while (true);
368
- };
369
247
  function $putHmsRoutineSettings$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, updateHmsSettingsCommand, resultContinuation) {
370
248
  CoroutineImpl.call(this, resultContinuation);
371
249
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -420,74 +298,6 @@ protoOf($putHmsRoutineSettings$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fun
420
298
  }
421
299
  while (true);
422
300
  };
423
- function $showHmsCompanySettingsCOROUTINE$(_this__u8e3s4, companyId, fields, resultContinuation) {
424
- CoroutineImpl.call(this, resultContinuation);
425
- this._this__u8e3s4__1 = _this__u8e3s4;
426
- this.companyId_1 = companyId;
427
- this.fields_1 = fields;
428
- }
429
- protoOf($showHmsCompanySettingsCOROUTINE$).doResume_5yljmg_k$ = function () {
430
- var suspendResult = this.result_1;
431
- $sm: do
432
- try {
433
- var tmp = this.state_1;
434
- switch (tmp) {
435
- case 0:
436
- this.exceptionState_1 = 2;
437
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
438
- var localVariableBody = EmptyContent_getInstance();
439
- var localVariableQuery = LinkedHashMap_init_$Create$();
440
- if (this.fields_1 == null)
441
- null;
442
- else {
443
- var value = listOf_0(this.fields_1);
444
- localVariableQuery.put_4fpzoq_k$('fields', value);
445
- }
446
-
447
- var localVariableHeaders = LinkedHashMap_init_$Create$();
448
- var tmp1_method = RequestMethod_GET_getInstance();
449
- var tmp2_path = replace('/companies/{companyId}/hms/settings', '{companyId}', this.companyId_1.toString());
450
- var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
451
- this.state_1 = 1;
452
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
453
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
454
- return suspendResult;
455
- }
456
-
457
- continue $sm;
458
- case 1:
459
- var this_0 = suspendResult;
460
- var tmp_0 = getKClass(HmsSettings);
461
- var tmp_1 = null instanceof HmsSettings;
462
- var tmp_2;
463
- try {
464
- tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
465
- } catch ($p) {
466
- var tmp_3;
467
- if ($p instanceof Error) {
468
- var _unused_var__etf5q3 = $p;
469
- tmp_3 = null;
470
- } else {
471
- throw $p;
472
- }
473
- tmp_2 = tmp_3;
474
- }
475
-
476
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
477
- case 2:
478
- throw this.exception_1;
479
- }
480
- } catch ($p_0) {
481
- var e = $p_0;
482
- if (this.exceptionState_1 === 2) {
483
- throw e;
484
- } else {
485
- this.state_1 = this.exceptionState_1;
486
- this.exception_1 = e;
487
- }
488
- }
489
- while (true);
490
- };
491
301
  function $showHmsCompanySettings$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, resultContinuation) {
492
302
  CoroutineImpl.call(this, resultContinuation);
493
303
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -543,10 +353,7 @@ protoOf($showHmsCompanySettings$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = fu
543
353
  while (true);
544
354
  };
545
355
  protoOf(HMSApi).createHmsRoutineSettings_s01m38_k$ = function (companyId, createHmsSettingsCommand, $completion) {
546
- var tmp = new $createHmsRoutineSettingsCOROUTINE$(this, companyId, createHmsSettingsCommand, $completion);
547
- tmp.result_1 = Unit_instance;
548
- tmp.exception_1 = null;
549
- return tmp.doResume_5yljmg_k$();
356
+ return createHmsRoutineSettingsOperation_0(this, companyId, createHmsSettingsCommand, $completion);
550
357
  };
551
358
  protoOf(HMSApi).createHmsRoutineSettings = function (companyId, createHmsSettingsCommand) {
552
359
  var tmp = this;
@@ -561,10 +368,7 @@ protoOf(HMSApi).createHmsRoutineSettings$suspendBridge_2pn6iz_k$ = function (com
561
368
  return tmp.doResume_5yljmg_k$();
562
369
  };
563
370
  protoOf(HMSApi).putHmsRoutineSettings_wg13wm_k$ = function (companyId, updateHmsSettingsCommand, $completion) {
564
- var tmp = new $putHmsRoutineSettingsCOROUTINE$(this, companyId, updateHmsSettingsCommand, $completion);
565
- tmp.result_1 = Unit_instance;
566
- tmp.exception_1 = null;
567
- return tmp.doResume_5yljmg_k$();
371
+ return putHmsRoutineSettingsOperation_0(this, companyId, updateHmsSettingsCommand, $completion);
568
372
  };
569
373
  protoOf(HMSApi).putHmsRoutineSettings = function (companyId, updateHmsSettingsCommand) {
570
374
  var tmp = this;
@@ -579,10 +383,7 @@ protoOf(HMSApi).putHmsRoutineSettings$suspendBridge_mg9xaz_k$ = function (compan
579
383
  return tmp.doResume_5yljmg_k$();
580
384
  };
581
385
  protoOf(HMSApi).showHmsCompanySettings_kis2xy_k$ = function (companyId, fields, $completion) {
582
- var tmp = new $showHmsCompanySettingsCOROUTINE$(this, companyId, fields, $completion);
583
- tmp.result_1 = Unit_instance;
584
- tmp.exception_1 = null;
585
- return tmp.doResume_5yljmg_k$();
386
+ return showHmsCompanySettingsOperation_0(this, companyId, fields, $completion);
586
387
  };
587
388
  protoOf(HMSApi).showHmsCompanySettings$default_ytomyx_k$ = function (companyId, fields, $completion, $super) {
588
389
  fields = fields === VOID ? null : fields;
@@ -622,7 +423,7 @@ function RoutinesApi_init_$Init$_0(baseUrl, httpClient, $this) {
622
423
  function createWithClient_0(baseUrl, httpClient) {
623
424
  return RoutinesApi_init_$Init$_0(baseUrl, httpClient, objectCreate(protoOf(RoutinesApi)));
624
425
  }
625
- function $createRoutineCOROUTINE$(_this__u8e3s4, companyId, createRoutineCommand, year, routineType, resultContinuation) {
426
+ function $createRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createRoutineCommand, year, routineType, resultContinuation) {
626
427
  CoroutineImpl.call(this, resultContinuation);
627
428
  this._this__u8e3s4__1 = _this__u8e3s4;
628
429
  this.companyId_1 = companyId;
@@ -630,68 +431,46 @@ function $createRoutineCOROUTINE$(_this__u8e3s4, companyId, createRoutineCommand
630
431
  this.year_1 = year;
631
432
  this.routineType_1 = routineType;
632
433
  }
633
- protoOf($createRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
434
+ protoOf($createRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
634
435
  var suspendResult = this.result_1;
635
436
  $sm: do
636
437
  try {
637
438
  var tmp = this.state_1;
638
439
  switch (tmp) {
639
440
  case 0:
640
- this.exceptionState_1 = 2;
641
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
642
- var localVariableBody = this.createRoutineCommand_1;
643
- var localVariableQuery = LinkedHashMap_init_$Create$();
644
- if (this.year_1 == null)
645
- null;
646
- else {
647
- var value = listOf_0('' + this.year_1);
648
- localVariableQuery.put_4fpzoq_k$('year', value);
649
- }
650
-
651
- if (this.routineType_1 == null)
652
- null;
653
- else {
654
- var tmp2 = 'routineType';
655
- var value_0 = listOf_0(this.routineType_1.value);
656
- localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
657
- }
658
-
659
- var localVariableHeaders = LinkedHashMap_init_$Create$();
660
- var tmp2_method = RequestMethod_POST_getInstance();
661
- var tmp3_path = replace('/companies/{companyId}/routines', '{companyId}', this.companyId_1.toString());
662
- var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
663
- this.state_1 = 1;
664
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
665
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
666
- return suspendResult;
441
+ this.exceptionState_1 = 4;
442
+ if (this._this__u8e3s4__1.createRoutine === protoOf(RoutinesApi).createRoutine) {
443
+ this.state_1 = 2;
444
+ suspendResult = this._this__u8e3s4__1.createRoutine$default_aizl3e_k$(this.companyId_1, this.createRoutineCommand_1, this.year_1, this.routineType_1, this);
445
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
446
+ return suspendResult;
447
+ }
448
+ continue $sm;
449
+ } else {
450
+ this.state_1 = 1;
451
+ suspendResult = await_0(this._this__u8e3s4__1.createRoutine(this.companyId_1, this.createRoutineCommand_1, this.year_1, this.routineType_1), this);
452
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
453
+ return suspendResult;
454
+ }
455
+ continue $sm;
667
456
  }
668
457
 
669
- continue $sm;
670
458
  case 1:
671
- var this_0 = suspendResult;
672
- var tmp_0 = getKClass(Routine);
673
- var tmp_1 = null instanceof Routine;
674
- var tmp_2;
675
- try {
676
- tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
677
- } catch ($p) {
678
- var tmp_3;
679
- if ($p instanceof Error) {
680
- var _unused_var__etf5q3 = $p;
681
- tmp_3 = null;
682
- } else {
683
- throw $p;
684
- }
685
- tmp_2 = tmp_3;
686
- }
687
-
688
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
459
+ this.WHEN_RESULT0__1 = suspendResult;
460
+ this.state_1 = 3;
461
+ continue $sm;
689
462
  case 2:
463
+ this.WHEN_RESULT0__1 = suspendResult;
464
+ this.state_1 = 3;
465
+ continue $sm;
466
+ case 3:
467
+ return this.WHEN_RESULT0__1;
468
+ case 4:
690
469
  throw this.exception_1;
691
470
  }
692
- } catch ($p_0) {
693
- var e = $p_0;
694
- if (this.exceptionState_1 === 2) {
471
+ } catch ($p) {
472
+ var e = $p;
473
+ if (this.exceptionState_1 === 4) {
695
474
  throw e;
696
475
  } else {
697
476
  this.state_1 = this.exceptionState_1;
@@ -700,15 +479,13 @@ protoOf($createRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
700
479
  }
701
480
  while (true);
702
481
  };
703
- function $createRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, createRoutineCommand, year, routineType, resultContinuation) {
482
+ function $deleteRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, resultContinuation) {
704
483
  CoroutineImpl.call(this, resultContinuation);
705
484
  this._this__u8e3s4__1 = _this__u8e3s4;
706
485
  this.companyId_1 = companyId;
707
- this.createRoutineCommand_1 = createRoutineCommand;
708
- this.year_1 = year;
709
- this.routineType_1 = routineType;
486
+ this.routineId_1 = routineId;
710
487
  }
711
- protoOf($createRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
488
+ protoOf($deleteRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
712
489
  var suspendResult = this.result_1;
713
490
  $sm: do
714
491
  try {
@@ -716,16 +493,16 @@ protoOf($createRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
716
493
  switch (tmp) {
717
494
  case 0:
718
495
  this.exceptionState_1 = 4;
719
- if (this._this__u8e3s4__1.createRoutine === protoOf(RoutinesApi).createRoutine) {
496
+ if (this._this__u8e3s4__1.deleteRoutine === protoOf(RoutinesApi).deleteRoutine) {
720
497
  this.state_1 = 2;
721
- suspendResult = this._this__u8e3s4__1.createRoutine$default_aizl3e_k$(this.companyId_1, this.createRoutineCommand_1, this.year_1, this.routineType_1, this);
498
+ suspendResult = this._this__u8e3s4__1.deleteRoutine_33i6p7_k$(this.companyId_1, this.routineId_1, this);
722
499
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
723
500
  return suspendResult;
724
501
  }
725
502
  continue $sm;
726
503
  } else {
727
504
  this.state_1 = 1;
728
- suspendResult = await_0(this._this__u8e3s4__1.createRoutine(this.companyId_1, this.createRoutineCommand_1, this.year_1, this.routineType_1), this);
505
+ suspendResult = await_0(this._this__u8e3s4__1.deleteRoutine(this.companyId_1, this.routineId_1), this);
729
506
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
730
507
  return suspendResult;
731
508
  }
@@ -756,59 +533,57 @@ protoOf($createRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
756
533
  }
757
534
  while (true);
758
535
  };
759
- function $deleteRoutineCOROUTINE$(_this__u8e3s4, companyId, routineId, resultContinuation) {
536
+ function $indexRoutines$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
760
537
  CoroutineImpl.call(this, resultContinuation);
761
538
  this._this__u8e3s4__1 = _this__u8e3s4;
762
539
  this.companyId_1 = companyId;
763
- this.routineId_1 = routineId;
540
+ this.year_1 = year;
541
+ this.routineType_1 = routineType;
542
+ this.fields_1 = fields;
543
+ this.pageToken_1 = pageToken;
544
+ this.autoPaginate_1 = autoPaginate;
545
+ this.count_1 = count;
764
546
  }
765
- protoOf($deleteRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
547
+ protoOf($indexRoutines$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
766
548
  var suspendResult = this.result_1;
767
549
  $sm: do
768
550
  try {
769
551
  var tmp = this.state_1;
770
552
  switch (tmp) {
771
553
  case 0:
772
- this.exceptionState_1 = 2;
773
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
774
- var localVariableBody = EmptyContent_getInstance();
775
- var localVariableQuery = LinkedHashMap_init_$Create$();
776
- var localVariableHeaders = LinkedHashMap_init_$Create$();
777
- var tmp0_method = RequestMethod_DELETE_getInstance();
778
- var tmp1_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
779
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
780
- this.state_1 = 1;
781
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
782
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
783
- return suspendResult;
784
- }
785
-
786
- continue $sm;
787
- case 1:
788
- var this_0 = suspendResult;
789
- var tmp_0 = getKClass(Unit);
790
- var tmp_1 = null instanceof Unit;
791
- var tmp_2;
792
- try {
793
- tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
794
- } catch ($p) {
795
- var tmp_3;
796
- if ($p instanceof Error) {
797
- var _unused_var__etf5q3 = $p;
798
- tmp_3 = null;
799
- } else {
800
- throw $p;
554
+ this.exceptionState_1 = 4;
555
+ if (this._this__u8e3s4__1.indexRoutines === protoOf(RoutinesApi).indexRoutines) {
556
+ this.state_1 = 2;
557
+ suspendResult = this._this__u8e3s4__1.indexRoutines$default_54pmob_k$(this.companyId_1, this.year_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
558
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
559
+ return suspendResult;
801
560
  }
802
- tmp_2 = tmp_3;
561
+ continue $sm;
562
+ } else {
563
+ this.state_1 = 1;
564
+ suspendResult = await_0(this._this__u8e3s4__1.indexRoutines(this.companyId_1, this.year_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
565
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
566
+ return suspendResult;
567
+ }
568
+ continue $sm;
803
569
  }
804
570
 
805
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
571
+ case 1:
572
+ this.WHEN_RESULT0__1 = suspendResult;
573
+ this.state_1 = 3;
574
+ continue $sm;
806
575
  case 2:
576
+ this.WHEN_RESULT0__1 = suspendResult;
577
+ this.state_1 = 3;
578
+ continue $sm;
579
+ case 3:
580
+ return this.WHEN_RESULT0__1;
581
+ case 4:
807
582
  throw this.exception_1;
808
583
  }
809
- } catch ($p_0) {
810
- var e = $p_0;
811
- if (this.exceptionState_1 === 2) {
584
+ } catch ($p) {
585
+ var e = $p;
586
+ if (this.exceptionState_1 === 4) {
812
587
  throw e;
813
588
  } else {
814
589
  this.state_1 = this.exceptionState_1;
@@ -817,13 +592,17 @@ protoOf($deleteRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
817
592
  }
818
593
  while (true);
819
594
  };
820
- function $deleteRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, resultContinuation) {
595
+ function $indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, groupId, fields, pageToken, autoPaginate, count, resultContinuation) {
821
596
  CoroutineImpl.call(this, resultContinuation);
822
597
  this._this__u8e3s4__1 = _this__u8e3s4;
823
598
  this.companyId_1 = companyId;
824
- this.routineId_1 = routineId;
599
+ this.groupId_1 = groupId;
600
+ this.fields_1 = fields;
601
+ this.pageToken_1 = pageToken;
602
+ this.autoPaginate_1 = autoPaginate;
603
+ this.count_1 = count;
825
604
  }
826
- protoOf($deleteRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
605
+ protoOf($indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
827
606
  var suspendResult = this.result_1;
828
607
  $sm: do
829
608
  try {
@@ -831,16 +610,16 @@ protoOf($deleteRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
831
610
  switch (tmp) {
832
611
  case 0:
833
612
  this.exceptionState_1 = 4;
834
- if (this._this__u8e3s4__1.deleteRoutine === protoOf(RoutinesApi).deleteRoutine) {
613
+ if (this._this__u8e3s4__1.indexRoutinesGroupDrafts === protoOf(RoutinesApi).indexRoutinesGroupDrafts) {
835
614
  this.state_1 = 2;
836
- suspendResult = this._this__u8e3s4__1.deleteRoutine_33i6p7_k$(this.companyId_1, this.routineId_1, this);
615
+ suspendResult = this._this__u8e3s4__1.indexRoutinesGroupDrafts$default_eunwop_k$(this.companyId_1, this.groupId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
837
616
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
838
617
  return suspendResult;
839
618
  }
840
619
  continue $sm;
841
620
  } else {
842
621
  this.state_1 = 1;
843
- suspendResult = await_0(this._this__u8e3s4__1.deleteRoutine(this.companyId_1, this.routineId_1), this);
622
+ suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesGroupDrafts(this.companyId_1, this.groupId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
844
623
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
845
624
  return suspendResult;
846
625
  }
@@ -871,109 +650,56 @@ protoOf($deleteRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
871
650
  }
872
651
  while (true);
873
652
  };
874
- function $indexRoutinesCOROUTINE$(_this__u8e3s4, companyId, year, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
653
+ function $indexRoutinesGroups$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
875
654
  CoroutineImpl.call(this, resultContinuation);
876
655
  this._this__u8e3s4__1 = _this__u8e3s4;
877
656
  this.companyId_1 = companyId;
878
- this.year_1 = year;
879
657
  this.routineType_1 = routineType;
880
658
  this.fields_1 = fields;
881
659
  this.pageToken_1 = pageToken;
882
660
  this.autoPaginate_1 = autoPaginate;
883
661
  this.count_1 = count;
884
662
  }
885
- protoOf($indexRoutinesCOROUTINE$).doResume_5yljmg_k$ = function () {
663
+ protoOf($indexRoutinesGroups$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
886
664
  var suspendResult = this.result_1;
887
665
  $sm: do
888
666
  try {
889
667
  var tmp = this.state_1;
890
668
  switch (tmp) {
891
669
  case 0:
892
- this.exceptionState_1 = 2;
893
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
894
- var localVariableBody = EmptyContent_getInstance();
895
- var localVariableQuery = LinkedHashMap_init_$Create$();
896
- if (this.year_1 == null)
897
- null;
898
- else {
899
- var value = listOf_0('' + this.year_1);
900
- localVariableQuery.put_4fpzoq_k$('year', value);
901
- }
902
-
903
- if (this.routineType_1 == null)
904
- null;
905
- else {
906
- var tmp2 = 'routineType';
907
- var value_0 = listOf_0(this.routineType_1.value);
908
- localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
909
- }
910
-
911
- if (this.fields_1 == null)
912
- null;
913
- else {
914
- var value_1 = listOf_0(this.fields_1);
915
- localVariableQuery.put_4fpzoq_k$('fields', value_1);
916
- }
917
-
918
- if (this.pageToken_1 == null)
919
- null;
920
- else {
921
- var tmp2_0 = 'pageToken';
922
- var value_2 = listOf_0(this.pageToken_1);
923
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
924
- }
925
-
926
- if (this.autoPaginate_1 == null)
927
- null;
928
- else {
929
- var tmp2_1 = 'autoPaginate';
930
- var value_3 = listOf_0('' + this.autoPaginate_1);
931
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
932
- }
933
-
934
- if (this.count_1 == null)
935
- null;
936
- else {
937
- var value_4 = listOf_0('' + this.count_1);
938
- localVariableQuery.put_4fpzoq_k$('count', value_4);
939
- }
940
-
941
- var localVariableHeaders = LinkedHashMap_init_$Create$();
942
- var tmp6_method = RequestMethod_GET_getInstance();
943
- var tmp7_path = replace('/companies/{companyId}/routines', '{companyId}', this.companyId_1.toString());
944
- var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
945
- this.state_1 = 1;
946
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
947
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
948
- return suspendResult;
949
- }
950
-
951
- continue $sm;
952
- case 1:
953
- var this_0 = suspendResult;
954
- var tmp_0 = getKClass(PagedListRoutine);
955
- var tmp_1 = null instanceof PagedListRoutine;
956
- var tmp_2;
957
- try {
958
- tmp_2 = createKType(getKClass(PagedListRoutine), arrayOf([]), false);
959
- } catch ($p) {
960
- var tmp_3;
961
- if ($p instanceof Error) {
962
- var _unused_var__etf5q3 = $p;
963
- tmp_3 = null;
964
- } else {
965
- throw $p;
670
+ this.exceptionState_1 = 4;
671
+ if (this._this__u8e3s4__1.indexRoutinesGroups === protoOf(RoutinesApi).indexRoutinesGroups) {
672
+ this.state_1 = 2;
673
+ suspendResult = this._this__u8e3s4__1.indexRoutinesGroups$default_a6d39e_k$(this.companyId_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
674
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
675
+ return suspendResult;
966
676
  }
967
- tmp_2 = tmp_3;
677
+ continue $sm;
678
+ } else {
679
+ this.state_1 = 1;
680
+ suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesGroups(this.companyId_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
681
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
682
+ return suspendResult;
683
+ }
684
+ continue $sm;
968
685
  }
969
686
 
970
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
687
+ case 1:
688
+ this.WHEN_RESULT0__1 = suspendResult;
689
+ this.state_1 = 3;
690
+ continue $sm;
971
691
  case 2:
692
+ this.WHEN_RESULT0__1 = suspendResult;
693
+ this.state_1 = 3;
694
+ continue $sm;
695
+ case 3:
696
+ return this.WHEN_RESULT0__1;
697
+ case 4:
972
698
  throw this.exception_1;
973
699
  }
974
- } catch ($p_0) {
975
- var e = $p_0;
976
- if (this.exceptionState_1 === 2) {
700
+ } catch ($p) {
701
+ var e = $p;
702
+ if (this.exceptionState_1 === 4) {
977
703
  throw e;
978
704
  } else {
979
705
  this.state_1 = this.exceptionState_1;
@@ -982,18 +708,16 @@ protoOf($indexRoutinesCOROUTINE$).doResume_5yljmg_k$ = function () {
982
708
  }
983
709
  while (true);
984
710
  };
985
- function $indexRoutines$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, year, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
711
+ function $indexRoutinesTypes$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
986
712
  CoroutineImpl.call(this, resultContinuation);
987
713
  this._this__u8e3s4__1 = _this__u8e3s4;
988
714
  this.companyId_1 = companyId;
989
- this.year_1 = year;
990
- this.routineType_1 = routineType;
991
715
  this.fields_1 = fields;
992
716
  this.pageToken_1 = pageToken;
993
717
  this.autoPaginate_1 = autoPaginate;
994
718
  this.count_1 = count;
995
719
  }
996
- protoOf($indexRoutines$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
720
+ protoOf($indexRoutinesTypes$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
997
721
  var suspendResult = this.result_1;
998
722
  $sm: do
999
723
  try {
@@ -1001,16 +725,16 @@ protoOf($indexRoutines$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
1001
725
  switch (tmp) {
1002
726
  case 0:
1003
727
  this.exceptionState_1 = 4;
1004
- if (this._this__u8e3s4__1.indexRoutines === protoOf(RoutinesApi).indexRoutines) {
728
+ if (this._this__u8e3s4__1.indexRoutinesTypes === protoOf(RoutinesApi).indexRoutinesTypes) {
1005
729
  this.state_1 = 2;
1006
- suspendResult = this._this__u8e3s4__1.indexRoutines$default_54pmob_k$(this.companyId_1, this.year_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
730
+ suspendResult = this._this__u8e3s4__1.indexRoutinesTypes$default_mirqo4_k$(this.companyId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
1007
731
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1008
732
  return suspendResult;
1009
733
  }
1010
734
  continue $sm;
1011
735
  } else {
1012
736
  this.state_1 = 1;
1013
- suspendResult = await_0(this._this__u8e3s4__1.indexRoutines(this.companyId_1, this.year_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
737
+ suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesTypes(this.companyId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
1014
738
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1015
739
  return suspendResult;
1016
740
  }
@@ -1041,112 +765,19 @@ protoOf($indexRoutines$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function ()
1041
765
  }
1042
766
  while (true);
1043
767
  };
1044
- function $indexRoutinesGroupDraftsCOROUTINE$(_this__u8e3s4, companyId, groupId, fields, pageToken, autoPaginate, count, resultContinuation) {
768
+ function $indexRoutinesUser$suspendBridgeCOROUTINE$(_this__u8e3s4, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, resultContinuation) {
1045
769
  CoroutineImpl.call(this, resultContinuation);
1046
770
  this._this__u8e3s4__1 = _this__u8e3s4;
1047
- this.companyId_1 = companyId;
1048
- this.groupId_1 = groupId;
771
+ this.year_1 = year;
772
+ this.routineType_1 = routineType;
773
+ this.search_1 = search;
774
+ this.companyIds_1 = companyIds;
1049
775
  this.fields_1 = fields;
1050
776
  this.pageToken_1 = pageToken;
1051
777
  this.autoPaginate_1 = autoPaginate;
1052
778
  this.count_1 = count;
1053
779
  }
1054
- protoOf($indexRoutinesGroupDraftsCOROUTINE$).doResume_5yljmg_k$ = function () {
1055
- var suspendResult = this.result_1;
1056
- $sm: do
1057
- try {
1058
- var tmp = this.state_1;
1059
- switch (tmp) {
1060
- case 0:
1061
- this.exceptionState_1 = 2;
1062
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1063
- var localVariableBody = EmptyContent_getInstance();
1064
- var localVariableQuery = LinkedHashMap_init_$Create$();
1065
- if (this.fields_1 == null)
1066
- null;
1067
- else {
1068
- var value = listOf_0(this.fields_1);
1069
- localVariableQuery.put_4fpzoq_k$('fields', value);
1070
- }
1071
-
1072
- if (this.pageToken_1 == null)
1073
- null;
1074
- else {
1075
- var tmp2 = 'pageToken';
1076
- var value_0 = listOf_0(this.pageToken_1);
1077
- localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1078
- }
1079
-
1080
- if (this.autoPaginate_1 == null)
1081
- null;
1082
- else {
1083
- var tmp2_0 = 'autoPaginate';
1084
- var value_1 = listOf_0('' + this.autoPaginate_1);
1085
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1086
- }
1087
-
1088
- if (this.count_1 == null)
1089
- null;
1090
- else {
1091
- var value_2 = listOf_0('' + this.count_1);
1092
- localVariableQuery.put_4fpzoq_k$('count', value_2);
1093
- }
1094
-
1095
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1096
- var tmp4_method = RequestMethod_GET_getInstance();
1097
- var tmp5_path = replace(replace('/companies/{companyId}/routines/groups/{groupId}/templates', '{companyId}', this.companyId_1.toString()), '{groupId}', this.groupId_1.toString());
1098
- var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
1099
- this.state_1 = 1;
1100
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1101
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1102
- return suspendResult;
1103
- }
1104
-
1105
- continue $sm;
1106
- case 1:
1107
- var this_0 = suspendResult;
1108
- var tmp_0 = getKClass(PagedListRoutineDraft);
1109
- var tmp_1 = null instanceof PagedListRoutineDraft;
1110
- var tmp_2;
1111
- try {
1112
- tmp_2 = createKType(getKClass(PagedListRoutineDraft), arrayOf([]), false);
1113
- } catch ($p) {
1114
- var tmp_3;
1115
- if ($p instanceof Error) {
1116
- var _unused_var__etf5q3 = $p;
1117
- tmp_3 = null;
1118
- } else {
1119
- throw $p;
1120
- }
1121
- tmp_2 = tmp_3;
1122
- }
1123
-
1124
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1125
- case 2:
1126
- throw this.exception_1;
1127
- }
1128
- } catch ($p_0) {
1129
- var e = $p_0;
1130
- if (this.exceptionState_1 === 2) {
1131
- throw e;
1132
- } else {
1133
- this.state_1 = this.exceptionState_1;
1134
- this.exception_1 = e;
1135
- }
1136
- }
1137
- while (true);
1138
- };
1139
- function $indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, groupId, fields, pageToken, autoPaginate, count, resultContinuation) {
1140
- CoroutineImpl.call(this, resultContinuation);
1141
- this._this__u8e3s4__1 = _this__u8e3s4;
1142
- this.companyId_1 = companyId;
1143
- this.groupId_1 = groupId;
1144
- this.fields_1 = fields;
1145
- this.pageToken_1 = pageToken;
1146
- this.autoPaginate_1 = autoPaginate;
1147
- this.count_1 = count;
1148
- }
1149
- protoOf($indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
780
+ protoOf($indexRoutinesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1150
781
  var suspendResult = this.result_1;
1151
782
  $sm: do
1152
783
  try {
@@ -1154,16 +785,16 @@ protoOf($indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
1154
785
  switch (tmp) {
1155
786
  case 0:
1156
787
  this.exceptionState_1 = 4;
1157
- if (this._this__u8e3s4__1.indexRoutinesGroupDrafts === protoOf(RoutinesApi).indexRoutinesGroupDrafts) {
788
+ if (this._this__u8e3s4__1.indexRoutinesUser === protoOf(RoutinesApi).indexRoutinesUser) {
1158
789
  this.state_1 = 2;
1159
- suspendResult = this._this__u8e3s4__1.indexRoutinesGroupDrafts$default_eunwop_k$(this.companyId_1, this.groupId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
790
+ suspendResult = this._this__u8e3s4__1.indexRoutinesUser$default_hknbb4_k$(this.year_1, this.routineType_1, this.search_1, this.companyIds_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
1160
791
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1161
792
  return suspendResult;
1162
793
  }
1163
794
  continue $sm;
1164
795
  } else {
1165
796
  this.state_1 = 1;
1166
- suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesGroupDrafts(this.companyId_1, this.groupId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
797
+ suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesUser(this.year_1, this.routineType_1, this.search_1, this.companyIds_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
1167
798
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1168
799
  return suspendResult;
1169
800
  }
@@ -1194,101 +825,53 @@ protoOf($indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ =
1194
825
  }
1195
826
  while (true);
1196
827
  };
1197
- function $indexRoutinesGroupsCOROUTINE$(_this__u8e3s4, companyId, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
828
+ function $showRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, fields, resultContinuation) {
1198
829
  CoroutineImpl.call(this, resultContinuation);
1199
830
  this._this__u8e3s4__1 = _this__u8e3s4;
1200
831
  this.companyId_1 = companyId;
1201
- this.routineType_1 = routineType;
832
+ this.routineId_1 = routineId;
1202
833
  this.fields_1 = fields;
1203
- this.pageToken_1 = pageToken;
1204
- this.autoPaginate_1 = autoPaginate;
1205
- this.count_1 = count;
1206
834
  }
1207
- protoOf($indexRoutinesGroupsCOROUTINE$).doResume_5yljmg_k$ = function () {
835
+ protoOf($showRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1208
836
  var suspendResult = this.result_1;
1209
837
  $sm: do
1210
838
  try {
1211
839
  var tmp = this.state_1;
1212
840
  switch (tmp) {
1213
841
  case 0:
1214
- this.exceptionState_1 = 2;
1215
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1216
- var localVariableBody = EmptyContent_getInstance();
1217
- var localVariableQuery = LinkedHashMap_init_$Create$();
1218
- if (this.routineType_1 == null)
1219
- null;
1220
- else {
1221
- var tmp2 = 'routineType';
1222
- var value = listOf_0(this.routineType_1.value);
1223
- localVariableQuery.put_4fpzoq_k$(tmp2, value);
1224
- }
1225
-
1226
- if (this.fields_1 == null)
1227
- null;
1228
- else {
1229
- var value_0 = listOf_0(this.fields_1);
1230
- localVariableQuery.put_4fpzoq_k$('fields', value_0);
1231
- }
1232
-
1233
- if (this.pageToken_1 == null)
1234
- null;
1235
- else {
1236
- var tmp2_0 = 'pageToken';
1237
- var value_1 = listOf_0(this.pageToken_1);
1238
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1239
- }
1240
-
1241
- if (this.autoPaginate_1 == null)
1242
- null;
1243
- else {
1244
- var tmp2_1 = 'autoPaginate';
1245
- var value_2 = listOf_0('' + this.autoPaginate_1);
1246
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
1247
- }
1248
-
1249
- if (this.count_1 == null)
1250
- null;
1251
- else {
1252
- var value_3 = listOf_0('' + this.count_1);
1253
- localVariableQuery.put_4fpzoq_k$('count', value_3);
1254
- }
1255
-
1256
- var localVariableHeaders = LinkedHashMap_init_$Create$();
1257
- var tmp5_method = RequestMethod_GET_getInstance();
1258
- var tmp6_path = replace('/companies/{companyId}/routines/groups', '{companyId}', this.companyId_1.toString());
1259
- var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
1260
- this.state_1 = 1;
1261
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1262
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1263
- return suspendResult;
1264
- }
1265
-
1266
- continue $sm;
1267
- case 1:
1268
- var this_0 = suspendResult;
1269
- var tmp_0 = getKClass(PagedListRoutineGroup);
1270
- var tmp_1 = null instanceof PagedListRoutineGroup;
1271
- var tmp_2;
1272
- try {
1273
- tmp_2 = createKType(getKClass(PagedListRoutineGroup), arrayOf([]), false);
1274
- } catch ($p) {
1275
- var tmp_3;
1276
- if ($p instanceof Error) {
1277
- var _unused_var__etf5q3 = $p;
1278
- tmp_3 = null;
1279
- } else {
1280
- throw $p;
842
+ this.exceptionState_1 = 4;
843
+ if (this._this__u8e3s4__1.showRoutine === protoOf(RoutinesApi).showRoutine) {
844
+ this.state_1 = 2;
845
+ suspendResult = this._this__u8e3s4__1.showRoutine$default_auj451_k$(this.companyId_1, this.routineId_1, this.fields_1, this);
846
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
847
+ return suspendResult;
1281
848
  }
1282
- tmp_2 = tmp_3;
849
+ continue $sm;
850
+ } else {
851
+ this.state_1 = 1;
852
+ suspendResult = await_0(this._this__u8e3s4__1.showRoutine(this.companyId_1, this.routineId_1, this.fields_1), this);
853
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
854
+ return suspendResult;
855
+ }
856
+ continue $sm;
1283
857
  }
1284
858
 
1285
- return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
859
+ case 1:
860
+ this.WHEN_RESULT0__1 = suspendResult;
861
+ this.state_1 = 3;
862
+ continue $sm;
1286
863
  case 2:
864
+ this.WHEN_RESULT0__1 = suspendResult;
865
+ this.state_1 = 3;
866
+ continue $sm;
867
+ case 3:
868
+ return this.WHEN_RESULT0__1;
869
+ case 4:
1287
870
  throw this.exception_1;
1288
871
  }
1289
- } catch ($p_0) {
1290
- var e = $p_0;
1291
- if (this.exceptionState_1 === 2) {
872
+ } catch ($p) {
873
+ var e = $p;
874
+ if (this.exceptionState_1 === 4) {
1292
875
  throw e;
1293
876
  } else {
1294
877
  this.state_1 = this.exceptionState_1;
@@ -1297,17 +880,14 @@ protoOf($indexRoutinesGroupsCOROUTINE$).doResume_5yljmg_k$ = function () {
1297
880
  }
1298
881
  while (true);
1299
882
  };
1300
- function $indexRoutinesGroups$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
883
+ function $updateRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, updateRoutineCommand, resultContinuation) {
1301
884
  CoroutineImpl.call(this, resultContinuation);
1302
885
  this._this__u8e3s4__1 = _this__u8e3s4;
1303
886
  this.companyId_1 = companyId;
1304
- this.routineType_1 = routineType;
1305
- this.fields_1 = fields;
1306
- this.pageToken_1 = pageToken;
1307
- this.autoPaginate_1 = autoPaginate;
1308
- this.count_1 = count;
887
+ this.routineId_1 = routineId;
888
+ this.updateRoutineCommand_1 = updateRoutineCommand;
1309
889
  }
1310
- protoOf($indexRoutinesGroups$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
890
+ protoOf($updateRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1311
891
  var suspendResult = this.result_1;
1312
892
  $sm: do
1313
893
  try {
@@ -1315,16 +895,16 @@ protoOf($indexRoutinesGroups$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
1315
895
  switch (tmp) {
1316
896
  case 0:
1317
897
  this.exceptionState_1 = 4;
1318
- if (this._this__u8e3s4__1.indexRoutinesGroups === protoOf(RoutinesApi).indexRoutinesGroups) {
898
+ if (this._this__u8e3s4__1.updateRoutine === protoOf(RoutinesApi).updateRoutine) {
1319
899
  this.state_1 = 2;
1320
- suspendResult = this._this__u8e3s4__1.indexRoutinesGroups$default_a6d39e_k$(this.companyId_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
900
+ suspendResult = this._this__u8e3s4__1.updateRoutine_vvuaqp_k$(this.companyId_1, this.routineId_1, this.updateRoutineCommand_1, this);
1321
901
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1322
902
  return suspendResult;
1323
903
  }
1324
904
  continue $sm;
1325
905
  } else {
1326
906
  this.state_1 = 1;
1327
- suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesGroups(this.companyId_1, this.routineType_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
907
+ suspendResult = await_0(this._this__u8e3s4__1.updateRoutine(this.companyId_1, this.routineId_1, this.updateRoutineCommand_1), this);
1328
908
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1329
909
  return suspendResult;
1330
910
  }
@@ -1355,62 +935,228 @@ protoOf($indexRoutinesGroups$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = funct
1355
935
  }
1356
936
  while (true);
1357
937
  };
1358
- function $indexRoutinesTypesCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
1359
- CoroutineImpl.call(this, resultContinuation);
1360
- this._this__u8e3s4__1 = _this__u8e3s4;
1361
- this.companyId_1 = companyId;
1362
- this.fields_1 = fields;
1363
- this.pageToken_1 = pageToken;
1364
- this.autoPaginate_1 = autoPaginate;
1365
- this.count_1 = count;
1366
- }
1367
- protoOf($indexRoutinesTypesCOROUTINE$).doResume_5yljmg_k$ = function () {
1368
- var suspendResult = this.result_1;
1369
- $sm: do
1370
- try {
1371
- var tmp = this.state_1;
1372
- switch (tmp) {
1373
- case 0:
1374
- this.exceptionState_1 = 2;
1375
- var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1376
- var localVariableBody = EmptyContent_getInstance();
1377
- var localVariableQuery = LinkedHashMap_init_$Create$();
1378
- if (this.fields_1 == null)
1379
- null;
1380
- else {
1381
- var value = listOf_0(this.fields_1);
1382
- localVariableQuery.put_4fpzoq_k$('fields', value);
1383
- }
1384
-
1385
- if (this.pageToken_1 == null)
1386
- null;
1387
- else {
1388
- var tmp2 = 'pageToken';
1389
- var value_0 = listOf_0(this.pageToken_1);
1390
- localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1391
- }
1392
-
1393
- if (this.autoPaginate_1 == null)
1394
- null;
1395
- else {
1396
- var tmp2_0 = 'autoPaginate';
1397
- var value_1 = listOf_0('' + this.autoPaginate_1);
1398
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1399
- }
1400
-
1401
- if (this.count_1 == null)
1402
- null;
1403
- else {
1404
- var value_2 = listOf_0('' + this.count_1);
1405
- localVariableQuery.put_4fpzoq_k$('count', value_2);
1406
- }
1407
-
938
+ protoOf(RoutinesApi).createRoutine_8elniz_k$ = function (companyId, createRoutineCommand, year, routineType, $completion) {
939
+ return createRoutineOperation_0(this, companyId, createRoutineCommand, year, routineType, $completion);
940
+ };
941
+ protoOf(RoutinesApi).createRoutine$default_aizl3e_k$ = function (companyId, createRoutineCommand, year, routineType, $completion, $super) {
942
+ year = year === VOID ? null : year;
943
+ routineType = routineType === VOID ? null : routineType;
944
+ return $super === VOID ? this.createRoutine_8elniz_k$(companyId, createRoutineCommand, year, routineType, $completion) : $super.createRoutine_8elniz_k$.call(this, companyId, createRoutineCommand, year, routineType, $completion);
945
+ };
946
+ protoOf(RoutinesApi).createRoutine = function (companyId, createRoutineCommand, year, routineType) {
947
+ var tmp = this;
948
+ return promisify(function ($completion) {
949
+ return tmp.createRoutine$default_aizl3e_k$(companyId, createRoutineCommand, year, routineType, $completion);
950
+ });
951
+ };
952
+ protoOf(RoutinesApi).createRoutine$suspendBridge_flmwva_k$ = function (companyId, createRoutineCommand, year, routineType, $completion) {
953
+ var tmp = new $createRoutine$suspendBridgeCOROUTINE$(this, companyId, createRoutineCommand, year, routineType, $completion);
954
+ tmp.result_1 = Unit_instance;
955
+ tmp.exception_1 = null;
956
+ return tmp.doResume_5yljmg_k$();
957
+ };
958
+ protoOf(RoutinesApi).deleteRoutine_33i6p7_k$ = function (companyId, routineId, $completion) {
959
+ return deleteRoutineOperation_0(this, companyId, routineId, $completion);
960
+ };
961
+ protoOf(RoutinesApi).deleteRoutine = function (companyId, routineId) {
962
+ var tmp = this;
963
+ return promisify(function ($completion) {
964
+ return tmp.deleteRoutine_33i6p7_k$(companyId, routineId, $completion);
965
+ });
966
+ };
967
+ protoOf(RoutinesApi).deleteRoutine$suspendBridge_z1q4bu_k$ = function (companyId, routineId, $completion) {
968
+ var tmp = new $deleteRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, $completion);
969
+ tmp.result_1 = Unit_instance;
970
+ tmp.exception_1 = null;
971
+ return tmp.doResume_5yljmg_k$();
972
+ };
973
+ protoOf(RoutinesApi).indexRoutines_p2k3c2_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) {
974
+ return indexRoutinesOperation_0(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
975
+ };
976
+ protoOf(RoutinesApi).indexRoutines$default_54pmob_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion, $super) {
977
+ year = year === VOID ? null : year;
978
+ routineType = routineType === VOID ? null : routineType;
979
+ fields = fields === VOID ? null : fields;
980
+ pageToken = pageToken === VOID ? null : pageToken;
981
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
982
+ count = count === VOID ? null : count;
983
+ return $super === VOID ? this.indexRoutines_p2k3c2_k$(companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutines_p2k3c2_k$.call(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
984
+ };
985
+ protoOf(RoutinesApi).indexRoutines = function (companyId, year, routineType, fields, pageToken, autoPaginate, count) {
986
+ var tmp = this;
987
+ return promisify(function ($completion) {
988
+ return tmp.indexRoutines$default_54pmob_k$(companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
989
+ });
990
+ };
991
+ protoOf(RoutinesApi).indexRoutines$suspendBridge_h8w1y5_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) {
992
+ var tmp = new $indexRoutines$suspendBridgeCOROUTINE$(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
993
+ tmp.result_1 = Unit_instance;
994
+ tmp.exception_1 = null;
995
+ return tmp.doResume_5yljmg_k$();
996
+ };
997
+ protoOf(RoutinesApi).indexRoutinesGroupDrafts_lfo0xu_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion) {
998
+ return indexRoutinesGroupDraftsOperation_0(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
999
+ };
1000
+ protoOf(RoutinesApi).indexRoutinesGroupDrafts$default_eunwop_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion, $super) {
1001
+ fields = fields === VOID ? null : fields;
1002
+ pageToken = pageToken === VOID ? null : pageToken;
1003
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1004
+ count = count === VOID ? null : count;
1005
+ return $super === VOID ? this.indexRoutinesGroupDrafts_lfo0xu_k$(companyId, groupId, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesGroupDrafts_lfo0xu_k$.call(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1006
+ };
1007
+ protoOf(RoutinesApi).indexRoutinesGroupDrafts = function (companyId, groupId, fields, pageToken, autoPaginate, count) {
1008
+ var tmp = this;
1009
+ return promisify(function ($completion) {
1010
+ return tmp.indexRoutinesGroupDrafts$default_eunwop_k$(companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1011
+ });
1012
+ };
1013
+ protoOf(RoutinesApi).indexRoutinesGroupDrafts$suspendBridge_rrwqqn_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion) {
1014
+ var tmp = new $indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1015
+ tmp.result_1 = Unit_instance;
1016
+ tmp.exception_1 = null;
1017
+ return tmp.doResume_5yljmg_k$();
1018
+ };
1019
+ protoOf(RoutinesApi).indexRoutinesGroups_72pau4_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion) {
1020
+ return indexRoutinesGroupsOperation_0(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1021
+ };
1022
+ protoOf(RoutinesApi).indexRoutinesGroups$default_a6d39e_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion, $super) {
1023
+ routineType = routineType === VOID ? null : routineType;
1024
+ fields = fields === VOID ? null : fields;
1025
+ pageToken = pageToken === VOID ? null : pageToken;
1026
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1027
+ count = count === VOID ? null : count;
1028
+ return $super === VOID ? this.indexRoutinesGroups_72pau4_k$(companyId, routineType, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesGroups_72pau4_k$.call(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1029
+ };
1030
+ protoOf(RoutinesApi).indexRoutinesGroups = function (companyId, routineType, fields, pageToken, autoPaginate, count) {
1031
+ var tmp = this;
1032
+ return promisify(function ($completion) {
1033
+ return tmp.indexRoutinesGroups$default_a6d39e_k$(companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1034
+ });
1035
+ };
1036
+ protoOf(RoutinesApi).indexRoutinesGroups$suspendBridge_l4e1s5_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion) {
1037
+ var tmp = new $indexRoutinesGroups$suspendBridgeCOROUTINE$(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1038
+ tmp.result_1 = Unit_instance;
1039
+ tmp.exception_1 = null;
1040
+ return tmp.doResume_5yljmg_k$();
1041
+ };
1042
+ protoOf(RoutinesApi).indexRoutinesTypes_et2euz_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
1043
+ return indexRoutinesTypesOperation_0(this, companyId, fields, pageToken, autoPaginate, count, $completion);
1044
+ };
1045
+ protoOf(RoutinesApi).indexRoutinesTypes$default_mirqo4_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion, $super) {
1046
+ fields = fields === VOID ? null : fields;
1047
+ pageToken = pageToken === VOID ? null : pageToken;
1048
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1049
+ count = count === VOID ? null : count;
1050
+ return $super === VOID ? this.indexRoutinesTypes_et2euz_k$(companyId, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesTypes_et2euz_k$.call(this, companyId, fields, pageToken, autoPaginate, count, $completion);
1051
+ };
1052
+ protoOf(RoutinesApi).indexRoutinesTypes = function (companyId, fields, pageToken, autoPaginate, count) {
1053
+ var tmp = this;
1054
+ return promisify(function ($completion) {
1055
+ return tmp.indexRoutinesTypes$default_mirqo4_k$(companyId, fields, pageToken, autoPaginate, count, $completion);
1056
+ });
1057
+ };
1058
+ protoOf(RoutinesApi).indexRoutinesTypes$suspendBridge_ps1o7w_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
1059
+ var tmp = new $indexRoutinesTypes$suspendBridgeCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
1060
+ tmp.result_1 = Unit_instance;
1061
+ tmp.exception_1 = null;
1062
+ return tmp.doResume_5yljmg_k$();
1063
+ };
1064
+ protoOf(RoutinesApi).indexRoutinesUser_xoprw1_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) {
1065
+ return indexRoutinesUserOperation_0(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
1066
+ };
1067
+ protoOf(RoutinesApi).indexRoutinesUser$default_hknbb4_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion, $super) {
1068
+ year = year === VOID ? null : year;
1069
+ routineType = routineType === VOID ? null : routineType;
1070
+ search = search === VOID ? null : search;
1071
+ companyIds = companyIds === VOID ? null : companyIds;
1072
+ fields = fields === VOID ? null : fields;
1073
+ pageToken = pageToken === VOID ? null : pageToken;
1074
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1075
+ count = count === VOID ? null : count;
1076
+ return $super === VOID ? this.indexRoutinesUser_xoprw1_k$(year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesUser_xoprw1_k$.call(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
1077
+ };
1078
+ protoOf(RoutinesApi).indexRoutinesUser = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count) {
1079
+ var tmp = this;
1080
+ return promisify(function ($completion) {
1081
+ return tmp.indexRoutinesUser$default_hknbb4_k$(year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
1082
+ });
1083
+ };
1084
+ protoOf(RoutinesApi).indexRoutinesUser$suspendBridge_xks8hc_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) {
1085
+ var tmp = new $indexRoutinesUser$suspendBridgeCOROUTINE$(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
1086
+ tmp.result_1 = Unit_instance;
1087
+ tmp.exception_1 = null;
1088
+ return tmp.doResume_5yljmg_k$();
1089
+ };
1090
+ protoOf(RoutinesApi).showRoutine_y8mcvp_k$ = function (companyId, routineId, fields, $completion) {
1091
+ return showRoutineOperation_0(this, companyId, routineId, fields, $completion);
1092
+ };
1093
+ protoOf(RoutinesApi).showRoutine$default_auj451_k$ = function (companyId, routineId, fields, $completion, $super) {
1094
+ fields = fields === VOID ? null : fields;
1095
+ return $super === VOID ? this.showRoutine_y8mcvp_k$(companyId, routineId, fields, $completion) : $super.showRoutine_y8mcvp_k$.call(this, companyId, routineId, fields, $completion);
1096
+ };
1097
+ protoOf(RoutinesApi).showRoutine = function (companyId, routineId, fields) {
1098
+ var tmp = this;
1099
+ return promisify(function ($completion) {
1100
+ return tmp.showRoutine$default_auj451_k$(companyId, routineId, fields, $completion);
1101
+ });
1102
+ };
1103
+ protoOf(RoutinesApi).showRoutine$suspendBridge_f7bzqk_k$ = function (companyId, routineId, fields, $completion) {
1104
+ var tmp = new $showRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, fields, $completion);
1105
+ tmp.result_1 = Unit_instance;
1106
+ tmp.exception_1 = null;
1107
+ return tmp.doResume_5yljmg_k$();
1108
+ };
1109
+ protoOf(RoutinesApi).updateRoutine_vvuaqp_k$ = function (companyId, routineId, updateRoutineCommand, $completion) {
1110
+ return updateRoutineOperation_0(this, companyId, routineId, updateRoutineCommand, $completion);
1111
+ };
1112
+ protoOf(RoutinesApi).updateRoutine = function (companyId, routineId, updateRoutineCommand) {
1113
+ var tmp = this;
1114
+ return promisify(function ($completion) {
1115
+ return tmp.updateRoutine_vvuaqp_k$(companyId, routineId, updateRoutineCommand, $completion);
1116
+ });
1117
+ };
1118
+ protoOf(RoutinesApi).updateRoutine$suspendBridge_re0stc_k$ = function (companyId, routineId, updateRoutineCommand, $completion) {
1119
+ var tmp = new $updateRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, updateRoutineCommand, $completion);
1120
+ tmp.result_1 = Unit_instance;
1121
+ tmp.exception_1 = null;
1122
+ return tmp.doResume_5yljmg_k$();
1123
+ };
1124
+ function RoutinesApi() {
1125
+ }
1126
+ function createHmsRoutineSettingsOperation(client, companyId, createHmsSettingsCommand) {
1127
+ return promisify(function ($completion) {
1128
+ return createHmsRoutineSettingsOperation_0(client, companyId, createHmsSettingsCommand, $completion);
1129
+ });
1130
+ }
1131
+ function createHmsRoutineSettingsOperation_0(client, companyId, createHmsSettingsCommand, $completion) {
1132
+ var tmp = new $createHmsRoutineSettingsOperationCOROUTINE$(client, companyId, createHmsSettingsCommand, $completion);
1133
+ tmp.result_1 = Unit_instance;
1134
+ tmp.exception_1 = null;
1135
+ return tmp.doResume_5yljmg_k$();
1136
+ }
1137
+ function $createHmsRoutineSettingsOperationCOROUTINE$(client, companyId, createHmsSettingsCommand, resultContinuation) {
1138
+ CoroutineImpl.call(this, resultContinuation);
1139
+ this.client_1 = client;
1140
+ this.companyId_1 = companyId;
1141
+ this.createHmsSettingsCommand_1 = createHmsSettingsCommand;
1142
+ }
1143
+ protoOf($createHmsRoutineSettingsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1144
+ var suspendResult = this.result_1;
1145
+ $sm: do
1146
+ try {
1147
+ var tmp = this.state_1;
1148
+ switch (tmp) {
1149
+ case 0:
1150
+ this.exceptionState_1 = 2;
1151
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1152
+ var localVariableBody = this.createHmsSettingsCommand_1;
1153
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1408
1154
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1409
- var tmp4_method = RequestMethod_GET_getInstance();
1410
- var tmp5_path = replace('/companies/{companyId}/routines/types', '{companyId}', this.companyId_1.toString());
1411
- var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
1155
+ var tmp0_method = RequestMethod_POST_getInstance();
1156
+ var tmp1_path = replace('/companies/{companyId}/hms/initialize', '{companyId}', this.companyId_1.toString());
1157
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1412
1158
  this.state_1 = 1;
1413
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1159
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1414
1160
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1415
1161
  return suspendResult;
1416
1162
  }
@@ -1418,11 +1164,11 @@ protoOf($indexRoutinesTypesCOROUTINE$).doResume_5yljmg_k$ = function () {
1418
1164
  continue $sm;
1419
1165
  case 1:
1420
1166
  var this_0 = suspendResult;
1421
- var tmp_0 = getKClass(PagedListRoutineType);
1422
- var tmp_1 = null instanceof PagedListRoutineType;
1167
+ var tmp_0 = getKClass(HmsSettings);
1168
+ var tmp_1 = null instanceof HmsSettings;
1423
1169
  var tmp_2;
1424
1170
  try {
1425
- tmp_2 = createKType(getKClass(PagedListRoutineType), arrayOf([]), false);
1171
+ tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
1426
1172
  } catch ($p) {
1427
1173
  var tmp_3;
1428
1174
  if ($p instanceof Error) {
@@ -1449,76 +1195,28 @@ protoOf($indexRoutinesTypesCOROUTINE$).doResume_5yljmg_k$ = function () {
1449
1195
  }
1450
1196
  while (true);
1451
1197
  };
1452
- function $indexRoutinesTypes$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
1198
+ function createRoutineOperation(client, companyId, createRoutineCommand, year, routineType) {
1199
+ return promisify(function ($completion) {
1200
+ return createRoutineOperation_0(client, companyId, createRoutineCommand, year, routineType, $completion);
1201
+ });
1202
+ }
1203
+ function createRoutineOperation_0(client, companyId, createRoutineCommand, year, routineType, $completion) {
1204
+ year = year === VOID ? null : year;
1205
+ routineType = routineType === VOID ? null : routineType;
1206
+ var tmp = new $createRoutineOperationCOROUTINE$(client, companyId, createRoutineCommand, year, routineType, $completion);
1207
+ tmp.result_1 = Unit_instance;
1208
+ tmp.exception_1 = null;
1209
+ return tmp.doResume_5yljmg_k$();
1210
+ }
1211
+ function $createRoutineOperationCOROUTINE$(client, companyId, createRoutineCommand, year, routineType, resultContinuation) {
1453
1212
  CoroutineImpl.call(this, resultContinuation);
1454
- this._this__u8e3s4__1 = _this__u8e3s4;
1213
+ this.client_1 = client;
1455
1214
  this.companyId_1 = companyId;
1456
- this.fields_1 = fields;
1457
- this.pageToken_1 = pageToken;
1458
- this.autoPaginate_1 = autoPaginate;
1459
- this.count_1 = count;
1215
+ this.createRoutineCommand_1 = createRoutineCommand;
1216
+ this.year_1 = year;
1217
+ this.routineType_1 = routineType;
1460
1218
  }
1461
- protoOf($indexRoutinesTypes$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1462
- var suspendResult = this.result_1;
1463
- $sm: do
1464
- try {
1465
- var tmp = this.state_1;
1466
- switch (tmp) {
1467
- case 0:
1468
- this.exceptionState_1 = 4;
1469
- if (this._this__u8e3s4__1.indexRoutinesTypes === protoOf(RoutinesApi).indexRoutinesTypes) {
1470
- this.state_1 = 2;
1471
- suspendResult = this._this__u8e3s4__1.indexRoutinesTypes$default_mirqo4_k$(this.companyId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
1472
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1473
- return suspendResult;
1474
- }
1475
- continue $sm;
1476
- } else {
1477
- this.state_1 = 1;
1478
- suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesTypes(this.companyId_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
1479
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1480
- return suspendResult;
1481
- }
1482
- continue $sm;
1483
- }
1484
-
1485
- case 1:
1486
- this.WHEN_RESULT0__1 = suspendResult;
1487
- this.state_1 = 3;
1488
- continue $sm;
1489
- case 2:
1490
- this.WHEN_RESULT0__1 = suspendResult;
1491
- this.state_1 = 3;
1492
- continue $sm;
1493
- case 3:
1494
- return this.WHEN_RESULT0__1;
1495
- case 4:
1496
- throw this.exception_1;
1497
- }
1498
- } catch ($p) {
1499
- var e = $p;
1500
- if (this.exceptionState_1 === 4) {
1501
- throw e;
1502
- } else {
1503
- this.state_1 = this.exceptionState_1;
1504
- this.exception_1 = e;
1505
- }
1506
- }
1507
- while (true);
1508
- };
1509
- function $indexRoutinesUserCOROUTINE$(_this__u8e3s4, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, resultContinuation) {
1510
- CoroutineImpl.call(this, resultContinuation);
1511
- this._this__u8e3s4__1 = _this__u8e3s4;
1512
- this.year_1 = year;
1513
- this.routineType_1 = routineType;
1514
- this.search_1 = search;
1515
- this.companyIds_1 = companyIds;
1516
- this.fields_1 = fields;
1517
- this.pageToken_1 = pageToken;
1518
- this.autoPaginate_1 = autoPaginate;
1519
- this.count_1 = count;
1520
- }
1521
- protoOf($indexRoutinesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1219
+ protoOf($createRoutineOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1522
1220
  var suspendResult = this.result_1;
1523
1221
  $sm: do
1524
1222
  try {
@@ -1527,7 +1225,7 @@ protoOf($indexRoutinesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1527
1225
  case 0:
1528
1226
  this.exceptionState_1 = 2;
1529
1227
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1530
- var localVariableBody = EmptyContent_getInstance();
1228
+ var localVariableBody = this.createRoutineCommand_1;
1531
1229
  var localVariableQuery = LinkedHashMap_init_$Create$();
1532
1230
  if (this.year_1 == null)
1533
1231
  null;
@@ -1544,57 +1242,12 @@ protoOf($indexRoutinesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1544
1242
  localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1545
1243
  }
1546
1244
 
1547
- if (this.search_1 == null)
1548
- null;
1549
- else {
1550
- var value_1 = listOf_0(this.search_1);
1551
- localVariableQuery.put_4fpzoq_k$('search', value_1);
1552
- }
1553
-
1554
- var tmp3_safe_receiver = this.companyIds_1;
1555
- if (tmp3_safe_receiver == null)
1556
- null;
1557
- else {
1558
- var tmp2_0 = 'companyIds';
1559
- var value_2 = toMultiValue(tmp3_safe_receiver, 'multi');
1560
- localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
1561
- }
1562
-
1563
- if (this.fields_1 == null)
1564
- null;
1565
- else {
1566
- var value_3 = listOf_0(this.fields_1);
1567
- localVariableQuery.put_4fpzoq_k$('fields', value_3);
1568
- }
1569
-
1570
- if (this.pageToken_1 == null)
1571
- null;
1572
- else {
1573
- var tmp2_1 = 'pageToken';
1574
- var value_4 = listOf_0(this.pageToken_1);
1575
- localVariableQuery.put_4fpzoq_k$(tmp2_1, value_4);
1576
- }
1577
-
1578
- if (this.autoPaginate_1 == null)
1579
- null;
1580
- else {
1581
- var tmp2_2 = 'autoPaginate';
1582
- var value_5 = listOf_0('' + this.autoPaginate_1);
1583
- localVariableQuery.put_4fpzoq_k$(tmp2_2, value_5);
1584
- }
1585
-
1586
- if (this.count_1 == null)
1587
- null;
1588
- else {
1589
- var value_6 = listOf_0('' + this.count_1);
1590
- localVariableQuery.put_4fpzoq_k$('count', value_6);
1591
- }
1592
-
1593
1245
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1594
- var tmp8_method = RequestMethod_GET_getInstance();
1595
- var localVariableConfig = new RequestConfig(tmp8_method, '/companies/routines', localVariableHeaders, VOID, localVariableQuery, true);
1246
+ var tmp2_method = RequestMethod_POST_getInstance();
1247
+ var tmp3_path = replace('/companies/{companyId}/routines', '{companyId}', this.companyId_1.toString());
1248
+ var localVariableConfig = new RequestConfig(tmp2_method, tmp3_path, localVariableHeaders, VOID, localVariableQuery, true);
1596
1249
  this.state_1 = 1;
1597
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1250
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1598
1251
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1599
1252
  return suspendResult;
1600
1253
  }
@@ -1602,11 +1255,11 @@ protoOf($indexRoutinesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1602
1255
  continue $sm;
1603
1256
  case 1:
1604
1257
  var this_0 = suspendResult;
1605
- var tmp_0 = getKClass(PagedListRoutine);
1606
- var tmp_1 = null instanceof PagedListRoutine;
1258
+ var tmp_0 = getKClass(Routine);
1259
+ var tmp_1 = null instanceof Routine;
1607
1260
  var tmp_2;
1608
1261
  try {
1609
- tmp_2 = createKType(getKClass(PagedListRoutine), arrayOf([]), false);
1262
+ tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
1610
1263
  } catch ($p) {
1611
1264
  var tmp_3;
1612
1265
  if ($p instanceof Error) {
@@ -1633,58 +1286,70 @@ protoOf($indexRoutinesUserCOROUTINE$).doResume_5yljmg_k$ = function () {
1633
1286
  }
1634
1287
  while (true);
1635
1288
  };
1636
- function $indexRoutinesUser$suspendBridgeCOROUTINE$(_this__u8e3s4, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, resultContinuation) {
1289
+ function deleteRoutineOperation(client, companyId, routineId) {
1290
+ return promisify(function ($completion) {
1291
+ return deleteRoutineOperation_0(client, companyId, routineId, $completion);
1292
+ });
1293
+ }
1294
+ function deleteRoutineOperation_0(client, companyId, routineId, $completion) {
1295
+ var tmp = new $deleteRoutineOperationCOROUTINE$(client, companyId, routineId, $completion);
1296
+ tmp.result_1 = Unit_instance;
1297
+ tmp.exception_1 = null;
1298
+ return tmp.doResume_5yljmg_k$();
1299
+ }
1300
+ function $deleteRoutineOperationCOROUTINE$(client, companyId, routineId, resultContinuation) {
1637
1301
  CoroutineImpl.call(this, resultContinuation);
1638
- this._this__u8e3s4__1 = _this__u8e3s4;
1639
- this.year_1 = year;
1640
- this.routineType_1 = routineType;
1641
- this.search_1 = search;
1642
- this.companyIds_1 = companyIds;
1643
- this.fields_1 = fields;
1644
- this.pageToken_1 = pageToken;
1645
- this.autoPaginate_1 = autoPaginate;
1646
- this.count_1 = count;
1302
+ this.client_1 = client;
1303
+ this.companyId_1 = companyId;
1304
+ this.routineId_1 = routineId;
1647
1305
  }
1648
- protoOf($indexRoutinesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1306
+ protoOf($deleteRoutineOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1649
1307
  var suspendResult = this.result_1;
1650
1308
  $sm: do
1651
1309
  try {
1652
1310
  var tmp = this.state_1;
1653
1311
  switch (tmp) {
1654
1312
  case 0:
1655
- this.exceptionState_1 = 4;
1656
- if (this._this__u8e3s4__1.indexRoutinesUser === protoOf(RoutinesApi).indexRoutinesUser) {
1657
- this.state_1 = 2;
1658
- suspendResult = this._this__u8e3s4__1.indexRoutinesUser$default_hknbb4_k$(this.year_1, this.routineType_1, this.search_1, this.companyIds_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1, this);
1659
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1660
- return suspendResult;
1661
- }
1662
- continue $sm;
1663
- } else {
1664
- this.state_1 = 1;
1665
- suspendResult = await_0(this._this__u8e3s4__1.indexRoutinesUser(this.year_1, this.routineType_1, this.search_1, this.companyIds_1, this.fields_1, this.pageToken_1, this.autoPaginate_1, this.count_1), this);
1666
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1667
- return suspendResult;
1668
- }
1669
- continue $sm;
1313
+ this.exceptionState_1 = 2;
1314
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1315
+ var localVariableBody = EmptyContent_getInstance();
1316
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1317
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1318
+ var tmp0_method = RequestMethod_DELETE_getInstance();
1319
+ var tmp1_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
1320
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1321
+ this.state_1 = 1;
1322
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1323
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1324
+ return suspendResult;
1670
1325
  }
1671
1326
 
1672
- case 1:
1673
- this.WHEN_RESULT0__1 = suspendResult;
1674
- this.state_1 = 3;
1675
1327
  continue $sm;
1328
+ case 1:
1329
+ var this_0 = suspendResult;
1330
+ var tmp_0 = getKClass(Unit);
1331
+ var tmp_1 = null instanceof Unit;
1332
+ var tmp_2;
1333
+ try {
1334
+ tmp_2 = createKType(getKClass(Unit), arrayOf([]), false);
1335
+ } catch ($p) {
1336
+ var tmp_3;
1337
+ if ($p instanceof Error) {
1338
+ var _unused_var__etf5q3 = $p;
1339
+ tmp_3 = null;
1340
+ } else {
1341
+ throw $p;
1342
+ }
1343
+ tmp_2 = tmp_3;
1344
+ }
1345
+
1346
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1676
1347
  case 2:
1677
- this.WHEN_RESULT0__1 = suspendResult;
1678
- this.state_1 = 3;
1679
- continue $sm;
1680
- case 3:
1681
- return this.WHEN_RESULT0__1;
1682
- case 4:
1683
1348
  throw this.exception_1;
1684
1349
  }
1685
- } catch ($p) {
1686
- var e = $p;
1687
- if (this.exceptionState_1 === 4) {
1350
+ } catch ($p_0) {
1351
+ var e = $p_0;
1352
+ if (this.exceptionState_1 === 2) {
1688
1353
  throw e;
1689
1354
  } else {
1690
1355
  this.state_1 = this.exceptionState_1;
@@ -1693,14 +1358,32 @@ protoOf($indexRoutinesUser$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = functio
1693
1358
  }
1694
1359
  while (true);
1695
1360
  };
1696
- function $showRoutineCOROUTINE$(_this__u8e3s4, companyId, routineId, fields, resultContinuation) {
1361
+ function indexRoutinesGroupDraftsOperation(client, companyId, groupId, fields, pageToken, autoPaginate, count) {
1362
+ return promisify(function ($completion) {
1363
+ return indexRoutinesGroupDraftsOperation_0(client, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1364
+ });
1365
+ }
1366
+ function indexRoutinesGroupDraftsOperation_0(client, companyId, groupId, fields, pageToken, autoPaginate, count, $completion) {
1367
+ fields = fields === VOID ? null : fields;
1368
+ pageToken = pageToken === VOID ? null : pageToken;
1369
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1370
+ count = count === VOID ? null : count;
1371
+ var tmp = new $indexRoutinesGroupDraftsOperationCOROUTINE$(client, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1372
+ tmp.result_1 = Unit_instance;
1373
+ tmp.exception_1 = null;
1374
+ return tmp.doResume_5yljmg_k$();
1375
+ }
1376
+ function $indexRoutinesGroupDraftsOperationCOROUTINE$(client, companyId, groupId, fields, pageToken, autoPaginate, count, resultContinuation) {
1697
1377
  CoroutineImpl.call(this, resultContinuation);
1698
- this._this__u8e3s4__1 = _this__u8e3s4;
1378
+ this.client_1 = client;
1699
1379
  this.companyId_1 = companyId;
1700
- this.routineId_1 = routineId;
1380
+ this.groupId_1 = groupId;
1701
1381
  this.fields_1 = fields;
1382
+ this.pageToken_1 = pageToken;
1383
+ this.autoPaginate_1 = autoPaginate;
1384
+ this.count_1 = count;
1702
1385
  }
1703
- protoOf($showRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1386
+ protoOf($indexRoutinesGroupDraftsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1704
1387
  var suspendResult = this.result_1;
1705
1388
  $sm: do
1706
1389
  try {
@@ -1718,12 +1401,35 @@ protoOf($showRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1718
1401
  localVariableQuery.put_4fpzoq_k$('fields', value);
1719
1402
  }
1720
1403
 
1404
+ if (this.pageToken_1 == null)
1405
+ null;
1406
+ else {
1407
+ var tmp2 = 'pageToken';
1408
+ var value_0 = listOf_0(this.pageToken_1);
1409
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1410
+ }
1411
+
1412
+ if (this.autoPaginate_1 == null)
1413
+ null;
1414
+ else {
1415
+ var tmp2_0 = 'autoPaginate';
1416
+ var value_1 = listOf_0('' + this.autoPaginate_1);
1417
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1418
+ }
1419
+
1420
+ if (this.count_1 == null)
1421
+ null;
1422
+ else {
1423
+ var value_2 = listOf_0('' + this.count_1);
1424
+ localVariableQuery.put_4fpzoq_k$('count', value_2);
1425
+ }
1426
+
1721
1427
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1722
- var tmp1_method = RequestMethod_GET_getInstance();
1723
- var tmp2_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
1724
- var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
1428
+ var tmp4_method = RequestMethod_GET_getInstance();
1429
+ var tmp5_path = replace(replace('/companies/{companyId}/routines/groups/{groupId}/templates', '{companyId}', this.companyId_1.toString()), '{groupId}', this.groupId_1.toString());
1430
+ var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
1725
1431
  this.state_1 = 1;
1726
- suspendResult = this._this__u8e3s4__1.request$suspendBridge_gbq0ws_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1432
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1727
1433
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1728
1434
  return suspendResult;
1729
1435
  }
@@ -1731,11 +1437,11 @@ protoOf($showRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1731
1437
  continue $sm;
1732
1438
  case 1:
1733
1439
  var this_0 = suspendResult;
1734
- var tmp_0 = getKClass(Routine);
1735
- var tmp_1 = null instanceof Routine;
1440
+ var tmp_0 = getKClass(PagedListRoutineDraft);
1441
+ var tmp_1 = null instanceof PagedListRoutineDraft;
1736
1442
  var tmp_2;
1737
1443
  try {
1738
- tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
1444
+ tmp_2 = createKType(getKClass(PagedListRoutineDraft), arrayOf([]), false);
1739
1445
  } catch ($p) {
1740
1446
  var tmp_3;
1741
1447
  if ($p instanceof Error) {
@@ -1762,53 +1468,117 @@ protoOf($showRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1762
1468
  }
1763
1469
  while (true);
1764
1470
  };
1765
- function $showRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, fields, resultContinuation) {
1471
+ function indexRoutinesGroupsOperation(client, companyId, routineType, fields, pageToken, autoPaginate, count) {
1472
+ return promisify(function ($completion) {
1473
+ return indexRoutinesGroupsOperation_0(client, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1474
+ });
1475
+ }
1476
+ function indexRoutinesGroupsOperation_0(client, companyId, routineType, fields, pageToken, autoPaginate, count, $completion) {
1477
+ routineType = routineType === VOID ? null : routineType;
1478
+ fields = fields === VOID ? null : fields;
1479
+ pageToken = pageToken === VOID ? null : pageToken;
1480
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1481
+ count = count === VOID ? null : count;
1482
+ var tmp = new $indexRoutinesGroupsOperationCOROUTINE$(client, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1483
+ tmp.result_1 = Unit_instance;
1484
+ tmp.exception_1 = null;
1485
+ return tmp.doResume_5yljmg_k$();
1486
+ }
1487
+ function $indexRoutinesGroupsOperationCOROUTINE$(client, companyId, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
1766
1488
  CoroutineImpl.call(this, resultContinuation);
1767
- this._this__u8e3s4__1 = _this__u8e3s4;
1489
+ this.client_1 = client;
1768
1490
  this.companyId_1 = companyId;
1769
- this.routineId_1 = routineId;
1491
+ this.routineType_1 = routineType;
1770
1492
  this.fields_1 = fields;
1771
- }
1772
- protoOf($showRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1493
+ this.pageToken_1 = pageToken;
1494
+ this.autoPaginate_1 = autoPaginate;
1495
+ this.count_1 = count;
1496
+ }
1497
+ protoOf($indexRoutinesGroupsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1773
1498
  var suspendResult = this.result_1;
1774
1499
  $sm: do
1775
1500
  try {
1776
1501
  var tmp = this.state_1;
1777
1502
  switch (tmp) {
1778
1503
  case 0:
1779
- this.exceptionState_1 = 4;
1780
- if (this._this__u8e3s4__1.showRoutine === protoOf(RoutinesApi).showRoutine) {
1781
- this.state_1 = 2;
1782
- suspendResult = this._this__u8e3s4__1.showRoutine$default_auj451_k$(this.companyId_1, this.routineId_1, this.fields_1, this);
1783
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1784
- return suspendResult;
1785
- }
1786
- continue $sm;
1787
- } else {
1788
- this.state_1 = 1;
1789
- suspendResult = await_0(this._this__u8e3s4__1.showRoutine(this.companyId_1, this.routineId_1, this.fields_1), this);
1790
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1791
- return suspendResult;
1792
- }
1793
- continue $sm;
1504
+ this.exceptionState_1 = 2;
1505
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1506
+ var localVariableBody = EmptyContent_getInstance();
1507
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1508
+ if (this.routineType_1 == null)
1509
+ null;
1510
+ else {
1511
+ var tmp2 = 'routineType';
1512
+ var value = listOf_0(this.routineType_1.value);
1513
+ localVariableQuery.put_4fpzoq_k$(tmp2, value);
1514
+ }
1515
+
1516
+ if (this.fields_1 == null)
1517
+ null;
1518
+ else {
1519
+ var value_0 = listOf_0(this.fields_1);
1520
+ localVariableQuery.put_4fpzoq_k$('fields', value_0);
1521
+ }
1522
+
1523
+ if (this.pageToken_1 == null)
1524
+ null;
1525
+ else {
1526
+ var tmp2_0 = 'pageToken';
1527
+ var value_1 = listOf_0(this.pageToken_1);
1528
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1529
+ }
1530
+
1531
+ if (this.autoPaginate_1 == null)
1532
+ null;
1533
+ else {
1534
+ var tmp2_1 = 'autoPaginate';
1535
+ var value_2 = listOf_0('' + this.autoPaginate_1);
1536
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_2);
1537
+ }
1538
+
1539
+ if (this.count_1 == null)
1540
+ null;
1541
+ else {
1542
+ var value_3 = listOf_0('' + this.count_1);
1543
+ localVariableQuery.put_4fpzoq_k$('count', value_3);
1544
+ }
1545
+
1546
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1547
+ var tmp5_method = RequestMethod_GET_getInstance();
1548
+ var tmp6_path = replace('/companies/{companyId}/routines/groups', '{companyId}', this.companyId_1.toString());
1549
+ var localVariableConfig = new RequestConfig(tmp5_method, tmp6_path, localVariableHeaders, VOID, localVariableQuery, true);
1550
+ this.state_1 = 1;
1551
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1552
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1553
+ return suspendResult;
1794
1554
  }
1795
1555
 
1796
- case 1:
1797
- this.WHEN_RESULT0__1 = suspendResult;
1798
- this.state_1 = 3;
1799
1556
  continue $sm;
1557
+ case 1:
1558
+ var this_0 = suspendResult;
1559
+ var tmp_0 = getKClass(PagedListRoutineGroup);
1560
+ var tmp_1 = null instanceof PagedListRoutineGroup;
1561
+ var tmp_2;
1562
+ try {
1563
+ tmp_2 = createKType(getKClass(PagedListRoutineGroup), arrayOf([]), false);
1564
+ } catch ($p) {
1565
+ var tmp_3;
1566
+ if ($p instanceof Error) {
1567
+ var _unused_var__etf5q3 = $p;
1568
+ tmp_3 = null;
1569
+ } else {
1570
+ throw $p;
1571
+ }
1572
+ tmp_2 = tmp_3;
1573
+ }
1574
+
1575
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1800
1576
  case 2:
1801
- this.WHEN_RESULT0__1 = suspendResult;
1802
- this.state_1 = 3;
1803
- continue $sm;
1804
- case 3:
1805
- return this.WHEN_RESULT0__1;
1806
- case 4:
1807
1577
  throw this.exception_1;
1808
1578
  }
1809
- } catch ($p) {
1810
- var e = $p;
1811
- if (this.exceptionState_1 === 4) {
1579
+ } catch ($p_0) {
1580
+ var e = $p_0;
1581
+ if (this.exceptionState_1 === 2) {
1812
1582
  throw e;
1813
1583
  } else {
1814
1584
  this.state_1 = this.exceptionState_1;
@@ -1817,14 +1587,35 @@ protoOf($showRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1817
1587
  }
1818
1588
  while (true);
1819
1589
  };
1820
- function $updateRoutineCOROUTINE$(_this__u8e3s4, companyId, routineId, updateRoutineCommand, resultContinuation) {
1590
+ function indexRoutinesOperation(client, companyId, year, routineType, fields, pageToken, autoPaginate, count) {
1591
+ return promisify(function ($completion) {
1592
+ return indexRoutinesOperation_0(client, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
1593
+ });
1594
+ }
1595
+ function indexRoutinesOperation_0(client, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) {
1596
+ year = year === VOID ? null : year;
1597
+ routineType = routineType === VOID ? null : routineType;
1598
+ fields = fields === VOID ? null : fields;
1599
+ pageToken = pageToken === VOID ? null : pageToken;
1600
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1601
+ count = count === VOID ? null : count;
1602
+ var tmp = new $indexRoutinesOperationCOROUTINE$(client, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
1603
+ tmp.result_1 = Unit_instance;
1604
+ tmp.exception_1 = null;
1605
+ return tmp.doResume_5yljmg_k$();
1606
+ }
1607
+ function $indexRoutinesOperationCOROUTINE$(client, companyId, year, routineType, fields, pageToken, autoPaginate, count, resultContinuation) {
1821
1608
  CoroutineImpl.call(this, resultContinuation);
1822
- this._this__u8e3s4__1 = _this__u8e3s4;
1609
+ this.client_1 = client;
1823
1610
  this.companyId_1 = companyId;
1824
- this.routineId_1 = routineId;
1825
- this.updateRoutineCommand_1 = updateRoutineCommand;
1611
+ this.year_1 = year;
1612
+ this.routineType_1 = routineType;
1613
+ this.fields_1 = fields;
1614
+ this.pageToken_1 = pageToken;
1615
+ this.autoPaginate_1 = autoPaginate;
1616
+ this.count_1 = count;
1826
1617
  }
1827
- protoOf($updateRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1618
+ protoOf($indexRoutinesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1828
1619
  var suspendResult = this.result_1;
1829
1620
  $sm: do
1830
1621
  try {
@@ -1833,14 +1624,59 @@ protoOf($updateRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1833
1624
  case 0:
1834
1625
  this.exceptionState_1 = 2;
1835
1626
  var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1836
- var localVariableBody = this.updateRoutineCommand_1;
1627
+ var localVariableBody = EmptyContent_getInstance();
1837
1628
  var localVariableQuery = LinkedHashMap_init_$Create$();
1629
+ if (this.year_1 == null)
1630
+ null;
1631
+ else {
1632
+ var value = listOf_0('' + this.year_1);
1633
+ localVariableQuery.put_4fpzoq_k$('year', value);
1634
+ }
1635
+
1636
+ if (this.routineType_1 == null)
1637
+ null;
1638
+ else {
1639
+ var tmp2 = 'routineType';
1640
+ var value_0 = listOf_0(this.routineType_1.value);
1641
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1642
+ }
1643
+
1644
+ if (this.fields_1 == null)
1645
+ null;
1646
+ else {
1647
+ var value_1 = listOf_0(this.fields_1);
1648
+ localVariableQuery.put_4fpzoq_k$('fields', value_1);
1649
+ }
1650
+
1651
+ if (this.pageToken_1 == null)
1652
+ null;
1653
+ else {
1654
+ var tmp2_0 = 'pageToken';
1655
+ var value_2 = listOf_0(this.pageToken_1);
1656
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
1657
+ }
1658
+
1659
+ if (this.autoPaginate_1 == null)
1660
+ null;
1661
+ else {
1662
+ var tmp2_1 = 'autoPaginate';
1663
+ var value_3 = listOf_0('' + this.autoPaginate_1);
1664
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_3);
1665
+ }
1666
+
1667
+ if (this.count_1 == null)
1668
+ null;
1669
+ else {
1670
+ var value_4 = listOf_0('' + this.count_1);
1671
+ localVariableQuery.put_4fpzoq_k$('count', value_4);
1672
+ }
1673
+
1838
1674
  var localVariableHeaders = LinkedHashMap_init_$Create$();
1839
- var tmp0_method = RequestMethod_PUT_getInstance();
1840
- var tmp1_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
1841
- var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
1675
+ var tmp6_method = RequestMethod_GET_getInstance();
1676
+ var tmp7_path = replace('/companies/{companyId}/routines', '{companyId}', this.companyId_1.toString());
1677
+ var localVariableConfig = new RequestConfig(tmp6_method, tmp7_path, localVariableHeaders, VOID, localVariableQuery, true);
1842
1678
  this.state_1 = 1;
1843
- suspendResult = this._this__u8e3s4__1.jsonRequest$suspendBridge_ao9kpg_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1679
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1844
1680
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1845
1681
  return suspendResult;
1846
1682
  }
@@ -1848,11 +1684,11 @@ protoOf($updateRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1848
1684
  continue $sm;
1849
1685
  case 1:
1850
1686
  var this_0 = suspendResult;
1851
- var tmp_0 = getKClass(Routine);
1852
- var tmp_1 = null instanceof Routine;
1687
+ var tmp_0 = getKClass(PagedListRoutine);
1688
+ var tmp_1 = null instanceof PagedListRoutine;
1853
1689
  var tmp_2;
1854
1690
  try {
1855
- tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
1691
+ tmp_2 = createKType(getKClass(PagedListRoutine), arrayOf([]), false);
1856
1692
  } catch ($p) {
1857
1693
  var tmp_3;
1858
1694
  if ($p instanceof Error) {
@@ -1879,276 +1715,567 @@ protoOf($updateRoutineCOROUTINE$).doResume_5yljmg_k$ = function () {
1879
1715
  }
1880
1716
  while (true);
1881
1717
  };
1882
- function $updateRoutine$suspendBridgeCOROUTINE$(_this__u8e3s4, companyId, routineId, updateRoutineCommand, resultContinuation) {
1718
+ function indexRoutinesTypesOperation(client, companyId, fields, pageToken, autoPaginate, count) {
1719
+ return promisify(function ($completion) {
1720
+ return indexRoutinesTypesOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion);
1721
+ });
1722
+ }
1723
+ function indexRoutinesTypesOperation_0(client, companyId, fields, pageToken, autoPaginate, count, $completion) {
1724
+ fields = fields === VOID ? null : fields;
1725
+ pageToken = pageToken === VOID ? null : pageToken;
1726
+ autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1727
+ count = count === VOID ? null : count;
1728
+ var tmp = new $indexRoutinesTypesOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, $completion);
1729
+ tmp.result_1 = Unit_instance;
1730
+ tmp.exception_1 = null;
1731
+ return tmp.doResume_5yljmg_k$();
1732
+ }
1733
+ function $indexRoutinesTypesOperationCOROUTINE$(client, companyId, fields, pageToken, autoPaginate, count, resultContinuation) {
1883
1734
  CoroutineImpl.call(this, resultContinuation);
1884
- this._this__u8e3s4__1 = _this__u8e3s4;
1735
+ this.client_1 = client;
1885
1736
  this.companyId_1 = companyId;
1886
- this.routineId_1 = routineId;
1887
- this.updateRoutineCommand_1 = updateRoutineCommand;
1737
+ this.fields_1 = fields;
1738
+ this.pageToken_1 = pageToken;
1739
+ this.autoPaginate_1 = autoPaginate;
1740
+ this.count_1 = count;
1888
1741
  }
1889
- protoOf($updateRoutine$suspendBridgeCOROUTINE$).doResume_5yljmg_k$ = function () {
1742
+ protoOf($indexRoutinesTypesOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1890
1743
  var suspendResult = this.result_1;
1891
1744
  $sm: do
1892
1745
  try {
1893
1746
  var tmp = this.state_1;
1894
1747
  switch (tmp) {
1895
1748
  case 0:
1896
- this.exceptionState_1 = 4;
1897
- if (this._this__u8e3s4__1.updateRoutine === protoOf(RoutinesApi).updateRoutine) {
1898
- this.state_1 = 2;
1899
- suspendResult = this._this__u8e3s4__1.updateRoutine_vvuaqp_k$(this.companyId_1, this.routineId_1, this.updateRoutineCommand_1, this);
1900
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1901
- return suspendResult;
1902
- }
1903
- continue $sm;
1904
- } else {
1905
- this.state_1 = 1;
1906
- suspendResult = await_0(this._this__u8e3s4__1.updateRoutine(this.companyId_1, this.routineId_1, this.updateRoutineCommand_1), this);
1907
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1908
- return suspendResult;
1909
- }
1910
- continue $sm;
1749
+ this.exceptionState_1 = 2;
1750
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1751
+ var localVariableBody = EmptyContent_getInstance();
1752
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1753
+ if (this.fields_1 == null)
1754
+ null;
1755
+ else {
1756
+ var value = listOf_0(this.fields_1);
1757
+ localVariableQuery.put_4fpzoq_k$('fields', value);
1911
1758
  }
1912
1759
 
1913
- case 1:
1914
- this.WHEN_RESULT0__1 = suspendResult;
1915
- this.state_1 = 3;
1916
- continue $sm;
1917
- case 2:
1918
- this.WHEN_RESULT0__1 = suspendResult;
1919
- this.state_1 = 3;
1920
- continue $sm;
1921
- case 3:
1922
- return this.WHEN_RESULT0__1;
1923
- case 4:
1924
- throw this.exception_1;
1925
- }
1926
- } catch ($p) {
1927
- var e = $p;
1928
- if (this.exceptionState_1 === 4) {
1929
- throw e;
1930
- } else {
1931
- this.state_1 = this.exceptionState_1;
1932
- this.exception_1 = e;
1933
- }
1934
- }
1935
- while (true);
1936
- };
1937
- protoOf(RoutinesApi).createRoutine_8elniz_k$ = function (companyId, createRoutineCommand, year, routineType, $completion) {
1938
- var tmp = new $createRoutineCOROUTINE$(this, companyId, createRoutineCommand, year, routineType, $completion);
1939
- tmp.result_1 = Unit_instance;
1940
- tmp.exception_1 = null;
1941
- return tmp.doResume_5yljmg_k$();
1942
- };
1943
- protoOf(RoutinesApi).createRoutine$default_aizl3e_k$ = function (companyId, createRoutineCommand, year, routineType, $completion, $super) {
1944
- year = year === VOID ? null : year;
1945
- routineType = routineType === VOID ? null : routineType;
1946
- return $super === VOID ? this.createRoutine_8elniz_k$(companyId, createRoutineCommand, year, routineType, $completion) : $super.createRoutine_8elniz_k$.call(this, companyId, createRoutineCommand, year, routineType, $completion);
1947
- };
1948
- protoOf(RoutinesApi).createRoutine = function (companyId, createRoutineCommand, year, routineType) {
1949
- var tmp = this;
1950
- return promisify(function ($completion) {
1951
- return tmp.createRoutine$default_aizl3e_k$(companyId, createRoutineCommand, year, routineType, $completion);
1952
- });
1953
- };
1954
- protoOf(RoutinesApi).createRoutine$suspendBridge_flmwva_k$ = function (companyId, createRoutineCommand, year, routineType, $completion) {
1955
- var tmp = new $createRoutine$suspendBridgeCOROUTINE$(this, companyId, createRoutineCommand, year, routineType, $completion);
1956
- tmp.result_1 = Unit_instance;
1957
- tmp.exception_1 = null;
1958
- return tmp.doResume_5yljmg_k$();
1959
- };
1960
- protoOf(RoutinesApi).deleteRoutine_33i6p7_k$ = function (companyId, routineId, $completion) {
1961
- var tmp = new $deleteRoutineCOROUTINE$(this, companyId, routineId, $completion);
1962
- tmp.result_1 = Unit_instance;
1963
- tmp.exception_1 = null;
1964
- return tmp.doResume_5yljmg_k$();
1760
+ if (this.pageToken_1 == null)
1761
+ null;
1762
+ else {
1763
+ var tmp2 = 'pageToken';
1764
+ var value_0 = listOf_0(this.pageToken_1);
1765
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1766
+ }
1767
+
1768
+ if (this.autoPaginate_1 == null)
1769
+ null;
1770
+ else {
1771
+ var tmp2_0 = 'autoPaginate';
1772
+ var value_1 = listOf_0('' + this.autoPaginate_1);
1773
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_1);
1774
+ }
1775
+
1776
+ if (this.count_1 == null)
1777
+ null;
1778
+ else {
1779
+ var value_2 = listOf_0('' + this.count_1);
1780
+ localVariableQuery.put_4fpzoq_k$('count', value_2);
1781
+ }
1782
+
1783
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1784
+ var tmp4_method = RequestMethod_GET_getInstance();
1785
+ var tmp5_path = replace('/companies/{companyId}/routines/types', '{companyId}', this.companyId_1.toString());
1786
+ var localVariableConfig = new RequestConfig(tmp4_method, tmp5_path, localVariableHeaders, VOID, localVariableQuery, true);
1787
+ this.state_1 = 1;
1788
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1789
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1790
+ return suspendResult;
1791
+ }
1792
+
1793
+ continue $sm;
1794
+ case 1:
1795
+ var this_0 = suspendResult;
1796
+ var tmp_0 = getKClass(PagedListRoutineType);
1797
+ var tmp_1 = null instanceof PagedListRoutineType;
1798
+ var tmp_2;
1799
+ try {
1800
+ tmp_2 = createKType(getKClass(PagedListRoutineType), arrayOf([]), false);
1801
+ } catch ($p) {
1802
+ var tmp_3;
1803
+ if ($p instanceof Error) {
1804
+ var _unused_var__etf5q3 = $p;
1805
+ tmp_3 = null;
1806
+ } else {
1807
+ throw $p;
1808
+ }
1809
+ tmp_2 = tmp_3;
1810
+ }
1811
+
1812
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1813
+ case 2:
1814
+ throw this.exception_1;
1815
+ }
1816
+ } catch ($p_0) {
1817
+ var e = $p_0;
1818
+ if (this.exceptionState_1 === 2) {
1819
+ throw e;
1820
+ } else {
1821
+ this.state_1 = this.exceptionState_1;
1822
+ this.exception_1 = e;
1823
+ }
1824
+ }
1825
+ while (true);
1965
1826
  };
1966
- protoOf(RoutinesApi).deleteRoutine = function (companyId, routineId) {
1967
- var tmp = this;
1827
+ function indexRoutinesUserOperation(client, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count) {
1968
1828
  return promisify(function ($completion) {
1969
- return tmp.deleteRoutine_33i6p7_k$(companyId, routineId, $completion);
1829
+ return indexRoutinesUserOperation_0(client, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
1970
1830
  });
1971
- };
1972
- protoOf(RoutinesApi).deleteRoutine$suspendBridge_z1q4bu_k$ = function (companyId, routineId, $completion) {
1973
- var tmp = new $deleteRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, $completion);
1974
- tmp.result_1 = Unit_instance;
1975
- tmp.exception_1 = null;
1976
- return tmp.doResume_5yljmg_k$();
1977
- };
1978
- protoOf(RoutinesApi).indexRoutines_p2k3c2_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) {
1979
- var tmp = new $indexRoutinesCOROUTINE$(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
1980
- tmp.result_1 = Unit_instance;
1981
- tmp.exception_1 = null;
1982
- return tmp.doResume_5yljmg_k$();
1983
- };
1984
- protoOf(RoutinesApi).indexRoutines$default_54pmob_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion, $super) {
1831
+ }
1832
+ function indexRoutinesUserOperation_0(client, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) {
1985
1833
  year = year === VOID ? null : year;
1986
1834
  routineType = routineType === VOID ? null : routineType;
1835
+ search = search === VOID ? null : search;
1836
+ companyIds = companyIds === VOID ? null : companyIds;
1987
1837
  fields = fields === VOID ? null : fields;
1988
1838
  pageToken = pageToken === VOID ? null : pageToken;
1989
1839
  autoPaginate = autoPaginate === VOID ? null : autoPaginate;
1990
1840
  count = count === VOID ? null : count;
1991
- return $super === VOID ? this.indexRoutines_p2k3c2_k$(companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutines_p2k3c2_k$.call(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
1992
- };
1993
- protoOf(RoutinesApi).indexRoutines = function (companyId, year, routineType, fields, pageToken, autoPaginate, count) {
1994
- var tmp = this;
1995
- return promisify(function ($completion) {
1996
- return tmp.indexRoutines$default_54pmob_k$(companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
1997
- });
1998
- };
1999
- protoOf(RoutinesApi).indexRoutines$suspendBridge_h8w1y5_k$ = function (companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion) {
2000
- var tmp = new $indexRoutines$suspendBridgeCOROUTINE$(this, companyId, year, routineType, fields, pageToken, autoPaginate, count, $completion);
2001
- tmp.result_1 = Unit_instance;
2002
- tmp.exception_1 = null;
2003
- return tmp.doResume_5yljmg_k$();
2004
- };
2005
- protoOf(RoutinesApi).indexRoutinesGroupDrafts_lfo0xu_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion) {
2006
- var tmp = new $indexRoutinesGroupDraftsCOROUTINE$(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
1841
+ var tmp = new $indexRoutinesUserOperationCOROUTINE$(client, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
2007
1842
  tmp.result_1 = Unit_instance;
2008
1843
  tmp.exception_1 = null;
2009
1844
  return tmp.doResume_5yljmg_k$();
1845
+ }
1846
+ function $indexRoutinesUserOperationCOROUTINE$(client, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, resultContinuation) {
1847
+ CoroutineImpl.call(this, resultContinuation);
1848
+ this.client_1 = client;
1849
+ this.year_1 = year;
1850
+ this.routineType_1 = routineType;
1851
+ this.search_1 = search;
1852
+ this.companyIds_1 = companyIds;
1853
+ this.fields_1 = fields;
1854
+ this.pageToken_1 = pageToken;
1855
+ this.autoPaginate_1 = autoPaginate;
1856
+ this.count_1 = count;
1857
+ }
1858
+ protoOf($indexRoutinesUserOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1859
+ var suspendResult = this.result_1;
1860
+ $sm: do
1861
+ try {
1862
+ var tmp = this.state_1;
1863
+ switch (tmp) {
1864
+ case 0:
1865
+ this.exceptionState_1 = 2;
1866
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1867
+ var localVariableBody = EmptyContent_getInstance();
1868
+ var localVariableQuery = LinkedHashMap_init_$Create$();
1869
+ if (this.year_1 == null)
1870
+ null;
1871
+ else {
1872
+ var value = listOf_0('' + this.year_1);
1873
+ localVariableQuery.put_4fpzoq_k$('year', value);
1874
+ }
1875
+
1876
+ if (this.routineType_1 == null)
1877
+ null;
1878
+ else {
1879
+ var tmp2 = 'routineType';
1880
+ var value_0 = listOf_0(this.routineType_1.value);
1881
+ localVariableQuery.put_4fpzoq_k$(tmp2, value_0);
1882
+ }
1883
+
1884
+ if (this.search_1 == null)
1885
+ null;
1886
+ else {
1887
+ var value_1 = listOf_0(this.search_1);
1888
+ localVariableQuery.put_4fpzoq_k$('search', value_1);
1889
+ }
1890
+
1891
+ var tmp3_safe_receiver = this.companyIds_1;
1892
+ if (tmp3_safe_receiver == null)
1893
+ null;
1894
+ else {
1895
+ var tmp2_0 = 'companyIds';
1896
+ var value_2 = toMultiValue(tmp3_safe_receiver, 'multi');
1897
+ localVariableQuery.put_4fpzoq_k$(tmp2_0, value_2);
1898
+ }
1899
+
1900
+ if (this.fields_1 == null)
1901
+ null;
1902
+ else {
1903
+ var value_3 = listOf_0(this.fields_1);
1904
+ localVariableQuery.put_4fpzoq_k$('fields', value_3);
1905
+ }
1906
+
1907
+ if (this.pageToken_1 == null)
1908
+ null;
1909
+ else {
1910
+ var tmp2_1 = 'pageToken';
1911
+ var value_4 = listOf_0(this.pageToken_1);
1912
+ localVariableQuery.put_4fpzoq_k$(tmp2_1, value_4);
1913
+ }
1914
+
1915
+ if (this.autoPaginate_1 == null)
1916
+ null;
1917
+ else {
1918
+ var tmp2_2 = 'autoPaginate';
1919
+ var value_5 = listOf_0('' + this.autoPaginate_1);
1920
+ localVariableQuery.put_4fpzoq_k$(tmp2_2, value_5);
1921
+ }
1922
+
1923
+ if (this.count_1 == null)
1924
+ null;
1925
+ else {
1926
+ var value_6 = listOf_0('' + this.count_1);
1927
+ localVariableQuery.put_4fpzoq_k$('count', value_6);
1928
+ }
1929
+
1930
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
1931
+ var tmp8_method = RequestMethod_GET_getInstance();
1932
+ var localVariableConfig = new RequestConfig(tmp8_method, '/companies/routines', localVariableHeaders, VOID, localVariableQuery, true);
1933
+ this.state_1 = 1;
1934
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
1935
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1936
+ return suspendResult;
1937
+ }
1938
+
1939
+ continue $sm;
1940
+ case 1:
1941
+ var this_0 = suspendResult;
1942
+ var tmp_0 = getKClass(PagedListRoutine);
1943
+ var tmp_1 = null instanceof PagedListRoutine;
1944
+ var tmp_2;
1945
+ try {
1946
+ tmp_2 = createKType(getKClass(PagedListRoutine), arrayOf([]), false);
1947
+ } catch ($p) {
1948
+ var tmp_3;
1949
+ if ($p instanceof Error) {
1950
+ var _unused_var__etf5q3 = $p;
1951
+ tmp_3 = null;
1952
+ } else {
1953
+ throw $p;
1954
+ }
1955
+ tmp_2 = tmp_3;
1956
+ }
1957
+
1958
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
1959
+ case 2:
1960
+ throw this.exception_1;
1961
+ }
1962
+ } catch ($p_0) {
1963
+ var e = $p_0;
1964
+ if (this.exceptionState_1 === 2) {
1965
+ throw e;
1966
+ } else {
1967
+ this.state_1 = this.exceptionState_1;
1968
+ this.exception_1 = e;
1969
+ }
1970
+ }
1971
+ while (true);
2010
1972
  };
2011
- protoOf(RoutinesApi).indexRoutinesGroupDrafts$default_eunwop_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion, $super) {
2012
- fields = fields === VOID ? null : fields;
2013
- pageToken = pageToken === VOID ? null : pageToken;
2014
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2015
- count = count === VOID ? null : count;
2016
- return $super === VOID ? this.indexRoutinesGroupDrafts_lfo0xu_k$(companyId, groupId, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesGroupDrafts_lfo0xu_k$.call(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
2017
- };
2018
- protoOf(RoutinesApi).indexRoutinesGroupDrafts = function (companyId, groupId, fields, pageToken, autoPaginate, count) {
2019
- var tmp = this;
2020
- return promisify(function ($completion) {
2021
- return tmp.indexRoutinesGroupDrafts$default_eunwop_k$(companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
2022
- });
2023
- };
2024
- protoOf(RoutinesApi).indexRoutinesGroupDrafts$suspendBridge_rrwqqn_k$ = function (companyId, groupId, fields, pageToken, autoPaginate, count, $completion) {
2025
- var tmp = new $indexRoutinesGroupDrafts$suspendBridgeCOROUTINE$(this, companyId, groupId, fields, pageToken, autoPaginate, count, $completion);
2026
- tmp.result_1 = Unit_instance;
2027
- tmp.exception_1 = null;
2028
- return tmp.doResume_5yljmg_k$();
2029
- };
2030
- protoOf(RoutinesApi).indexRoutinesGroups_72pau4_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion) {
2031
- var tmp = new $indexRoutinesGroupsCOROUTINE$(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
2032
- tmp.result_1 = Unit_instance;
2033
- tmp.exception_1 = null;
2034
- return tmp.doResume_5yljmg_k$();
2035
- };
2036
- protoOf(RoutinesApi).indexRoutinesGroups$default_a6d39e_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion, $super) {
2037
- routineType = routineType === VOID ? null : routineType;
2038
- fields = fields === VOID ? null : fields;
2039
- pageToken = pageToken === VOID ? null : pageToken;
2040
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2041
- count = count === VOID ? null : count;
2042
- return $super === VOID ? this.indexRoutinesGroups_72pau4_k$(companyId, routineType, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesGroups_72pau4_k$.call(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
2043
- };
2044
- protoOf(RoutinesApi).indexRoutinesGroups = function (companyId, routineType, fields, pageToken, autoPaginate, count) {
2045
- var tmp = this;
1973
+ function putHmsRoutineSettingsOperation(client, companyId, updateHmsSettingsCommand) {
2046
1974
  return promisify(function ($completion) {
2047
- return tmp.indexRoutinesGroups$default_a6d39e_k$(companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
1975
+ return putHmsRoutineSettingsOperation_0(client, companyId, updateHmsSettingsCommand, $completion);
2048
1976
  });
2049
- };
2050
- protoOf(RoutinesApi).indexRoutinesGroups$suspendBridge_l4e1s5_k$ = function (companyId, routineType, fields, pageToken, autoPaginate, count, $completion) {
2051
- var tmp = new $indexRoutinesGroups$suspendBridgeCOROUTINE$(this, companyId, routineType, fields, pageToken, autoPaginate, count, $completion);
2052
- tmp.result_1 = Unit_instance;
2053
- tmp.exception_1 = null;
2054
- return tmp.doResume_5yljmg_k$();
2055
- };
2056
- protoOf(RoutinesApi).indexRoutinesTypes_et2euz_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
2057
- var tmp = new $indexRoutinesTypesCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
1977
+ }
1978
+ function putHmsRoutineSettingsOperation_0(client, companyId, updateHmsSettingsCommand, $completion) {
1979
+ var tmp = new $putHmsRoutineSettingsOperationCOROUTINE$(client, companyId, updateHmsSettingsCommand, $completion);
2058
1980
  tmp.result_1 = Unit_instance;
2059
1981
  tmp.exception_1 = null;
2060
1982
  return tmp.doResume_5yljmg_k$();
1983
+ }
1984
+ function $putHmsRoutineSettingsOperationCOROUTINE$(client, companyId, updateHmsSettingsCommand, resultContinuation) {
1985
+ CoroutineImpl.call(this, resultContinuation);
1986
+ this.client_1 = client;
1987
+ this.companyId_1 = companyId;
1988
+ this.updateHmsSettingsCommand_1 = updateHmsSettingsCommand;
1989
+ }
1990
+ protoOf($putHmsRoutineSettingsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
1991
+ var suspendResult = this.result_1;
1992
+ $sm: do
1993
+ try {
1994
+ var tmp = this.state_1;
1995
+ switch (tmp) {
1996
+ case 0:
1997
+ this.exceptionState_1 = 2;
1998
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
1999
+ var localVariableBody = this.updateHmsSettingsCommand_1;
2000
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2001
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2002
+ var tmp0_method = RequestMethod_PUT_getInstance();
2003
+ var tmp1_path = replace('/companies/{companyId}/hms/settings', '{companyId}', this.companyId_1.toString());
2004
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2005
+ this.state_1 = 1;
2006
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2007
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2008
+ return suspendResult;
2009
+ }
2010
+
2011
+ continue $sm;
2012
+ case 1:
2013
+ var this_0 = suspendResult;
2014
+ var tmp_0 = getKClass(HmsSettings);
2015
+ var tmp_1 = null instanceof HmsSettings;
2016
+ var tmp_2;
2017
+ try {
2018
+ tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
2019
+ } catch ($p) {
2020
+ var tmp_3;
2021
+ if ($p instanceof Error) {
2022
+ var _unused_var__etf5q3 = $p;
2023
+ tmp_3 = null;
2024
+ } else {
2025
+ throw $p;
2026
+ }
2027
+ tmp_2 = tmp_3;
2028
+ }
2029
+
2030
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2031
+ case 2:
2032
+ throw this.exception_1;
2033
+ }
2034
+ } catch ($p_0) {
2035
+ var e = $p_0;
2036
+ if (this.exceptionState_1 === 2) {
2037
+ throw e;
2038
+ } else {
2039
+ this.state_1 = this.exceptionState_1;
2040
+ this.exception_1 = e;
2041
+ }
2042
+ }
2043
+ while (true);
2061
2044
  };
2062
- protoOf(RoutinesApi).indexRoutinesTypes$default_mirqo4_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion, $super) {
2063
- fields = fields === VOID ? null : fields;
2064
- pageToken = pageToken === VOID ? null : pageToken;
2065
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2066
- count = count === VOID ? null : count;
2067
- return $super === VOID ? this.indexRoutinesTypes_et2euz_k$(companyId, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesTypes_et2euz_k$.call(this, companyId, fields, pageToken, autoPaginate, count, $completion);
2068
- };
2069
- protoOf(RoutinesApi).indexRoutinesTypes = function (companyId, fields, pageToken, autoPaginate, count) {
2070
- var tmp = this;
2045
+ function showHmsCompanySettingsOperation(client, companyId, fields) {
2071
2046
  return promisify(function ($completion) {
2072
- return tmp.indexRoutinesTypes$default_mirqo4_k$(companyId, fields, pageToken, autoPaginate, count, $completion);
2047
+ return showHmsCompanySettingsOperation_0(client, companyId, fields, $completion);
2073
2048
  });
2074
- };
2075
- protoOf(RoutinesApi).indexRoutinesTypes$suspendBridge_ps1o7w_k$ = function (companyId, fields, pageToken, autoPaginate, count, $completion) {
2076
- var tmp = new $indexRoutinesTypes$suspendBridgeCOROUTINE$(this, companyId, fields, pageToken, autoPaginate, count, $completion);
2077
- tmp.result_1 = Unit_instance;
2078
- tmp.exception_1 = null;
2079
- return tmp.doResume_5yljmg_k$();
2080
- };
2081
- protoOf(RoutinesApi).indexRoutinesUser_xoprw1_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) {
2082
- var tmp = new $indexRoutinesUserCOROUTINE$(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
2083
- tmp.result_1 = Unit_instance;
2084
- tmp.exception_1 = null;
2085
- return tmp.doResume_5yljmg_k$();
2086
- };
2087
- protoOf(RoutinesApi).indexRoutinesUser$default_hknbb4_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion, $super) {
2088
- year = year === VOID ? null : year;
2089
- routineType = routineType === VOID ? null : routineType;
2090
- search = search === VOID ? null : search;
2091
- companyIds = companyIds === VOID ? null : companyIds;
2049
+ }
2050
+ function showHmsCompanySettingsOperation_0(client, companyId, fields, $completion) {
2092
2051
  fields = fields === VOID ? null : fields;
2093
- pageToken = pageToken === VOID ? null : pageToken;
2094
- autoPaginate = autoPaginate === VOID ? null : autoPaginate;
2095
- count = count === VOID ? null : count;
2096
- return $super === VOID ? this.indexRoutinesUser_xoprw1_k$(year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) : $super.indexRoutinesUser_xoprw1_k$.call(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
2097
- };
2098
- protoOf(RoutinesApi).indexRoutinesUser = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count) {
2099
- var tmp = this;
2100
- return promisify(function ($completion) {
2101
- return tmp.indexRoutinesUser$default_hknbb4_k$(year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
2102
- });
2103
- };
2104
- protoOf(RoutinesApi).indexRoutinesUser$suspendBridge_xks8hc_k$ = function (year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion) {
2105
- var tmp = new $indexRoutinesUser$suspendBridgeCOROUTINE$(this, year, routineType, search, companyIds, fields, pageToken, autoPaginate, count, $completion);
2106
- tmp.result_1 = Unit_instance;
2107
- tmp.exception_1 = null;
2108
- return tmp.doResume_5yljmg_k$();
2109
- };
2110
- protoOf(RoutinesApi).showRoutine_y8mcvp_k$ = function (companyId, routineId, fields, $completion) {
2111
- var tmp = new $showRoutineCOROUTINE$(this, companyId, routineId, fields, $completion);
2052
+ var tmp = new $showHmsCompanySettingsOperationCOROUTINE$(client, companyId, fields, $completion);
2112
2053
  tmp.result_1 = Unit_instance;
2113
2054
  tmp.exception_1 = null;
2114
2055
  return tmp.doResume_5yljmg_k$();
2056
+ }
2057
+ function $showHmsCompanySettingsOperationCOROUTINE$(client, companyId, fields, resultContinuation) {
2058
+ CoroutineImpl.call(this, resultContinuation);
2059
+ this.client_1 = client;
2060
+ this.companyId_1 = companyId;
2061
+ this.fields_1 = fields;
2062
+ }
2063
+ protoOf($showHmsCompanySettingsOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2064
+ var suspendResult = this.result_1;
2065
+ $sm: do
2066
+ try {
2067
+ var tmp = this.state_1;
2068
+ switch (tmp) {
2069
+ case 0:
2070
+ this.exceptionState_1 = 2;
2071
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2072
+ var localVariableBody = EmptyContent_getInstance();
2073
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2074
+ if (this.fields_1 == null)
2075
+ null;
2076
+ else {
2077
+ var value = listOf_0(this.fields_1);
2078
+ localVariableQuery.put_4fpzoq_k$('fields', value);
2079
+ }
2080
+
2081
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2082
+ var tmp1_method = RequestMethod_GET_getInstance();
2083
+ var tmp2_path = replace('/companies/{companyId}/hms/settings', '{companyId}', this.companyId_1.toString());
2084
+ var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
2085
+ this.state_1 = 1;
2086
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2087
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2088
+ return suspendResult;
2089
+ }
2090
+
2091
+ continue $sm;
2092
+ case 1:
2093
+ var this_0 = suspendResult;
2094
+ var tmp_0 = getKClass(HmsSettings);
2095
+ var tmp_1 = null instanceof HmsSettings;
2096
+ var tmp_2;
2097
+ try {
2098
+ tmp_2 = createKType(getKClass(HmsSettings), arrayOf([]), false);
2099
+ } catch ($p) {
2100
+ var tmp_3;
2101
+ if ($p instanceof Error) {
2102
+ var _unused_var__etf5q3 = $p;
2103
+ tmp_3 = null;
2104
+ } else {
2105
+ throw $p;
2106
+ }
2107
+ tmp_2 = tmp_3;
2108
+ }
2109
+
2110
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2111
+ case 2:
2112
+ throw this.exception_1;
2113
+ }
2114
+ } catch ($p_0) {
2115
+ var e = $p_0;
2116
+ if (this.exceptionState_1 === 2) {
2117
+ throw e;
2118
+ } else {
2119
+ this.state_1 = this.exceptionState_1;
2120
+ this.exception_1 = e;
2121
+ }
2122
+ }
2123
+ while (true);
2115
2124
  };
2116
- protoOf(RoutinesApi).showRoutine$default_auj451_k$ = function (companyId, routineId, fields, $completion, $super) {
2117
- fields = fields === VOID ? null : fields;
2118
- return $super === VOID ? this.showRoutine_y8mcvp_k$(companyId, routineId, fields, $completion) : $super.showRoutine_y8mcvp_k$.call(this, companyId, routineId, fields, $completion);
2119
- };
2120
- protoOf(RoutinesApi).showRoutine = function (companyId, routineId, fields) {
2121
- var tmp = this;
2125
+ function showRoutineOperation(client, companyId, routineId, fields) {
2122
2126
  return promisify(function ($completion) {
2123
- return tmp.showRoutine$default_auj451_k$(companyId, routineId, fields, $completion);
2127
+ return showRoutineOperation_0(client, companyId, routineId, fields, $completion);
2124
2128
  });
2125
- };
2126
- protoOf(RoutinesApi).showRoutine$suspendBridge_f7bzqk_k$ = function (companyId, routineId, fields, $completion) {
2127
- var tmp = new $showRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, fields, $completion);
2128
- tmp.result_1 = Unit_instance;
2129
- tmp.exception_1 = null;
2130
- return tmp.doResume_5yljmg_k$();
2131
- };
2132
- protoOf(RoutinesApi).updateRoutine_vvuaqp_k$ = function (companyId, routineId, updateRoutineCommand, $completion) {
2133
- var tmp = new $updateRoutineCOROUTINE$(this, companyId, routineId, updateRoutineCommand, $completion);
2129
+ }
2130
+ function showRoutineOperation_0(client, companyId, routineId, fields, $completion) {
2131
+ fields = fields === VOID ? null : fields;
2132
+ var tmp = new $showRoutineOperationCOROUTINE$(client, companyId, routineId, fields, $completion);
2134
2133
  tmp.result_1 = Unit_instance;
2135
2134
  tmp.exception_1 = null;
2136
2135
  return tmp.doResume_5yljmg_k$();
2136
+ }
2137
+ function $showRoutineOperationCOROUTINE$(client, companyId, routineId, fields, resultContinuation) {
2138
+ CoroutineImpl.call(this, resultContinuation);
2139
+ this.client_1 = client;
2140
+ this.companyId_1 = companyId;
2141
+ this.routineId_1 = routineId;
2142
+ this.fields_1 = fields;
2143
+ }
2144
+ protoOf($showRoutineOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2145
+ var suspendResult = this.result_1;
2146
+ $sm: do
2147
+ try {
2148
+ var tmp = this.state_1;
2149
+ switch (tmp) {
2150
+ case 0:
2151
+ this.exceptionState_1 = 2;
2152
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2153
+ var localVariableBody = EmptyContent_getInstance();
2154
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2155
+ if (this.fields_1 == null)
2156
+ null;
2157
+ else {
2158
+ var value = listOf_0(this.fields_1);
2159
+ localVariableQuery.put_4fpzoq_k$('fields', value);
2160
+ }
2161
+
2162
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2163
+ var tmp1_method = RequestMethod_GET_getInstance();
2164
+ var tmp2_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
2165
+ var localVariableConfig = new RequestConfig(tmp1_method, tmp2_path, localVariableHeaders, VOID, localVariableQuery, true);
2166
+ this.state_1 = 1;
2167
+ suspendResult = this.client_1.executeRequest_c2mqzq_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2168
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2169
+ return suspendResult;
2170
+ }
2171
+
2172
+ continue $sm;
2173
+ case 1:
2174
+ var this_0 = suspendResult;
2175
+ var tmp_0 = getKClass(Routine);
2176
+ var tmp_1 = null instanceof Routine;
2177
+ var tmp_2;
2178
+ try {
2179
+ tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
2180
+ } catch ($p) {
2181
+ var tmp_3;
2182
+ if ($p instanceof Error) {
2183
+ var _unused_var__etf5q3 = $p;
2184
+ tmp_3 = null;
2185
+ } else {
2186
+ throw $p;
2187
+ }
2188
+ tmp_2 = tmp_3;
2189
+ }
2190
+
2191
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2192
+ case 2:
2193
+ throw this.exception_1;
2194
+ }
2195
+ } catch ($p_0) {
2196
+ var e = $p_0;
2197
+ if (this.exceptionState_1 === 2) {
2198
+ throw e;
2199
+ } else {
2200
+ this.state_1 = this.exceptionState_1;
2201
+ this.exception_1 = e;
2202
+ }
2203
+ }
2204
+ while (true);
2137
2205
  };
2138
- protoOf(RoutinesApi).updateRoutine = function (companyId, routineId, updateRoutineCommand) {
2139
- var tmp = this;
2206
+ function updateRoutineOperation(client, companyId, routineId, updateRoutineCommand) {
2140
2207
  return promisify(function ($completion) {
2141
- return tmp.updateRoutine_vvuaqp_k$(companyId, routineId, updateRoutineCommand, $completion);
2208
+ return updateRoutineOperation_0(client, companyId, routineId, updateRoutineCommand, $completion);
2142
2209
  });
2143
- };
2144
- protoOf(RoutinesApi).updateRoutine$suspendBridge_re0stc_k$ = function (companyId, routineId, updateRoutineCommand, $completion) {
2145
- var tmp = new $updateRoutine$suspendBridgeCOROUTINE$(this, companyId, routineId, updateRoutineCommand, $completion);
2210
+ }
2211
+ function updateRoutineOperation_0(client, companyId, routineId, updateRoutineCommand, $completion) {
2212
+ var tmp = new $updateRoutineOperationCOROUTINE$(client, companyId, routineId, updateRoutineCommand, $completion);
2146
2213
  tmp.result_1 = Unit_instance;
2147
2214
  tmp.exception_1 = null;
2148
2215
  return tmp.doResume_5yljmg_k$();
2149
- };
2150
- function RoutinesApi() {
2151
2216
  }
2217
+ function $updateRoutineOperationCOROUTINE$(client, companyId, routineId, updateRoutineCommand, resultContinuation) {
2218
+ CoroutineImpl.call(this, resultContinuation);
2219
+ this.client_1 = client;
2220
+ this.companyId_1 = companyId;
2221
+ this.routineId_1 = routineId;
2222
+ this.updateRoutineCommand_1 = updateRoutineCommand;
2223
+ }
2224
+ protoOf($updateRoutineOperationCOROUTINE$).doResume_5yljmg_k$ = function () {
2225
+ var suspendResult = this.result_1;
2226
+ $sm: do
2227
+ try {
2228
+ var tmp = this.state_1;
2229
+ switch (tmp) {
2230
+ case 0:
2231
+ this.exceptionState_1 = 2;
2232
+ var localVariableAuthNames = listOf(['cognito', 'cognito-direct']);
2233
+ var localVariableBody = this.updateRoutineCommand_1;
2234
+ var localVariableQuery = LinkedHashMap_init_$Create$();
2235
+ var localVariableHeaders = LinkedHashMap_init_$Create$();
2236
+ var tmp0_method = RequestMethod_PUT_getInstance();
2237
+ var tmp1_path = replace(replace('/companies/{companyId}/routines/{routineId}', '{companyId}', this.companyId_1.toString()), '{routineId}', this.routineId_1.toString());
2238
+ var localVariableConfig = new RequestConfig(tmp0_method, tmp1_path, localVariableHeaders, VOID, localVariableQuery, true);
2239
+ this.state_1 = 1;
2240
+ suspendResult = this.client_1.executeJsonRequest_99yh5u_k$(localVariableConfig, localVariableBody, localVariableAuthNames, this);
2241
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2242
+ return suspendResult;
2243
+ }
2244
+
2245
+ continue $sm;
2246
+ case 1:
2247
+ var this_0 = suspendResult;
2248
+ var tmp_0 = getKClass(Routine);
2249
+ var tmp_1 = null instanceof Routine;
2250
+ var tmp_2;
2251
+ try {
2252
+ tmp_2 = createKType(getKClass(Routine), arrayOf([]), false);
2253
+ } catch ($p) {
2254
+ var tmp_3;
2255
+ if ($p instanceof Error) {
2256
+ var _unused_var__etf5q3 = $p;
2257
+ tmp_3 = null;
2258
+ } else {
2259
+ throw $p;
2260
+ }
2261
+ tmp_2 = tmp_3;
2262
+ }
2263
+
2264
+ return new HttpResponse(this_0, new TypedBodyProvider(new TypeInfo(tmp_0, tmp_1, tmp_2)));
2265
+ case 2:
2266
+ throw this.exception_1;
2267
+ }
2268
+ } catch ($p_0) {
2269
+ var e = $p_0;
2270
+ if (this.exceptionState_1 === 2) {
2271
+ throw e;
2272
+ } else {
2273
+ this.state_1 = this.exceptionState_1;
2274
+ this.exception_1 = e;
2275
+ }
2276
+ }
2277
+ while (true);
2278
+ };
2152
2279
  function CreateHmsSettingsCommand$Companion$$childSerializers$_anonymous__t4xcus() {
2153
2280
  return new ArrayListSerializer(LongSerializer_getInstance());
2154
2281
  }
@@ -5550,6 +5677,18 @@ export {
5550
5677
  routinesApi as routinesApi,
5551
5678
  HMSApi as HMSApi,
5552
5679
  RoutinesApi as RoutinesApi,
5680
+ createHmsRoutineSettingsOperation as createHmsRoutineSettingsOperation,
5681
+ createRoutineOperation as createRoutineOperation,
5682
+ deleteRoutineOperation as deleteRoutineOperation,
5683
+ indexRoutinesGroupDraftsOperation as indexRoutinesGroupDraftsOperation,
5684
+ indexRoutinesGroupsOperation as indexRoutinesGroupsOperation,
5685
+ indexRoutinesOperation as indexRoutinesOperation,
5686
+ indexRoutinesTypesOperation as indexRoutinesTypesOperation,
5687
+ indexRoutinesUserOperation as indexRoutinesUserOperation,
5688
+ putHmsRoutineSettingsOperation as putHmsRoutineSettingsOperation,
5689
+ showHmsCompanySettingsOperation as showHmsCompanySettingsOperation,
5690
+ showRoutineOperation as showRoutineOperation,
5691
+ updateRoutineOperation as updateRoutineOperation,
5553
5692
  CreateHmsSettingsCommand as CreateHmsSettingsCommand,
5554
5693
  CreateRoutineCommand as CreateRoutineCommand,
5555
5694
  HmsSettings as HmsSettings,