@gitbook/api 0.118.0 → 0.120.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/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.118.0";
175
+ var version = "0.120.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";
@@ -1777,6 +1768,14 @@ var Api = class extends HttpClient {
1777
1768
  format: "json",
1778
1769
  ...params
1779
1770
  }),
1771
+ getPageDocumentInRevisionById: (spaceId, revisionId, pageId, query, params = {}) => this.request({
1772
+ path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/document`,
1773
+ method: "GET",
1774
+ query,
1775
+ secure: true,
1776
+ format: "json",
1777
+ ...params
1778
+ }),
1780
1779
  getPageInRevisionByPath: (spaceId, revisionId, pagePath, query, params = {}) => this.request({
1781
1780
  path: `/spaces/${spaceId}/revisions/${revisionId}/path/${pagePath}`,
1782
1781
  method: "GET",
@@ -1919,21 +1918,6 @@ var Api = class extends HttpClient {
1919
1918
  format: "json",
1920
1919
  ...params
1921
1920
  }),
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
1921
  getSpacePdf: (spaceId, query, params = {}) => this.request({
1938
1922
  path: `/spaces/${spaceId}/pdf`,
1939
1923
  method: "GET",
@@ -2544,45 +2528,6 @@ var Api = class extends HttpClient {
2544
2528
  format: "json",
2545
2529
  ...params
2546
2530
  }),
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
2531
  listOrganizationIntegrations: (organizationId, query, params = {}) => this.request({
2587
2532
  path: `/orgs/${organizationId}/integrations`,
2588
2533
  method: "GET",
@@ -2998,6 +2943,13 @@ var Api = class extends HttpClient {
2998
2943
  format: "json",
2999
2944
  ...params
3000
2945
  }),
2946
+ listSiteAdaptiveTemplateConditions: (organizationId, siteId, params = {}) => this.request({
2947
+ path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema/template-conditions`,
2948
+ method: "GET",
2949
+ secure: true,
2950
+ format: "json",
2951
+ ...params
2952
+ }),
3001
2953
  getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
3002
2954
  path: `/orgs/${organizationId}/sites/${siteId}/published`,
3003
2955
  method: "GET",
@@ -3595,7 +3547,6 @@ export {
3595
3547
  ContentReferenceStatus,
3596
3548
  ContentType,
3597
3549
  ContentVisibility,
3598
- CustomFieldType,
3599
3550
  CustomHostnameDnsStatus,
3600
3551
  CustomHostnameErrorStatus,
3601
3552
  CustomHostnameSslStatus,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.118.0",
7
+ "version": "0.120.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",