@easyedu/js-lsm-api 1.129.0 → 1.130.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.
@@ -0,0 +1,100 @@
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
+ *
14
+ * @export
15
+ * @interface PostDemoRequest
16
+ */
17
+ export interface PostDemoRequest {
18
+ /**
19
+ * Stable for retries of the same submission; use a new UUID when details change.
20
+ * @type {string}
21
+ * @memberof PostDemoRequest
22
+ */
23
+ submissionId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostDemoRequest
28
+ */
29
+ fullName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostDemoRequest
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostDemoRequest
40
+ */
41
+ organization: string;
42
+ /**
43
+ *
44
+ * @type {PostDemoRequestLearnerRangeEnum}
45
+ * @memberof PostDemoRequest
46
+ */
47
+ learnerRange?: PostDemoRequestLearnerRangeEnum;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PostDemoRequest
52
+ */
53
+ message?: string;
54
+ /**
55
+ *
56
+ * @type {PostDemoRequestInquiryTypeEnum}
57
+ * @memberof PostDemoRequest
58
+ */
59
+ inquiryType?: PostDemoRequestInquiryTypeEnum;
60
+ /**
61
+ * Originating site pathname; query strings and fragments are removed.
62
+ * @type {string}
63
+ * @memberof PostDemoRequest
64
+ */
65
+ sourcePath?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PostDemoRequest
70
+ */
71
+ sourceCta?: string;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const PostDemoRequestLearnerRangeEnum: {
77
+ readonly _150: "1-50";
78
+ readonly _511000: "51-1000";
79
+ readonly _10013000: "1001-3000";
80
+ readonly _3001: "3001+";
81
+ };
82
+ export type PostDemoRequestLearnerRangeEnum = typeof PostDemoRequestLearnerRangeEnum[keyof typeof PostDemoRequestLearnerRangeEnum];
83
+ /**
84
+ * @export
85
+ */
86
+ export declare const PostDemoRequestInquiryTypeEnum: {
87
+ readonly Demo: "demo";
88
+ readonly Enterprise: "enterprise";
89
+ readonly Migration: "migration";
90
+ readonly Sales: "sales";
91
+ };
92
+ export type PostDemoRequestInquiryTypeEnum = typeof PostDemoRequestInquiryTypeEnum[keyof typeof PostDemoRequestInquiryTypeEnum];
93
+ /**
94
+ * Check if a given object implements the PostDemoRequest interface.
95
+ */
96
+ export declare function instanceOfPostDemoRequest(value: object): value is PostDemoRequest;
97
+ export declare function PostDemoRequestFromJSON(json: any): PostDemoRequest;
98
+ export declare function PostDemoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDemoRequest;
99
+ export declare function PostDemoRequestToJSON(json: any): PostDemoRequest;
100
+ export declare function PostDemoRequestToJSONTyped(value?: PostDemoRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,91 @@
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.PostDemoRequestInquiryTypeEnum = exports.PostDemoRequestLearnerRangeEnum = void 0;
17
+ exports.instanceOfPostDemoRequest = instanceOfPostDemoRequest;
18
+ exports.PostDemoRequestFromJSON = PostDemoRequestFromJSON;
19
+ exports.PostDemoRequestFromJSONTyped = PostDemoRequestFromJSONTyped;
20
+ exports.PostDemoRequestToJSON = PostDemoRequestToJSON;
21
+ exports.PostDemoRequestToJSONTyped = PostDemoRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostDemoRequestLearnerRangeEnum = {
26
+ _150: '1-50',
27
+ _511000: '51-1000',
28
+ _10013000: '1001-3000',
29
+ _3001: '3001+'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.PostDemoRequestInquiryTypeEnum = {
35
+ Demo: 'demo',
36
+ Enterprise: 'enterprise',
37
+ Migration: 'migration',
38
+ Sales: 'sales'
39
+ };
40
+ /**
41
+ * Check if a given object implements the PostDemoRequest interface.
42
+ */
43
+ function instanceOfPostDemoRequest(value) {
44
+ if (!('submissionId' in value) || value['submissionId'] === undefined)
45
+ return false;
46
+ if (!('fullName' in value) || value['fullName'] === undefined)
47
+ return false;
48
+ if (!('email' in value) || value['email'] === undefined)
49
+ return false;
50
+ if (!('organization' in value) || value['organization'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function PostDemoRequestFromJSON(json) {
55
+ return PostDemoRequestFromJSONTyped(json, false);
56
+ }
57
+ function PostDemoRequestFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'submissionId': json['submission_id'],
63
+ 'fullName': json['full_name'],
64
+ 'email': json['email'],
65
+ 'organization': json['organization'],
66
+ 'learnerRange': json['learner_range'] == null ? undefined : json['learner_range'],
67
+ 'message': json['message'] == null ? undefined : json['message'],
68
+ 'inquiryType': json['inquiry_type'] == null ? undefined : json['inquiry_type'],
69
+ 'sourcePath': json['source_path'] == null ? undefined : json['source_path'],
70
+ 'sourceCta': json['source_cta'] == null ? undefined : json['source_cta'],
71
+ };
72
+ }
73
+ function PostDemoRequestToJSON(json) {
74
+ return PostDemoRequestToJSONTyped(json, false);
75
+ }
76
+ function PostDemoRequestToJSONTyped(value, ignoreDiscriminator = false) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'submission_id': value['submissionId'],
82
+ 'full_name': value['fullName'],
83
+ 'email': value['email'],
84
+ 'organization': value['organization'],
85
+ 'learner_range': value['learnerRange'],
86
+ 'message': value['message'],
87
+ 'inquiry_type': value['inquiryType'],
88
+ 'source_path': value['sourcePath'],
89
+ 'source_cta': value['sourceCta'],
90
+ };
91
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface PostDemoRequestResponse
16
+ */
17
+ export interface PostDemoRequestResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostDemoRequestResponse
22
+ */
23
+ requestId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostDemoRequestResponse
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostDemoRequestResponse interface.
33
+ */
34
+ export declare function instanceOfPostDemoRequestResponse(value: object): value is PostDemoRequestResponse;
35
+ export declare function PostDemoRequestResponseFromJSON(json: any): PostDemoRequestResponse;
36
+ export declare function PostDemoRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDemoRequestResponse;
37
+ export declare function PostDemoRequestResponseToJSON(json: any): PostDemoRequestResponse;
38
+ export declare function PostDemoRequestResponseToJSONTyped(value?: PostDemoRequestResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfPostDemoRequestResponse = instanceOfPostDemoRequestResponse;
17
+ exports.PostDemoRequestResponseFromJSON = PostDemoRequestResponseFromJSON;
18
+ exports.PostDemoRequestResponseFromJSONTyped = PostDemoRequestResponseFromJSONTyped;
19
+ exports.PostDemoRequestResponseToJSON = PostDemoRequestResponseToJSON;
20
+ exports.PostDemoRequestResponseToJSONTyped = PostDemoRequestResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostDemoRequestResponse interface.
23
+ */
24
+ function instanceOfPostDemoRequestResponse(value) {
25
+ if (!('requestId' in value) || value['requestId'] === undefined)
26
+ return false;
27
+ if (!('message' in value) || value['message'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PostDemoRequestResponseFromJSON(json) {
32
+ return PostDemoRequestResponseFromJSONTyped(json, false);
33
+ }
34
+ function PostDemoRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'requestId': json['request_id'],
40
+ 'message': json['message'],
41
+ };
42
+ }
43
+ function PostDemoRequestResponseToJSON(json) {
44
+ return PostDemoRequestResponseToJSONTyped(json, false);
45
+ }
46
+ function PostDemoRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'request_id': value['requestId'],
52
+ 'message': value['message'],
53
+ };
54
+ }
@@ -242,6 +242,8 @@ export * from './PostCourseVersionPublish';
242
242
  export * from './PostCourseVersionSection';
243
243
  export * from './PostCourseVersionSectionDuplicate';
244
244
  export * from './PostCustomWebhookIntegration';
245
+ export * from './PostDemoRequest';
246
+ export * from './PostDemoRequestResponse';
245
247
  export * from './PostDispatchItemLaunch';
246
248
  export * from './PostDispatchItemLaunchResponse';
247
249
  export * from './PostDispatchLaunch';
@@ -260,6 +260,8 @@ __exportStar(require("./PostCourseVersionPublish"), exports);
260
260
  __exportStar(require("./PostCourseVersionSection"), exports);
261
261
  __exportStar(require("./PostCourseVersionSectionDuplicate"), exports);
262
262
  __exportStar(require("./PostCustomWebhookIntegration"), exports);
263
+ __exportStar(require("./PostDemoRequest"), exports);
264
+ __exportStar(require("./PostDemoRequestResponse"), exports);
263
265
  __exportStar(require("./PostDispatchItemLaunch"), exports);
264
266
  __exportStar(require("./PostDispatchItemLaunchResponse"), exports);
265
267
  __exportStar(require("./PostDispatchLaunch"), exports);
@@ -0,0 +1,78 @@
1
+ # MarketingApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**postDemoRequest**](MarketingApi.md#postdemorequest) | **POST** /mktg/demo-requests | Save a demo or sales inquiry and notify sales |
8
+
9
+
10
+
11
+ ## postDemoRequest
12
+
13
+ > PostDemoRequestResponse postDemoRequest(postDemoRequest)
14
+
15
+ Save a demo or sales inquiry and notify sales
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ MarketingApi,
23
+ } from '@easyedu/js-lsm-api';
24
+ import type { PostDemoRequestRequest } from '@easyedu/js-lsm-api';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
28
+ const api = new MarketingApi();
29
+
30
+ const body = {
31
+ // PostDemoRequest
32
+ postDemoRequest: ...,
33
+ } satisfies PostDemoRequestRequest;
34
+
35
+ try {
36
+ const data = await api.postDemoRequest(body);
37
+ console.log(data);
38
+ } catch (error) {
39
+ console.error(error);
40
+ }
41
+ }
42
+
43
+ // Run the test
44
+ example().catch(console.error);
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ | Name | Type | Description | Notes |
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **postDemoRequest** | [PostDemoRequest](PostDemoRequest.md) | | |
53
+
54
+ ### Return type
55
+
56
+ [**PostDemoRequestResponse**](PostDemoRequestResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: `application/json`
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **201** | Request saved and sales notification queued; unchanged retries return the same result | - |
72
+ | **400** | Invalid request | - |
73
+ | **409** | Submission ID already used with different details | - |
74
+ | **413** | Request exceeds the 16 KiB body limit | - |
75
+ | **500** | Request could not be saved or notification queued; retry with the same submission ID | - |
76
+
77
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
78
+
@@ -0,0 +1,50 @@
1
+
2
+ # PostDemoRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `submissionId` | string
10
+ `fullName` | string
11
+ `email` | string
12
+ `organization` | string
13
+ `learnerRange` | string
14
+ `message` | string
15
+ `inquiryType` | string
16
+ `sourcePath` | string
17
+ `sourceCta` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { PostDemoRequest } from '@easyedu/js-lsm-api'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "submissionId": null,
27
+ "fullName": null,
28
+ "email": null,
29
+ "organization": null,
30
+ "learnerRange": null,
31
+ "message": null,
32
+ "inquiryType": null,
33
+ "sourcePath": null,
34
+ "sourceCta": null,
35
+ } satisfies PostDemoRequest
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as PostDemoRequest
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,36 @@
1
+
2
+ # PostDemoRequestResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `requestId` | string
10
+ `message` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PostDemoRequestResponse } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "requestId": null,
20
+ "message": null,
21
+ } satisfies PostDemoRequestResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PostDemoRequestResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.129.0",
3
+ "version": "1.130.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type PostDemoRequest,
18
+ PostDemoRequestFromJSON,
19
+ PostDemoRequestToJSON,
20
+ } from '../models/PostDemoRequest';
21
+ import {
22
+ type PostDemoRequestResponse,
23
+ PostDemoRequestResponseFromJSON,
24
+ PostDemoRequestResponseToJSON,
25
+ } from '../models/PostDemoRequestResponse';
26
+
27
+ export interface PostDemoRequestRequest {
28
+ postDemoRequest: PostDemoRequest;
29
+ }
30
+
31
+ /**
32
+ *
33
+ */
34
+ export class MarketingApi extends runtime.BaseAPI {
35
+
36
+ /**
37
+ * Creates request options for postDemoRequest without sending the request
38
+ */
39
+ async postDemoRequestRequestOpts(requestParameters: PostDemoRequestRequest): Promise<runtime.RequestOpts> {
40
+ if (requestParameters['postDemoRequest'] == null) {
41
+ throw new runtime.RequiredError(
42
+ 'postDemoRequest',
43
+ 'Required parameter "postDemoRequest" was null or undefined when calling postDemoRequest().'
44
+ );
45
+ }
46
+
47
+ const queryParameters: any = {};
48
+
49
+ const headerParameters: runtime.HTTPHeaders = {};
50
+
51
+ headerParameters['Content-Type'] = 'application/json';
52
+
53
+
54
+ let urlPath = `/mktg/demo-requests`;
55
+
56
+ return {
57
+ path: urlPath,
58
+ method: 'POST',
59
+ headers: headerParameters,
60
+ query: queryParameters,
61
+ body: PostDemoRequestToJSON(requestParameters['postDemoRequest']),
62
+ };
63
+ }
64
+
65
+ /**
66
+ * Save a demo or sales inquiry and notify sales
67
+ */
68
+ async postDemoRequestRaw(requestParameters: PostDemoRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostDemoRequestResponse>> {
69
+ const requestOptions = await this.postDemoRequestRequestOpts(requestParameters);
70
+ const response = await this.request(requestOptions, initOverrides);
71
+
72
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostDemoRequestResponseFromJSON(jsonValue));
73
+ }
74
+
75
+ /**
76
+ * Save a demo or sales inquiry and notify sales
77
+ */
78
+ async postDemoRequest(requestParameters: PostDemoRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostDemoRequestResponse> {
79
+ const response = await this.postDemoRequestRaw(requestParameters, initOverrides);
80
+ return await response.value();
81
+ }
82
+
83
+ }
package/src/apis/index.ts CHANGED
@@ -13,6 +13,7 @@ export * from './DispatchApi';
13
13
  export * from './EmailTemplateApi';
14
14
  export * from './IntegrationApi';
15
15
  export * from './LearnerExperienceApi';
16
+ export * from './MarketingApi';
16
17
  export * from './OtherApi';
17
18
  export * from './PlayerApi';
18
19
  export * from './PortalApi';