@ikonintegration/module-config-api 2.0.16 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Api.d.ts CHANGED
@@ -33,10 +33,10 @@ export interface CustomerResponse {
33
33
  */
34
34
  id: string;
35
35
  /**
36
- * Display name of the customer
37
- * @example "ACME Corporation"
36
+ * Timezone code
37
+ * @example "America/Vancouver"
38
38
  */
39
- displayName?: string;
39
+ timezoneCode: string;
40
40
  /**
41
41
  * Admin role identifier
42
42
  * @example "admin"
@@ -47,11 +47,6 @@ export interface CustomerResponse {
47
47
  * @example "user"
48
48
  */
49
49
  userRole?: string;
50
- /**
51
- * Timezone code
52
- * @example "America/Vancouver"
53
- */
54
- timezoneCode: string;
55
50
  /**
56
51
  * Instructor role identifier
57
52
  * @example "instructor"
@@ -67,6 +62,16 @@ export interface CustomerResponse {
67
62
  * @example "idm_token_456"
68
63
  */
69
64
  idmToken?: string;
65
+ /**
66
+ * IDM API user
67
+ * @example "api_user"
68
+ */
69
+ idmAPIUser?: string;
70
+ /**
71
+ * IDM API password
72
+ * @example "api_password"
73
+ */
74
+ idmAPIPassword?: string;
70
75
  /**
71
76
  * Email sender address
72
77
  * @example "noreply@example.com"
@@ -98,7 +103,7 @@ export interface CustomerResponse {
98
103
  */
99
104
  orgUserRole?: string;
100
105
  /**
101
- * namespace for the instance of org module to be used. Used to build the LMS FE.
106
+ * Namespace for the instance of org module to be used. Used to build the LMS FE.
102
107
  * @example "bccsa"
103
108
  */
104
109
  orgModNamespace?: string;
@@ -112,11 +117,21 @@ export interface CustomerResponse {
112
117
  * @example ["req1","req2"]
113
118
  */
114
119
  allowedForeignReqs?: string[];
120
+ /**
121
+ * Display name of the customer
122
+ * @example "ACME Corporation"
123
+ */
124
+ displayName?: string;
115
125
  /**
116
126
  * Shared module license API key
117
127
  * @example "license_api_key"
118
128
  */
119
129
  sharedModuleLicenseAPIKey?: string;
130
+ /**
131
+ * Shared module config API key
132
+ * @example "config_api_key"
133
+ */
134
+ sharedModuleConfigAPIKey?: string;
120
135
  /**
121
136
  * Shared module auditing API key
122
137
  * @example "auditing_api_key"
@@ -142,16 +157,32 @@ export interface CustomerResponse {
142
157
  * @example "mailer_api_key"
143
158
  */
144
159
  sharedModuleMailerAPIKey?: string;
145
- /**
146
- * Authentication configuration object
147
- * @example {"provider":"cognito","region":"us-west-2"}
148
- */
149
- authConfig?: any;
150
- /**
151
- * UI theme identifier
152
- * @example "default"
153
- */
154
- theme?: string;
160
+ /** Authentication configuration object */
161
+ authConfig?: AuthConfig;
162
+ portalConfig?: {
163
+ /**
164
+ * Portal theme identifier
165
+ * @example "default"
166
+ */
167
+ theme?: string;
168
+ /**
169
+ * Portal domain
170
+ * @example "portal.example.com"
171
+ */
172
+ domain?: string;
173
+ /**
174
+ * Cookies hub domain for the portal
175
+ * @example ".example.com"
176
+ */
177
+ cookiesHubDomain?: string;
178
+ /**
179
+ * Accepted connections origin
180
+ * @example "https://app.example.com"
181
+ */
182
+ acceptConnectionsFrom?: string;
183
+ };
184
+ /** UI theme configuration object */
185
+ theme?: ThemeConfig;
155
186
  /**
156
187
  * Customer domain
157
188
  * @example "customer.example.com"
@@ -163,65 +194,69 @@ export interface CustomerResponse {
163
194
  */
164
195
  cookiesHubDomain?: string;
165
196
  /**
166
- * Platform for accepting connections
167
- * @example "web"
197
+ * List of origins allowed to connect
198
+ * @example ["https://app.example.com"]
168
199
  */
169
- acceptConnectionsPlatform?: string;
200
+ acceptConnectionsFrom?: string[];
170
201
  /**
171
202
  * Worksafe terminology
172
203
  * @example "WorkSafeBC"
173
204
  */
174
205
  worksafeTerm?: string;
175
- /**
176
- * List of cancelation policies
177
- * @example [{"type":"standard","rules":[]}]
178
- */
179
- cancelationPolicies?: any[];
180
- /**
181
- * Whether to use business days
182
- * @example 1
183
- */
184
- isBusinessDays?: number;
185
- /**
186
- * Whether bookings can be canceled
187
- * @example true
188
- */
189
- canBeCanceled?: boolean;
190
- /**
191
- * Whether bookings can be rescheduled
192
- * @example true
193
- */
194
- canBeRescheduled?: boolean;
195
- /**
196
- * List of rules
197
- * @example []
198
- */
199
- rules?: any[];
200
- /**
201
- * Days before for policy application
202
- * @example 7
203
- */
204
- useDaysBefore?: number;
205
- /**
206
- * Percentage refunded on cancelation
207
- * @example 100
208
- */
209
- percentageRefunded?: number;
210
- /**
211
- * Amount charged on cancelation
212
- * @example 0
213
- */
214
- amountCharged?: number;
215
- /**
216
- * Whether to deduct enrollment payment
217
- * @example false
218
- */
219
- deductEnrollmentPayment?: boolean;
220
- /**
221
- * Whether customer has refund policy
222
- * @example true
223
- */
224
- hasRefundPolicy?: boolean;
206
+ /** List of cancelation policies */
207
+ cancelationPolicies?: {
208
+ /**
209
+ * Cancelation policy identifier
210
+ * @example "policy_1"
211
+ */
212
+ id?: string;
213
+ /**
214
+ * Cancelation policy description
215
+ * @example "Standard cancelation policy"
216
+ */
217
+ description?: string;
218
+ /** Cancel policy configuration */
219
+ cancelPolicy?: {
220
+ /**
221
+ * Whether to use business days for calculations
222
+ * @example true
223
+ */
224
+ isBusinessDays?: boolean;
225
+ /**
226
+ * Whether bookings can be canceled
227
+ * @example true
228
+ */
229
+ canBeCanceled?: boolean;
230
+ /**
231
+ * Whether bookings can be rescheduled
232
+ * @example true
233
+ */
234
+ canBeRescheduled?: boolean;
235
+ /** List of cancelation rules */
236
+ rules?: {
237
+ /**
238
+ * Number of days before the event for this rule to apply
239
+ * @example 7
240
+ */
241
+ untilDaysBefore?: number;
242
+ /**
243
+ * Percentage refunded on cancelation
244
+ * @example 100
245
+ */
246
+ percentageRefunded?: number;
247
+ /**
248
+ * Amount charged on cancelation
249
+ * @example 0
250
+ */
251
+ amountCharged?: number;
252
+ /**
253
+ * Whether to deduct enrolment payment
254
+ * @example false
255
+ */
256
+ deductEnrolmentPayment?: boolean;
257
+ }[];
258
+ };
259
+ }[];
225
260
  /**
226
261
  * Sales tax label
227
262
  * @example "GST"
@@ -232,56 +267,77 @@ export interface CustomerResponse {
232
267
  * @example false
233
268
  */
234
269
  ignoreCustomAttributesForSignUp?: boolean;
235
- /**
236
- * List of cooldown policies
237
- * @example [{"courseID":"course1","cooldownPolicy":{"rules":[]}}]
238
- */
239
- cooldownPolicies?: any[];
240
- /**
241
- * Number of failed attempts before refill
242
- * @example 3
243
- */
244
- refillFailedAttempts?: number;
245
- /**
246
- * Cooldown period in days
247
- * @example 30
248
- */
249
- cooldownPeriod?: number;
250
- /**
251
- * Whether to invalidate course requirements
252
- * @example false
253
- */
254
- invalidateCourseRequirements?: boolean;
255
- /**
256
- * Whether to lock application
257
- * @example false
258
- */
259
- lockApplication?: boolean;
260
- /**
261
- * Blocks the course using a trigger block
262
- * @example false
263
- */
264
- blockCourse?: boolean;
265
- /**
266
- * Days before auto-unlock
267
- * @example 90
268
- */
269
- autoUnlockDays?: number;
270
- /**
271
- * UI configuration object
272
- * @example {"primaryColor":"#007bff"}
273
- */
274
- ui?: any;
275
- /**
276
- * Banner configuration object
277
- * @example {"enabled":true,"message":"Welcome!"}
278
- */
279
- banner?: any;
280
270
  /**
281
271
  * Customer timezone
282
272
  * @example "America/Vancouver"
283
273
  */
284
274
  timezone?: string;
275
+ /** Tile permissions configuration */
276
+ tilePermissions?: any;
277
+ /** List of cooldown policies */
278
+ cooldownPolicies?: {
279
+ /**
280
+ * Cooldown policy identifier
281
+ * @example "cooldown_1"
282
+ */
283
+ id?: string;
284
+ /**
285
+ * Cooldown policy description
286
+ * @example "Standard cooldown policy"
287
+ */
288
+ description?: string;
289
+ /** Cooldown policy configuration */
290
+ cooldownPolicy?: {
291
+ /** List of cooldown rules */
292
+ rules?: {
293
+ /**
294
+ * Number of failed attempts before this rule applies
295
+ * @example 3
296
+ */
297
+ untilFailedAttempts?: number;
298
+ /**
299
+ * Cooldown period in days
300
+ * @example 30
301
+ */
302
+ cooldownPeriod?: number;
303
+ /**
304
+ * Whether to invalidate course requirements
305
+ * @example false
306
+ */
307
+ invalidateCourseRequirements?: boolean;
308
+ /**
309
+ * Whether to lock application
310
+ * @example false
311
+ */
312
+ lockApplication?: boolean;
313
+ /**
314
+ * Blocks the course using a trigger block
315
+ * @example false
316
+ */
317
+ blockCourse?: boolean;
318
+ /**
319
+ * Days before auto-unlock
320
+ * @example 90
321
+ */
322
+ autoUnlockInDays?: number;
323
+ }[];
324
+ };
325
+ }[];
326
+ ui?: {
327
+ /** Banner configuration */
328
+ banner?: {
329
+ /**
330
+ * Banner type
331
+ * @example "info"
332
+ */
333
+ type?: string;
334
+ /**
335
+ * Banner content
336
+ * @example "Welcome to the platform!"
337
+ */
338
+ content?: string;
339
+ };
340
+ };
285
341
  /**
286
342
  * List of feature flags
287
343
  * @example [{"name":"dark_mode","enabled":true}]
@@ -301,6 +357,16 @@ export interface CustomerResponse {
301
357
  metadata?: string;
302
358
  }[];
303
359
  }
360
+ /**
361
+ * Authentication configuration object
362
+ * @example {"provider":"cognito","region":"us-west-2"}
363
+ */
364
+ export type AuthConfig = Record<string, any>;
365
+ /**
366
+ * UI theme configuration object
367
+ * @example {"primaryColor":"#007bff"}
368
+ */
369
+ export type ThemeConfig = Record<string, any>;
304
370
  /** Customer request body for create/update operations */
305
371
  export interface CustomerRequestBody {
306
372
  /**
@@ -309,10 +375,10 @@ export interface CustomerRequestBody {
309
375
  */
310
376
  id: string;
311
377
  /**
312
- * Display name of the customer
313
- * @example "ACME Corporation"
378
+ * Timezone code
379
+ * @example "America/Vancouver"
314
380
  */
315
- displayName?: string;
381
+ timezoneCode: string;
316
382
  /**
317
383
  * Admin role identifier
318
384
  * @example "admin"
@@ -323,11 +389,6 @@ export interface CustomerRequestBody {
323
389
  * @example "user"
324
390
  */
325
391
  userRole?: string;
326
- /**
327
- * Timezone code
328
- * @example "America/Vancouver"
329
- */
330
- timezoneCode: string;
331
392
  /**
332
393
  * Instructor role identifier
333
394
  * @example "instructor"
@@ -343,6 +404,16 @@ export interface CustomerRequestBody {
343
404
  * @example "idm_token_456"
344
405
  */
345
406
  idmToken?: string;
407
+ /**
408
+ * IDM API user
409
+ * @example "api_user"
410
+ */
411
+ idmAPIUser?: string;
412
+ /**
413
+ * IDM API password
414
+ * @example "api_password"
415
+ */
416
+ idmAPIPassword?: string;
346
417
  /**
347
418
  * Email sender address
348
419
  * @example "noreply@example.com"
@@ -374,7 +445,7 @@ export interface CustomerRequestBody {
374
445
  */
375
446
  orgUserRole?: string;
376
447
  /**
377
- * namespace for the instance of org module to be used. Used to build the LMS FE.
448
+ * Namespace for the instance of org module to be used. Used to build the LMS FE.
378
449
  * @example "bccsa"
379
450
  */
380
451
  orgModNamespace?: string;
@@ -388,11 +459,21 @@ export interface CustomerRequestBody {
388
459
  * @example ["req1","req2"]
389
460
  */
390
461
  allowedForeignReqs?: string[];
462
+ /**
463
+ * Display name of the customer
464
+ * @example "ACME Corporation"
465
+ */
466
+ displayName?: string;
391
467
  /**
392
468
  * Shared module license API key
393
469
  * @example "license_api_key"
394
470
  */
395
471
  sharedModuleLicenseAPIKey?: string;
472
+ /**
473
+ * Shared module config API key
474
+ * @example "config_api_key"
475
+ */
476
+ sharedModuleConfigAPIKey?: string;
396
477
  /**
397
478
  * Shared module auditing API key
398
479
  * @example "auditing_api_key"
@@ -418,16 +499,32 @@ export interface CustomerRequestBody {
418
499
  * @example "mailer_api_key"
419
500
  */
420
501
  sharedModuleMailerAPIKey?: string;
421
- /**
422
- * Authentication configuration object
423
- * @example {"provider":"cognito","region":"us-west-2"}
424
- */
425
- authConfig?: any;
426
- /**
427
- * UI theme identifier
428
- * @example "default"
429
- */
430
- theme?: string;
502
+ /** Authentication configuration object */
503
+ authConfig?: AuthConfig;
504
+ portalConfig?: {
505
+ /**
506
+ * Portal theme identifier
507
+ * @example "default"
508
+ */
509
+ theme?: string;
510
+ /**
511
+ * Portal domain
512
+ * @example "portal.example.com"
513
+ */
514
+ domain?: string;
515
+ /**
516
+ * Cookies hub domain for the portal
517
+ * @example ".example.com"
518
+ */
519
+ cookiesHubDomain?: string;
520
+ /**
521
+ * Accepted connections origin
522
+ * @example "https://app.example.com"
523
+ */
524
+ acceptConnectionsFrom?: string;
525
+ };
526
+ /** UI theme configuration object */
527
+ theme?: ThemeConfig;
431
528
  /**
432
529
  * Customer domain
433
530
  * @example "customer.example.com"
@@ -439,65 +536,69 @@ export interface CustomerRequestBody {
439
536
  */
440
537
  cookiesHubDomain?: string;
441
538
  /**
442
- * Platform for accepting connections
443
- * @example "web"
539
+ * List of origins allowed to connect
540
+ * @example ["https://app.example.com"]
444
541
  */
445
- acceptConnectionsPlatform?: string;
542
+ acceptConnectionsFrom?: string[];
446
543
  /**
447
544
  * Worksafe terminology
448
545
  * @example "WorkSafeBC"
449
546
  */
450
547
  worksafeTerm?: string;
451
- /**
452
- * List of cancelation policies
453
- * @example [{"type":"standard","rules":[]}]
454
- */
455
- cancelationPolicies?: any[];
456
- /**
457
- * Whether to use business days
458
- * @example 1
459
- */
460
- isBusinessDays?: number;
461
- /**
462
- * Whether bookings can be canceled
463
- * @example true
464
- */
465
- canBeCanceled?: boolean;
466
- /**
467
- * Whether bookings can be rescheduled
468
- * @example true
469
- */
470
- canBeRescheduled?: boolean;
471
- /**
472
- * List of rules
473
- * @example []
474
- */
475
- rules?: any[];
476
- /**
477
- * Days before for policy application
478
- * @example 7
479
- */
480
- useDaysBefore?: number;
481
- /**
482
- * Percentage refunded on cancelation
483
- * @example 100
484
- */
485
- percentageRefunded?: number;
486
- /**
487
- * Amount charged on cancelation
488
- * @example 0
489
- */
490
- amountCharged?: number;
491
- /**
492
- * Whether to deduct enrollment payment
493
- * @example false
494
- */
495
- deductEnrollmentPayment?: boolean;
496
- /**
497
- * Whether customer has refund policy
498
- * @example true
499
- */
500
- hasRefundPolicy?: boolean;
548
+ /** List of cancelation policies */
549
+ cancelationPolicies?: {
550
+ /**
551
+ * Cancelation policy identifier
552
+ * @example "policy_1"
553
+ */
554
+ id?: string;
555
+ /**
556
+ * Cancelation policy description
557
+ * @example "Standard cancelation policy"
558
+ */
559
+ description?: string;
560
+ /** Cancel policy configuration */
561
+ cancelPolicy?: {
562
+ /**
563
+ * Whether to use business days for calculations
564
+ * @example true
565
+ */
566
+ isBusinessDays?: boolean;
567
+ /**
568
+ * Whether bookings can be canceled
569
+ * @example true
570
+ */
571
+ canBeCanceled?: boolean;
572
+ /**
573
+ * Whether bookings can be rescheduled
574
+ * @example true
575
+ */
576
+ canBeRescheduled?: boolean;
577
+ /** List of cancelation rules */
578
+ rules?: {
579
+ /**
580
+ * Number of days before the event for this rule to apply
581
+ * @example 7
582
+ */
583
+ untilDaysBefore?: number;
584
+ /**
585
+ * Percentage refunded on cancelation
586
+ * @example 100
587
+ */
588
+ percentageRefunded?: number;
589
+ /**
590
+ * Amount charged on cancelation
591
+ * @example 0
592
+ */
593
+ amountCharged?: number;
594
+ /**
595
+ * Whether to deduct enrolment payment
596
+ * @example false
597
+ */
598
+ deductEnrolmentPayment?: boolean;
599
+ }[];
600
+ };
601
+ }[];
501
602
  /**
502
603
  * Sales tax label
503
604
  * @example "GST"
@@ -508,56 +609,77 @@ export interface CustomerRequestBody {
508
609
  * @example false
509
610
  */
510
611
  ignoreCustomAttributesForSignUp?: boolean;
511
- /**
512
- * List of cooldown policies
513
- * @example [{"courseID":"course1","cooldownPolicy":{"rules":[]}}]
514
- */
515
- cooldownPolicies?: any[];
516
- /**
517
- * Number of failed attempts before refill
518
- * @example 3
519
- */
520
- refillFailedAttempts?: number;
521
- /**
522
- * Cooldown period in days
523
- * @example 30
524
- */
525
- cooldownPeriod?: number;
526
- /**
527
- * Whether to invalidate course requirements
528
- * @example false
529
- */
530
- invalidateCourseRequirements?: boolean;
531
- /**
532
- * Whether to lock application
533
- * @example false
534
- */
535
- lockApplication?: boolean;
536
- /**
537
- * Blocks the course using a trigger block
538
- * @example false
539
- */
540
- blockCourse?: boolean;
541
- /**
542
- * Days before auto-unlock
543
- * @example 90
544
- */
545
- autoUnlockDays?: number;
546
- /**
547
- * UI configuration object
548
- * @example {"primaryColor":"#007bff"}
549
- */
550
- ui?: any;
551
- /**
552
- * Banner configuration object
553
- * @example {"enabled":true,"message":"Welcome!"}
554
- */
555
- banner?: any;
556
612
  /**
557
613
  * Customer timezone
558
614
  * @example "America/Vancouver"
559
615
  */
560
616
  timezone?: string;
617
+ /** Tile permissions configuration */
618
+ tilePermissions?: any;
619
+ /** List of cooldown policies */
620
+ cooldownPolicies?: {
621
+ /**
622
+ * Cooldown policy identifier
623
+ * @example "cooldown_1"
624
+ */
625
+ id?: string;
626
+ /**
627
+ * Cooldown policy description
628
+ * @example "Standard cooldown policy"
629
+ */
630
+ description?: string;
631
+ /** Cooldown policy configuration */
632
+ cooldownPolicy?: {
633
+ /** List of cooldown rules */
634
+ rules?: {
635
+ /**
636
+ * Number of failed attempts before this rule applies
637
+ * @example 3
638
+ */
639
+ untilFailedAttempts?: number;
640
+ /**
641
+ * Cooldown period in days
642
+ * @example 30
643
+ */
644
+ cooldownPeriod?: number;
645
+ /**
646
+ * Whether to invalidate course requirements
647
+ * @example false
648
+ */
649
+ invalidateCourseRequirements?: boolean;
650
+ /**
651
+ * Whether to lock application
652
+ * @example false
653
+ */
654
+ lockApplication?: boolean;
655
+ /**
656
+ * Blocks the course using a trigger block
657
+ * @example false
658
+ */
659
+ blockCourse?: boolean;
660
+ /**
661
+ * Days before auto-unlock
662
+ * @example 90
663
+ */
664
+ autoUnlockInDays?: number;
665
+ }[];
666
+ };
667
+ }[];
668
+ ui?: {
669
+ /** Banner configuration */
670
+ banner?: {
671
+ /**
672
+ * Banner type
673
+ * @example "info"
674
+ */
675
+ type?: string;
676
+ /**
677
+ * Banner content
678
+ * @example "Welcome to the platform!"
679
+ */
680
+ content?: string;
681
+ };
682
+ };
561
683
  /**
562
684
  * List of feature flags
563
685
  * @example [{"name":"dark_mode","enabled":true}]
@@ -2772,7 +2894,7 @@ export interface FaqResponse {
2772
2894
  */
2773
2895
  answer?: string;
2774
2896
  }
2775
- export interface InputFchy2Vqm36 {
2897
+ export interface InputZhvrz8Yp0W {
2776
2898
  /**
2777
2899
  * Tenant ID this FAQ belongs to
2778
2900
  * @example "tenant456"
@@ -2794,7 +2916,7 @@ export interface InputFchy2Vqm36 {
2794
2916
  */
2795
2917
  answer?: string;
2796
2918
  }
2797
- export interface InputArlvymhzth {
2919
+ export interface Input9397F836Qfh {
2798
2920
  /**
2799
2921
  * Tenant ID this FAQ belongs to
2800
2922
  * @example "tenant456"
@@ -4951,7 +5073,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
4951
5073
  }
4952
5074
  /**
4953
5075
  * @title No title
4954
- * @version 2.0.16
5076
+ * @version 2.0.17
4955
5077
  * @baseUrl http://localhost:8080
4956
5078
  * @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
4957
5079
  */
@@ -5315,7 +5437,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5315
5437
  * @request POST:/tenant/{tenantID}/faq/{faqID}
5316
5438
  * @secure
5317
5439
  */
5318
- createFaq: (tenantId: string, faqId: string, data: InputFchy2Vqm36, params?: RequestParams) => Promise<any>;
5440
+ createFaq: (tenantId: string, faqId: string, data: InputZhvrz8Yp0W, params?: RequestParams) => Promise<any>;
5319
5441
  /**
5320
5442
  * @description Update an existing FAQ.
5321
5443
  *
@@ -5325,7 +5447,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5325
5447
  * @request PUT:/tenant/{tenantID}/faq/{faqID}
5326
5448
  * @secure
5327
5449
  */
5328
- updateFaq: (tenantId: string, faqId: string, data: InputArlvymhzth, params?: RequestParams) => Promise<any>;
5450
+ updateFaq: (tenantId: string, faqId: string, data: Input9397F836Qfh, params?: RequestParams) => Promise<any>;
5329
5451
  /**
5330
5452
  * @description Delete a FAQ.
5331
5453
  *