@gitbook/api 0.119.0 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +217 -309
- package/dist/index.cjs +63 -66
- package/dist/index.js +62 -65
- package/package.json +1 -1
- package/spec/openapi.json +556 -993
- package/spec/openapi.yaml +360 -668
package/dist/index.cjs
CHANGED
|
@@ -199,7 +199,6 @@ __export(src_exports, {
|
|
|
199
199
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
200
200
|
ContentType: () => ContentType,
|
|
201
201
|
ContentVisibility: () => ContentVisibility,
|
|
202
|
-
CustomFieldType: () => CustomFieldType,
|
|
203
202
|
CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
|
|
204
203
|
CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
|
|
205
204
|
CustomHostnameSslStatus: () => CustomHostnameSslStatus,
|
|
@@ -250,6 +249,7 @@ __export(src_exports, {
|
|
|
250
249
|
SiteAdsTopic: () => SiteAdsTopic,
|
|
251
250
|
SiteAgentsContext: () => SiteAgentsContext,
|
|
252
251
|
SiteCustomizationFeature: () => SiteCustomizationFeature,
|
|
252
|
+
SiteFeatureKey: () => SiteFeatureKey,
|
|
253
253
|
SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
|
|
254
254
|
SiteInsightsEventType: () => SiteInsightsEventType,
|
|
255
255
|
SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
|
|
@@ -271,7 +271,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
271
271
|
|
|
272
272
|
// package.json
|
|
273
273
|
var name = "@gitbook/api";
|
|
274
|
-
var version = "0.
|
|
274
|
+
var version = "0.121.0";
|
|
275
275
|
|
|
276
276
|
// src/client.ts
|
|
277
277
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -611,15 +611,6 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
|
611
611
|
IntegrationCategory2["Other"] = "other";
|
|
612
612
|
return IntegrationCategory2;
|
|
613
613
|
})(IntegrationCategory || {});
|
|
614
|
-
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
615
|
-
CustomFieldType2["Text"] = "text";
|
|
616
|
-
CustomFieldType2["Number"] = "number";
|
|
617
|
-
CustomFieldType2["Boolean"] = "boolean";
|
|
618
|
-
CustomFieldType2["Tags"] = "tags";
|
|
619
|
-
CustomFieldType2["SelectMulti"] = "select:multi";
|
|
620
|
-
CustomFieldType2["SelectSingle"] = "select:single";
|
|
621
|
-
return CustomFieldType2;
|
|
622
|
-
})(CustomFieldType || {});
|
|
623
614
|
var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationStatus2) => {
|
|
624
615
|
IntegrationInstallationStatus2["Active"] = "active";
|
|
625
616
|
IntegrationInstallationStatus2["Pending"] = "pending";
|
|
@@ -662,6 +653,36 @@ var SiteAgentsContext = /* @__PURE__ */ ((SiteAgentsContext2) => {
|
|
|
662
653
|
SiteAgentsContext2["Included"] = "included";
|
|
663
654
|
return SiteAgentsContext2;
|
|
664
655
|
})(SiteAgentsContext || {});
|
|
656
|
+
var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
657
|
+
SiteFeatureKey2["SitesAdaptiveContent"] = "sites-adaptive-content";
|
|
658
|
+
SiteFeatureKey2["SitesAdvancedCustomization"] = "sites-advanced-customization";
|
|
659
|
+
SiteFeatureKey2["SitesAdvancedInsights"] = "sites-advanced-insights";
|
|
660
|
+
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
661
|
+
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
662
|
+
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
663
|
+
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
664
|
+
SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
|
|
665
|
+
SiteFeatureKey2["SitesCustomFonts"] = "sites-custom-fonts";
|
|
666
|
+
SiteFeatureKey2["SitesCustomSubdirectory"] = "sites-custom-subdirectory";
|
|
667
|
+
SiteFeatureKey2["SitesFullTextSearch"] = "sites-full-text-search";
|
|
668
|
+
SiteFeatureKey2["SitesMultivariantSite"] = "sites-multivariant-site";
|
|
669
|
+
SiteFeatureKey2["SitesNoCustomDomain"] = "sites-no-custom-domain";
|
|
670
|
+
SiteFeatureKey2["SitesPageFeedback"] = "sites-page-feedback";
|
|
671
|
+
SiteFeatureKey2["SitesPageTrafficInsights"] = "sites-page-traffic-insights";
|
|
672
|
+
SiteFeatureKey2["SitesPdfExport"] = "sites-pdf-export";
|
|
673
|
+
SiteFeatureKey2["SitesPreviewDeployments"] = "sites-preview-deployments";
|
|
674
|
+
SiteFeatureKey2["SitesPublicVisibility"] = "sites-public-visibility";
|
|
675
|
+
SiteFeatureKey2["SitesRedirects"] = "sites-redirects";
|
|
676
|
+
SiteFeatureKey2["SitesSearchInsights"] = "sites-search-insights";
|
|
677
|
+
SiteFeatureKey2["SitesSections"] = "sites-sections";
|
|
678
|
+
SiteFeatureKey2["SitesSeo"] = "sites-seo";
|
|
679
|
+
SiteFeatureKey2["SitesShareLinks"] = "sites-share-links";
|
|
680
|
+
SiteFeatureKey2["SitesUnlistedVisibility"] = "sites-unlisted-visibility";
|
|
681
|
+
SiteFeatureKey2["SitesUserContribution"] = "sites-user-contribution";
|
|
682
|
+
SiteFeatureKey2["SitesVisitorAuthentication"] = "sites-visitor-authentication";
|
|
683
|
+
SiteFeatureKey2["SitesVisitors"] = "sites-visitors";
|
|
684
|
+
return SiteFeatureKey2;
|
|
685
|
+
})(SiteFeatureKey || {});
|
|
665
686
|
var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
666
687
|
SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
|
|
667
688
|
SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
|
|
@@ -1626,6 +1647,12 @@ var Api = class extends HttpClient {
|
|
|
1626
1647
|
format: "json",
|
|
1627
1648
|
...params
|
|
1628
1649
|
}),
|
|
1650
|
+
removeRequestedReviewerFromChangeRequest: (spaceId, changeRequestId, userId, params = {}) => this.request({
|
|
1651
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers/${userId}`,
|
|
1652
|
+
method: "DELETE",
|
|
1653
|
+
secure: true,
|
|
1654
|
+
...params
|
|
1655
|
+
}),
|
|
1629
1656
|
listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1630
1657
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
|
|
1631
1658
|
method: "GET",
|
|
@@ -1876,6 +1903,14 @@ var Api = class extends HttpClient {
|
|
|
1876
1903
|
format: "json",
|
|
1877
1904
|
...params
|
|
1878
1905
|
}),
|
|
1906
|
+
getPageDocumentInRevisionById: (spaceId, revisionId, pageId, query, params = {}) => this.request({
|
|
1907
|
+
path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/document`,
|
|
1908
|
+
method: "GET",
|
|
1909
|
+
query,
|
|
1910
|
+
secure: true,
|
|
1911
|
+
format: "json",
|
|
1912
|
+
...params
|
|
1913
|
+
}),
|
|
1879
1914
|
getPageInRevisionByPath: (spaceId, revisionId, pagePath, query, params = {}) => this.request({
|
|
1880
1915
|
path: `/spaces/${spaceId}/revisions/${revisionId}/path/${pagePath}`,
|
|
1881
1916
|
method: "GET",
|
|
@@ -2018,21 +2053,6 @@ var Api = class extends HttpClient {
|
|
|
2018
2053
|
format: "json",
|
|
2019
2054
|
...params
|
|
2020
2055
|
}),
|
|
2021
|
-
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
2022
|
-
path: `/spaces/${spaceId}/custom-fields`,
|
|
2023
|
-
method: "GET",
|
|
2024
|
-
secure: true,
|
|
2025
|
-
format: "json",
|
|
2026
|
-
...params
|
|
2027
|
-
}),
|
|
2028
|
-
updateSpaceCustomFields: (spaceId, data, params = {}) => this.request({
|
|
2029
|
-
path: `/spaces/${spaceId}/custom-fields`,
|
|
2030
|
-
method: "PATCH",
|
|
2031
|
-
body: data,
|
|
2032
|
-
secure: true,
|
|
2033
|
-
type: "application/json" /* Json */,
|
|
2034
|
-
...params
|
|
2035
|
-
}),
|
|
2036
2056
|
getSpacePdf: (spaceId, query, params = {}) => this.request({
|
|
2037
2057
|
path: `/spaces/${spaceId}/pdf`,
|
|
2038
2058
|
method: "GET",
|
|
@@ -2643,45 +2663,6 @@ var Api = class extends HttpClient {
|
|
|
2643
2663
|
format: "json",
|
|
2644
2664
|
...params
|
|
2645
2665
|
}),
|
|
2646
|
-
listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
|
|
2647
|
-
path: `/orgs/${organizationId}/custom-fields`,
|
|
2648
|
-
method: "GET",
|
|
2649
|
-
query,
|
|
2650
|
-
secure: true,
|
|
2651
|
-
format: "json",
|
|
2652
|
-
...params
|
|
2653
|
-
}),
|
|
2654
|
-
createOrganizationCustomField: (organizationId, data, params = {}) => this.request({
|
|
2655
|
-
path: `/orgs/${organizationId}/custom-fields`,
|
|
2656
|
-
method: "POST",
|
|
2657
|
-
body: data,
|
|
2658
|
-
secure: true,
|
|
2659
|
-
type: "application/json" /* Json */,
|
|
2660
|
-
format: "json",
|
|
2661
|
-
...params
|
|
2662
|
-
}),
|
|
2663
|
-
getOrganizationCustomFieldByName: (organizationId, fieldName, params = {}) => this.request({
|
|
2664
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2665
|
-
method: "GET",
|
|
2666
|
-
secure: true,
|
|
2667
|
-
format: "json",
|
|
2668
|
-
...params
|
|
2669
|
-
}),
|
|
2670
|
-
updateOrganizationCustomField: (organizationId, fieldName, data, params = {}) => this.request({
|
|
2671
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2672
|
-
method: "PATCH",
|
|
2673
|
-
body: data,
|
|
2674
|
-
secure: true,
|
|
2675
|
-
type: "application/json" /* Json */,
|
|
2676
|
-
format: "json",
|
|
2677
|
-
...params
|
|
2678
|
-
}),
|
|
2679
|
-
deleteOrganizationCustomField: (organizationId, fieldName, params = {}) => this.request({
|
|
2680
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2681
|
-
method: "DELETE",
|
|
2682
|
-
secure: true,
|
|
2683
|
-
...params
|
|
2684
|
-
}),
|
|
2685
2666
|
listOrganizationIntegrations: (organizationId, query, params = {}) => this.request({
|
|
2686
2667
|
path: `/orgs/${organizationId}/integrations`,
|
|
2687
2668
|
method: "GET",
|
|
@@ -3097,6 +3078,13 @@ var Api = class extends HttpClient {
|
|
|
3097
3078
|
format: "json",
|
|
3098
3079
|
...params
|
|
3099
3080
|
}),
|
|
3081
|
+
listSiteAdaptiveTemplateConditions: (organizationId, siteId, params = {}) => this.request({
|
|
3082
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema/template-conditions`,
|
|
3083
|
+
method: "GET",
|
|
3084
|
+
secure: true,
|
|
3085
|
+
format: "json",
|
|
3086
|
+
...params
|
|
3087
|
+
}),
|
|
3100
3088
|
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
3101
3089
|
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
3102
3090
|
method: "GET",
|
|
@@ -3159,6 +3147,15 @@ var Api = class extends HttpClient {
|
|
|
3159
3147
|
format: "json",
|
|
3160
3148
|
...params
|
|
3161
3149
|
}),
|
|
3150
|
+
sortSiteStructure: (organizationId, siteId, data, params = {}) => this.request({
|
|
3151
|
+
path: `/orgs/${organizationId}/sites/${siteId}/structure/sort`,
|
|
3152
|
+
method: "PATCH",
|
|
3153
|
+
body: data,
|
|
3154
|
+
secure: true,
|
|
3155
|
+
type: "application/json" /* Json */,
|
|
3156
|
+
format: "json",
|
|
3157
|
+
...params
|
|
3158
|
+
}),
|
|
3162
3159
|
getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
3163
3160
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
3164
3161
|
method: "GET",
|
|
@@ -3695,7 +3692,6 @@ var GitBookAPI = class extends Api {
|
|
|
3695
3692
|
ContentReferenceStatus,
|
|
3696
3693
|
ContentType,
|
|
3697
3694
|
ContentVisibility,
|
|
3698
|
-
CustomFieldType,
|
|
3699
3695
|
CustomHostnameDnsStatus,
|
|
3700
3696
|
CustomHostnameErrorStatus,
|
|
3701
3697
|
CustomHostnameSslStatus,
|
|
@@ -3746,6 +3742,7 @@ var GitBookAPI = class extends Api {
|
|
|
3746
3742
|
SiteAdsTopic,
|
|
3747
3743
|
SiteAgentsContext,
|
|
3748
3744
|
SiteCustomizationFeature,
|
|
3745
|
+
SiteFeatureKey,
|
|
3749
3746
|
SiteInsightsAdPlacement,
|
|
3750
3747
|
SiteInsightsEventType,
|
|
3751
3748
|
SiteInsightsLinkPosition,
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.121.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -512,15 +512,6 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
|
512
512
|
IntegrationCategory2["Other"] = "other";
|
|
513
513
|
return IntegrationCategory2;
|
|
514
514
|
})(IntegrationCategory || {});
|
|
515
|
-
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
516
|
-
CustomFieldType2["Text"] = "text";
|
|
517
|
-
CustomFieldType2["Number"] = "number";
|
|
518
|
-
CustomFieldType2["Boolean"] = "boolean";
|
|
519
|
-
CustomFieldType2["Tags"] = "tags";
|
|
520
|
-
CustomFieldType2["SelectMulti"] = "select:multi";
|
|
521
|
-
CustomFieldType2["SelectSingle"] = "select:single";
|
|
522
|
-
return CustomFieldType2;
|
|
523
|
-
})(CustomFieldType || {});
|
|
524
515
|
var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationStatus2) => {
|
|
525
516
|
IntegrationInstallationStatus2["Active"] = "active";
|
|
526
517
|
IntegrationInstallationStatus2["Pending"] = "pending";
|
|
@@ -563,6 +554,36 @@ var SiteAgentsContext = /* @__PURE__ */ ((SiteAgentsContext2) => {
|
|
|
563
554
|
SiteAgentsContext2["Included"] = "included";
|
|
564
555
|
return SiteAgentsContext2;
|
|
565
556
|
})(SiteAgentsContext || {});
|
|
557
|
+
var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
558
|
+
SiteFeatureKey2["SitesAdaptiveContent"] = "sites-adaptive-content";
|
|
559
|
+
SiteFeatureKey2["SitesAdvancedCustomization"] = "sites-advanced-customization";
|
|
560
|
+
SiteFeatureKey2["SitesAdvancedInsights"] = "sites-advanced-insights";
|
|
561
|
+
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
562
|
+
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
563
|
+
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
564
|
+
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
565
|
+
SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
|
|
566
|
+
SiteFeatureKey2["SitesCustomFonts"] = "sites-custom-fonts";
|
|
567
|
+
SiteFeatureKey2["SitesCustomSubdirectory"] = "sites-custom-subdirectory";
|
|
568
|
+
SiteFeatureKey2["SitesFullTextSearch"] = "sites-full-text-search";
|
|
569
|
+
SiteFeatureKey2["SitesMultivariantSite"] = "sites-multivariant-site";
|
|
570
|
+
SiteFeatureKey2["SitesNoCustomDomain"] = "sites-no-custom-domain";
|
|
571
|
+
SiteFeatureKey2["SitesPageFeedback"] = "sites-page-feedback";
|
|
572
|
+
SiteFeatureKey2["SitesPageTrafficInsights"] = "sites-page-traffic-insights";
|
|
573
|
+
SiteFeatureKey2["SitesPdfExport"] = "sites-pdf-export";
|
|
574
|
+
SiteFeatureKey2["SitesPreviewDeployments"] = "sites-preview-deployments";
|
|
575
|
+
SiteFeatureKey2["SitesPublicVisibility"] = "sites-public-visibility";
|
|
576
|
+
SiteFeatureKey2["SitesRedirects"] = "sites-redirects";
|
|
577
|
+
SiteFeatureKey2["SitesSearchInsights"] = "sites-search-insights";
|
|
578
|
+
SiteFeatureKey2["SitesSections"] = "sites-sections";
|
|
579
|
+
SiteFeatureKey2["SitesSeo"] = "sites-seo";
|
|
580
|
+
SiteFeatureKey2["SitesShareLinks"] = "sites-share-links";
|
|
581
|
+
SiteFeatureKey2["SitesUnlistedVisibility"] = "sites-unlisted-visibility";
|
|
582
|
+
SiteFeatureKey2["SitesUserContribution"] = "sites-user-contribution";
|
|
583
|
+
SiteFeatureKey2["SitesVisitorAuthentication"] = "sites-visitor-authentication";
|
|
584
|
+
SiteFeatureKey2["SitesVisitors"] = "sites-visitors";
|
|
585
|
+
return SiteFeatureKey2;
|
|
586
|
+
})(SiteFeatureKey || {});
|
|
566
587
|
var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
567
588
|
SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
|
|
568
589
|
SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
|
|
@@ -1527,6 +1548,12 @@ var Api = class extends HttpClient {
|
|
|
1527
1548
|
format: "json",
|
|
1528
1549
|
...params
|
|
1529
1550
|
}),
|
|
1551
|
+
removeRequestedReviewerFromChangeRequest: (spaceId, changeRequestId, userId, params = {}) => this.request({
|
|
1552
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers/${userId}`,
|
|
1553
|
+
method: "DELETE",
|
|
1554
|
+
secure: true,
|
|
1555
|
+
...params
|
|
1556
|
+
}),
|
|
1530
1557
|
listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1531
1558
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
|
|
1532
1559
|
method: "GET",
|
|
@@ -1777,6 +1804,14 @@ var Api = class extends HttpClient {
|
|
|
1777
1804
|
format: "json",
|
|
1778
1805
|
...params
|
|
1779
1806
|
}),
|
|
1807
|
+
getPageDocumentInRevisionById: (spaceId, revisionId, pageId, query, params = {}) => this.request({
|
|
1808
|
+
path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/document`,
|
|
1809
|
+
method: "GET",
|
|
1810
|
+
query,
|
|
1811
|
+
secure: true,
|
|
1812
|
+
format: "json",
|
|
1813
|
+
...params
|
|
1814
|
+
}),
|
|
1780
1815
|
getPageInRevisionByPath: (spaceId, revisionId, pagePath, query, params = {}) => this.request({
|
|
1781
1816
|
path: `/spaces/${spaceId}/revisions/${revisionId}/path/${pagePath}`,
|
|
1782
1817
|
method: "GET",
|
|
@@ -1919,21 +1954,6 @@ var Api = class extends HttpClient {
|
|
|
1919
1954
|
format: "json",
|
|
1920
1955
|
...params
|
|
1921
1956
|
}),
|
|
1922
|
-
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
1923
|
-
path: `/spaces/${spaceId}/custom-fields`,
|
|
1924
|
-
method: "GET",
|
|
1925
|
-
secure: true,
|
|
1926
|
-
format: "json",
|
|
1927
|
-
...params
|
|
1928
|
-
}),
|
|
1929
|
-
updateSpaceCustomFields: (spaceId, data, params = {}) => this.request({
|
|
1930
|
-
path: `/spaces/${spaceId}/custom-fields`,
|
|
1931
|
-
method: "PATCH",
|
|
1932
|
-
body: data,
|
|
1933
|
-
secure: true,
|
|
1934
|
-
type: "application/json" /* Json */,
|
|
1935
|
-
...params
|
|
1936
|
-
}),
|
|
1937
1957
|
getSpacePdf: (spaceId, query, params = {}) => this.request({
|
|
1938
1958
|
path: `/spaces/${spaceId}/pdf`,
|
|
1939
1959
|
method: "GET",
|
|
@@ -2544,45 +2564,6 @@ var Api = class extends HttpClient {
|
|
|
2544
2564
|
format: "json",
|
|
2545
2565
|
...params
|
|
2546
2566
|
}),
|
|
2547
|
-
listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
|
|
2548
|
-
path: `/orgs/${organizationId}/custom-fields`,
|
|
2549
|
-
method: "GET",
|
|
2550
|
-
query,
|
|
2551
|
-
secure: true,
|
|
2552
|
-
format: "json",
|
|
2553
|
-
...params
|
|
2554
|
-
}),
|
|
2555
|
-
createOrganizationCustomField: (organizationId, data, params = {}) => this.request({
|
|
2556
|
-
path: `/orgs/${organizationId}/custom-fields`,
|
|
2557
|
-
method: "POST",
|
|
2558
|
-
body: data,
|
|
2559
|
-
secure: true,
|
|
2560
|
-
type: "application/json" /* Json */,
|
|
2561
|
-
format: "json",
|
|
2562
|
-
...params
|
|
2563
|
-
}),
|
|
2564
|
-
getOrganizationCustomFieldByName: (organizationId, fieldName, params = {}) => this.request({
|
|
2565
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2566
|
-
method: "GET",
|
|
2567
|
-
secure: true,
|
|
2568
|
-
format: "json",
|
|
2569
|
-
...params
|
|
2570
|
-
}),
|
|
2571
|
-
updateOrganizationCustomField: (organizationId, fieldName, data, params = {}) => this.request({
|
|
2572
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2573
|
-
method: "PATCH",
|
|
2574
|
-
body: data,
|
|
2575
|
-
secure: true,
|
|
2576
|
-
type: "application/json" /* Json */,
|
|
2577
|
-
format: "json",
|
|
2578
|
-
...params
|
|
2579
|
-
}),
|
|
2580
|
-
deleteOrganizationCustomField: (organizationId, fieldName, params = {}) => this.request({
|
|
2581
|
-
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
2582
|
-
method: "DELETE",
|
|
2583
|
-
secure: true,
|
|
2584
|
-
...params
|
|
2585
|
-
}),
|
|
2586
2567
|
listOrganizationIntegrations: (organizationId, query, params = {}) => this.request({
|
|
2587
2568
|
path: `/orgs/${organizationId}/integrations`,
|
|
2588
2569
|
method: "GET",
|
|
@@ -2998,6 +2979,13 @@ var Api = class extends HttpClient {
|
|
|
2998
2979
|
format: "json",
|
|
2999
2980
|
...params
|
|
3000
2981
|
}),
|
|
2982
|
+
listSiteAdaptiveTemplateConditions: (organizationId, siteId, params = {}) => this.request({
|
|
2983
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema/template-conditions`,
|
|
2984
|
+
method: "GET",
|
|
2985
|
+
secure: true,
|
|
2986
|
+
format: "json",
|
|
2987
|
+
...params
|
|
2988
|
+
}),
|
|
3001
2989
|
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
3002
2990
|
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
3003
2991
|
method: "GET",
|
|
@@ -3060,6 +3048,15 @@ var Api = class extends HttpClient {
|
|
|
3060
3048
|
format: "json",
|
|
3061
3049
|
...params
|
|
3062
3050
|
}),
|
|
3051
|
+
sortSiteStructure: (organizationId, siteId, data, params = {}) => this.request({
|
|
3052
|
+
path: `/orgs/${organizationId}/sites/${siteId}/structure/sort`,
|
|
3053
|
+
method: "PATCH",
|
|
3054
|
+
body: data,
|
|
3055
|
+
secure: true,
|
|
3056
|
+
type: "application/json" /* Json */,
|
|
3057
|
+
format: "json",
|
|
3058
|
+
...params
|
|
3059
|
+
}),
|
|
3063
3060
|
getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
3064
3061
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
3065
3062
|
method: "GET",
|
|
@@ -3595,7 +3592,6 @@ export {
|
|
|
3595
3592
|
ContentReferenceStatus,
|
|
3596
3593
|
ContentType,
|
|
3597
3594
|
ContentVisibility,
|
|
3598
|
-
CustomFieldType,
|
|
3599
3595
|
CustomHostnameDnsStatus,
|
|
3600
3596
|
CustomHostnameErrorStatus,
|
|
3601
3597
|
CustomHostnameSslStatus,
|
|
@@ -3646,6 +3642,7 @@ export {
|
|
|
3646
3642
|
SiteAdsTopic,
|
|
3647
3643
|
SiteAgentsContext,
|
|
3648
3644
|
SiteCustomizationFeature,
|
|
3645
|
+
SiteFeatureKey,
|
|
3649
3646
|
SiteInsightsAdPlacement,
|
|
3650
3647
|
SiteInsightsEventType,
|
|
3651
3648
|
SiteInsightsLinkPosition,
|