@remkoj/optimizely-cms-api 5.1.7 → 5.3.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 (142) hide show
  1. package/README.md +6 -2
  2. package/dist/api-client.js +11 -7
  3. package/dist/client/CmsIntegrationApiClient.d.ts +2 -2
  4. package/dist/client/CmsIntegrationApiClient.js +4 -4
  5. package/dist/client/core/OpenAPI.js +2 -2
  6. package/dist/client/index.d.ts +14 -45
  7. package/dist/client/index.js +13 -19
  8. package/dist/client/models/ArrayItem.d.ts +70 -0
  9. package/dist/client/models/ArrayItem.js +25 -0
  10. package/dist/client/models/Blueprint.d.ts +24 -0
  11. package/dist/client/models/BlueprintData.d.ts +11 -0
  12. package/dist/client/models/BlueprintPage.d.ts +19 -0
  13. package/dist/client/models/Changeset.d.ts +3 -3
  14. package/dist/client/models/ChangesetItemPage.d.ts +1 -1
  15. package/dist/client/models/ChangesetPage.d.ts +1 -1
  16. package/dist/client/models/CompositionDisplaySettings.d.ts +13 -0
  17. package/dist/client/models/CompositionNode.d.ts +41 -0
  18. package/dist/client/models/ContentComponent.d.ts +8 -8
  19. package/dist/client/models/ContentItem.d.ts +28 -5
  20. package/dist/client/models/ContentItem.js +17 -0
  21. package/dist/client/models/ContentItemPage.d.ts +1 -1
  22. package/dist/client/models/ContentLocaleInfo.d.ts +13 -2
  23. package/dist/client/models/ContentLocaleInfo.js +12 -0
  24. package/dist/client/models/ContentMetadataPage.d.ts +1 -1
  25. package/dist/client/models/ContentType.d.ts +11 -36
  26. package/dist/client/models/ContentTypePage.d.ts +1 -1
  27. package/dist/client/models/ContentTypeProperty.d.ts +84 -8
  28. package/dist/client/models/ContentTypeProperty.js +34 -0
  29. package/dist/client/models/DisplayTemplate.d.ts +6 -5
  30. package/dist/client/models/DisplayTemplatePage.d.ts +1 -1
  31. package/dist/client/models/EnumerationValue.d.ts +13 -0
  32. package/dist/client/models/ImageDescriptor.d.ts +1 -1
  33. package/dist/client/models/Link.d.ts +21 -0
  34. package/dist/client/models/Preview.d.ts +13 -0
  35. package/dist/client/models/PropertyFormat.d.ts +60 -16
  36. package/dist/client/models/PropertyFormat.js +44 -0
  37. package/dist/client/models/PropertyFormatPage.d.ts +1 -1
  38. package/dist/client/models/PropertyGroup.d.ts +14 -1
  39. package/dist/client/models/PropertyGroupPage.d.ts +1 -1
  40. package/dist/client/services/BlueprintsService.d.ts +56 -0
  41. package/dist/client/services/BlueprintsService.js +135 -0
  42. package/dist/client/services/ChangesetsService.d.ts +32 -30
  43. package/dist/client/services/ChangesetsService.js +73 -60
  44. package/dist/client/services/ContentService.d.ts +46 -35
  45. package/dist/client/services/ContentService.js +100 -55
  46. package/dist/client/services/ContentTypesService.d.ts +17 -23
  47. package/dist/client/services/ContentTypesService.js +34 -41
  48. package/dist/client/services/DisplayTemplatesService.d.ts +14 -18
  49. package/dist/client/services/DisplayTemplatesService.js +31 -31
  50. package/dist/client/services/PropertyFormatsService.d.ts +3 -1
  51. package/dist/client/services/PropertyFormatsService.js +9 -1
  52. package/dist/client/services/PropertyGroupsService.d.ts +15 -20
  53. package/dist/client/services/PropertyGroupsService.js +32 -33
  54. package/dist/enums.d.ts +35 -0
  55. package/dist/enums.js +40 -0
  56. package/dist/getaccesstoken.js +4 -3
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.js +1 -0
  59. package/dist/version.json +3 -3
  60. package/package.json +6 -6
  61. package/dist/client/models/BinaryProperty.d.ts +0 -8
  62. package/dist/client/models/BooleanProperty.d.ts +0 -5
  63. package/dist/client/models/ComponentListItem.d.ts +0 -10
  64. package/dist/client/models/ComponentProperty.d.ts +0 -10
  65. package/dist/client/models/CompositionBehavior.d.ts +0 -7
  66. package/dist/client/models/CompositionBehavior.js +0 -15
  67. package/dist/client/models/ContentBaseType.d.ts +0 -14
  68. package/dist/client/models/ContentBaseType.js +0 -22
  69. package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
  70. package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
  71. package/dist/client/models/ContentListItem.d.ts +0 -14
  72. package/dist/client/models/ContentProperty.d.ts +0 -14
  73. package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
  74. package/dist/client/models/ContentReferenceListItem.js +0 -2
  75. package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
  76. package/dist/client/models/ContentReferenceProperty.js +0 -2
  77. package/dist/client/models/ContentTypeFeature.d.ts +0 -10
  78. package/dist/client/models/ContentTypeFeature.js +0 -18
  79. package/dist/client/models/ContentTypeUsage.d.ts +0 -7
  80. package/dist/client/models/ContentTypeUsage.js +0 -15
  81. package/dist/client/models/DateTimeListItem.d.ts +0 -14
  82. package/dist/client/models/DateTimeListItem.js +0 -2
  83. package/dist/client/models/DateTimeProperty.d.ts +0 -14
  84. package/dist/client/models/DateTimeProperty.js +0 -2
  85. package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
  86. package/dist/client/models/DoubleEnumerationSettings.js +0 -2
  87. package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
  88. package/dist/client/models/DoubleEnumerationValue.js +0 -2
  89. package/dist/client/models/FloatListItem.d.ts +0 -16
  90. package/dist/client/models/FloatListItem.js +0 -2
  91. package/dist/client/models/FloatProperty.d.ts +0 -16
  92. package/dist/client/models/FloatProperty.js +0 -2
  93. package/dist/client/models/IndexingType.d.ts +0 -8
  94. package/dist/client/models/IndexingType.js +0 -16
  95. package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
  96. package/dist/client/models/Int32EnumerationSettings.js +0 -2
  97. package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
  98. package/dist/client/models/Int32EnumerationValue.js +0 -2
  99. package/dist/client/models/IntegerListItem.d.ts +0 -16
  100. package/dist/client/models/IntegerListItem.js +0 -2
  101. package/dist/client/models/IntegerProperty.d.ts +0 -16
  102. package/dist/client/models/IntegerProperty.js +0 -2
  103. package/dist/client/models/JsonStringProperty.d.ts +0 -5
  104. package/dist/client/models/JsonStringProperty.js +0 -2
  105. package/dist/client/models/ListProperty.d.ts +0 -26
  106. package/dist/client/models/ListProperty.js +0 -2
  107. package/dist/client/models/ListPropertyItem.d.ts +0 -11
  108. package/dist/client/models/ListPropertyItem.js +0 -2
  109. package/dist/client/models/LocaleStatus.d.ts +0 -7
  110. package/dist/client/models/LocaleStatus.js +0 -15
  111. package/dist/client/models/OauthToken.d.ts +0 -18
  112. package/dist/client/models/OauthToken.js +0 -2
  113. package/dist/client/models/OauthTokenError.d.ts +0 -13
  114. package/dist/client/models/OauthTokenError.js +0 -2
  115. package/dist/client/models/OauthTokenRequest.d.ts +0 -21
  116. package/dist/client/models/OauthTokenRequest.js +0 -2
  117. package/dist/client/models/PropertyDataType.d.ts +0 -18
  118. package/dist/client/models/PropertyDataType.js +0 -26
  119. package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
  120. package/dist/client/models/StringEnumerationSettings.js +0 -2
  121. package/dist/client/models/StringEnumerationValue.d.ts +0 -13
  122. package/dist/client/models/StringEnumerationValue.js +0 -2
  123. package/dist/client/models/StringListItem.d.ts +0 -20
  124. package/dist/client/models/StringListItem.js +0 -2
  125. package/dist/client/models/StringProperty.d.ts +0 -20
  126. package/dist/client/models/StringProperty.js +0 -2
  127. package/dist/client/models/UrlListItem.d.ts +0 -5
  128. package/dist/client/models/UrlListItem.js +0 -2
  129. package/dist/client/models/UrlProperty.d.ts +0 -5
  130. package/dist/client/models/UrlProperty.js +0 -2
  131. package/dist/client/models/VersionStatus.d.ts +0 -12
  132. package/dist/client/models/VersionStatus.js +0 -20
  133. package/dist/client/services/OauthService.d.ts +0 -17
  134. package/dist/client/services/OauthService.js +0 -28
  135. /package/dist/client/models/{BinaryProperty.js → Blueprint.js} +0 -0
  136. /package/dist/client/models/{BooleanProperty.js → BlueprintData.js} +0 -0
  137. /package/dist/client/models/{ComponentListItem.js → BlueprintPage.js} +0 -0
  138. /package/dist/client/models/{ComponentProperty.js → CompositionDisplaySettings.js} +0 -0
  139. /package/dist/client/models/{ContentItemListWithContentTypes.js → CompositionNode.js} +0 -0
  140. /package/dist/client/models/{ContentItemWithContentTypes.js → EnumerationValue.js} +0 -0
  141. /package/dist/client/models/{ContentListItem.js → Link.js} +0 -0
  142. /package/dist/client/models/{ContentProperty.js → Preview.js} +0 -0
