@ikonintegration/module-config-api 2.0.8 → 2.0.11
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 +104 -6
- package/dist/Api.d.ts +5541 -0
- package/dist/Api.js +1145 -0
- package/dist/Api.js.map +1 -0
- package/package.json +2 -2
- package/tsconfig.json +4 -2
package/Api.ts
CHANGED
|
@@ -1882,7 +1882,7 @@ export interface TilePermissionsResponse {
|
|
|
1882
1882
|
* Map of tile IDs to permission entries
|
|
1883
1883
|
* @example {"tile1":[{"role":"admin","access":"READ"},{"role":"user","access":"READ"}],"tile2":[{"role":"admin","access":"READ"}]}
|
|
1884
1884
|
*/
|
|
1885
|
-
tilePermissions
|
|
1885
|
+
tilePermissions: Record<
|
|
1886
1886
|
string,
|
|
1887
1887
|
{
|
|
1888
1888
|
/**
|
|
@@ -2800,7 +2800,7 @@ export interface FaqResponse {
|
|
|
2800
2800
|
answer?: string
|
|
2801
2801
|
}
|
|
2802
2802
|
|
|
2803
|
-
export interface
|
|
2803
|
+
export interface InputSd925Fyovd {
|
|
2804
2804
|
/**
|
|
2805
2805
|
* Tenant ID this FAQ belongs to
|
|
2806
2806
|
* @example "tenant456"
|
|
@@ -2823,7 +2823,7 @@ export interface InputI1Zjq906Kx {
|
|
|
2823
2823
|
answer?: string
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
|
-
export interface
|
|
2826
|
+
export interface InputLz115Z1F9W {
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Tenant ID this FAQ belongs to
|
|
2829
2829
|
* @example "tenant456"
|
|
@@ -2939,6 +2939,8 @@ export interface CertificationResponse {
|
|
|
2939
2939
|
* @example "standard"
|
|
2940
2940
|
*/
|
|
2941
2941
|
certificationEngineType?: string
|
|
2942
|
+
/** Array of webhooks invoked when the certification is renewed */
|
|
2943
|
+
renewalWebhooks?: string[]
|
|
2942
2944
|
/**
|
|
2943
2945
|
* Array of requirement ID arrays (nested structure for requirement groups)
|
|
2944
2946
|
* @example [["req1","req2"],["req3"]]
|
|
@@ -3132,6 +3134,8 @@ export interface CertificationRequestBody {
|
|
|
3132
3134
|
* @example "standard"
|
|
3133
3135
|
*/
|
|
3134
3136
|
certificationEngineType?: string
|
|
3137
|
+
/** Array of webhooks invoked when the certification is renewed */
|
|
3138
|
+
renewalWebhooks?: string[]
|
|
3135
3139
|
/**
|
|
3136
3140
|
* Array of requirement ID arrays (nested structure for requirement groups)
|
|
3137
3141
|
* @example [["req1","req2"],["req3"]]
|
|
@@ -3346,6 +3350,8 @@ export interface CertificationListResponse {
|
|
|
3346
3350
|
* @example "standard"
|
|
3347
3351
|
*/
|
|
3348
3352
|
certificationEngineType?: string
|
|
3353
|
+
/** Array of webhooks invoked when the certification is renewed */
|
|
3354
|
+
renewalWebhooks?: string[]
|
|
3349
3355
|
/**
|
|
3350
3356
|
* Array of requirement ID arrays (nested structure for requirement groups)
|
|
3351
3357
|
* @example [["req1","req2"],["req3"]]
|
|
@@ -3587,6 +3593,11 @@ export interface CourseResponse {
|
|
|
3587
3593
|
* @example ["req1","req2"]
|
|
3588
3594
|
*/
|
|
3589
3595
|
requirementsIDs?: string[]
|
|
3596
|
+
/**
|
|
3597
|
+
* Flag that indicates that users can request enrolment to the course, it will enable the Request Enrolment button in the LMS FE.
|
|
3598
|
+
* @example true
|
|
3599
|
+
*/
|
|
3600
|
+
enableRequestToEnrol?: boolean
|
|
3590
3601
|
/**
|
|
3591
3602
|
* Whether required on renewal
|
|
3592
3603
|
* @example false
|
|
@@ -3624,8 +3635,15 @@ export interface CourseResponse {
|
|
|
3624
3635
|
* @example false
|
|
3625
3636
|
*/
|
|
3626
3637
|
allowIfAnyRequirementMet?: boolean
|
|
3638
|
+
/**
|
|
3639
|
+
* Only allow enrolment in this course if the session date is within the certification validity. If certification is expired in the date of the session selected, block enrolment.
|
|
3640
|
+
* @example false
|
|
3641
|
+
*/
|
|
3642
|
+
allowOnlyIfCertificationIsValid?: boolean
|
|
3627
3643
|
/** Array of course fail webhook URLs */
|
|
3628
3644
|
courseFailWebhooks?: string[]
|
|
3645
|
+
/** string containing a url to be invoked to determine if the courses external requiements are met */
|
|
3646
|
+
externalRequirementWebhook?: string
|
|
3629
3647
|
/**
|
|
3630
3648
|
* Whether to lock after failure
|
|
3631
3649
|
* @example false
|
|
@@ -3798,6 +3816,24 @@ export interface CourseResponse {
|
|
|
3798
3816
|
* @example false
|
|
3799
3817
|
*/
|
|
3800
3818
|
preventLaunchIfCompleted?: boolean
|
|
3819
|
+
/** Array of IDM user attributes that can be requirements for the course. Attributes must have a boolean true value to enable enrolment in the course. */
|
|
3820
|
+
requirementUserAttribIDs?: {
|
|
3821
|
+
/**
|
|
3822
|
+
* Partition ID
|
|
3823
|
+
* @example "partition-001"
|
|
3824
|
+
*/
|
|
3825
|
+
partition: string
|
|
3826
|
+
/**
|
|
3827
|
+
* Name of the attribute, found under the value object in the partition record
|
|
3828
|
+
* @example "hasSafetyTraining"
|
|
3829
|
+
*/
|
|
3830
|
+
attributeName: string
|
|
3831
|
+
/**
|
|
3832
|
+
* Description used for message displayed to user when requirement is not met
|
|
3833
|
+
* @example "hasSafetyTraining"
|
|
3834
|
+
*/
|
|
3835
|
+
description: string
|
|
3836
|
+
}[]
|
|
3801
3837
|
}
|
|
3802
3838
|
|
|
3803
3839
|
/** Course request body for create/update operations */
|
|
@@ -3849,6 +3885,11 @@ export interface CourseRequestBody {
|
|
|
3849
3885
|
* @example ["req1","req2"]
|
|
3850
3886
|
*/
|
|
3851
3887
|
requirementsIDs?: string[]
|
|
3888
|
+
/**
|
|
3889
|
+
* Flag that indicates that users can request enrolment to the course, it will enable the Request Enrolment button in the LMS FE.
|
|
3890
|
+
* @example true
|
|
3891
|
+
*/
|
|
3892
|
+
enableRequestToEnrol?: boolean
|
|
3852
3893
|
/**
|
|
3853
3894
|
* Whether required on renewal
|
|
3854
3895
|
* @example false
|
|
@@ -3886,8 +3927,15 @@ export interface CourseRequestBody {
|
|
|
3886
3927
|
* @example false
|
|
3887
3928
|
*/
|
|
3888
3929
|
allowIfAnyRequirementMet?: boolean
|
|
3930
|
+
/**
|
|
3931
|
+
* Only allow enrolment in this course if the session date is within the certification validity. If certification is expired in the date of the session selected, block enrolment.
|
|
3932
|
+
* @example false
|
|
3933
|
+
*/
|
|
3934
|
+
allowOnlyIfCertificationIsValid?: boolean
|
|
3889
3935
|
/** Array of course fail webhook URLs */
|
|
3890
3936
|
courseFailWebhooks?: string[]
|
|
3937
|
+
/** string containing a url to be invoked to determine if the courses external requiements are met */
|
|
3938
|
+
externalRequirementWebhook?: string
|
|
3891
3939
|
/**
|
|
3892
3940
|
* Whether to lock after failure
|
|
3893
3941
|
* @example false
|
|
@@ -4060,6 +4108,24 @@ export interface CourseRequestBody {
|
|
|
4060
4108
|
* @example false
|
|
4061
4109
|
*/
|
|
4062
4110
|
preventLaunchIfCompleted?: boolean
|
|
4111
|
+
/** Array of IDM user attributes that can be requirements for the course. Attributes must have a boolean true value to enable enrolment in the course. */
|
|
4112
|
+
requirementUserAttribIDs?: {
|
|
4113
|
+
/**
|
|
4114
|
+
* Partition ID
|
|
4115
|
+
* @example "partition-001"
|
|
4116
|
+
*/
|
|
4117
|
+
partition: string
|
|
4118
|
+
/**
|
|
4119
|
+
* Name of the attribute, found under the value object in the partition record
|
|
4120
|
+
* @example "hasSafetyTraining"
|
|
4121
|
+
*/
|
|
4122
|
+
attributeName: string
|
|
4123
|
+
/**
|
|
4124
|
+
* Description used for message displayed to user when requirement is not met
|
|
4125
|
+
* @example "hasSafetyTraining"
|
|
4126
|
+
*/
|
|
4127
|
+
description: string
|
|
4128
|
+
}[]
|
|
4063
4129
|
}
|
|
4064
4130
|
|
|
4065
4131
|
/** Request body for adding a coursebook */
|
|
@@ -4082,6 +4148,7 @@ export interface AddCourseBookResponse {
|
|
|
4082
4148
|
fileID: string
|
|
4083
4149
|
fileName: string
|
|
4084
4150
|
}[]
|
|
4151
|
+
[key: string]: any
|
|
4085
4152
|
}
|
|
4086
4153
|
|
|
4087
4154
|
/** File sign response with signed URL */
|
|
@@ -4099,6 +4166,7 @@ export interface CourseBookResponse {
|
|
|
4099
4166
|
fileID: string
|
|
4100
4167
|
fileName: string
|
|
4101
4168
|
}[]
|
|
4169
|
+
[key: string]: any
|
|
4102
4170
|
}
|
|
4103
4171
|
|
|
4104
4172
|
/** List of courses response */
|
|
@@ -4171,6 +4239,11 @@ export interface CourseListResponse {
|
|
|
4171
4239
|
* @example ["req1","req2"]
|
|
4172
4240
|
*/
|
|
4173
4241
|
requirementsIDs?: string[]
|
|
4242
|
+
/**
|
|
4243
|
+
* Flag that indicates that users can request enrolment to the course, it will enable the Request Enrolment button in the LMS FE.
|
|
4244
|
+
* @example true
|
|
4245
|
+
*/
|
|
4246
|
+
enableRequestToEnrol?: boolean
|
|
4174
4247
|
/**
|
|
4175
4248
|
* Whether required on renewal
|
|
4176
4249
|
* @example false
|
|
@@ -4208,8 +4281,15 @@ export interface CourseListResponse {
|
|
|
4208
4281
|
* @example false
|
|
4209
4282
|
*/
|
|
4210
4283
|
allowIfAnyRequirementMet?: boolean
|
|
4284
|
+
/**
|
|
4285
|
+
* Only allow enrolment in this course if the session date is within the certification validity. If certification is expired in the date of the session selected, block enrolment.
|
|
4286
|
+
* @example false
|
|
4287
|
+
*/
|
|
4288
|
+
allowOnlyIfCertificationIsValid?: boolean
|
|
4211
4289
|
/** Array of course fail webhook URLs */
|
|
4212
4290
|
courseFailWebhooks?: string[]
|
|
4291
|
+
/** string containing a url to be invoked to determine if the courses external requiements are met */
|
|
4292
|
+
externalRequirementWebhook?: string
|
|
4213
4293
|
/**
|
|
4214
4294
|
* Whether to lock after failure
|
|
4215
4295
|
* @example false
|
|
@@ -4382,6 +4462,24 @@ export interface CourseListResponse {
|
|
|
4382
4462
|
* @example false
|
|
4383
4463
|
*/
|
|
4384
4464
|
preventLaunchIfCompleted?: boolean
|
|
4465
|
+
/** Array of IDM user attributes that can be requirements for the course. Attributes must have a boolean true value to enable enrolment in the course. */
|
|
4466
|
+
requirementUserAttribIDs?: {
|
|
4467
|
+
/**
|
|
4468
|
+
* Partition ID
|
|
4469
|
+
* @example "partition-001"
|
|
4470
|
+
*/
|
|
4471
|
+
partition: string
|
|
4472
|
+
/**
|
|
4473
|
+
* Name of the attribute, found under the value object in the partition record
|
|
4474
|
+
* @example "hasSafetyTraining"
|
|
4475
|
+
*/
|
|
4476
|
+
attributeName: string
|
|
4477
|
+
/**
|
|
4478
|
+
* Description used for message displayed to user when requirement is not met
|
|
4479
|
+
* @example "hasSafetyTraining"
|
|
4480
|
+
*/
|
|
4481
|
+
description: string
|
|
4482
|
+
}[]
|
|
4385
4483
|
}[]
|
|
4386
4484
|
}
|
|
4387
4485
|
|
|
@@ -5071,7 +5169,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
5071
5169
|
|
|
5072
5170
|
/**
|
|
5073
5171
|
* @title No title
|
|
5074
|
-
* @version 2.0.
|
|
5172
|
+
* @version 2.0.11
|
|
5075
5173
|
* @baseUrl http://localhost:8080
|
|
5076
5174
|
* @contact Ikon Integration <ikon@ikonintegration.com> (http://example.com)
|
|
5077
5175
|
*/
|
|
@@ -5736,7 +5834,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
5736
5834
|
* @request POST:/tenant/{tenantID}/faq/{faqID}
|
|
5737
5835
|
* @secure
|
|
5738
5836
|
*/
|
|
5739
|
-
createFaq: (tenantId: string, faqId: string, data:
|
|
5837
|
+
createFaq: (tenantId: string, faqId: string, data: InputSd925Fyovd, params: RequestParams = {}) =>
|
|
5740
5838
|
this.request<CreateFaqData, CreateFaqError>({
|
|
5741
5839
|
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
5742
5840
|
method: 'POST',
|
|
@@ -5755,7 +5853,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
5755
5853
|
* @request PUT:/tenant/{tenantID}/faq/{faqID}
|
|
5756
5854
|
* @secure
|
|
5757
5855
|
*/
|
|
5758
|
-
updateFaq: (tenantId: string, faqId: string, data:
|
|
5856
|
+
updateFaq: (tenantId: string, faqId: string, data: InputLz115Z1F9W, params: RequestParams = {}) =>
|
|
5759
5857
|
this.request<UpdateFaqData, UpdateFaqError>({
|
|
5760
5858
|
path: `/tenant/${tenantId}/faq/${faqId}`,
|
|
5761
5859
|
method: 'PUT',
|