@easyedu/js-lsm-api 1.133.0 → 1.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +5 -3
- package/dist/apis/IntegrationApi.d.ts +7 -3
- package/dist/apis/IntegrationApi.js +10 -5
- package/dist/apis/PortalApi.d.ts +21 -0
- package/dist/apis/PortalApi.js +52 -0
- package/dist/esm/apis/IntegrationApi.d.ts +7 -3
- package/dist/esm/apis/IntegrationApi.js +10 -5
- package/dist/esm/apis/PortalApi.d.ts +21 -0
- package/dist/esm/apis/PortalApi.js +52 -0
- package/dist/esm/models/GetCourse.d.ts +6 -0
- package/dist/esm/models/GetCourse.js +4 -0
- package/dist/esm/models/GetPortalUser.d.ts +6 -0
- package/dist/esm/models/GetPortalUser.js +4 -0
- package/dist/esm/models/GetResource.d.ts +6 -0
- package/dist/esm/models/GetResource.js +4 -0
- package/dist/esm/models/IntegrationEventCourse.d.ts +6 -0
- package/dist/esm/models/IntegrationEventCourse.js +2 -0
- package/dist/esm/models/IntegrationEventLearner.d.ts +6 -0
- package/dist/esm/models/IntegrationEventLearner.js +2 -0
- package/dist/esm/models/IntegrationEventUser.d.ts +6 -0
- package/dist/esm/models/IntegrationEventUser.js +2 -0
- package/dist/esm/models/PostCourse.d.ts +6 -0
- package/dist/esm/models/PostCourse.js +2 -0
- package/dist/esm/models/PostPortalInvite.d.ts +6 -0
- package/dist/esm/models/PostPortalInvite.js +2 -0
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PostRichTextAssetUpload.d.ts +6 -0
- package/dist/esm/models/PostRichTextAssetUpload.js +2 -0
- package/dist/esm/models/PostZapierEnrollment.d.ts +16 -4
- package/dist/esm/models/PostZapierEnrollment.js +6 -6
- package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +8 -2
- package/dist/esm/models/PostZapierShopifyCourseMapping.js +3 -3
- package/dist/esm/models/PostZapierUser.d.ts +6 -0
- package/dist/esm/models/PostZapierUser.js +2 -0
- package/dist/esm/models/PutCourse.d.ts +6 -0
- package/dist/esm/models/PutCourse.js +2 -0
- package/dist/esm/models/PutPortalUser.d.ts +32 -0
- package/dist/esm/models/PutPortalUser.js +41 -0
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/RichTextAsset.d.ts +6 -0
- package/dist/esm/models/RichTextAsset.js +2 -0
- package/dist/esm/models/ZapierCourse.d.ts +6 -0
- package/dist/esm/models/ZapierCourse.js +4 -0
- package/dist/esm/models/ZapierEnrollment.d.ts +12 -0
- package/dist/esm/models/ZapierEnrollment.js +8 -0
- package/dist/esm/models/ZapierUser.d.ts +6 -0
- package/dist/esm/models/ZapierUser.js +4 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/GetCourse.d.ts +6 -0
- package/dist/models/GetCourse.js +4 -0
- package/dist/models/GetPortalUser.d.ts +6 -0
- package/dist/models/GetPortalUser.js +4 -0
- package/dist/models/GetResource.d.ts +6 -0
- package/dist/models/GetResource.js +4 -0
- package/dist/models/IntegrationEventCourse.d.ts +6 -0
- package/dist/models/IntegrationEventCourse.js +2 -0
- package/dist/models/IntegrationEventLearner.d.ts +6 -0
- package/dist/models/IntegrationEventLearner.js +2 -0
- package/dist/models/IntegrationEventUser.d.ts +6 -0
- package/dist/models/IntegrationEventUser.js +2 -0
- package/dist/models/PostCourse.d.ts +6 -0
- package/dist/models/PostCourse.js +2 -0
- package/dist/models/PostPortalInvite.d.ts +6 -0
- package/dist/models/PostPortalInvite.js +2 -0
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PostRichTextAssetUpload.d.ts +6 -0
- package/dist/models/PostRichTextAssetUpload.js +2 -0
- package/dist/models/PostZapierEnrollment.d.ts +16 -4
- package/dist/models/PostZapierEnrollment.js +6 -6
- package/dist/models/PostZapierShopifyCourseMapping.d.ts +8 -2
- package/dist/models/PostZapierShopifyCourseMapping.js +3 -3
- package/dist/models/PostZapierUser.d.ts +6 -0
- package/dist/models/PostZapierUser.js +2 -0
- package/dist/models/PutCourse.d.ts +6 -0
- package/dist/models/PutCourse.js +2 -0
- package/dist/models/PutPortalUser.d.ts +32 -0
- package/dist/models/PutPortalUser.js +48 -0
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/RichTextAsset.d.ts +6 -0
- package/dist/models/RichTextAsset.js +2 -0
- package/dist/models/ZapierCourse.d.ts +6 -0
- package/dist/models/ZapierCourse.js +4 -0
- package/dist/models/ZapierEnrollment.d.ts +12 -0
- package/dist/models/ZapierEnrollment.js +8 -0
- package/dist/models/ZapierUser.d.ts +6 -0
- package/dist/models/ZapierUser.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/GetCourse.md +2 -0
- package/docs/GetPortalUser.md +2 -0
- package/docs/GetResource.md +2 -0
- package/docs/IntegrationApi.md +15 -6
- package/docs/IntegrationEventCourse.md +2 -0
- package/docs/IntegrationEventLearner.md +2 -0
- package/docs/IntegrationEventUser.md +2 -0
- package/docs/PortalApi.md +78 -0
- package/docs/PostCourse.md +2 -0
- package/docs/PostPortalInvite.md +2 -0
- package/docs/PostResource.md +2 -0
- package/docs/PostRichTextAssetUpload.md +2 -0
- package/docs/PostZapierEnrollment.md +4 -0
- package/docs/PostZapierShopifyCourseMapping.md +2 -0
- package/docs/PostZapierUser.md +2 -0
- package/docs/PutCourse.md +2 -0
- package/docs/PutPortalUser.md +35 -0
- package/docs/PutResource.md +2 -0
- package/docs/RichTextAsset.md +2 -0
- package/docs/ZapierCourse.md +2 -0
- package/docs/ZapierEnrollment.md +4 -0
- package/docs/ZapierUser.md +2 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +15 -10
- package/src/apis/PortalApi.ts +81 -0
- package/src/models/GetCourse.ts +9 -0
- package/src/models/GetPortalUser.ts +9 -0
- package/src/models/GetResource.ts +9 -0
- package/src/models/IntegrationEventCourse.ts +8 -0
- package/src/models/IntegrationEventLearner.ts +8 -0
- package/src/models/IntegrationEventUser.ts +8 -0
- package/src/models/PostCourse.ts +8 -0
- package/src/models/PostPortalInvite.ts +8 -0
- package/src/models/PostResource.ts +8 -0
- package/src/models/PostRichTextAssetUpload.ts +8 -0
- package/src/models/PostZapierEnrollment.ts +22 -8
- package/src/models/PostZapierShopifyCourseMapping.ts +11 -4
- package/src/models/PostZapierUser.ts +8 -0
- package/src/models/PutCourse.ts +8 -0
- package/src/models/PutPortalUser.ts +65 -0
- package/src/models/PutResource.ts +8 -0
- package/src/models/RichTextAsset.ts +8 -0
- package/src/models/ZapierCourse.ts +9 -0
- package/src/models/ZapierEnrollment.ts +18 -0
- package/src/models/ZapierUser.ts +9 -0
- package/src/models/index.ts +1 -0
|
@@ -35,6 +35,8 @@ function instanceOfGetPortalUser(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('customerRef' in value) || value['customerRef'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
40
42
|
function GetPortalUserFromJSON(json) {
|
|
@@ -52,6 +54,7 @@ function GetPortalUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'role': json['role'],
|
|
53
55
|
'isActive': json['is_active'],
|
|
54
56
|
'invitation': json['invitation'] == null ? undefined : (0, GetPortalInvitationSummary_1.GetPortalInvitationSummaryFromJSON)(json['invitation']),
|
|
57
|
+
'customerRef': json['customer_ref'],
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
function GetPortalUserToJSON(json) {
|
|
@@ -69,5 +72,6 @@ function GetPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
72
|
'role': value['role'],
|
|
70
73
|
'is_active': value['isActive'],
|
|
71
74
|
'invitation': (0, GetPortalInvitationSummary_1.GetPortalInvitationSummaryToJSON)(value['invitation']),
|
|
75
|
+
'customer_ref': value['customerRef'],
|
|
72
76
|
};
|
|
73
77
|
}
|
|
@@ -114,6 +114,12 @@ export interface GetResource {
|
|
|
114
114
|
* @memberof GetResource
|
|
115
115
|
*/
|
|
116
116
|
archivedAt?: number | null;
|
|
117
|
+
/**
|
|
118
|
+
* Your own identifier for this resource, unique within the portal. Integrations can use it in place of id.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof GetResource
|
|
121
|
+
*/
|
|
122
|
+
customerRef: string | null;
|
|
117
123
|
}
|
|
118
124
|
/**
|
|
119
125
|
* Check if a given object implements the GetResource interface.
|
|
@@ -51,6 +51,8 @@ function instanceOfGetResource(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('customerRef' in value) || value['customerRef'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
return true;
|
|
55
57
|
}
|
|
56
58
|
function GetResourceFromJSON(json) {
|
|
@@ -77,6 +79,7 @@ function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
79
|
'createdAt': json['created_at'],
|
|
78
80
|
'updatedAt': json['updated_at'],
|
|
79
81
|
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
82
|
+
'customerRef': json['customer_ref'],
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
85
|
function GetResourceToJSON(json) {
|
|
@@ -103,5 +106,6 @@ function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
106
|
'created_at': value['createdAt'],
|
|
104
107
|
'updated_at': value['updatedAt'],
|
|
105
108
|
'archived_at': value['archivedAt'],
|
|
109
|
+
'customer_ref': value['customerRef'],
|
|
106
110
|
};
|
|
107
111
|
}
|
|
@@ -27,6 +27,12 @@ export interface IntegrationEventCourse {
|
|
|
27
27
|
* @memberof IntegrationEventCourse
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Your identifier for this course, if set.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationEventCourse
|
|
34
|
+
*/
|
|
35
|
+
customerRef?: string | null;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the IntegrationEventCourse interface.
|
|
@@ -38,6 +38,7 @@ function IntegrationEventCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'id': json['id'],
|
|
40
40
|
'name': json['name'],
|
|
41
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function IntegrationEventCourseToJSON(json) {
|
|
@@ -50,5 +51,6 @@ function IntegrationEventCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
51
|
return {
|
|
51
52
|
'id': value['id'],
|
|
52
53
|
'name': value['name'],
|
|
54
|
+
'customer_ref': value['customerRef'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -39,6 +39,12 @@ export interface IntegrationEventLearner {
|
|
|
39
39
|
* @memberof IntegrationEventLearner
|
|
40
40
|
*/
|
|
41
41
|
lastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Your identifier for this learner in the event portal, if set.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IntegrationEventLearner
|
|
46
|
+
*/
|
|
47
|
+
customerRef?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the IntegrationEventLearner interface.
|
|
@@ -44,6 +44,7 @@ function IntegrationEventLearnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'email': json['email'],
|
|
45
45
|
'firstName': json['first_name'],
|
|
46
46
|
'lastName': json['last_name'],
|
|
47
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function IntegrationEventLearnerToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function IntegrationEventLearnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
58
59
|
'email': value['email'],
|
|
59
60
|
'first_name': value['firstName'],
|
|
60
61
|
'last_name': value['lastName'],
|
|
62
|
+
'customer_ref': value['customerRef'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -39,6 +39,12 @@ export interface IntegrationEventUser {
|
|
|
39
39
|
* @memberof IntegrationEventUser
|
|
40
40
|
*/
|
|
41
41
|
lastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Your identifier for this user in the event portal, if set.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IntegrationEventUser
|
|
46
|
+
*/
|
|
47
|
+
customerRef?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the IntegrationEventUser interface.
|
|
@@ -44,6 +44,7 @@ function IntegrationEventUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'email': json['email'],
|
|
45
45
|
'firstName': json['first_name'],
|
|
46
46
|
'lastName': json['last_name'],
|
|
47
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function IntegrationEventUserToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function IntegrationEventUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'email': value['email'],
|
|
59
60
|
'first_name': value['firstName'],
|
|
60
61
|
'last_name': value['lastName'],
|
|
62
|
+
'customer_ref': value['customerRef'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -53,6 +53,12 @@ export interface PostCourse {
|
|
|
53
53
|
* @memberof PostCourse
|
|
54
54
|
*/
|
|
55
55
|
tags?: Set<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Your own identifier for this course, unique within the portal. Integrations such as Zapier can use it in place of id.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PostCourse
|
|
60
|
+
*/
|
|
61
|
+
customerRef?: string | null;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* @export
|
|
@@ -51,6 +51,7 @@ function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
52
52
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
53
53
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
54
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
function PostCourseToJSON(json) {
|
|
@@ -67,5 +68,6 @@ function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
68
|
'access_duration_days': value['accessDurationDays'],
|
|
68
69
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
69
70
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
71
|
+
'customer_ref': value['customerRef'],
|
|
70
72
|
};
|
|
71
73
|
}
|
|
@@ -39,6 +39,12 @@ export interface PostPortalInvite {
|
|
|
39
39
|
* @memberof PostPortalInvite
|
|
40
40
|
*/
|
|
41
41
|
userType: PostPortalInviteUserTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Your own identifier for this user in this portal, unique within the portal. Integrations such as Zapier can use it in place of the user id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostPortalInvite
|
|
46
|
+
*/
|
|
47
|
+
customerRef?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* @export
|
|
@@ -57,6 +57,7 @@ function PostPortalInviteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'firstName': json['first_name'],
|
|
58
58
|
'lastName': json['last_name'],
|
|
59
59
|
'userType': json['user_type'],
|
|
60
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
function PostPortalInviteToJSON(json) {
|
|
@@ -71,5 +72,6 @@ function PostPortalInviteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
'first_name': value['firstName'],
|
|
72
73
|
'last_name': value['lastName'],
|
|
73
74
|
'user_type': value['userType'],
|
|
75
|
+
'customer_ref': value['customerRef'],
|
|
74
76
|
};
|
|
75
77
|
}
|
|
@@ -53,6 +53,12 @@ export interface PostResource {
|
|
|
53
53
|
* @memberof PostResource
|
|
54
54
|
*/
|
|
55
55
|
tags?: Set<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Your own identifier for this resource, unique within the portal. Integrations can use it in place of id.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PostResource
|
|
60
|
+
*/
|
|
61
|
+
customerRef?: string | null;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* Check if a given object implements the PostResource interface.
|
|
@@ -44,6 +44,7 @@ function PostResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
45
45
|
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
46
46
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
47
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function PostResourceToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function PostResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
'link_url': value['linkUrl'],
|
|
61
62
|
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
62
63
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
64
|
+
'customer_ref': value['customerRef'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -51,6 +51,12 @@ export interface PostRichTextAssetUpload {
|
|
|
51
51
|
* @memberof PostRichTextAssetUpload
|
|
52
52
|
*/
|
|
53
53
|
usageContext: PostRichTextAssetUploadUsageContextEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Your own identifier for this asset, unique within the portal.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PostRichTextAssetUpload
|
|
58
|
+
*/
|
|
59
|
+
customerRef?: string | null;
|
|
54
60
|
}
|
|
55
61
|
/**
|
|
56
62
|
* @export
|
|
@@ -53,6 +53,7 @@ function PostRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'width': json['width'] == null ? undefined : json['width'],
|
|
54
54
|
'height': json['height'] == null ? undefined : json['height'],
|
|
55
55
|
'usageContext': json['usage_context'],
|
|
56
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
function PostRichTextAssetUploadToJSON(json) {
|
|
@@ -69,5 +70,6 @@ function PostRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
69
70
|
'width': value['width'],
|
|
70
71
|
'height': value['height'],
|
|
71
72
|
'usage_context': value['usageContext'],
|
|
73
|
+
'customer_ref': value['customerRef'],
|
|
72
74
|
};
|
|
73
75
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PostZapierEnrollment {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Course id. Send this or course_customer_ref.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PostZapierEnrollment
|
|
22
22
|
*/
|
|
23
|
-
courseId
|
|
23
|
+
courseId?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* User id. Send this or user_customer_ref.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PostZapierEnrollment
|
|
28
28
|
*/
|
|
29
|
-
userId
|
|
29
|
+
userId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Stable source event ID used to make retries safe.
|
|
32
32
|
* @type {string}
|
|
@@ -57,6 +57,18 @@ export interface PostZapierEnrollment {
|
|
|
57
57
|
* @memberof PostZapierEnrollment
|
|
58
58
|
*/
|
|
59
59
|
reEnrollmentMode?: PostZapierEnrollmentReEnrollmentModeEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Your identifier for the course. Send this or course_id.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PostZapierEnrollment
|
|
64
|
+
*/
|
|
65
|
+
courseCustomerRef?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Your identifier for the learner. Send this or user_id.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PostZapierEnrollment
|
|
70
|
+
*/
|
|
71
|
+
userCustomerRef?: string | null;
|
|
60
72
|
}
|
|
61
73
|
/**
|
|
62
74
|
* @export
|
|
@@ -30,10 +30,6 @@ exports.PostZapierEnrollmentReEnrollmentModeEnum = {
|
|
|
30
30
|
* Check if a given object implements the PostZapierEnrollment interface.
|
|
31
31
|
*/
|
|
32
32
|
function instanceOfPostZapierEnrollment(value) {
|
|
33
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('userId' in value) || value['userId'] === undefined)
|
|
36
|
-
return false;
|
|
37
33
|
return true;
|
|
38
34
|
}
|
|
39
35
|
function PostZapierEnrollmentFromJSON(json) {
|
|
@@ -44,13 +40,15 @@ function PostZapierEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
40
|
return json;
|
|
45
41
|
}
|
|
46
42
|
return {
|
|
47
|
-
'courseId': json['course_id'],
|
|
48
|
-
'userId': json['user_id'],
|
|
43
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
44
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
49
45
|
'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
|
|
50
46
|
'enrollmentDateStart': json['enrollment_date_start'] == null ? undefined : json['enrollment_date_start'],
|
|
51
47
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
52
48
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
53
49
|
'reEnrollmentMode': json['re_enrollment_mode'] == null ? undefined : json['re_enrollment_mode'],
|
|
50
|
+
'courseCustomerRef': json['course_customer_ref'] == null ? undefined : json['course_customer_ref'],
|
|
51
|
+
'userCustomerRef': json['user_customer_ref'] == null ? undefined : json['user_customer_ref'],
|
|
54
52
|
};
|
|
55
53
|
}
|
|
56
54
|
function PostZapierEnrollmentToJSON(json) {
|
|
@@ -68,5 +66,7 @@ function PostZapierEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
66
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
69
67
|
'notes': value['notes'],
|
|
70
68
|
're_enrollment_mode': value['reEnrollmentMode'],
|
|
69
|
+
'course_customer_ref': value['courseCustomerRef'],
|
|
70
|
+
'user_customer_ref': value['userCustomerRef'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -34,11 +34,17 @@ export interface PostZapierShopifyCourseMapping {
|
|
|
34
34
|
*/
|
|
35
35
|
productId?: string | null;
|
|
36
36
|
/**
|
|
37
|
-
* Stable external Edaxu course ID.
|
|
37
|
+
* Stable external Edaxu course ID. Send this or course_customer_ref.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof PostZapierShopifyCourseMapping
|
|
40
40
|
*/
|
|
41
|
-
courseId
|
|
41
|
+
courseId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Your identifier for the course. Send this or course_id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostZapierShopifyCourseMapping
|
|
46
|
+
*/
|
|
47
|
+
courseCustomerRef?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the PostZapierShopifyCourseMapping interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfPostZapierShopifyCourseMapping(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('variantId' in value) || value['variantId'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function PostZapierShopifyCourseMappingFromJSON(json) {
|
|
@@ -41,7 +39,8 @@ function PostZapierShopifyCourseMappingFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
39
|
'shopDomain': json['shop_domain'],
|
|
42
40
|
'variantId': json['variant_id'],
|
|
43
41
|
'productId': json['product_id'] == null ? undefined : json['product_id'],
|
|
44
|
-
'courseId': json['course_id'],
|
|
42
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
43
|
+
'courseCustomerRef': json['course_customer_ref'] == null ? undefined : json['course_customer_ref'],
|
|
45
44
|
};
|
|
46
45
|
}
|
|
47
46
|
function PostZapierShopifyCourseMappingToJSON(json) {
|
|
@@ -56,5 +55,6 @@ function PostZapierShopifyCourseMappingToJSONTyped(value, ignoreDiscriminator =
|
|
|
56
55
|
'variant_id': value['variantId'],
|
|
57
56
|
'product_id': value['productId'],
|
|
58
57
|
'course_id': value['courseId'],
|
|
58
|
+
'course_customer_ref': value['courseCustomerRef'],
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -33,6 +33,12 @@ export interface PostZapierUser {
|
|
|
33
33
|
* @memberof PostZapierUser
|
|
34
34
|
*/
|
|
35
35
|
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Your identifier for this learner. If a learner in this portal already has it, that learner is returned. Otherwise it is assigned to the matched or invited learner.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostZapierUser
|
|
40
|
+
*/
|
|
41
|
+
customerRef?: string | null;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the PostZapierUser interface.
|
|
@@ -41,6 +41,7 @@ function PostZapierUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'email': json['email'],
|
|
42
42
|
'firstName': json['first_name'],
|
|
43
43
|
'lastName': json['last_name'],
|
|
44
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
function PostZapierUserToJSON(json) {
|
|
@@ -54,5 +55,6 @@ function PostZapierUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
'email': value['email'],
|
|
55
56
|
'first_name': value['firstName'],
|
|
56
57
|
'last_name': value['lastName'],
|
|
58
|
+
'customer_ref': value['customerRef'],
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -63,6 +63,12 @@ export interface PutCourse {
|
|
|
63
63
|
* @memberof PutCourse
|
|
64
64
|
*/
|
|
65
65
|
tags?: Set<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Your own identifier, unique within the portal. Omit to leave unchanged, send null to clear.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PutCourse
|
|
70
|
+
*/
|
|
71
|
+
customerRef?: string | null;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* @export
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -49,6 +49,7 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
50
50
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
51
51
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
52
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
function PutCourseToJSON(json) {
|
|
@@ -66,5 +67,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'access_duration_days': value['accessDurationDays'],
|
|
67
68
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
68
69
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
70
|
+
'customer_ref': value['customerRef'],
|
|
69
71
|
};
|
|
70
72
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Admin-managed details for a portal member.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutPortalUser
|
|
16
|
+
*/
|
|
17
|
+
export interface PutPortalUser {
|
|
18
|
+
/**
|
|
19
|
+
* Your own identifier for this user in this portal, unique within the portal. Omit to leave unchanged, send null to clear.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutPortalUser
|
|
22
|
+
*/
|
|
23
|
+
customerRef?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutPortalUser interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutPortalUser(value: object): value is PutPortalUser;
|
|
29
|
+
export declare function PutPortalUserFromJSON(json: any): PutPortalUser;
|
|
30
|
+
export declare function PutPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalUser;
|
|
31
|
+
export declare function PutPortalUserToJSON(json: any): PutPortalUser;
|
|
32
|
+
export declare function PutPortalUserToJSONTyped(value?: PutPortalUser | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPutPortalUser = instanceOfPutPortalUser;
|
|
17
|
+
exports.PutPortalUserFromJSON = PutPortalUserFromJSON;
|
|
18
|
+
exports.PutPortalUserFromJSONTyped = PutPortalUserFromJSONTyped;
|
|
19
|
+
exports.PutPortalUserToJSON = PutPortalUserToJSON;
|
|
20
|
+
exports.PutPortalUserToJSONTyped = PutPortalUserToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutPortalUser interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutPortalUser(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutPortalUserFromJSON(json) {
|
|
28
|
+
return PutPortalUserFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutPortalUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PutPortalUserToJSON(json) {
|
|
39
|
+
return PutPortalUserToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PutPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'customer_ref': value['customerRef'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -33,6 +33,12 @@ export interface PutResource {
|
|
|
33
33
|
* @memberof PutResource
|
|
34
34
|
*/
|
|
35
35
|
tags?: Set<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Your own identifier, unique within the portal. Omit to leave unchanged, send null to clear.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PutResource
|
|
40
|
+
*/
|
|
41
|
+
customerRef?: string | null;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the PutResource interface.
|
|
@@ -35,6 +35,7 @@ function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
38
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function PutResourceToJSON(json) {
|
|
@@ -48,5 +49,6 @@ function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
'name': value['name'],
|
|
49
50
|
'description': value['description'],
|
|
50
51
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
52
|
+
'customer_ref': value['customerRef'],
|
|
51
53
|
};
|
|
52
54
|
}
|
|
@@ -51,6 +51,12 @@ export interface RichTextAsset {
|
|
|
51
51
|
* @memberof RichTextAsset
|
|
52
52
|
*/
|
|
53
53
|
renderUrl: string;
|
|
54
|
+
/**
|
|
55
|
+
* Your own identifier for this asset, unique within the portal.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RichTextAsset
|
|
58
|
+
*/
|
|
59
|
+
customerRef?: string | null;
|
|
54
60
|
}
|
|
55
61
|
/**
|
|
56
62
|
* Check if a given object implements the RichTextAsset interface.
|
|
@@ -46,6 +46,7 @@ function RichTextAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'width': json['width'] == null ? undefined : json['width'],
|
|
47
47
|
'height': json['height'] == null ? undefined : json['height'],
|
|
48
48
|
'renderUrl': json['render_url'],
|
|
49
|
+
'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
function RichTextAssetToJSON(json) {
|
|
@@ -62,5 +63,6 @@ function RichTextAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
63
|
'width': value['width'],
|
|
63
64
|
'height': value['height'],
|
|
64
65
|
'render_url': value['renderUrl'],
|
|
66
|
+
'customer_ref': value['customerRef'],
|
|
65
67
|
};
|
|
66
68
|
}
|
|
@@ -39,6 +39,12 @@ export interface ZapierCourse {
|
|
|
39
39
|
* @memberof ZapierCourse
|
|
40
40
|
*/
|
|
41
41
|
published: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Your own identifier for this course, unique within the portal. Integrations such as Zapier can use it in place of id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ZapierCourse
|
|
46
|
+
*/
|
|
47
|
+
customerRef: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the ZapierCourse interface.
|
|
@@ -30,6 +30,8 @@ function instanceOfZapierCourse(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('published' in value) || value['published'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('customerRef' in value) || value['customerRef'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
37
|
function ZapierCourseFromJSON(json) {
|
|
@@ -44,6 +46,7 @@ function ZapierCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'name': json['name'],
|
|
45
47
|
'description': json['description'],
|
|
46
48
|
'published': json['published'],
|
|
49
|
+
'customerRef': json['customer_ref'],
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
52
|
function ZapierCourseToJSON(json) {
|
|
@@ -58,5 +61,6 @@ function ZapierCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
61
|
'name': value['name'],
|
|
59
62
|
'description': value['description'],
|
|
60
63
|
'published': value['published'],
|
|
64
|
+
'customer_ref': value['customerRef'],
|
|
61
65
|
};
|
|
62
66
|
}
|
|
@@ -63,6 +63,18 @@ export interface ZapierEnrollment {
|
|
|
63
63
|
* @memberof ZapierEnrollment
|
|
64
64
|
*/
|
|
65
65
|
idempotentReplay: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Your identifier for the course, if set.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ZapierEnrollment
|
|
70
|
+
*/
|
|
71
|
+
courseCustomerRef: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Your identifier for the learner, if set.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ZapierEnrollment
|
|
76
|
+
*/
|
|
77
|
+
userCustomerRef: string | null;
|
|
66
78
|
}
|
|
67
79
|
/**
|
|
68
80
|
* Check if a given object implements the ZapierEnrollment interface.
|