@@ -1,16 +0,0 @@
1
- import type { DoubleEnumerationSettings } from './DoubleEnumerationSettings';
2
- import type { ListPropertyItem } from './ListPropertyItem';
3
- /**
4
- * Describes a property list item that can contain a float number.
5
- */
6
- export type FloatListItem = (ListPropertyItem & {
7
- /**
8
- * The minimum value that list items of this type should be able to contain.
9
- */
10
- minimum?: number | null;
11
- /**
12
- * The maximum value that list items of this type should be able to contain.
13
- */
14
- maximum?: number | null;
15
- enum?: DoubleEnumerationSettings;
16
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- import type { DoubleEnumerationSettings } from './DoubleEnumerationSettings';
3
- /**
4
- * Describes a property that can contain a float number.
5
- */
6
- export type FloatProperty = (ContentTypeProperty & {
7
- /**
8
- * The minimum value that properties of this type should be able to contain.
9
- */
10
- minimum?: number | null;
11
- /**
12
- * The maximum value that properties of this type should be able to contain.
13
- */
14
- maximum?: number | null;
15
- enum?: DoubleEnumerationSettings;
16
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * Represents the indexing type of a content type property.
3
- */
4
- export declare enum IndexingType {
5
- DISABLED = "disabled",
6
- QUERYABLE = "queryable",
7
- SEARCHABLE = "searchable"
8
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IndexingType = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represents the indexing type of a content type property.
10
- */
11
- var IndexingType;
12
- (function (IndexingType) {
13
- IndexingType["DISABLED"] = "disabled";
14
- IndexingType["QUERYABLE"] = "queryable";
15
- IndexingType["SEARCHABLE"] = "searchable";
16
- })(IndexingType || (exports.IndexingType = IndexingType = {}));
@@ -1,10 +0,0 @@
1
- import type { Int32EnumerationValue } from './Int32EnumerationValue';
2
- /**
3
- * Enumeration settings for a property or format.
4
- */
5
- export type Int32EnumerationSettings = {
6
- /**
7
- * Enumeration values for this property or format.
8
- */
9
- values?: Array<Int32EnumerationValue>;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * Describes an enumeration value.
3
- */
4
- export type Int32EnumerationValue = {
5
- /**
6
- * The display name of the value.
7
- */
8
- displayName?: string;
9
- /**
10
- * The underlying enumeration value.
11
- */
12
- value?: number;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import type { Int32EnumerationSettings } from './Int32EnumerationSettings';
2
- import type { ListPropertyItem } from './ListPropertyItem';
3
- /**
4
- * Describes a property list item that can contain integers.
5
- */
6
- export type IntegerListItem = (ListPropertyItem & {
7
- /**
8
- * The minimum value that list items of this type should be able to contain.
9
- */
10
- minimum?: number | null;
11
- /**
12
- * The maximum value that list items of this type should be able to contain.
13
- */
14
- maximum?: number | null;
15
- enum?: Int32EnumerationSettings;
16
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- import type { Int32EnumerationSettings } from './Int32EnumerationSettings';
3
- /**
4
- * Describes a property that can contain an integer.
5
- */
6
- export type IntegerProperty = (ContentTypeProperty & {
7
- /**
8
- * The minimum value that properties of this type should be able to contain.
9
- */
10
- minimum?: number | null;
11
- /**
12
- * The maximum value that properties of this type should be able to contain.
13
- */
14
- maximum?: number | null;
15
- enum?: Int32EnumerationSettings;
16
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a JSON value in the form of a string.
4
- */
5
- export type JsonStringProperty = (ContentTypeProperty & Record<string, any>);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- import type { ComponentListItem } from './ComponentListItem';
2
- import type { ContentListItem } from './ContentListItem';
3
- import type { ContentReferenceListItem } from './ContentReferenceListItem';
4
- import type { ContentTypeProperty } from './ContentTypeProperty';
5
- import type { DateTimeListItem } from './DateTimeListItem';
6
- import type { FloatListItem } from './FloatListItem';
7
- import type { IntegerListItem } from './IntegerListItem';
8
- import type { StringListItem } from './StringListItem';
9
- import type { UrlListItem } from './UrlListItem';
10
- /**
11
- * A property in the CMS that may hold a list of items.
12
- */
13
- export type ListProperty = (ContentTypeProperty & {
14
- /**
15
- * Specifies the minimum number of items in this array property.
16
- */
17
- minItems?: number | null;
18
- /**
19
- * Specifies the maximum number of items in this array property.
20
- */
21
- maxItems?: number | null;
22
- /**
23
- * Describes the list item of a ListProperty in the CMS.
24
- */
25
- items: (ComponentListItem | ContentListItem | ContentReferenceListItem | DateTimeListItem | FloatListItem | IntegerListItem | StringListItem | UrlListItem);
26
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type { PropertyDataType } from './PropertyDataType';
2
- /**
3
- * Describes the list item of a ListProperty in the CMS.
4
- */
5
- export type ListPropertyItem = {
6
- type: PropertyDataType;
7
- /**
8
- * The key of the PropertyFormat that this property item is an instance of.
9
- */
10
- format?: string | null;
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * Represent the different status values of a content locale.
3
- */
4
- export declare enum LocaleStatus {
5
- DRAFT = "draft",
6
- PUBLISHED = "published"
7
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocaleStatus = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represent the different status values of a content locale.
10
- */
11
- var LocaleStatus;
12
- (function (LocaleStatus) {
13
- LocaleStatus["DRAFT"] = "draft";
14
- LocaleStatus["PUBLISHED"] = "published";
15
- })(LocaleStatus || (exports.LocaleStatus = LocaleStatus = {}));
@@ -1,18 +0,0 @@
1
- /**
2
- * Represents an OAuth JSON Web Token (JWT) and
3
- * its expiry in seconds.
4
- */
5
- export type OauthToken = {
6
- /**
7
- * Gets or sets the access token.
8
- */
9
- access_token?: string | null;
10
- /**
11
- * Gets or sets the expiry time in seconds.
12
- */
13
- expires_in?: number;
14
- /**
15
- * Gets or sets the token type.
16
- */
17
- token_type?: string;
18
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * Represents an OAuth error.
3
- */
4
- export type OauthTokenError = {
5
- /**
6
- * Gets or sets the error.
7
- */
8
- error?: string | null;
9
- /**
10
- * Gets or sets the error description.
11
- */
12
- error_description?: string | null;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- /**
2
- * Represents an OAuth token request.
3
- */
4
- export type OauthTokenRequest = {
5
- /**
6
- * Gets or sets the grant type.
7
- */
8
- grant_type?: string | null;
9
- /**
10
- * Gets or sets the client id.
11
- */
12
- client_id?: string | null;
13
- /**
14
- * Gets or sets the client secret.
15
- */
16
- client_secret?: string | null;
17
- /**
18
- * Get or sets the subject to act as.
19
- */
20
- act_as?: string | null;
21
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- /**
2
- * Represent the basic type that a PropertyFormat
3
- * is using for data storage and data transport.
4
- */
5
- export declare enum PropertyDataType {
6
- STRING = "string",
7
- URL = "url",
8
- BOOLEAN = "boolean",
9
- INTEGER = "integer",
10
- FLOAT = "float",
11
- DATE_TIME = "dateTime",
12
- CONTENT_REFERENCE = "contentReference",
13
- CONTENT = "content",
14
- BINARY = "binary",
15
- JSON = "json",
16
- ARRAY = "array",
17
- COMPONENT = "component"
18
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyDataType = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represent the basic type that a PropertyFormat
10
- * is using for data storage and data transport.
11
- */
12
- var PropertyDataType;
13
- (function (PropertyDataType) {
14
- PropertyDataType["STRING"] = "string";
15
- PropertyDataType["URL"] = "url";
16
- PropertyDataType["BOOLEAN"] = "boolean";
17
- PropertyDataType["INTEGER"] = "integer";
18
- PropertyDataType["FLOAT"] = "float";
19
- PropertyDataType["DATE_TIME"] = "dateTime";
20
- PropertyDataType["CONTENT_REFERENCE"] = "contentReference";
21
- PropertyDataType["CONTENT"] = "content";
22
- PropertyDataType["BINARY"] = "binary";
23
- PropertyDataType["JSON"] = "json";
24
- PropertyDataType["ARRAY"] = "array";
25
- PropertyDataType["COMPONENT"] = "component";
26
- })(PropertyDataType || (exports.PropertyDataType = PropertyDataType = {}));
@@ -1,10 +0,0 @@
1
- import type { StringEnumerationValue } from './StringEnumerationValue';
2
- /**
3
- * Enumeration settings for a property or format.
4
- */
5
- export type StringEnumerationSettings = {
6
- /**
7
- * Enumeration values for this property or format.
8
- */
9
- values?: Array<StringEnumerationValue>;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * Describes an enumeration value.
3
- */
4
- export type StringEnumerationValue = {
5
- /**
6
- * The display name of the value.
7
- */
8
- displayName?: string;
9
- /**
10
- * The underlying enumeration value.
11
- */
12
- value?: string;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- import type { StringEnumerationSettings } from './StringEnumerationSettings';
3
- /**
4
- * Describes a property list item that can contain a string.
5
- */
6
- export type StringListItem = (ListPropertyItem & {
7
- /**
8
- * The minimum string length that list items of this type should be able to contain.
9
- */
10
- minLength?: number | null;
11
- /**
12
- * The maximum string length that list items of this type should be able to contain.
13
- */
14
- maxLength?: number | null;
15
- /**
16
- * Regular expression pattern that limits what strings that list items of this type should be able to contain.
17
- */
18
- pattern?: string | null;
19
- enum?: StringEnumerationSettings;
20
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- import type { StringEnumerationSettings } from './StringEnumerationSettings';
3
- /**
4
- * Describes a property that can contain strings.
5
- */
6
- export type StringProperty = (ContentTypeProperty & {
7
- /**
8
- * The minimum string length that properties of this type should be able to contain.
9
- */
10
- minLength?: number | null;
11
- /**
12
- * The maximum string length that properties of this type should be able to contain.
13
- */
14
- maxLength?: number | null;
15
- /**
16
- * Regular expression pattern that limits what strings that properties of this type should be able to contain.
17
- */
18
- pattern?: string | null;
19
- enum?: StringEnumerationSettings;
20
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can contain a URL.
4
- */
5
- export type UrlListItem = (ListPropertyItem & Record<string, any>);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain URLs.
4
- */
5
- export type UrlProperty = (ContentTypeProperty & Record<string, any>);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * Represent the different status values of a content version.
3
- */
4
- export declare enum VersionStatus {
5
- DRAFT = "draft",
6
- READY = "ready",
7
- PUBLISHED = "published",
8
- PREVIOUS = "previous",
9
- SCHEDULED = "scheduled",
10
- REJECTED = "rejected",
11
- IN_REVIEW = "inReview"
12
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VersionStatus = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represent the different status values of a content version.
10
- */
11
- var VersionStatus;
12
- (function (VersionStatus) {
13
- VersionStatus["DRAFT"] = "draft";
14
- VersionStatus["READY"] = "ready";
15
- VersionStatus["PUBLISHED"] = "published";
16
- VersionStatus["PREVIOUS"] = "previous";
17
- VersionStatus["SCHEDULED"] = "scheduled";
18
- VersionStatus["REJECTED"] = "rejected";
19
- VersionStatus["IN_REVIEW"] = "inReview";
20
- })(VersionStatus || (exports.VersionStatus = VersionStatus = {}));
@@ -1,17 +0,0 @@
1
- import type { OauthToken } from '../models/OauthToken';
2
- import type { OauthTokenRequest } from '../models/OauthTokenRequest';
3
- import type { CancelablePromise } from '../core/CancelablePromise';
4
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
- export declare class OauthService {
6
- readonly httpRequest: BaseHttpRequest;
7
- constructor(httpRequest: BaseHttpRequest);
8
- /**
9
- * Request access token
10
- * Request an access token. This endpoint only supports the 'client_credentials' grant type
11
- * and will only issue short-lived tokens.
12
- * @param requestBody
13
- * @returns OauthToken OK
14
- * @throws ApiError
15
- */
16
- oauthToken(requestBody: OauthTokenRequest): CancelablePromise<OauthToken>;
17
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OauthService = void 0;
4
- class OauthService {
5
- constructor(httpRequest) {
6
- this.httpRequest = httpRequest;
7
- }
8
- /**
9
- * Request access token
10
- * Request an access token. This endpoint only supports the 'client_credentials' grant type
11
- * and will only issue short-lived tokens.
12
- * @param requestBody
13
- * @returns OauthToken OK
14
- * @throws ApiError
15
- */
16
- oauthToken(requestBody) {
17
- return this.httpRequest.request({
18
- method: 'POST',
19
- url: '/oauth/token',
20
- body: requestBody,
21
- mediaType: 'application/json',
22
- errors: {
23
- 400: `Bad Request`,
24
- },
25
- });
26
- }
27
- }
28
- exports.OauthService = OauthService;