@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/Api.ts CHANGED
@@ -45,10 +45,10 @@ export interface CustomerResponse {
45
45
  */
46
46
  id: string
47
47
  /**
48
- * Display name of the customer
49
- * @example "ACME Corporation"
48
+ * Timezone code
49
+ * @example "America/Vancouver"
50
50
  */
51
- displayName?: string
51
+ timezoneCode: string
52
52
  /**
53
53
  * Admin role identifier
54
54
  * @example "admin"
@@ -59,11 +59,6 @@ export interface CustomerResponse {
59
59
  * @example "user"
60
60
  */
61
61
  userRole?: string
62
- /**
63
- * Timezone code
64
- * @example "America/Vancouver"
65
- */
66
- timezoneCode: string
67
62
  /**
68
63
  * Instructor role identifier
69
64
  * @example "instructor"
@@ -79,6 +74,16 @@ export interface CustomerResponse {
79
74
  * @example "idm_token_456"
80
75
  */
81
76
  idmToken?: string
77
+ /**
78
+ * IDM API user
79
+ * @example "api_user"
80
+ */
81
+ idmAPIUser?: string
82
+ /**
83
+ * IDM API password
84
+ * @example "api_password"
85
+ */
86
+ idmAPIPassword?: string
82
87
  /**
83
88
  * Email sender address
84
89
  * @example "noreply@example.com"
@@ -110,7 +115,7 @@ export interface CustomerResponse {
110
115
  */
111
116
  orgUserRole?: string
112
117
  /**
113
- * namespace for the instance of org module to be used. Used to build the LMS FE.
118
+ * Namespace for the instance of org module to be used. Used to build the LMS FE.
114
119
  * @example "bccsa"
115
120
  */
116
121
  orgModNamespace?: string
@@ -124,11 +129,21 @@ export interface CustomerResponse {
124
129
  * @example ["req1","req2"]
125
130
  */
126
131
  allowedForeignReqs?: string[]
132
+ /**
133
+ * Display name of the customer
134
+ * @example "ACME Corporation"
135
+ */
136
+ displayName?: string
127
137
  /**
128
138
  * Shared module license API key
129
139
  * @example "license_api_key"
130
140
  */
131
141
  sharedModuleLicenseAPIKey?: string
142
+ /**
143
+ * Shared module config API key
144
+ * @example "config_api_key"
145
+ */
146
+ sharedModuleConfigAPIKey?: string
132
147
  /**
133
148
  * Shared module auditing API key
134
149
  * @example "auditing_api_key"
@@ -154,16 +169,32 @@ export interface CustomerResponse {
154
169
  * @example "mailer_api_key"
155
170
  */
156
171
  sharedModuleMailerAPIKey?: string
157
- /**
158
- * Authentication configuration object
159
- * @example {"provider":"cognito","region":"us-west-2"}
160
- */
161
- authConfig?: any
162
- /**
163
- * UI theme identifier
164
- * @example "default"
165
- */
166
- theme?: string
172
+ /** Authentication configuration object */
173
+ authConfig?: AuthConfig
174
+ portalConfig?: {
175
+ /**
176
+ * Portal theme identifier
177
+ * @example "default"
178
+ */
179
+ theme?: string
180
+ /**
181
+ * Portal domain
182
+ * @example "portal.example.com"
183
+ */
184
+ domain?: string
185
+ /**
186
+ * Cookies hub domain for the portal
187
+ * @example ".example.com"
188
+ */
189
+ cookiesHubDomain?: string
190
+ /**
191
+ * Accepted connections origin
192
+ * @example "https://app.example.com"
193
+ */
194
+ acceptConnectionsFrom?: string
195
+ }
196
+ /** UI theme configuration object */
197
+ theme?: ThemeConfig
167
198
  /**
168
199
  * Customer domain
169
200
  * @example "customer.example.com"
@@ -175,65 +206,69 @@ export interface CustomerResponse {
175
206
  */
176
207
  cookiesHubDomain?: string
177
208
  /**
178
- * Platform for accepting connections
179
- * @example "web"
209
+ * List of origins allowed to connect
210
+ * @example ["https://app.example.com"]
180
211
  */
181
- acceptConnectionsPlatform?: string
212
+ acceptConnectionsFrom?: string[]
182
213
  /**
183
214
  * Worksafe terminology
184
215
  * @example "WorkSafeBC"
185
216
  */
186
217
  worksafeTerm?: string
187
- /**
188
- * List of cancelation policies
189
- * @example [{"type":"standard","rules":[]}]
190
- */
191
- cancelationPolicies?: any[]
192
- /**
193
- * Whether to use business days
194
- * @example 1
195
- */
196
- isBusinessDays?: number
197
- /**
198
- * Whether bookings can be canceled
199
- * @example true
200
- */
201
- canBeCanceled?: boolean
202
- /**
203
- * Whether bookings can be rescheduled
204
- * @example true
205
- */
206
- canBeRescheduled?: boolean
207
- /**
208
- * List of rules
209
- * @example []
210
- */
211
- rules?: any[]
212
- /**
213
- * Days before for policy application
214
- * @example 7
215
- */
216
- useDaysBefore?: number
217
- /**
218
- * Percentage refunded on cancelation
219
- * @example 100
220
- */
221
- percentageRefunded?: number
222
- /**
223
- * Amount charged on cancelation
224
- * @example 0
225
- */
226
- amountCharged?: number
227
- /**
228
- * Whether to deduct enrollment payment
229
- * @example false
230
- */
231
- deductEnrollmentPayment?: boolean
232
- /**
233
- * Whether customer has refund policy
234
- * @example true
235
- */
236
- hasRefundPolicy?: boolean
218
+ /** List of cancelation policies */
219
+ cancelationPolicies?: {
220
+ /**
221
+ * Cancelation policy identifier
222
+ * @example "policy_1"
223
+ */
224
+ id?: string
225
+ /**
226
+ * Cancelation policy description
227
+ * @example "Standard cancelation policy"
228
+ */
229
+ description?: string
230
+ /** Cancel policy configuration */
231
+ cancelPolicy?: {
232
+ /**
233
+ * Whether to use business days for calculations
234
+ * @example true
235
+ */
236
+ isBusinessDays?: boolean
237
+ /**
238
+ * Whether bookings can be canceled
239
+ * @example true
240
+ */
241
+ canBeCanceled?: boolean
242
+ /**
243
+ * Whether bookings can be rescheduled
244
+ * @example true
245
+ */
246
+ canBeRescheduled?: boolean
247
+ /** List of cancelation rules */
248
+ rules?: {
249
+ /**
250
+ * Number of days before the event for this rule to apply
251
+ * @example 7
252
+ */
253
+ untilDaysBefore?: number
254
+ /**
255
+ * Percentage refunded on cancelation
256
+ * @example 100
257
+ */
258
+ percentageRefunded?: number
259
+ /**
260
+ * Amount charged on cancelation
261
+ * @example 0
262
+ */
263
+ amountCharged?: number
264
+ /**
265
+ * Whether to deduct enrolment payment
266
+ * @example false
267
+ */
268
+ deductEnrolmentPayment?: boolean
269
+ }[]
270
+ }
271
+ }[]
237
272
  /**
238
273
  * Sales tax label
239
274
  * @example "GST"
@@ -244,56 +279,77 @@ export interface CustomerResponse {
244
279
  * @example false
245
280
  */
246
281
  ignoreCustomAttributesForSignUp?: boolean
247
- /**
248
- * List of cooldown policies
249
- * @example [{"courseID":"course1","cooldownPolicy":{"rules":[]}}]
250
- */
251
- cooldownPolicies?: any[]
252
- /**
253
- * Number of failed attempts before refill
254
- * @example 3
255
- */
256
- refillFailedAttempts?: number
257
- /**
258
- * Cooldown period in days
259
- * @example 30
260
- */
261
- cooldownPeriod?: number
262
- /**
263
- * Whether to invalidate course requirements
264
- * @example false
265
- */
266
- invalidateCourseRequirements?: boolean
267
- /**
268
- * Whether to lock application
269
- * @example false
270
- */
271
- lockApplication?: boolean
272
- /**
273
- * Blocks the course using a trigger block
274
- * @example false
275
- */
276
- blockCourse?: boolean
277
- /**
278
- * Days before auto-unlock
279
- * @example 90
280
- */
281
- autoUnlockDays?: number
282
- /**
283
- * UI configuration object
284
- * @example {"primaryColor":"#007bff"}
285
- */
286
- ui?: any
287
- /**
288
- * Banner configuration object
289
- * @example {"enabled":true,"message":"Welcome!"}
290
- */
291
- banner?: any
292
282
  /**
293
283
  * Customer timezone
294
284
  * @example "America/Vancouver"
295
285
  */
296
286
  timezone?: string
287
+ /** Tile permissions configuration */
288
+ tilePermissions?: any
289
+ /** List of cooldown policies */
290
+ cooldownPolicies?: {
291
+ /**
292
+ * Cooldown policy identifier
293
+ * @example "cooldown_1"
294
+ */
295
+ id?: string
296
+ /**
297
+ * Cooldown policy description
298
+ * @example "Standard cooldown policy"
299
+ */
300
+ description?: string
301
+ /** Cooldown policy configuration */
302
+ cooldownPolicy?: {
303
+ /** List of cooldown rules */
304
+ rules?: {
305
+ /**
306
+ * Number of failed attempts before this rule applies
307
+ * @example 3
308
+ */
309
+ untilFailedAttempts?: number
310
+ /**
311
+ * Cooldown period in days
312
+ * @example 30
313
+ */
314
+ cooldownPeriod?: number
315
+ /**
316
+ * Whether to invalidate course requirements
317
+ * @example false
318
+ */
319
+ invalidateCourseRequirements?: boolean
320
+ /**
321
+ * Whether to lock application
322
+ * @example false
323
+ */
324
+ lockApplication?: boolean
325
+ /**
326
+ * Blocks the course using a trigger block
327
+ * @example false
328
+ */
329
+ blockCourse?: boolean
330
+ /**
331
+ * Days before auto-unlock
332
+ * @example 90
333
+ */
334
+ autoUnlockInDays?: number
335
+ }[]
336
+ }
337
+ }[]
338
+ ui?: {
339
+ /** Banner configuration */
340
+ banner?: {
341
+ /**
342
+ * Banner type
343
+ * @example "info"
344
+ */
345
+ type?: string
346
+ /**
347
+ * Banner content
348
+ * @example "Welcome to the platform!"
349
+ */
350
+ content?: string
351
+ }
352
+ }
297
353
  /**
298
354
  * List of feature flags
299
355
  * @example [{"name":"dark_mode","enabled":true}]
@@ -314,6 +370,18 @@ export interface CustomerResponse {
314
370
  }[]
315
371
  }
316
372
 
373
+ /**
374
+ * Authentication configuration object
375
+ * @example {"provider":"cognito","region":"us-west-2"}
376
+ */
377
+ export type AuthConfig = Record<string, any>
378
+
379
+ /**
380
+ * UI theme configuration object
381
+ * @example {"primaryColor":"#007bff"}
382
+ */
383
+ export type ThemeConfig = Record<string, any>
384
+
317
385
  /** Customer request body for create/update operations */
318
386
  export interface CustomerRequestBody {
319
387
  /**
@@ -322,10 +390,10 @@ export interface CustomerRequestBody {
322
390
  */
323
391
  id: string
324
392
  /**
325
- * Display name of the customer
326
- * @example "ACME Corporation"
393
+ * Timezone code
394
+ * @example "America/Vancouver"
327
395
  */
328
- displayName?: string
396
+ timezoneCode: string
329
397
  /**
330
398
  * Admin role identifier
331
399
  * @example "admin"
@@ -336,11 +404,6 @@ export interface CustomerRequestBody {
336
404
  * @example "user"
337
405
  */
338
406
  userRole?: string
339
- /**
340
- * Timezone code
341
- * @example "America/Vancouver"
342
- */
343
- timezoneCode: string
344
407
  /**
345
408
  * Instructor role identifier
346
409
  * @example "instructor"
@@ -356,6 +419,16 @@ export interface CustomerRequestBody {
356
419
  * @example "idm_token_456"
357
420
  */
358
421
  idmToken?: string
422
+ /**
423
+ * IDM API user
424
+ * @example "api_user"
425
+ */
426
+ idmAPIUser?: string
427
+ /**
428
+ * IDM API password
429
+ * @example "api_password"
430
+ */
431
+ idmAPIPassword?: string
359
432
  /**
360
433
  * Email sender address
361
434
  * @example "noreply@example.com"
@@ -387,7 +460,7 @@ export interface CustomerRequestBody {
387
460
  */
388
461
  orgUserRole?: string
389
462
  /**
390
- * namespace for the instance of org module to be used. Used to build the LMS FE.
463
+ * Namespace for the instance of org module to be used. Used to build the LMS FE.
391
464
  * @example "bccsa"
392
465
  */
393
466
  orgModNamespace?: string
@@ -401,11 +474,21 @@ export interface CustomerRequestBody {
401
474
  * @example ["req1","req2"]
402
475
  */
403
476
  allowedForeignReqs?: string[]
477
+ /**
478
+ * Display name of the customer
479
+ * @example "ACME Corporation"
480
+ */
481
+ displayName?: string
404
482
  /**
405
483
  * Shared module license API key
406
484
  * @example "license_api_key"
407
485
  */
408
486
  sharedModuleLicenseAPIKey?: string
487
+ /**
488
+ * Shared module config API key
489
+ * @example "config_api_key"
490
+ */
491
+ sharedModuleConfigAPIKey?: string
409
492
  /**
410
493
  * Shared module auditing API key
411
494
  * @example "auditing_api_key"
@@ -431,16 +514,32 @@ export interface CustomerRequestBody {
431
514
  * @example "mailer_api_key"
432
515
  */
433
516
  sharedModuleMailerAPIKey?: string
434
- /**
435
- * Authentication configuration object
436
- * @example {"provider":"cognito","region":"us-west-2"}
437
- */
438
- authConfig?: any
439
- /**
440
- * UI theme identifier
441
- * @example "default"
442
- */
443
- theme?: string
517
+ /** Authentication configuration object */
518
+ authConfig?: AuthConfig
519
+ portalConfig?: {
520
+ /**
521
+ * Portal theme identifier
522
+ * @example "default"
523
+ */
524
+ theme?: string
525
+ /**
526
+ * Portal domain
527
+ * @example "portal.example.com"
528
+ */
529
+ domain?: string
530
+ /**
531
+ * Cookies hub domain for the portal
532
+ * @example ".example.com"
533
+ */
534
+ cookiesHubDomain?: string
535
+ /**
536
+ * Accepted connections origin
537
+ * @example "https://app.example.com"
538
+ */
539
+ acceptConnectionsFrom?: string
540
+ }
541
+ /** UI theme configuration object */
542
+ theme?: ThemeConfig
444
543
  /**
445
544
  * Customer domain
446
545
  * @example "customer.example.com"
@@ -452,65 +551,69 @@ export interface CustomerRequestBody {
452
551
  */
453
552
  cookiesHubDomain?: string
454
553
  /**
455
- * Platform for accepting connections
456
- * @example "web"
554
+ * List of origins allowed to connect
555
+ * @example ["https://app.example.com"]
457
556
  */
458
- acceptConnectionsPlatform?: string
557
+ acceptConnectionsFrom?: string[]
459
558
  /**
460
559
  * Worksafe terminology
461
560
  * @example "WorkSafeBC"
462
561
  */
463
562
  worksafeTerm?: string
464
- /**
465
- * List of cancelation policies
466
- * @example [{"type":"standard","rules":[]}]
467
- */
468
- cancelationPolicies?: any[]
469
- /**
470
- * Whether to use business days
471
- * @example 1
472
- */
473
- isBusinessDays?: number
474
- /**
475
- * Whether bookings can be canceled
476
- * @example true
477
- */
478
- canBeCanceled?: boolean
479
- /**
480
- * Whether bookings can be rescheduled
481
- * @example true
482
- */
483
- canBeRescheduled?: boolean
484
- /**
485
- * List of rules
486
- * @example []
487
- */
488
- rules?: any[]
489
- /**
490
- * Days before for policy application
491
- * @example 7
492
- */
493
- useDaysBefore?: number
494
- /**
495
- * Percentage refunded on cancelation
496
- * @example 100
497
- */
498
- percentageRefunded?: number
499
- /**
500
- * Amount charged on cancelation
501
- * @example 0
502
- */
503
- amountCharged?: number
504
- /**
505
- * Whether to deduct enrollment payment
506
- * @example false
507
- */
508
- deductEnrollmentPayment?: boolean
509
- /**
510
- * Whether customer has refund policy
511
- * @example true
512
- */
513
- hasRefundPolicy?: boolean
563
+ /** List of cancelation policies */
564
+ cancelationPolicies?: {
565
+ /**
566
+ * Cancelation policy identifier
567
+ * @example "policy_1"
568
+ */
569
+ id?: string
570
+ /**
571
+ * Cancelation policy description
572
+ * @example "Standard cancelation policy"
573
+ */
574
+ description?: string
575
+ /** Cancel policy configuration */
576
+ cancelPolicy?: {
577
+ /**
578
+ * Whether to use business days for calculations
579
+ * @example true
580
+ */
581
+ isBusinessDays?: boolean
582
+ /**
583
+ * Whether bookings can be canceled
584
+ * @example true
585
+ */
586
+ canBeCanceled?: boolean
587
+ /**
588
+ * Whether bookings can be rescheduled
589
+ * @example true
590
+ */
591
+ canBeRescheduled?: boolean
592
+ /** List of cancelation rules */
593
+ rules?: {
594
+ /**
595
+ * Number of days before the event for this rule to apply
596
+ * @example 7
597
+ */
598
+ untilDaysBefore?: number
599
+ /**
600
+ * Percentage refunded on cancelation
601
+ * @example 100
602
+ */
603
+ percentageRefunded?: number
604
+ /**
605
+ * Amount charged on cancelation
606
+ * @example 0
607
+ */
608
+ amountCharged?: number
609
+ /**
610
+ * Whether to deduct enrolment payment
611
+ * @example false
612
+ */
613
+ deductEnrolmentPayment?: boolean
614
+ }[]
615
+ }
616
+ }[]
514
617
  /**
515
618
  * Sales tax label
516
619
  * @example "GST"
@@ -521,56 +624,77 @@ export interface CustomerRequestBody {
521
624
  * @example false
522
625
  */
523
626
  ignoreCustomAttributesForSignUp?: boolean
524
- /**
525
- * List of cooldown policies
526
- * @example [{"courseID":"course1","cooldownPolicy":{"rules":[]}}]
527
- */
528
- cooldownPolicies?: any[]
529
- /**
530
- * Number of failed attempts before refill
531
- * @example 3
532
- */
533
- refillFailedAttempts?: number
534
- /**
535
- * Cooldown period in days
536
- * @example 30
537
- */
538
- cooldownPeriod?: number
539
- /**
540
- * Whether to invalidate course requirements
541
- * @example false
542
- */
543
- invalidateCourseRequirements?: boolean
544
- /**
545
- * Whether to lock application
546
- * @example false
547
- */
548
- lockApplication?: boolean
549
- /**
550
- * Blocks the course using a trigger block
551
- * @example false
552
- */
553
- blockCourse?: boolean
554
- /**
555
- * Days before auto-unlock
556
- * @example 90
557
- */
558
- autoUnlockDays?: number
559
- /**
560
- * UI configuration object
561
- * @example {"primaryColor":"#007bff"}
562
- */
563
- ui?: any
564
- /**
565
- * Banner configuration object
566
- * @example {"enabled":true,"message":"Welcome!"}
567
- */
568
- banner?: any
569
627
  /**
570
628
  * Customer timezone
571
629
  * @example "America/Vancouver"
572
630
  */
573
631
  timezone?: string
632
+ /** Tile permissions configuration */
633
+ tilePermissions?: any
634
+ /** List of cooldown policies */
635
+ cooldownPolicies?: {
636
+ /**
637
+ * Cooldown policy identifier
638
+ * @example "cooldown_1"
639
+ */
640
+ id?: string
641
+ /**
642
+ * Cooldown policy description
643
+ * @example "Standard cooldown policy"
644
+ */
645
+ description?: string
646
+ /** Cooldown policy configuration */
647
+ cooldownPolicy?: {
648
+ /** List of cooldown rules */
649
+ rules?: {
650
+ /**
651
+ * Number of failed attempts before this rule applies
652
+ * @example 3
653
+ */
654
+ untilFailedAttempts?: number
655
+ /**
656
+ * Cooldown period in days
657
+ * @example 30
658
+ */
659
+ cooldownPeriod?: number
660
+ /**
661
+ * Whether to invalidate course requirements
662
+ * @example false
663
+ */
664
+ invalidateCourseRequirements?: boolean
665
+ /**
666
+ * Whether to lock application
667
+ * @example false
668
+ */
669
+ lockApplication?: boolean
670
+ /**
671
+ * Blocks the course using a trigger block
672
+ * @example false
673
+ */
674
+ blockCourse?: boolean
675
+ /**
676
+ * Days before auto-unlock
677
+ * @example 90
678
+ */
679
+ autoUnlockInDays?: number
680
+ }[]
681
+ }
682
+ }[]
683
+ ui?: {
684
+ /** Banner configuration */
685
+ banner?: {
686
+ /**
687
+ * Banner type
688
+ * @example "info"
689
+ */
690
+ type?: string
691
+ /**
692
+ * Banner content
693
+ * @example "Welcome to the platform!"
694
+ */
695
+ content?: string
696
+ }
697
+ }
574
698
  /**
575
699
  * List of feature flags
576
700
  * @example [{"name":"dark_mode","enabled":true}]
@@ -2810,7 +2934,7 @@ export interface FaqResponse {
2810
2934
  answer?: string
2811
2935
  }
2812
2936
 
2813
- export interface InputFchy2Vqm36 {
2937
+ export interface InputZhvrz8Yp0W {
2814
2938
  /**
2815
2939
  * Tenant ID this FAQ belongs to
2816
2940
  * @example "tenant456"
@@ -2833,7 +2957,7 @@ export interface InputFchy2Vqm36 {
2833
2957
  answer?: string
2834
2958
  }
2835
2959
 
2836
- export interface InputArlvymhzth {
2960
+ export interface Input9397F836Qfh {
2837
2961
  /**
2838
2962
  * Tenant ID this FAQ belongs to
2839
2963
  * @example "tenant456"
@@ -5230,7 +5354,7 @@ export class HttpClient<SecurityDataType = unknown> {
5230
5354
 
5231
5355
  /**
5232
5356
  * @title No title
5233
- * @version 2.0.16
5357
+ * @version 2.0.17
5234
5358
  * @baseUrl http://localhost:8080
5235
5359
  * @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
5236
5360
  */
@@ -5895,7 +6019,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
5895
6019
  * @request POST:/tenant/{tenantID}/faq/{faqID}
5896
6020
  * @secure
5897
6021
  */
5898
- createFaq: (tenantId: string, faqId: string, data: InputFchy2Vqm36, params: RequestParams = {}) =>
6022
+ createFaq: (tenantId: string, faqId: string, data: InputZhvrz8Yp0W, params: RequestParams = {}) =>
5899
6023
  this.request<CreateFaqData, CreateFaqError>({
5900
6024
  path: `/tenant/${tenantId}/faq/${faqId}`,
5901
6025
  method: 'POST',
@@ -5914,7 +6038,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
5914
6038
  * @request PUT:/tenant/{tenantID}/faq/{faqID}
5915
6039
  * @secure
5916
6040
  */
5917
- updateFaq: (tenantId: string, faqId: string, data: InputArlvymhzth, params: RequestParams = {}) =>
6041
+ updateFaq: (tenantId: string, faqId: string, data: Input9397F836Qfh, params: RequestParams = {}) =>
5918
6042
  this.request<UpdateFaqData, UpdateFaqError>({
5919
6043
  path: `/tenant/${tenantId}/faq/${faqId}`,
5920
6044
  method: 'PUT',