@easyedu/js-lsm-api 1.115.0 → 1.116.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.
Files changed (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +21 -2
  3. package/dist/apis/IntegrationApi.d.ts +132 -0
  4. package/dist/apis/IntegrationApi.js +378 -0
  5. package/dist/esm/apis/IntegrationApi.d.ts +132 -0
  6. package/dist/esm/apis/IntegrationApi.js +378 -0
  7. package/dist/esm/models/GetZapierCourses.d.ts +51 -0
  8. package/dist/esm/models/GetZapierCourses.js +56 -0
  9. package/dist/esm/models/GetZapierShopifyCourseMappings.d.ts +33 -0
  10. package/dist/esm/models/GetZapierShopifyCourseMappings.js +44 -0
  11. package/dist/esm/models/GetZapierUsers.d.ts +33 -0
  12. package/dist/esm/models/GetZapierUsers.js +44 -0
  13. package/dist/esm/models/PostZapierEnrollment.d.ts +76 -0
  14. package/dist/esm/models/PostZapierEnrollment.js +64 -0
  15. package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +50 -0
  16. package/dist/esm/models/PostZapierShopifyCourseMapping.js +53 -0
  17. package/dist/esm/models/PostZapierShopifyEnrollment.d.ts +100 -0
  18. package/dist/esm/models/PostZapierShopifyEnrollment.js +82 -0
  19. package/dist/esm/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
  20. package/dist/esm/models/PostZapierShopifyEnrollmentResponse.js +54 -0
  21. package/dist/esm/models/PostZapierUser.d.ts +44 -0
  22. package/dist/esm/models/PostZapierUser.js +51 -0
  23. package/dist/esm/models/ZapierCourse.d.ts +50 -0
  24. package/dist/esm/models/ZapierCourse.js +55 -0
  25. package/dist/esm/models/ZapierEnrollment.d.ts +74 -0
  26. package/dist/esm/models/ZapierEnrollment.js +69 -0
  27. package/dist/esm/models/ZapierShopifyCourseMapping.d.ts +69 -0
  28. package/dist/esm/models/ZapierShopifyCourseMapping.js +66 -0
  29. package/dist/esm/models/ZapierUser.d.ts +56 -0
  30. package/dist/esm/models/ZapierUser.js +59 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/GetZapierCourses.d.ts +51 -0
  34. package/dist/models/GetZapierCourses.js +63 -0
  35. package/dist/models/GetZapierShopifyCourseMappings.d.ts +33 -0
  36. package/dist/models/GetZapierShopifyCourseMappings.js +51 -0
  37. package/dist/models/GetZapierUsers.d.ts +33 -0
  38. package/dist/models/GetZapierUsers.js +51 -0
  39. package/dist/models/PostZapierEnrollment.d.ts +76 -0
  40. package/dist/models/PostZapierEnrollment.js +72 -0
  41. package/dist/models/PostZapierShopifyCourseMapping.d.ts +50 -0
  42. package/dist/models/PostZapierShopifyCourseMapping.js +60 -0
  43. package/dist/models/PostZapierShopifyEnrollment.d.ts +100 -0
  44. package/dist/models/PostZapierShopifyEnrollment.js +90 -0
  45. package/dist/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
  46. package/dist/models/PostZapierShopifyEnrollmentResponse.js +61 -0
  47. package/dist/models/PostZapierUser.d.ts +44 -0
  48. package/dist/models/PostZapierUser.js +58 -0
  49. package/dist/models/ZapierCourse.d.ts +50 -0
  50. package/dist/models/ZapierCourse.js +62 -0
  51. package/dist/models/ZapierEnrollment.d.ts +74 -0
  52. package/dist/models/ZapierEnrollment.js +76 -0
  53. package/dist/models/ZapierShopifyCourseMapping.d.ts +69 -0
  54. package/dist/models/ZapierShopifyCourseMapping.js +73 -0
  55. package/dist/models/ZapierUser.d.ts +56 -0
  56. package/dist/models/ZapierUser.js +66 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/GetZapierCourses.md +40 -0
  60. package/docs/GetZapierShopifyCourseMappings.md +34 -0
  61. package/docs/GetZapierUsers.md +34 -0
  62. package/docs/IntegrationApi.md +536 -0
  63. package/docs/PostZapierEnrollment.md +46 -0
  64. package/docs/PostZapierShopifyCourseMapping.md +40 -0
  65. package/docs/PostZapierShopifyEnrollment.md +54 -0
  66. package/docs/PostZapierShopifyEnrollmentResponse.md +38 -0
  67. package/docs/PostZapierUser.md +38 -0
  68. package/docs/ZapierCourse.md +40 -0
  69. package/docs/ZapierEnrollment.md +48 -0
  70. package/docs/ZapierShopifyCourseMapping.md +46 -0
  71. package/docs/ZapierUser.md +42 -0
  72. package/package.json +1 -1
  73. package/src/apis/IntegrationApi.ts +579 -0
  74. package/src/models/GetZapierCourses.ts +101 -0
  75. package/src/models/GetZapierShopifyCourseMappings.ts +74 -0
  76. package/src/models/GetZapierUsers.ts +74 -0
  77. package/src/models/PostZapierEnrollment.ts +126 -0
  78. package/src/models/PostZapierShopifyCourseMapping.ts +92 -0
  79. package/src/models/PostZapierShopifyEnrollment.ts +163 -0
  80. package/src/models/PostZapierShopifyEnrollmentResponse.ts +106 -0
  81. package/src/models/PostZapierUser.ts +84 -0
  82. package/src/models/ZapierCourse.ts +93 -0
  83. package/src/models/ZapierEnrollment.ts +128 -0
  84. package/src/models/ZapierShopifyCourseMapping.ts +127 -0
  85. package/src/models/ZapierUser.ts +102 -0
  86. package/src/models/index.ts +12 -0
@@ -5,9 +5,16 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
7
  | [**deleteZapierSetup**](IntegrationApi.md#deletezapiersetup) | **DELETE** /integrations/zapier/setup/{zapierIntegrationId} | Revoke a Zapier connection and its API key |
8
+ | [**getZapierCourses**](IntegrationApi.md#getzapiercourses) | **GET** /integrations/zapier/courses | List published courses available to a Zapier connection |
8
9
  | [**getZapierMe**](IntegrationApi.md#getzapierme) | **GET** /integrations/zapier/me | Test a Zapier API key and return its portal and enabled permissions |
9
10
  | [**getZapierSetup**](IntegrationApi.md#getzapiersetup) | **GET** /integrations/zapier/setup | List Zapier connections and permissions available to the selected portal |
11
+ | [**getZapierShopifyCourseMappings**](IntegrationApi.md#getzapiershopifycoursemappings) | **GET** /integrations/zapier/shopify/course-mappings | List Shopify variant-to-course mappings |
12
+ | [**getZapierUsers**](IntegrationApi.md#getzapierusers) | **GET** /integrations/zapier/users | Find a learner by exact email address |
13
+ | [**postZapierEnrollment**](IntegrationApi.md#postzapierenrollment) | **POST** /integrations/zapier/enrollments | Enroll an existing learner in a course |
10
14
  | [**postZapierSetup**](IntegrationApi.md#postzapiersetup) | **POST** /integrations/zapier/setup | Create a Zapier connection and API key for the selected portal |
15
+ | [**postZapierShopifyCourseMapping**](IntegrationApi.md#postzapiershopifycoursemapping) | **POST** /integrations/zapier/shopify/course-mappings | Create or update a Shopify variant-to-course mapping |
16
+ | [**postZapierShopifyEnrollment**](IntegrationApi.md#postzapiershopifyenrollment) | **POST** /integrations/zapier/shopify/enrollments | Find or invite a Shopify customer and enroll them using the purchased variant mapping |
17
+ | [**postZapierUser**](IntegrationApi.md#postzapieruser) | **POST** /integrations/zapier/users | Find or invite a learner to the connected portal |
11
18
  | [**putZapierSetup**](IntegrationApi.md#putzapiersetup) | **PUT** /integrations/zapier/setup/{zapierIntegrationId} | Update a Zapier connection\'s name or permissions |
12
19
 
13
20
 
@@ -79,6 +86,85 @@ No authorization required
79
86
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
87
 
81
88
 
89
+ ## getZapierCourses
90
+
91
+ > GetZapierCourses getZapierCourses(xAPIKEY, xPORTALSUBDOMAIN, page, pageSize, search)
92
+
93
+ List published courses available to a Zapier connection
94
+
95
+ ### Example
96
+
97
+ ```ts
98
+ import {
99
+ Configuration,
100
+ IntegrationApi,
101
+ } from '@easyedu/js-lsm-api';
102
+ import type { GetZapierCoursesRequest } from '@easyedu/js-lsm-api';
103
+
104
+ async function example() {
105
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
106
+ const api = new IntegrationApi();
107
+
108
+ const body = {
109
+ // string
110
+ xAPIKEY: xAPIKEY_example,
111
+ // string
112
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
113
+ // number (optional)
114
+ page: 56,
115
+ // number (optional)
116
+ pageSize: 56,
117
+ // string (optional)
118
+ search: search_example,
119
+ } satisfies GetZapierCoursesRequest;
120
+
121
+ try {
122
+ const data = await api.getZapierCourses(body);
123
+ console.log(data);
124
+ } catch (error) {
125
+ console.error(error);
126
+ }
127
+ }
128
+
129
+ // Run the test
130
+ example().catch(console.error);
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+
136
+ | Name | Type | Description | Notes |
137
+ |------------- | ------------- | ------------- | -------------|
138
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
139
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
140
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
141
+ | **pageSize** | `number` | | [Optional] [Defaults to `100`] |
142
+ | **search** | `string` | | [Optional] [Defaults to `undefined`] |
143
+
144
+ ### Return type
145
+
146
+ [**GetZapierCourses**](GetZapierCourses.md)
147
+
148
+ ### Authorization
149
+
150
+ No authorization required
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: `application/json`
156
+
157
+
158
+ ### HTTP response details
159
+ | Status code | Description | Response headers |
160
+ |-------------|-------------|------------------|
161
+ | **200** | Published courses available to the connection | - |
162
+ | **401** | Missing, invalid, or revoked API key | - |
163
+ | **403** | The API key does not have course:list | - |
164
+
165
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
166
+
167
+
82
168
  ## getZapierMe
83
169
 
84
170
  > GetZapierMe getZapierMe(xAPIKEY, xPORTALSUBDOMAIN)
@@ -207,6 +293,229 @@ No authorization required
207
293
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
208
294
 
209
295
 
296
+ ## getZapierShopifyCourseMappings
297
+
298
+ > GetZapierShopifyCourseMappings getZapierShopifyCourseMappings(xAPIKEY, xPORTALSUBDOMAIN, shopDomain)
299
+
300
+ List Shopify variant-to-course mappings
301
+
302
+ ### Example
303
+
304
+ ```ts
305
+ import {
306
+ Configuration,
307
+ IntegrationApi,
308
+ } from '@easyedu/js-lsm-api';
309
+ import type { GetZapierShopifyCourseMappingsRequest } from '@easyedu/js-lsm-api';
310
+
311
+ async function example() {
312
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
313
+ const api = new IntegrationApi();
314
+
315
+ const body = {
316
+ // string
317
+ xAPIKEY: xAPIKEY_example,
318
+ // string
319
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
320
+ // string (optional)
321
+ shopDomain: shopDomain_example,
322
+ } satisfies GetZapierShopifyCourseMappingsRequest;
323
+
324
+ try {
325
+ const data = await api.getZapierShopifyCourseMappings(body);
326
+ console.log(data);
327
+ } catch (error) {
328
+ console.error(error);
329
+ }
330
+ }
331
+
332
+ // Run the test
333
+ example().catch(console.error);
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+
339
+ | Name | Type | Description | Notes |
340
+ |------------- | ------------- | ------------- | -------------|
341
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
342
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
343
+ | **shopDomain** | `string` | | [Optional] [Defaults to `undefined`] |
344
+
345
+ ### Return type
346
+
347
+ [**GetZapierShopifyCourseMappings**](GetZapierShopifyCourseMappings.md)
348
+
349
+ ### Authorization
350
+
351
+ No authorization required
352
+
353
+ ### HTTP request headers
354
+
355
+ - **Content-Type**: Not defined
356
+ - **Accept**: `application/json`
357
+
358
+
359
+ ### HTTP response details
360
+ | Status code | Description | Response headers |
361
+ |-------------|-------------|------------------|
362
+ | **200** | Shopify course mappings for the connected portal | - |
363
+ | **401** | Missing, invalid, or revoked API key | - |
364
+ | **403** | The API key does not have course:list | - |
365
+
366
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
367
+
368
+
369
+ ## getZapierUsers
370
+
371
+ > GetZapierUsers getZapierUsers(xAPIKEY, xPORTALSUBDOMAIN, email)
372
+
373
+ Find a learner by exact email address
374
+
375
+ ### Example
376
+
377
+ ```ts
378
+ import {
379
+ Configuration,
380
+ IntegrationApi,
381
+ } from '@easyedu/js-lsm-api';
382
+ import type { GetZapierUsersRequest } from '@easyedu/js-lsm-api';
383
+
384
+ async function example() {
385
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
386
+ const api = new IntegrationApi();
387
+
388
+ const body = {
389
+ // string
390
+ xAPIKEY: xAPIKEY_example,
391
+ // string
392
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
393
+ // string
394
+ email: email_example,
395
+ } satisfies GetZapierUsersRequest;
396
+
397
+ try {
398
+ const data = await api.getZapierUsers(body);
399
+ console.log(data);
400
+ } catch (error) {
401
+ console.error(error);
402
+ }
403
+ }
404
+
405
+ // Run the test
406
+ example().catch(console.error);
407
+ ```
408
+
409
+ ### Parameters
410
+
411
+
412
+ | Name | Type | Description | Notes |
413
+ |------------- | ------------- | ------------- | -------------|
414
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
415
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
416
+ | **email** | `string` | | [Defaults to `undefined`] |
417
+
418
+ ### Return type
419
+
420
+ [**GetZapierUsers**](GetZapierUsers.md)
421
+
422
+ ### Authorization
423
+
424
+ No authorization required
425
+
426
+ ### HTTP request headers
427
+
428
+ - **Content-Type**: Not defined
429
+ - **Accept**: `application/json`
430
+
431
+
432
+ ### HTTP response details
433
+ | Status code | Description | Response headers |
434
+ |-------------|-------------|------------------|
435
+ | **200** | Zero or one exact learner match | - |
436
+ | **401** | Missing, invalid, or revoked API key | - |
437
+ | **403** | The API key does not have user:read_any | - |
438
+
439
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
440
+
441
+
442
+ ## postZapierEnrollment
443
+
444
+ > ZapierEnrollment postZapierEnrollment(xAPIKEY, xPORTALSUBDOMAIN, postZapierEnrollment)
445
+
446
+ Enroll an existing learner in a course
447
+
448
+ ### Example
449
+
450
+ ```ts
451
+ import {
452
+ Configuration,
453
+ IntegrationApi,
454
+ } from '@easyedu/js-lsm-api';
455
+ import type { PostZapierEnrollmentRequest } from '@easyedu/js-lsm-api';
456
+
457
+ async function example() {
458
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
459
+ const api = new IntegrationApi();
460
+
461
+ const body = {
462
+ // string
463
+ xAPIKEY: xAPIKEY_example,
464
+ // string
465
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
466
+ // PostZapierEnrollment
467
+ postZapierEnrollment: ...,
468
+ } satisfies PostZapierEnrollmentRequest;
469
+
470
+ try {
471
+ const data = await api.postZapierEnrollment(body);
472
+ console.log(data);
473
+ } catch (error) {
474
+ console.error(error);
475
+ }
476
+ }
477
+
478
+ // Run the test
479
+ example().catch(console.error);
480
+ ```
481
+
482
+ ### Parameters
483
+
484
+
485
+ | Name | Type | Description | Notes |
486
+ |------------- | ------------- | ------------- | -------------|
487
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
488
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
489
+ | **postZapierEnrollment** | [PostZapierEnrollment](PostZapierEnrollment.md) | | |
490
+
491
+ ### Return type
492
+
493
+ [**ZapierEnrollment**](ZapierEnrollment.md)
494
+
495
+ ### Authorization
496
+
497
+ No authorization required
498
+
499
+ ### HTTP request headers
500
+
501
+ - **Content-Type**: `application/json`
502
+ - **Accept**: `application/json`
503
+
504
+
505
+ ### HTTP response details
506
+ | Status code | Description | Response headers |
507
+ |-------------|-------------|------------------|
508
+ | **200** | Existing idempotent enrollment result returned | - |
509
+ | **201** | Learner enrolled | - |
510
+ | **400** | Invalid enrollment input | - |
511
+ | **401** | Missing, invalid, or revoked API key | - |
512
+ | **403** | The API key does not have enrollment:create | - |
513
+ | **404** | Course or learner not found in the connected portal | - |
514
+ | **409** | Enrollment conflicts with the current course or portal state | - |
515
+
516
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
517
+
518
+
210
519
  ## postZapierSetup
211
520
 
212
521
  > PostZapierSetupResponse postZapierSetup(postZapierSetup)
@@ -274,6 +583,233 @@ No authorization required
274
583
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
275
584
 
276
585
 
586
+ ## postZapierShopifyCourseMapping
587
+
588
+ > ZapierShopifyCourseMapping postZapierShopifyCourseMapping(xAPIKEY, xPORTALSUBDOMAIN, postZapierShopifyCourseMapping)
589
+
590
+ Create or update a Shopify variant-to-course mapping
591
+
592
+ ### Example
593
+
594
+ ```ts
595
+ import {
596
+ Configuration,
597
+ IntegrationApi,
598
+ } from '@easyedu/js-lsm-api';
599
+ import type { PostZapierShopifyCourseMappingRequest } from '@easyedu/js-lsm-api';
600
+
601
+ async function example() {
602
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
603
+ const api = new IntegrationApi();
604
+
605
+ const body = {
606
+ // string
607
+ xAPIKEY: xAPIKEY_example,
608
+ // string
609
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
610
+ // PostZapierShopifyCourseMapping
611
+ postZapierShopifyCourseMapping: ...,
612
+ } satisfies PostZapierShopifyCourseMappingRequest;
613
+
614
+ try {
615
+ const data = await api.postZapierShopifyCourseMapping(body);
616
+ console.log(data);
617
+ } catch (error) {
618
+ console.error(error);
619
+ }
620
+ }
621
+
622
+ // Run the test
623
+ example().catch(console.error);
624
+ ```
625
+
626
+ ### Parameters
627
+
628
+
629
+ | Name | Type | Description | Notes |
630
+ |------------- | ------------- | ------------- | -------------|
631
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
632
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
633
+ | **postZapierShopifyCourseMapping** | [PostZapierShopifyCourseMapping](PostZapierShopifyCourseMapping.md) | | |
634
+
635
+ ### Return type
636
+
637
+ [**ZapierShopifyCourseMapping**](ZapierShopifyCourseMapping.md)
638
+
639
+ ### Authorization
640
+
641
+ No authorization required
642
+
643
+ ### HTTP request headers
644
+
645
+ - **Content-Type**: `application/json`
646
+ - **Accept**: `application/json`
647
+
648
+
649
+ ### HTTP response details
650
+ | Status code | Description | Response headers |
651
+ |-------------|-------------|------------------|
652
+ | **200** | Mapping created or updated | - |
653
+ | **400** | Invalid Shopify mapping | - |
654
+ | **401** | Missing, invalid, or revoked API key | - |
655
+ | **403** | The API key lacks a required permission | - |
656
+ | **404** | Course not found in the connected portal | - |
657
+
658
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
659
+
660
+
661
+ ## postZapierShopifyEnrollment
662
+
663
+ > PostZapierShopifyEnrollmentResponse postZapierShopifyEnrollment(xAPIKEY, xPORTALSUBDOMAIN, postZapierShopifyEnrollment)
664
+
665
+ Find or invite a Shopify customer and enroll them using the purchased variant mapping
666
+
667
+ ### Example
668
+
669
+ ```ts
670
+ import {
671
+ Configuration,
672
+ IntegrationApi,
673
+ } from '@easyedu/js-lsm-api';
674
+ import type { PostZapierShopifyEnrollmentRequest } from '@easyedu/js-lsm-api';
675
+
676
+ async function example() {
677
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
678
+ const api = new IntegrationApi();
679
+
680
+ const body = {
681
+ // string
682
+ xAPIKEY: xAPIKEY_example,
683
+ // string
684
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
685
+ // PostZapierShopifyEnrollment
686
+ postZapierShopifyEnrollment: ...,
687
+ } satisfies PostZapierShopifyEnrollmentRequest;
688
+
689
+ try {
690
+ const data = await api.postZapierShopifyEnrollment(body);
691
+ console.log(data);
692
+ } catch (error) {
693
+ console.error(error);
694
+ }
695
+ }
696
+
697
+ // Run the test
698
+ example().catch(console.error);
699
+ ```
700
+
701
+ ### Parameters
702
+
703
+
704
+ | Name | Type | Description | Notes |
705
+ |------------- | ------------- | ------------- | -------------|
706
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
707
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
708
+ | **postZapierShopifyEnrollment** | [PostZapierShopifyEnrollment](PostZapierShopifyEnrollment.md) | | |
709
+
710
+ ### Return type
711
+
712
+ [**PostZapierShopifyEnrollmentResponse**](PostZapierShopifyEnrollmentResponse.md)
713
+
714
+ ### Authorization
715
+
716
+ No authorization required
717
+
718
+ ### HTTP request headers
719
+
720
+ - **Content-Type**: `application/json`
721
+ - **Accept**: `application/json`
722
+
723
+
724
+ ### HTTP response details
725
+ | Status code | Description | Response headers |
726
+ |-------------|-------------|------------------|
727
+ | **200** | Existing idempotent Shopify enrollment result returned | - |
728
+ | **201** | Shopify customer enrolled | - |
729
+ | **400** | Invalid Shopify order data | - |
730
+ | **401** | Missing, invalid, or revoked API key | - |
731
+ | **403** | The API key lacks a required permission | - |
732
+ | **404** | Shopify variant mapping or course not found | - |
733
+ | **409** | Enrollment conflicts with the current course or portal state | - |
734
+
735
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
736
+
737
+
738
+ ## postZapierUser
739
+
740
+ > ZapierUser postZapierUser(xAPIKEY, xPORTALSUBDOMAIN, postZapierUser)
741
+
742
+ Find or invite a learner to the connected portal
743
+
744
+ ### Example
745
+
746
+ ```ts
747
+ import {
748
+ Configuration,
749
+ IntegrationApi,
750
+ } from '@easyedu/js-lsm-api';
751
+ import type { PostZapierUserRequest } from '@easyedu/js-lsm-api';
752
+
753
+ async function example() {
754
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
755
+ const api = new IntegrationApi();
756
+
757
+ const body = {
758
+ // string
759
+ xAPIKEY: xAPIKEY_example,
760
+ // string
761
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
762
+ // PostZapierUser
763
+ postZapierUser: ...,
764
+ } satisfies PostZapierUserRequest;
765
+
766
+ try {
767
+ const data = await api.postZapierUser(body);
768
+ console.log(data);
769
+ } catch (error) {
770
+ console.error(error);
771
+ }
772
+ }
773
+
774
+ // Run the test
775
+ example().catch(console.error);
776
+ ```
777
+
778
+ ### Parameters
779
+
780
+
781
+ | Name | Type | Description | Notes |
782
+ |------------- | ------------- | ------------- | -------------|
783
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
784
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
785
+ | **postZapierUser** | [PostZapierUser](PostZapierUser.md) | | |
786
+
787
+ ### Return type
788
+
789
+ [**ZapierUser**](ZapierUser.md)
790
+
791
+ ### Authorization
792
+
793
+ No authorization required
794
+
795
+ ### HTTP request headers
796
+
797
+ - **Content-Type**: `application/json`
798
+ - **Accept**: `application/json`
799
+
800
+
801
+ ### HTTP response details
802
+ | Status code | Description | Response headers |
803
+ |-------------|-------------|------------------|
804
+ | **200** | Existing learner returned | - |
805
+ | **201** | Learner created and invitation queued | - |
806
+ | **401** | Missing, invalid, or revoked API key | - |
807
+ | **403** | The API key does not have portal:invite_user | - |
808
+ | **409** | Email belongs to another portal in the hosted organization | - |
809
+
810
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
811
+
812
+
277
813
  ## putZapierSetup
278
814
 
279
815
  > ZapierIntegration putZapierSetup(zapierIntegrationId, putZapierSetup)
@@ -0,0 +1,46 @@
1
+
2
+ # PostZapierEnrollment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `courseId` | string
10
+ `userId` | string
11
+ `idempotencyKey` | string
12
+ `enrollmentDateStart` | number
13
+ `enrollmentDateEnd` | number
14
+ `notes` | string
15
+ `reEnrollmentMode` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { PostZapierEnrollment } from '@easyedu/js-lsm-api'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "courseId": null,
25
+ "userId": null,
26
+ "idempotencyKey": null,
27
+ "enrollmentDateStart": null,
28
+ "enrollmentDateEnd": null,
29
+ "notes": null,
30
+ "reEnrollmentMode": null,
31
+ } satisfies PostZapierEnrollment
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as PostZapierEnrollment
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,40 @@
1
+
2
+ # PostZapierShopifyCourseMapping
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `shopDomain` | string
10
+ `variantId` | string
11
+ `productId` | string
12
+ `courseId` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PostZapierShopifyCourseMapping } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "shopDomain": null,
22
+ "variantId": null,
23
+ "productId": null,
24
+ "courseId": null,
25
+ } satisfies PostZapierShopifyCourseMapping
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PostZapierShopifyCourseMapping
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,54 @@
1
+
2
+ # PostZapierShopifyEnrollment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `shopDomain` | string
10
+ `orderId` | string
11
+ `lineItemId` | string
12
+ `variantId` | string
13
+ `email` | string
14
+ `firstName` | string
15
+ `lastName` | string
16
+ `enrollmentDateStart` | number
17
+ `enrollmentDateEnd` | number
18
+ `notes` | string
19
+ `reEnrollmentMode` | string
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { PostZapierShopifyEnrollment } from '@easyedu/js-lsm-api'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "shopDomain": null,
29
+ "orderId": null,
30
+ "lineItemId": null,
31
+ "variantId": null,
32
+ "email": null,
33
+ "firstName": null,
34
+ "lastName": null,
35
+ "enrollmentDateStart": null,
36
+ "enrollmentDateEnd": null,
37
+ "notes": null,
38
+ "reEnrollmentMode": null,
39
+ } satisfies PostZapierShopifyEnrollment
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as PostZapierShopifyEnrollment
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+