@agility/management-sdk 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +167 -9
  2. package/dist/apiClient.d.ts +23 -19
  3. package/dist/apiClient.js +28 -24
  4. package/dist/apiMethods/apiClient.d.ts +19 -0
  5. package/dist/apiMethods/apiClient.js +24 -0
  6. package/dist/apiMethods/assetMethods.d.ts +34 -34
  7. package/dist/apiMethods/assetMethods.js +325 -325
  8. package/dist/apiMethods/batchMethods.d.ts +11 -11
  9. package/dist/apiMethods/batchMethods.js +117 -117
  10. package/dist/apiMethods/clientInstance.d.ts +20 -18
  11. package/dist/apiMethods/clientInstance.js +206 -170
  12. package/dist/apiMethods/containerMethods.d.ts +17 -17
  13. package/dist/apiMethods/containerMethods.js +209 -209
  14. package/dist/apiMethods/contentMethods.d.ts +27 -20
  15. package/dist/apiMethods/contentMethods.js +418 -359
  16. package/dist/apiMethods/instanceUserMethods.d.ts +13 -13
  17. package/dist/apiMethods/instanceUserMethods.js +111 -111
  18. package/dist/apiMethods/modelMethods.d.ts +14 -14
  19. package/dist/apiMethods/modelMethods.js +170 -170
  20. package/dist/apiMethods/pageMethods.d.ts +32 -28
  21. package/dist/apiMethods/pageMethods.js +490 -446
  22. package/dist/apiMethods/serverUserMethods.d.ts +10 -0
  23. package/dist/apiMethods/serverUserMethods.js +89 -0
  24. package/dist/apiMethods/webhookMethods.d.ts +12 -0
  25. package/dist/apiMethods/webhookMethods.js +131 -0
  26. package/dist/enums/assetGroupingType.d.ts +3 -3
  27. package/dist/enums/assetGroupingType.js +7 -7
  28. package/dist/enums/batchOperationType.d.ts +19 -19
  29. package/dist/enums/batchOperationType.js +23 -23
  30. package/dist/enums/batchState..d.ts +7 -7
  31. package/dist/enums/batchState..js +11 -11
  32. package/dist/enums/pageItemTemplateType.d.ts +4 -4
  33. package/dist/enums/pageItemTemplateType.js +8 -8
  34. package/dist/index.d.ts +23 -23
  35. package/dist/index.js +39 -39
  36. package/dist/models/assetContainer.d.ts +7 -7
  37. package/dist/models/assetContainer.js +9 -9
  38. package/dist/models/assetGalleries.d.ts +5 -5
  39. package/dist/models/assetGalleries.js +9 -9
  40. package/dist/models/assetMediaGrouping.d.ts +17 -17
  41. package/dist/models/assetMediaGrouping.js +9 -9
  42. package/dist/models/assetMediaGroupingMetaData.d.ts +4 -4
  43. package/dist/models/assetMediaGroupingMetaData.js +9 -9
  44. package/dist/models/batch.d.ts +29 -29
  45. package/dist/models/batch.js +9 -9
  46. package/dist/models/batchItem.d.ts +13 -13
  47. package/dist/models/batchItem.js +9 -9
  48. package/dist/models/container.d.ts +47 -47
  49. package/dist/models/container.js +9 -9
  50. package/dist/models/contentItem.d.ts +37 -37
  51. package/dist/models/contentItem.js +33 -33
  52. package/dist/models/contentItemHistory.d.ts +20 -0
  53. package/dist/models/contentItemHistory.js +15 -0
  54. package/dist/models/contentListFilterModel.d.ts +26 -0
  55. package/dist/models/contentListFilterModel.js +33 -0
  56. package/dist/models/contentSectionDefaultModule.d.ts +7 -7
  57. package/dist/models/contentSectionDefaultModule.js +9 -9
  58. package/dist/models/contentSectionDefinition.d.ts +35 -35
  59. package/dist/models/contentSectionDefinition.js +9 -9
  60. package/dist/models/contentViewColumn.d.ts +8 -8
  61. package/dist/models/contentViewColumn.js +9 -9
  62. package/dist/models/exception.d.ts +4 -4
  63. package/dist/models/exception.js +28 -28
  64. package/dist/models/instanceRole.d.ts +7 -7
  65. package/dist/models/instanceRole.js +9 -9
  66. package/dist/models/instanceUser.d.ts +14 -14
  67. package/dist/models/instanceUser.js +9 -9
  68. package/dist/models/itemComments.d.ts +14 -0
  69. package/dist/models/itemComments.js +15 -0
  70. package/dist/models/listParams.d.ts +9 -0
  71. package/dist/models/listParams.js +16 -0
  72. package/dist/models/media.d.ts +30 -30
  73. package/dist/models/media.js +15 -15
  74. package/dist/models/model.d.ts +30 -30
  75. package/dist/models/model.js +15 -15
  76. package/dist/models/notification.d.ts +13 -13
  77. package/dist/models/notification.js +9 -9
  78. package/dist/models/options.d.ts +7 -7
  79. package/dist/models/options.js +9 -9
  80. package/dist/models/pageHistory.d.ts +21 -0
  81. package/dist/models/pageHistory.js +15 -0
  82. package/dist/models/pageItem.d.ts +56 -56
  83. package/dist/models/pageItem.js +39 -39
  84. package/dist/models/pageModel.d.ts +14 -14
  85. package/dist/models/pageModel.js +9 -9
  86. package/dist/models/serverUser.d.ts +21 -0
  87. package/dist/models/serverUser.js +9 -0
  88. package/dist/models/sharedModule.d.ts +7 -7
  89. package/dist/models/sharedModule.js +9 -9
  90. package/dist/models/sitemap.d.ts +20 -20
  91. package/dist/models/sitemap.js +15 -15
  92. package/dist/models/webhook.d.ts +9 -0
  93. package/dist/models/webhook.js +9 -0
  94. package/dist/models/websiteListing.d.ts +16 -0
  95. package/dist/models/websiteListing.js +9 -0
  96. package/dist/models/websiteUser.d.ts +22 -22
  97. package/dist/models/websiteUser.js +15 -15
  98. package/dist/src/apiMethods/assetMethods.d.ts +14 -0
  99. package/dist/src/apiMethods/assetMethods.js +172 -0
  100. package/dist/src/apiMethods/batchMethods.d.ts +11 -0
  101. package/dist/src/apiMethods/batchMethods.js +117 -0
  102. package/dist/src/apiMethods/clientInstance.d.ts +8 -0
  103. package/dist/src/apiMethods/clientInstance.js +156 -0
  104. package/dist/src/apiMethods/containerMethods.d.ts +16 -0
  105. package/dist/src/apiMethods/containerMethods.js +189 -0
  106. package/dist/src/apiMethods/contentMethods.d.ts +20 -0
  107. package/dist/src/apiMethods/contentMethods.js +359 -0
  108. package/dist/src/apiMethods/instanceUserMethods.d.ts +13 -0
  109. package/dist/src/apiMethods/instanceUserMethods.js +111 -0
  110. package/dist/src/apiMethods/modelMethods.d.ts +13 -0
  111. package/dist/src/apiMethods/modelMethods.js +150 -0
  112. package/dist/src/apiMethods/pageMethods.d.ts +20 -0
  113. package/dist/src/apiMethods/pageMethods.js +323 -0
  114. package/dist/src/enums/batchOperationType.d.ts +19 -0
  115. package/dist/src/enums/batchOperationType.js +23 -0
  116. package/dist/src/enums/batchState..d.ts +7 -0
  117. package/dist/src/enums/batchState..js +11 -0
  118. package/dist/src/index.d.ts +14 -0
  119. package/dist/src/index.js +30 -0
  120. package/dist/src/models/batch.d.ts +29 -0
  121. package/dist/src/models/batch.js +9 -0
  122. package/dist/src/models/batchItem.d.ts +13 -0
  123. package/dist/src/models/batchItem.js +9 -0
  124. package/dist/src/models/container.d.ts +47 -0
  125. package/dist/src/models/container.js +9 -0
  126. package/dist/src/models/contentItem.d.ts +37 -0
  127. package/dist/src/models/contentItem.js +33 -0
  128. package/dist/src/models/contentViewColumn.d.ts +8 -0
  129. package/dist/src/models/contentViewColumn.js +9 -0
  130. package/dist/src/models/exception.d.ts +4 -0
  131. package/dist/src/models/exception.js +28 -0
  132. package/dist/src/models/instanceRole.d.ts +7 -0
  133. package/dist/src/models/instanceRole.js +9 -0
  134. package/dist/src/models/instanceUser.d.ts +14 -0
  135. package/dist/src/models/instanceUser.js +9 -0
  136. package/dist/src/models/media.d.ts +30 -0
  137. package/dist/src/models/media.js +15 -0
  138. package/dist/src/models/model.d.ts +30 -0
  139. package/dist/src/models/model.js +15 -0
  140. package/dist/src/models/notification.d.ts +13 -0
  141. package/dist/src/models/notification.js +9 -0
  142. package/dist/src/models/options.d.ts +7 -0
  143. package/dist/src/models/options.js +9 -0
  144. package/dist/src/models/pageItem.d.ts +56 -0
  145. package/dist/src/models/pageItem.js +39 -0
  146. package/dist/src/models/sitemap.d.ts +20 -0
  147. package/dist/src/models/sitemap.js +15 -0
  148. package/dist/src/models/websiteUser.d.ts +22 -0
  149. package/dist/src/models/websiteUser.js +15 -0
  150. package/package.json +1 -1
  151. package/.yarn/cache/@types-node-npm-18.11.9-d21dd6ec05-cc0aae109e.zip +0 -0
  152. package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
  153. package/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip +0 -0
  154. package/.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-49fa4aeb49.zip +0 -0
  155. package/.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip +0 -0
  156. package/.yarn/cache/follow-redirects-npm-1.15.2-1ec1dd82be-faa66059b6.zip +0 -0
  157. package/.yarn/cache/form-data-npm-4.0.0-916facec2d-01135bf867.zip +0 -0
  158. package/.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-0d99a03585.zip +0 -0
  159. package/.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-89a5b7f1de.zip +0 -0
  160. package/.yarn/cache/typescript-npm-4.9.5-6427b65ee6-ee000bc268.zip +0 -0
  161. package/.yarn/cache/typescript-patch-f8edcd7439-1f8f3b6aae.zip +0 -0
  162. package/.yarn/install-state.gz +0 -0
