@agility/management-sdk 0.1.16 → 0.1.18
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/README.md +182 -9
- package/dist/apiClient.d.ts +23 -19
- package/dist/apiClient.js +28 -24
- package/dist/apiMethods/apiClient.d.ts +19 -0
- package/dist/apiMethods/apiClient.js +24 -0
- package/dist/apiMethods/assetMethods.d.ts +36 -34
- package/dist/apiMethods/assetMethods.js +367 -325
- package/dist/apiMethods/batchMethods.d.ts +11 -11
- package/dist/apiMethods/batchMethods.js +117 -117
- package/dist/apiMethods/clientInstance.d.ts +20 -18
- package/dist/apiMethods/clientInstance.js +206 -170
- package/dist/apiMethods/containerMethods.d.ts +17 -17
- package/dist/apiMethods/containerMethods.js +209 -209
- package/dist/apiMethods/contentMethods.d.ts +27 -20
- package/dist/apiMethods/contentMethods.js +418 -359
- package/dist/apiMethods/instanceUserMethods.d.ts +13 -13
- package/dist/apiMethods/instanceUserMethods.js +111 -111
- package/dist/apiMethods/modelMethods.d.ts +14 -14
- package/dist/apiMethods/modelMethods.js +170 -170
- package/dist/apiMethods/pageMethods.d.ts +32 -28
- package/dist/apiMethods/pageMethods.js +490 -446
- package/dist/apiMethods/serverUserMethods.d.ts +10 -0
- package/dist/apiMethods/serverUserMethods.js +89 -0
- package/dist/apiMethods/webhookMethods.d.ts +12 -0
- package/dist/apiMethods/webhookMethods.js +131 -0
- package/dist/enums/assetGroupingType.d.ts +3 -3
- package/dist/enums/assetGroupingType.js +7 -7
- package/dist/enums/batchOperationType.d.ts +19 -19
- package/dist/enums/batchOperationType.js +23 -23
- package/dist/enums/batchState..d.ts +7 -7
- package/dist/enums/batchState..js +11 -11
- package/dist/enums/pageItemTemplateType.d.ts +4 -4
- package/dist/enums/pageItemTemplateType.js +8 -8
- package/dist/index.d.ts +23 -23
- package/dist/index.js +39 -39
- package/dist/models/assetContainer.d.ts +7 -7
- package/dist/models/assetContainer.js +9 -9
- package/dist/models/assetGalleries.d.ts +5 -5
- package/dist/models/assetGalleries.js +9 -9
- package/dist/models/assetMediaGrouping.d.ts +17 -17
- package/dist/models/assetMediaGrouping.js +9 -9
- package/dist/models/assetMediaGroupingMetaData.d.ts +4 -4
- package/dist/models/assetMediaGroupingMetaData.js +9 -9
- package/dist/models/batch.d.ts +29 -29
- package/dist/models/batch.js +9 -9
- package/dist/models/batchItem.d.ts +13 -13
- package/dist/models/batchItem.js +9 -9
- package/dist/models/container.d.ts +47 -47
- package/dist/models/container.js +9 -9
- package/dist/models/contentItem.d.ts +37 -37
- package/dist/models/contentItem.js +33 -33
- package/dist/models/contentItemHistory.d.ts +20 -0
- package/dist/models/contentItemHistory.js +15 -0
- package/dist/models/contentListFilterModel.d.ts +26 -0
- package/dist/models/contentListFilterModel.js +33 -0
- package/dist/models/contentSectionDefaultModule.d.ts +7 -7
- package/dist/models/contentSectionDefaultModule.js +9 -9
- package/dist/models/contentSectionDefinition.d.ts +35 -35
- package/dist/models/contentSectionDefinition.js +9 -9
- package/dist/models/contentViewColumn.d.ts +8 -8
- package/dist/models/contentViewColumn.js +9 -9
- package/dist/models/exception.d.ts +4 -4
- package/dist/models/exception.js +28 -28
- package/dist/models/instanceRole.d.ts +7 -7
- package/dist/models/instanceRole.js +9 -9
- package/dist/models/instanceUser.d.ts +14 -14
- package/dist/models/instanceUser.js +9 -9
- package/dist/models/itemComments.d.ts +14 -0
- package/dist/models/itemComments.js +15 -0
- package/dist/models/listParams.d.ts +9 -0
- package/dist/models/listParams.js +16 -0
- package/dist/models/media.d.ts +30 -30
- package/dist/models/media.js +15 -15
- package/dist/models/model.d.ts +30 -30
- package/dist/models/model.js +15 -15
- package/dist/models/notification.d.ts +13 -13
- package/dist/models/notification.js +9 -9
- package/dist/models/options.d.ts +7 -7
- package/dist/models/options.js +9 -9
- package/dist/models/pageHistory.d.ts +21 -0
- package/dist/models/pageHistory.js +15 -0
- package/dist/models/pageItem.d.ts +56 -56
- package/dist/models/pageItem.js +39 -39
- package/dist/models/pageModel.d.ts +14 -14
- package/dist/models/pageModel.js +9 -9
- package/dist/models/serverUser.d.ts +21 -0
- package/dist/models/serverUser.js +9 -0
- package/dist/models/sharedModule.d.ts +7 -7
- package/dist/models/sharedModule.js +9 -9
- package/dist/models/sitemap.d.ts +20 -20
- package/dist/models/sitemap.js +15 -15
- package/dist/models/webhook.d.ts +9 -0
- package/dist/models/webhook.js +9 -0
- package/dist/models/websiteListing.d.ts +16 -0
- package/dist/models/websiteListing.js +9 -0
- package/dist/models/websiteUser.d.ts +22 -22
- package/dist/models/websiteUser.js +15 -15
- package/dist/src/apiMethods/assetMethods.d.ts +14 -0
- package/dist/src/apiMethods/assetMethods.js +172 -0
- package/dist/src/apiMethods/batchMethods.d.ts +11 -0
- package/dist/src/apiMethods/batchMethods.js +117 -0
- package/dist/src/apiMethods/clientInstance.d.ts +8 -0
- package/dist/src/apiMethods/clientInstance.js +156 -0
- package/dist/src/apiMethods/containerMethods.d.ts +16 -0
- package/dist/src/apiMethods/containerMethods.js +189 -0
- package/dist/src/apiMethods/contentMethods.d.ts +20 -0
- package/dist/src/apiMethods/contentMethods.js +359 -0
- package/dist/src/apiMethods/instanceUserMethods.d.ts +13 -0
- package/dist/src/apiMethods/instanceUserMethods.js +111 -0
- package/dist/src/apiMethods/modelMethods.d.ts +13 -0
- package/dist/src/apiMethods/modelMethods.js +150 -0
- package/dist/src/apiMethods/pageMethods.d.ts +20 -0
- package/dist/src/apiMethods/pageMethods.js +323 -0
- package/dist/src/enums/batchOperationType.d.ts +19 -0
- package/dist/src/enums/batchOperationType.js +23 -0
- package/dist/src/enums/batchState..d.ts +7 -0
- package/dist/src/enums/batchState..js +11 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +30 -0
- package/dist/src/models/batch.d.ts +29 -0
- package/dist/src/models/batch.js +9 -0
- package/dist/src/models/batchItem.d.ts +13 -0
- package/dist/src/models/batchItem.js +9 -0
- package/dist/src/models/container.d.ts +47 -0
- package/dist/src/models/container.js +9 -0
- package/dist/src/models/contentItem.d.ts +37 -0
- package/dist/src/models/contentItem.js +33 -0
- package/dist/src/models/contentViewColumn.d.ts +8 -0
- package/dist/src/models/contentViewColumn.js +9 -0
- package/dist/src/models/exception.d.ts +4 -0
- package/dist/src/models/exception.js +28 -0
- package/dist/src/models/instanceRole.d.ts +7 -0
- package/dist/src/models/instanceRole.js +9 -0
- package/dist/src/models/instanceUser.d.ts +14 -0
- package/dist/src/models/instanceUser.js +9 -0
- package/dist/src/models/media.d.ts +30 -0
- package/dist/src/models/media.js +15 -0
- package/dist/src/models/model.d.ts +30 -0
- package/dist/src/models/model.js +15 -0
- package/dist/src/models/notification.d.ts +13 -0
- package/dist/src/models/notification.js +9 -0
- package/dist/src/models/options.d.ts +7 -0
- package/dist/src/models/options.js +9 -0
- package/dist/src/models/pageItem.d.ts +56 -0
- package/dist/src/models/pageItem.js +39 -0
- package/dist/src/models/sitemap.d.ts +20 -0
- package/dist/src/models/sitemap.js +15 -0
- package/dist/src/models/websiteUser.d.ts +22 -0
- package/dist/src/models/websiteUser.js +15 -0
- package/package.json +1 -1
- package/.yarn/cache/@types-node-npm-18.11.9-d21dd6ec05-cc0aae109e.zip +0 -0
- package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
- package/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip +0 -0
- package/.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-49fa4aeb49.zip +0 -0
- package/.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip +0 -0
- package/.yarn/cache/follow-redirects-npm-1.15.2-1ec1dd82be-faa66059b6.zip +0 -0
- package/.yarn/cache/form-data-npm-4.0.0-916facec2d-01135bf867.zip +0 -0
- package/.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-0d99a03585.zip +0 -0
- package/.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-89a5b7f1de.zip +0 -0
- package/.yarn/cache/typescript-npm-4.9.5-6427b65ee6-ee000bc268.zip +0 -0
- package/.yarn/cache/typescript-patch-f8edcd7439-1f8f3b6aae.zip +0 -0
- 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
|
|
21
|
+
import * as mgmtApi from "./index";
|
|
22
22
|
|
|
23
23
|
//initialize the Options Class
|
|
24
|
-
let options = new
|
|
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
|
|
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
|
|
@@ -59,6 +59,21 @@ Returns: A collection of ```Media``` class Object.
|
|
|
59
59
|
|
|
60
60
|
Returns: A collection of ```Media``` class Object.
|
|
61
61
|
|
|
62
|
+
### deleteFolder
|
|
63
|
+
| Parameter | Type | Description |
|
|
64
|
+
| :-------- | :------- | :------------------------- |
|
|
65
|
+
| `originKey` | `string` | The origin key of the requested folder. |
|
|
66
|
+
| `guid` | `string` | Current website guid.|
|
|
67
|
+
| `mediaID` | `number` | The mediaID of the folder that needs to be deleted.|
|
|
68
|
+
|
|
69
|
+
### renameFolder
|
|
70
|
+
| Parameter | Type | Description |
|
|
71
|
+
| :-------- | :------- | :------------------------- |
|
|
72
|
+
| `folderName` | `string` | The original folder name. |
|
|
73
|
+
| `newFolderName` | `string` | The new folder name. |
|
|
74
|
+
| `guid` | `string` | Current website guid.|
|
|
75
|
+
| `mediaID` | `number` | The mediaID of the folder that needs to be renamed.|
|
|
76
|
+
|
|
62
77
|
### deleteFile
|
|
63
78
|
| Parameter | Type | Description |
|
|
64
79
|
| :-------- | :------- | :------------------------- |
|
|
@@ -172,6 +187,14 @@ This class is used to perform operations related to Containers. The following ar
|
|
|
172
187
|
|
|
173
188
|
Returns: A object of ```Container``` class.
|
|
174
189
|
|
|
190
|
+
### getContainersByModel
|
|
191
|
+
| Parameter | Type | Description |
|
|
192
|
+
| :-------- | :------- | :------------------------- |
|
|
193
|
+
| `modelId` | `number` | The model id of the requested container.|
|
|
194
|
+
| `guid` | `string` | Current website guid.|
|
|
195
|
+
|
|
196
|
+
Returns: A object of ```Container``` class.
|
|
197
|
+
|
|
175
198
|
### getContainerByReferenceName
|
|
176
199
|
| Parameter | Type | Description |
|
|
177
200
|
| :-------- | :------- | :------------------------- |
|
|
@@ -312,15 +335,43 @@ Returns: An array of ```contentID``` of the requested content.
|
|
|
312
335
|
| `referenceName` | `string` | The reference name of the container for the requested content.|
|
|
313
336
|
| `guid` | `string` | Current website guid.|
|
|
314
337
|
| `locale` | `string` | Current website locale.|
|
|
315
|
-
| `
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
|
338
|
+
| `listParams` | `ListParams` | The parameters list to apply filter on the content list.|
|
|
339
|
+
|
|
340
|
+
Returns: An object of ```ContentList``` class of the requested content.
|
|
341
|
+
|
|
342
|
+
### getContentList
|
|
343
|
+
| Parameter | Type | Description |
|
|
344
|
+
| :-------- | :------- | :------------------------- |
|
|
345
|
+
| `referenceName` | `string` | The reference name of the container for the requested content.|
|
|
346
|
+
| `guid` | `string` | Current website guid.|
|
|
347
|
+
| `locale` | `string` | Current website locale.|
|
|
348
|
+
| `listParams` | `ListParams` | The parameters list to apply filter on the content list.|
|
|
349
|
+
| `filterObject` | `ContentListFilterModel` | To apply filter at the field level.|
|
|
321
350
|
|
|
322
351
|
Returns: An object of ```ContentList``` class of the requested content.
|
|
323
352
|
|
|
353
|
+
### getContentHistory
|
|
354
|
+
| Parameter | Type | Description |
|
|
355
|
+
| :-------- | :------- | :------------------------- |
|
|
356
|
+
| `locale` | `string` | Current website locale.|
|
|
357
|
+
| `guid` | `string` | Current website guid.|
|
|
358
|
+
| `contentID` | `number` | The contentID of the requested content.|
|
|
359
|
+
| `take` | `number` | The number of items per record set default value 50.|
|
|
360
|
+
| `skip` | `number` | The skip level on the record set default value 0.|
|
|
361
|
+
|
|
362
|
+
Returns: An object of ```ContentItemHistory``` class of the requested content history.
|
|
363
|
+
|
|
364
|
+
### getContentComments
|
|
365
|
+
| Parameter | Type | Description |
|
|
366
|
+
| :-------- | :------- | :------------------------- |
|
|
367
|
+
| `locale` | `string` | Current website locale.|
|
|
368
|
+
| `guid` | `string` | Current website guid.|
|
|
369
|
+
| `contentID` | `number` | The contentID of the requested content.|
|
|
370
|
+
| `take` | `number` | The number of items per record set default value 50.|
|
|
371
|
+
| `skip` | `number` | The skip level on the record set default value 0.|
|
|
372
|
+
|
|
373
|
+
Returns: An object of ```ItemComments``` class of the requested content comments.
|
|
374
|
+
|
|
324
375
|
## Class InstanceUserMethods
|
|
325
376
|
This class is used to perform operations related to User. The following are the methods: -
|
|
326
377
|
|
|
@@ -409,6 +460,54 @@ This class is used to perform operations related to Pages. The following are the
|
|
|
409
460
|
| `locale` | `string` | Current website locale.|
|
|
410
461
|
Returns: A collection object of ```Sitemap``` class.
|
|
411
462
|
|
|
463
|
+
### getPageTemplates
|
|
464
|
+
| Parameter | Type | Description |
|
|
465
|
+
| :-------- | :------- | :------------------------- |
|
|
466
|
+
| `guid` | `string` | Current website guid.|
|
|
467
|
+
| `locale` | `string` | Current website locale.|
|
|
468
|
+
| `includeModuleZones` | `boolean` | To include zones in the result set.|
|
|
469
|
+
| `searchFilter` | `string` | To apply search criteria on the requested page template.|
|
|
470
|
+
Returns: A collection object of ```PageModel``` class.
|
|
471
|
+
|
|
472
|
+
### getPageTemplate
|
|
473
|
+
| Parameter | Type | Description |
|
|
474
|
+
| :-------- | :------- | :------------------------- |
|
|
475
|
+
| `guid` | `string` | Current website guid.|
|
|
476
|
+
| `locale` | `string` | Current website locale.|
|
|
477
|
+
| `pageTemplateId` | `number` | The pageTemplateId of the requested page template.|
|
|
478
|
+
Returns: An object of ```PageModel``` class.
|
|
479
|
+
|
|
480
|
+
### getPageTemplateName
|
|
481
|
+
| Parameter | Type | Description |
|
|
482
|
+
| :-------- | :------- | :------------------------- |
|
|
483
|
+
| `guid` | `string` | Current website guid.|
|
|
484
|
+
| `locale` | `string` | Current website locale.|
|
|
485
|
+
| `templateName` | `string` | The templateName of the requested page template.|
|
|
486
|
+
Returns: An object of ```PageModel``` class.
|
|
487
|
+
|
|
488
|
+
### deletePageTemplate
|
|
489
|
+
| Parameter | Type | Description |
|
|
490
|
+
| :-------- | :------- | :------------------------- |
|
|
491
|
+
| `guid` | `string` | Current website guid.|
|
|
492
|
+
| `locale` | `string` | Current website locale.|
|
|
493
|
+
| `pageTemplateId` | `string` | The pageTemplateId of the requested page template.|
|
|
494
|
+
|
|
495
|
+
### getPageItemTemplates
|
|
496
|
+
| Parameter | Type | Description |
|
|
497
|
+
| :-------- | :------- | :------------------------- |
|
|
498
|
+
| `guid` | `string` | Current website guid.|
|
|
499
|
+
| `locale` | `string` | Current website locale.|
|
|
500
|
+
| `id` | `number` | The id of the requested page template.|
|
|
501
|
+
Returns: A collection of ```ContentSectionDefinition``` class.
|
|
502
|
+
|
|
503
|
+
### savePageTemplate
|
|
504
|
+
| Parameter | Type | Description |
|
|
505
|
+
| :-------- | :------- | :------------------------- |
|
|
506
|
+
| `guid` | `string` | Current website guid.|
|
|
507
|
+
| `locale` | `string` | Current website locale.|
|
|
508
|
+
| `pageModel` | `PageModel` | The pageModel object of the requested page template.|
|
|
509
|
+
Returns: An object of ```PageModel``` class.
|
|
510
|
+
|
|
412
511
|
### getPage
|
|
413
512
|
| Parameter | Type | Description |
|
|
414
513
|
| :-------- | :------- | :------------------------- |
|
|
@@ -489,6 +588,80 @@ Returns: An array of ```pageID``` of the requested page.
|
|
|
489
588
|
|
|
490
589
|
Returns: An array of ```pageID``` of the requested page.
|
|
491
590
|
|
|
591
|
+
### getPageHistory
|
|
592
|
+
| Parameter | Type | Description |
|
|
593
|
+
| :-------- | :------- | :------------------------- |
|
|
594
|
+
| `locale` | `string` | Current website locale.|
|
|
595
|
+
| `guid` | `string` | Current website guid.|
|
|
596
|
+
| `pageID` | `number` | The pageID of the requested page.|
|
|
597
|
+
| `take` | `number` | The number of items per record set default value 50.|
|
|
598
|
+
| `skip` | `number` | The skip level on the record set default value 0.|
|
|
599
|
+
|
|
600
|
+
Returns: An object of ```PageHistory``` class of the requested page history.
|
|
601
|
+
|
|
602
|
+
### getPageComments
|
|
603
|
+
| Parameter | Type | Description |
|
|
604
|
+
| :-------- | :------- | :------------------------- |
|
|
605
|
+
| `locale` | `string` | Current website locale.|
|
|
606
|
+
| `guid` | `string` | Current website guid.|
|
|
607
|
+
| `pageID` | `number` | The pageID of the requested page.|
|
|
608
|
+
| `take` | `number` | The number of items per record set default value 50.|
|
|
609
|
+
| `skip` | `number` | The skip level on the record set default value 0.|
|
|
610
|
+
|
|
611
|
+
Returns: An object of ```ItemComments``` class of the requested page comments.
|
|
612
|
+
|
|
613
|
+
## Class ServerUserMethods
|
|
614
|
+
This class is used to perform operations related to Server User. The following are the methods: -
|
|
615
|
+
|
|
616
|
+
### me
|
|
617
|
+
| Parameter | Type | Description |
|
|
618
|
+
| :-------- | :------- | :------------------------- |
|
|
619
|
+
| `guid` | `string` | Current website guid.|
|
|
620
|
+
|
|
621
|
+
Returns: An object of ```ServerUser``` class of the requested user.
|
|
622
|
+
|
|
623
|
+
### you
|
|
624
|
+
| Parameter | Type | Description |
|
|
625
|
+
| :-------- | :------- | :------------------------- |
|
|
626
|
+
| `guid` | `string` | Current website guid.|
|
|
627
|
+
| `serverUserID` | `number` | Current website guid.|
|
|
628
|
+
|
|
629
|
+
Returns: An object of ```ServerUser``` class of the requested user.
|
|
630
|
+
|
|
631
|
+
## Class WebhookMethods
|
|
632
|
+
This class is used to perform operations related to Webhooks in the agility instance. The following are the methods: -
|
|
633
|
+
|
|
634
|
+
### webhookList
|
|
635
|
+
| Parameter | Type | Description |
|
|
636
|
+
| :-------- | :------- | :------------------------- |
|
|
637
|
+
| `guid` | `string` | Current website guid.|
|
|
638
|
+
| `take` | `number` | The number of items per record set default value 20.|
|
|
639
|
+
| `skip` | `number` | The skip level on the record set default value 0.|
|
|
640
|
+
|
|
641
|
+
Returns: A list of webhooks configured in the instance.
|
|
642
|
+
|
|
643
|
+
### saveWebhook
|
|
644
|
+
| Parameter | Type | Description |
|
|
645
|
+
| :-------- | :------- | :------------------------- |
|
|
646
|
+
| `guid` | `string` | Current website guid.|
|
|
647
|
+
| `webhook` | `Webhook` | An object of Webhook type with the webhook data.|
|
|
648
|
+
|
|
649
|
+
Returns: An object with the created Webhook.
|
|
650
|
+
|
|
651
|
+
### getWebhook
|
|
652
|
+
| Parameter | Type | Description |
|
|
653
|
+
| :-------- | :------- | :------------------------- |
|
|
654
|
+
| `guid` | `string` | Current website guid.|
|
|
655
|
+
| `webhookID` | `string` | The webhookID of the requested webhook.|
|
|
656
|
+
|
|
657
|
+
Returns: An object with the requested Webhook.
|
|
658
|
+
|
|
659
|
+
### deleteWebhook
|
|
660
|
+
| Parameter | Type | Description |
|
|
661
|
+
| :-------- | :------- | :------------------------- |
|
|
662
|
+
| `guid` | `string` | Current website guid.|
|
|
663
|
+
| `webhookID` | `string` | The webhookID of the requested webhook.|
|
|
664
|
+
|
|
492
665
|
|
|
493
666
|
## Running the SDK Locally
|
|
494
667
|
|
package/dist/apiClient.d.ts
CHANGED
|
@@ -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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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,36 @@
|
|
|
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
|
+
deleteFolder(originKey: string, guid: string, mediaID?: number): Promise<void>;
|
|
35
|
+
renameFolder(folderName: string, newFolderName: string, guid: string, mediaID?: number): Promise<void>;
|
|
36
|
+
}
|