package/README.md CHANGED
@@ -18,14 +18,14 @@
18
18
 
19
19
  ### Making a Request
20
20
  ```Javascript
21
- import * as index from "./index";
21
+ import * as mgmtApi from "./index";
22
22
 
23
23
  //initialize the Options Class
24
- let options = new index.Options();
24
+ let options = new mgmtApi.Options();
25
25
 
26
26
  options.token = "<<Provide Auth Token>>"
27
27
  //Initialize the APIClient Class
28
- let apiClient = new index.ApiClient(options);
28
+ let apiClient = new mgmtApi.ApiClient(options);
29
29
 
30
30
  let guid = "<<Provide the Guid of the Website>>";
31
31
  let locale = "<<Provide the locale of the Website>>"; //Example: en-us
@@ -172,6 +172,14 @@ This class is used to perform operations related to Containers. The following ar
172
172
 
173
173
  Returns: A object of ```Container``` class.
174
174
 
175
+ ### getContainersByModel
176
+ | Parameter | Type | Description |
177
+ | :-------- | :------- | :------------------------- |
178
+ | `modelId` | `number` | The model id of the requested container.|
179
+ | `guid` | `string` | Current website guid.|
180
+
181
+ Returns: A object of ```Container``` class.
182
+
175
183
  ### getContainerByReferenceName
176
184
  | Parameter | Type | Description |
177
185
  | :-------- | :------- | :------------------------- |
@@ -312,15 +320,43 @@ Returns: An array of ```contentID``` of the requested content.
312
320
  | `referenceName` | `string` | The reference name of the container for the requested content.|
313
321
  | `guid` | `string` | Current website guid.|
314
322
  | `locale` | `string` | Current website locale.|
315
- | `filter` | `string` | The filter condition for the requested content.|
316
- | `fields` | `string` | The fields mapped to the container.|
317
- | `sortDirection` | `string` | The direction to sort the result.|
318
- | `sortField` | `string` | The field on which the sort needs to be performed.|
319
- | `take` | `number` | The page size for the result.|
320
- | `skip` | `number` | The record offset for the result.|
323
+ | `listParams` | `ListParams` | The parameters list to apply filter on the content list.|
324
+
325
+ Returns: An object of ```ContentList``` class of the requested content.
326
+
327
+ ### getContentList
328
+ | Parameter | Type | Description |
329
+ | :-------- | :------- | :------------------------- |
330
+ | `referenceName` | `string` | The reference name of the container for the requested content.|
331
+ | `guid` | `string` | Current website guid.|
332
+ | `locale` | `string` | Current website locale.|
333
+ | `listParams` | `ListParams` | The parameters list to apply filter on the content list.|
334
+ | `filterObject` | `ContentListFilterModel` | To apply filter at the field level.|
321
335
 
322
336
  Returns: An object of ```ContentList``` class of the requested content.
323
337
 
338
+ ### getContentHistory
339
+ | Parameter | Type | Description |
340
+ | :-------- | :------- | :------------------------- |
341
+ | `locale` | `string` | Current website locale.|
342
+ | `guid` | `string` | Current website guid.|
343
+ | `contentID` | `number` | The contentID of the requested content.|
344
+ | `take` | `number` | The number of items per record set default value 50.|
345
+ | `skip` | `number` | The skip level on the record set default value 0.|
346
+
347
+ Returns: An object of ```ContentItemHistory``` class of the requested content history.
348
+
349
+ ### getContentComments
350
+ | Parameter | Type | Description |
351
+ | :-------- | :------- | :------------------------- |
352
+ | `locale` | `string` | Current website locale.|
353
+ | `guid` | `string` | Current website guid.|
354
+ | `contentID` | `number` | The contentID of the requested content.|
355
+ | `take` | `number` | The number of items per record set default value 50.|
356
+ | `skip` | `number` | The skip level on the record set default value 0.|
357
+
358
+ Returns: An object of ```ItemComments``` class of the requested content comments.
359
+
324
360
  ## Class InstanceUserMethods
325
361
  This class is used to perform operations related to User. The following are the methods: -
326
362
 
@@ -409,6 +445,54 @@ This class is used to perform operations related to Pages. The following are the
409
445
  | `locale` | `string` | Current website locale.|
410
446
  Returns: A collection object of ```Sitemap``` class.
411
447
 
448
+ ### getPageTemplates
449
+ | Parameter | Type | Description |
450
+ | :-------- | :------- | :------------------------- |
451
+ | `guid` | `string` | Current website guid.|
452
+ | `locale` | `string` | Current website locale.|
453
+ | `includeModuleZones` | `boolean` | To include zones in the result set.|
454
+ | `searchFilter` | `string` | To apply search criteria on the requested page template.|
455
+ Returns: A collection object of ```PageModel``` class.
456
+
457
+ ### getPageTemplate
458
+ | Parameter | Type | Description |
459
+ | :-------- | :------- | :------------------------- |
460
+ | `guid` | `string` | Current website guid.|
461
+ | `locale` | `string` | Current website locale.|
462
+ | `pageTemplateId` | `number` | The pageTemplateId of the requested page template.|
463
+ Returns: An object of ```PageModel``` class.
464
+
465
+ ### getPageTemplateName
466
+ | Parameter | Type | Description |
467
+ | :-------- | :------- | :------------------------- |
468
+ | `guid` | `string` | Current website guid.|
469
+ | `locale` | `string` | Current website locale.|
470
+ | `templateName` | `string` | The templateName of the requested page template.|
471
+ Returns: An object of ```PageModel``` class.
472
+
473
+ ### deletePageTemplate
474
+ | Parameter | Type | Description |
475
+ | :-------- | :------- | :------------------------- |
476
+ | `guid` | `string` | Current website guid.|
477
+ | `locale` | `string` | Current website locale.|
478
+ | `pageTemplateId` | `string` | The pageTemplateId of the requested page template.|
479
+
480
+ ### getPageItemTemplates
481
+ | Parameter | Type | Description |
482
+ | :-------- | :------- | :------------------------- |
483
+ | `guid` | `string` | Current website guid.|
484
+ | `locale` | `string` | Current website locale.|
485
+ | `id` | `number` | The id of the requested page template.|
486
+ Returns: A collection of ```ContentSectionDefinition``` class.
487
+
488
+ ### savePageTemplate
489
+ | Parameter | Type | Description |
490
+ | :-------- | :------- | :------------------------- |
491
+ | `guid` | `string` | Current website guid.|
492
+ | `locale` | `string` | Current website locale.|
493
+ | `pageModel` | `PageModel` | The pageModel object of the requested page template.|
494
+ Returns: An object of ```PageModel``` class.
495
+
412
496
  ### getPage
413
497
  | Parameter | Type | Description |
414
498
  | :-------- | :------- | :------------------------- |
@@ -489,6 +573,80 @@ Returns: An array of ```pageID``` of the requested page.
489
573
 
490
574
  Returns: An array of ```pageID``` of the requested page.
491
575
 
576
+ ### getPageHistory
577
+ | Parameter | Type | Description |
578
+ | :-------- | :------- | :------------------------- |
579
+ | `locale` | `string` | Current website locale.|
580
+ | `guid` | `string` | Current website guid.|
581
+ | `pageID` | `number` | The pageID of the requested page.|
582
+ | `take` | `number` | The number of items per record set default value 50.|
583
+ | `skip` | `number` | The skip level on the record set default value 0.|
584
+
585
+ Returns: An object of ```PageHistory``` class of the requested page history.
586
+
587
+ ### getPageComments
588
+ | Parameter | Type | Description |
589
+ | :-------- | :------- | :------------------------- |
590
+ | `locale` | `string` | Current website locale.|
591
+ | `guid` | `string` | Current website guid.|
592
+ | `pageID` | `number` | The pageID of the requested page.|
593
+ | `take` | `number` | The number of items per record set default value 50.|
594
+ | `skip` | `number` | The skip level on the record set default value 0.|
595
+
596
+ Returns: An object of ```ItemComments``` class of the requested page comments.
597
+
598
+ ## Class ServerUserMethods
599
+ This class is used to perform operations related to Server User. The following are the methods: -
600
+
601
+ ### me
602
+ | Parameter | Type | Description |
603
+ | :-------- | :------- | :------------------------- |
604
+ | `guid` | `string` | Current website guid.|
605
+
606
+ Returns: An object of ```ServerUser``` class of the requested user.
607
+
608
+ ### you
609
+ | Parameter | Type | Description |
610
+ | :-------- | :------- | :------------------------- |
611
+ | `guid` | `string` | Current website guid.|
612
+ | `serverUserID` | `number` | Current website guid.|
613
+
614
+ Returns: An object of ```ServerUser``` class of the requested user.
615
+
616
+ ## Class WebhookMethods
617
+ This class is used to perform operations related to Webhooks in the agility instance. The following are the methods: -
618
+
619
+ ### webhookList
620
+ | Parameter | Type | Description |
621
+ | :-------- | :------- | :------------------------- |
622
+ | `guid` | `string` | Current website guid.|
623
+ | `take` | `number` | The number of items per record set default value 20.|
624
+ | `skip` | `number` | The skip level on the record set default value 0.|
625
+
626
+ Returns: A list of webhooks configured in the instance.
627
+
628
+ ### saveWebhook
629
+ | Parameter | Type | Description |
630
+ | :-------- | :------- | :------------------------- |
631
+ | `guid` | `string` | Current website guid.|
632
+ | `webhook` | `Webhook` | An object of Webhook type with the webhook data.|
633
+
634
+ Returns: An object with the created Webhook.
635
+
636
+ ### getWebhook
637
+ | Parameter | Type | Description |
638
+ | :-------- | :------- | :------------------------- |
639
+ | `guid` | `string` | Current website guid.|
640
+ | `webhookID` | `string` | The webhookID of the requested webhook.|
641
+
642
+ Returns: An object with the requested Webhook.
643
+
644
+ ### deleteWebhook
645
+ | Parameter | Type | Description |
646
+ | :-------- | :------- | :------------------------- |
647
+ | `guid` | `string` | Current website guid.|
648
+ | `webhookID` | `string` | The webhookID of the requested webhook.|
649
+
492
650
 
493
651
  ## Running the SDK Locally
494
652
 
@@ -1,19 +1,23 @@
1
- import { ContentMethods } from "./apiMethods/contentMethods";
2
- import { AssetMethods } from "./apiMethods/assetMethods";
3
- import { BatchMethods } from "./apiMethods/batchMethods";
4
- import { ContainerMethods } from "./apiMethods/containerMethods";
5
- import { InstanceUserMethods } from "./apiMethods/instanceUserMethods";
6
- import { ModelMethods } from "./apiMethods/modelMethods";
7
- import { PageMethods } from "./apiMethods/pageMethods";
8
- import { Options } from "./models/options";
9
- export declare class ApiClient {
10
- _options: Options;
11
- contentMethods: ContentMethods;
12
- assetMethods: AssetMethods;
13
- batchMethods: BatchMethods;
14
- containerMethods: ContainerMethods;
15
- instanceUserMethods: InstanceUserMethods;
16
- modelMethods: ModelMethods;
17
- pageMethods: PageMethods;
18
- constructor(options: Options);
19
- }
1
+ import { ContentMethods } from "./apiMethods/contentMethods";
2
+ import { AssetMethods } from "./apiMethods/assetMethods";
3
+ import { BatchMethods } from "./apiMethods/batchMethods";
4
+ import { ContainerMethods } from "./apiMethods/containerMethods";
5
+ import { InstanceUserMethods } from "./apiMethods/instanceUserMethods";
6
+ import { ModelMethods } from "./apiMethods/modelMethods";
7
+ import { PageMethods } from "./apiMethods/pageMethods";
8
+ import { Options } from "./models/options";
9
+ import { ServerUserMethods } from "./apiMethods/serverUserMethods";
10
+ import { WebhookMethods } from "./apiMethods/webhookMethods";
11
+ export declare class ApiClient {
12
+ _options: Options;
13
+ contentMethods: ContentMethods;
14
+ assetMethods: AssetMethods;
15
+ batchMethods: BatchMethods;
16
+ containerMethods: ContainerMethods;
17
+ instanceUserMethods: InstanceUserMethods;
18
+ modelMethods: ModelMethods;
19
+ pageMethods: PageMethods;
20
+ serverUserMethods: ServerUserMethods;
21
+ webhookMethods: WebhookMethods;
22
+ constructor(options: Options);
23
+ }
package/dist/apiClient.js CHANGED
@@ -1,24 +1,28 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiClient = void 0;
4
- var contentMethods_1 = require("./apiMethods/contentMethods");
5
- var assetMethods_1 = require("./apiMethods/assetMethods");
6
- var batchMethods_1 = require("./apiMethods/batchMethods");
7
- var containerMethods_1 = require("./apiMethods/containerMethods");
8
- var instanceUserMethods_1 = require("./apiMethods/instanceUserMethods");
9
- var modelMethods_1 = require("./apiMethods/modelMethods");
10
- var pageMethods_1 = require("./apiMethods/pageMethods");
11
- var ApiClient = /** @class */ (function () {
12
- function ApiClient(options) {
13
- this._options = options;
14
- this.contentMethods = new contentMethods_1.ContentMethods(this._options);
15
- this.assetMethods = new assetMethods_1.AssetMethods(this._options);
16
- this.batchMethods = new batchMethods_1.BatchMethods(this._options);
17
- this.containerMethods = new containerMethods_1.ContainerMethods(this._options);
18
- this.instanceUserMethods = new instanceUserMethods_1.InstanceUserMethods(this._options);
19
- this.modelMethods = new modelMethods_1.ModelMethods(this._options);
20
- this.pageMethods = new pageMethods_1.PageMethods(this._options);
21
- }
22
- return ApiClient;
23
- }());
24
- exports.ApiClient = ApiClient;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiClient = void 0;
4
+ var contentMethods_1 = require("./apiMethods/contentMethods");
5
+ var assetMethods_1 = require("./apiMethods/assetMethods");
6
+ var batchMethods_1 = require("./apiMethods/batchMethods");
7
+ var containerMethods_1 = require("./apiMethods/containerMethods");
8
+ var instanceUserMethods_1 = require("./apiMethods/instanceUserMethods");
9
+ var modelMethods_1 = require("./apiMethods/modelMethods");
10
+ var pageMethods_1 = require("./apiMethods/pageMethods");
11
+ var serverUserMethods_1 = require("./apiMethods/serverUserMethods");
12
+ var webhookMethods_1 = require("./apiMethods/webhookMethods");
13
+ var ApiClient = /** @class */ (function () {
14
+ function ApiClient(options) {
15
+ this._options = options;
16
+ this.contentMethods = new contentMethods_1.ContentMethods(this._options);
17
+ this.assetMethods = new assetMethods_1.AssetMethods(this._options);
18
+ this.batchMethods = new batchMethods_1.BatchMethods(this._options);
19
+ this.containerMethods = new containerMethods_1.ContainerMethods(this._options);
20
+ this.instanceUserMethods = new instanceUserMethods_1.InstanceUserMethods(this._options);
21
+ this.modelMethods = new modelMethods_1.ModelMethods(this._options);
22
+ this.pageMethods = new pageMethods_1.PageMethods(this._options);
23
+ this.serverUserMethods = new serverUserMethods_1.ServerUserMethods(this._options);
24
+ this.webhookMethods = new webhookMethods_1.WebhookMethods(this._options);
25
+ }
26
+ return ApiClient;
27
+ }());
28
+ exports.ApiClient = ApiClient;
@@ -0,0 +1,19 @@
1
+ import { ContentMethods } from "./contentMethods";
2
+ import { AssetMethods } from "./assetMethods";
3
+ import { BatchMethods } from "./batchMethods";
4
+ import { ContainerMethods } from "./containerMethods";
5
+ import { InstanceUserMethods } from "./instanceUserMethods";
6
+ import { ModelMethods } from "./modelMethods";
7
+ import { PageMethods } from "./pageMethods";
8
+ import { Options } from "../models/options";
9
+ export declare class ApiClient {
10
+ _options: Options;
11
+ contentMethods: ContentMethods;
12
+ assetMethods: AssetMethods;
13
+ batchMethods: BatchMethods;
14
+ containerMethods: ContainerMethods;
15
+ instanceUserMethods: InstanceUserMethods;
16
+ modelMethods: ModelMethods;
17
+ pageMethods: PageMethods;
18
+ constructor(options: Options);
19
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiClient = void 0;
4
+ var contentMethods_1 = require("./contentMethods");
5
+ var assetMethods_1 = require("./assetMethods");
6
+ var batchMethods_1 = require("./batchMethods");
7
+ var containerMethods_1 = require("./containerMethods");
8
+ var instanceUserMethods_1 = require("./instanceUserMethods");
9
+ var modelMethods_1 = require("./modelMethods");
10
+ var pageMethods_1 = require("./pageMethods");
11
+ var ApiClient = /** @class */ (function () {
12
+ function ApiClient(options) {
13
+ this._options = options;
14
+ this.contentMethods = new contentMethods_1.ContentMethods(this._options);
15
+ this.assetMethods = new assetMethods_1.AssetMethods(this._options);
16
+ this.batchMethods = new batchMethods_1.BatchMethods(this._options);
17
+ this.containerMethods = new containerMethods_1.ContainerMethods(this._options);
18
+ this.instanceUserMethods = new instanceUserMethods_1.InstanceUserMethods(this._options);
19
+ this.modelMethods = new modelMethods_1.ModelMethods(this._options);
20
+ this.pageMethods = new pageMethods_1.PageMethods(this._options);
21
+ }
22
+ return ApiClient;
23
+ }());
24
+ exports.ApiClient = ApiClient;
@@ -1,34 +1,34 @@
1
- import { Options } from "../models/options";
2
- import { ClientInstance } from "./clientInstance";
3
- import { AssetMediaList, Media } from "../models/media";
4
- import { assetGalleries } from "../models/assetGalleries";
5
- import { assetMediaGrouping } from "../models/assetMediaGrouping";
6
- import { assetContainer } from "../models/assetContainer";
7
- export declare class AssetMethods {
8
- _options: Options;
9
- _clientInstance: ClientInstance;
10
- constructor(options: Options);
11
- deleteFile(mediaID: number, guid: string): Promise<string>;
12
- moveFile(mediaID: number, newFolder: string, guid: string): Promise<Media>;
13
- getMediaList(pageSize: number, recordOffset: number, guid: string): Promise<AssetMediaList>;
14
- getGalleries(guid: string, search?: string, pageSize?: number, rowIndex?: number): Promise<assetGalleries>;
15
- getGalleryById(guid: string, id: number): Promise<assetMediaGrouping>;
16
- getGalleryByName(guid: string, galleryName: string): Promise<assetMediaGrouping>;
17
- getDefaultContainer(guid: string): Promise<assetContainer>;
18
- saveGallery(guid: string, gallery: assetMediaGrouping): Promise<assetMediaGrouping>;
19
- deleteGallery(guid: string, id: number): Promise<string>;
20
- getAssetByID(mediaID: number, guid: string): Promise<Media>;
21
- getAssetByUrl(url: string, guid: string): Promise<Media>;
22
- /**
23
- * Uploads a file to the specified folder path.
24
- *
25
- * @param {*} formData - FormData object that axios is expecting for the Upload.
26
- * @param {string} agilityFolderPath
27
- * @param {string} guid
28
- * @param {number} [groupingID=-1]
29
- * @returns
30
- * @memberof AssetMethods
31
- */
32
- upload(formData: any, agilityFolderPath: string, guid: string, groupingID?: number): Promise<Media[]>;
33
- createFolder(originKey: string, guid: string): Promise<Media>;
34
- }
1
+ import { Options } from "../models/options";
2
+ import { ClientInstance } from "./clientInstance";
3
+ import { AssetMediaList, Media } from "../models/media";
4
+ import { assetGalleries } from "../models/assetGalleries";
5
+ import { assetMediaGrouping } from "../models/assetMediaGrouping";
6
+ import { assetContainer } from "../models/assetContainer";
7
+ export declare class AssetMethods {
8
+ _options: Options;
9
+ _clientInstance: ClientInstance;
10
+ constructor(options: Options);
11
+ deleteFile(mediaID: number, guid: string): Promise<string>;
12
+ moveFile(mediaID: number, newFolder: string, guid: string): Promise<Media>;
13
+ getMediaList(pageSize: number, recordOffset: number, guid: string): Promise<AssetMediaList>;
14
+ getGalleries(guid: string, search?: string, pageSize?: number, rowIndex?: number): Promise<assetGalleries>;
15
+ getGalleryById(guid: string, id: number): Promise<assetMediaGrouping>;
16
+ getGalleryByName(guid: string, galleryName: string): Promise<assetMediaGrouping>;
17
+ getDefaultContainer(guid: string): Promise<assetContainer>;
18
+ saveGallery(guid: string, gallery: assetMediaGrouping): Promise<assetMediaGrouping>;
19
+ deleteGallery(guid: string, id: number): Promise<string>;
20
+ getAssetByID(mediaID: number, guid: string): Promise<Media>;
21
+ getAssetByUrl(url: string, guid: string): Promise<Media>;
22
+ /**
23
+ * Uploads a file to the specified folder path.
24
+ *
25
+ * @param {*} formData - FormData object that axios is expecting for the Upload.
26
+ * @param {string} agilityFolderPath
27
+ * @param {string} guid
28
+ * @param {number} [groupingID=-1]
29
+ * @returns
30
+ * @memberof AssetMethods
31
+ */
32
+ upload(formData: any, agilityFolderPath: string, guid: string, groupingID?: number): Promise<Media[]>;
33
+ createFolder(originKey: string, guid: string): Promise<Media>;
34
+ }