@usehercules/sdk 1.14.0 → 1.14.2
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/CHANGELOG.md +39 -0
- package/README.md +9 -0
- package/client.d.mts +13 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -4
- package/client.d.ts.map +1 -1
- package/client.js +21 -5
- package/client.js.map +1 -1
- package/client.mjs +21 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/content/{models/models.d.mts → collections/collections.d.mts} +88 -87
- package/resources/content/collections/collections.d.mts.map +1 -0
- package/resources/content/{models/models.d.ts → collections/collections.d.ts} +88 -87
- package/resources/content/collections/collections.d.ts.map +1 -0
- package/resources/content/collections/collections.js +58 -0
- package/resources/content/collections/collections.js.map +1 -0
- package/resources/content/collections/collections.mjs +53 -0
- package/resources/content/collections/collections.mjs.map +1 -0
- package/resources/content/{models → collections}/fields.d.mts +23 -22
- package/resources/content/collections/fields.d.mts.map +1 -0
- package/resources/content/{models → collections}/fields.d.ts +23 -22
- package/resources/content/collections/fields.d.ts.map +1 -0
- package/resources/content/collections/fields.js +41 -0
- package/resources/content/collections/fields.js.map +1 -0
- package/resources/content/collections/fields.mjs +37 -0
- package/resources/content/collections/fields.mjs.map +1 -0
- package/resources/content/collections/index.d.mts +3 -0
- package/resources/content/collections/index.d.mts.map +1 -0
- package/resources/content/collections/index.d.ts +3 -0
- package/resources/content/collections/index.d.ts.map +1 -0
- package/resources/content/{models → collections}/index.js +3 -3
- package/resources/content/collections/index.js.map +1 -0
- package/resources/content/{models → collections}/index.mjs +1 -1
- package/resources/content/collections/index.mjs.map +1 -0
- package/resources/content/collections.d.mts +2 -0
- package/resources/content/collections.d.mts.map +1 -0
- package/resources/content/collections.d.ts +2 -0
- package/resources/content/collections.d.ts.map +1 -0
- package/resources/content/{models.js → collections.js} +2 -2
- package/resources/content/collections.js.map +1 -0
- package/resources/content/{models.mjs → collections.mjs} +2 -2
- package/resources/content/collections.mjs.map +1 -0
- package/resources/content/content.d.mts +4 -4
- package/resources/content/content.d.mts.map +1 -1
- package/resources/content/content.d.ts +4 -4
- package/resources/content/content.d.ts.map +1 -1
- package/resources/content/content.js +4 -4
- package/resources/content/content.js.map +1 -1
- package/resources/content/content.mjs +4 -4
- package/resources/content/content.mjs.map +1 -1
- package/resources/content/entries.d.mts +18 -18
- package/resources/content/entries.d.mts.map +1 -1
- package/resources/content/entries.d.ts +18 -18
- package/resources/content/entries.d.ts.map +1 -1
- package/resources/content/entries.js +2 -2
- package/resources/content/entries.mjs +2 -2
- package/resources/content/index.d.mts +1 -1
- package/resources/content/index.d.mts.map +1 -1
- package/resources/content/index.d.ts +1 -1
- package/resources/content/index.d.ts.map +1 -1
- package/resources/content/index.js +3 -3
- package/resources/content/index.js.map +1 -1
- package/resources/content/index.mjs +1 -1
- package/resources/content/index.mjs.map +1 -1
- package/resources/domains.d.mts +54 -0
- package/resources/domains.d.mts.map +1 -0
- package/resources/domains.d.ts +54 -0
- package/resources/domains.d.ts.map +1 -0
- package/resources/domains.js +21 -0
- package/resources/domains.js.map +1 -0
- package/resources/domains.mjs +17 -0
- package/resources/domains.mjs.map +1 -0
- package/resources/files.d.mts +8 -6
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -6
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -2
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +34 -7
- package/src/internal/parse.ts +6 -0
- package/src/resources/content/{models/models.ts → collections/collections.ts} +112 -108
- package/src/resources/content/{models → collections}/fields.ts +39 -27
- package/src/resources/content/{models → collections}/index.ts +8 -8
- package/src/resources/content/{models.ts → collections.ts} +1 -1
- package/src/resources/content/content.ts +16 -16
- package/src/resources/content/entries.ts +20 -20
- package/src/resources/content/index.ts +9 -9
- package/src/resources/domains.ts +74 -0
- package/src/resources/files.ts +8 -6
- package/src/resources/index.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/content/models/fields.d.mts.map +0 -1
- package/resources/content/models/fields.d.ts.map +0 -1
- package/resources/content/models/fields.js +0 -37
- package/resources/content/models/fields.js.map +0 -1
- package/resources/content/models/fields.mjs +0 -33
- package/resources/content/models/fields.mjs.map +0 -1
- package/resources/content/models/index.d.mts +0 -3
- package/resources/content/models/index.d.mts.map +0 -1
- package/resources/content/models/index.d.ts +0 -3
- package/resources/content/models/index.d.ts.map +0 -1
- package/resources/content/models/index.js.map +0 -1
- package/resources/content/models/index.mjs.map +0 -1
- package/resources/content/models/models.d.mts.map +0 -1
- package/resources/content/models/models.d.ts.map +0 -1
- package/resources/content/models/models.js +0 -54
- package/resources/content/models/models.js.map +0 -1
- package/resources/content/models/models.mjs +0 -49
- package/resources/content/models/models.mjs.map +0 -1
- package/resources/content/models.d.mts +0 -2
- package/resources/content/models.d.mts.map +0 -1
- package/resources/content/models.d.ts +0 -2
- package/resources/content/models.d.ts.map +0 -1
- package/resources/content/models.js.map +0 -1
- package/resources/content/models.mjs.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as FieldsAPI from "./fields.mjs";
|
|
4
|
+
import { Fields } from "./fields.mjs";
|
|
5
|
+
import { CursorIDPage } from "../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
+
export class Collections extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.fields = new FieldsAPI.Fields(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new content collection with optional initial fields. Content
|
|
14
|
+
* collections define the schema for entries. Example collections: 'Blog Post',
|
|
15
|
+
* 'Product', 'Author'.
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/v1/content/collections', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Updates an existing content collection. Use this to modify the name,
|
|
22
|
+
* description, or lock status. The api_id cannot be changed after creation.
|
|
23
|
+
*/
|
|
24
|
+
update(collectionID, body = {}, options) {
|
|
25
|
+
return this._client.patch(path `/v1/content/collections/${collectionID}`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a paginated list of content collections. Content collections define
|
|
29
|
+
* the schema/structure for content entries.
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.getAPIList('/v1/content/collections', (CursorIDPage), {
|
|
33
|
+
query,
|
|
34
|
+
...options,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Archives a content collection, hiding it from the API. Existing entries are
|
|
39
|
+
* preserved. Use this instead of deletion to maintain data integrity.
|
|
40
|
+
*/
|
|
41
|
+
archive(collectionID, options) {
|
|
42
|
+
return this._client.delete(path `/v1/content/collections/${collectionID}`, options);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves a content collection by ID. Returns the collection object including
|
|
46
|
+
* all field definitions.
|
|
47
|
+
*/
|
|
48
|
+
get(collectionID, options) {
|
|
49
|
+
return this._client.get(path `/v1/content/collections/${collectionID}`, options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
Collections.Fields = Fields;
|
|
53
|
+
//# sourceMappingURL=collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.mjs","sourceRoot":"","sources":["../../../src/resources/content/collections/collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAA2D,MAAM,EAAE;OAEnE,EAAE,YAAY,EAAwC;OAEtD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoDhE,CAAC;IAlDC;;;;OAIG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,YAAoB,EACpB,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,YAAwB,CAAA,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,YAAoB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,YAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAsWD,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as CollectionsAPI from "./collections.mjs";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class Fields extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Adds a new field to a content
|
|
8
|
-
*
|
|
7
|
+
* Adds a new field to a content collection. Fields define the structure of
|
|
8
|
+
* entries. The collection must not be locked. Adding a field increments the
|
|
9
|
+
* collection version.
|
|
9
10
|
*/
|
|
10
|
-
create(
|
|
11
|
+
create(collectionID: string, body: FieldCreateParams, options?: RequestOptions): APIPromise<CollectionsAPI.Field>;
|
|
11
12
|
/**
|
|
12
|
-
* Updates an existing field in a content
|
|
13
|
-
* after creation. The
|
|
13
|
+
* Updates an existing field in a content collection. The field type cannot be
|
|
14
|
+
* changed after creation. The collection must not be locked.
|
|
14
15
|
*/
|
|
15
|
-
update(fieldID: string, params: FieldUpdateParams, options?: RequestOptions): APIPromise<
|
|
16
|
+
update(fieldID: string, params: FieldUpdateParams, options?: RequestOptions): APIPromise<CollectionsAPI.Field>;
|
|
16
17
|
/**
|
|
17
|
-
* Removes a field from a content
|
|
18
|
-
* preserved but will no longer be validated. The
|
|
18
|
+
* Removes a field from a content collection. Existing entry data for this field is
|
|
19
|
+
* preserved but will no longer be validated. The collection must not be locked.
|
|
19
20
|
*/
|
|
20
21
|
delete(fieldID: string, params: FieldDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
21
22
|
}
|
|
@@ -42,7 +43,7 @@ export interface FieldCreateParams {
|
|
|
42
43
|
*/
|
|
43
44
|
description?: string;
|
|
44
45
|
/**
|
|
45
|
-
* Display order within the
|
|
46
|
+
* Display order within the collection
|
|
46
47
|
*/
|
|
47
48
|
display_order?: number;
|
|
48
49
|
/**
|
|
@@ -60,13 +61,13 @@ export declare namespace FieldCreateParams {
|
|
|
60
61
|
*/
|
|
61
62
|
interface Validation {
|
|
62
63
|
/**
|
|
63
|
-
* Allowed
|
|
64
|
+
* Allowed collection apiIds for reference fields
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
allowed_collections?: Array<string>;
|
|
66
67
|
/**
|
|
67
|
-
* Allowed
|
|
68
|
+
* Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
|
|
68
69
|
*/
|
|
69
|
-
|
|
70
|
+
allowed_mime_types?: Array<string>;
|
|
70
71
|
/**
|
|
71
72
|
* Allowed values for enum fields
|
|
72
73
|
*/
|
|
@@ -103,9 +104,9 @@ export declare namespace FieldCreateParams {
|
|
|
103
104
|
}
|
|
104
105
|
export interface FieldUpdateParams {
|
|
105
106
|
/**
|
|
106
|
-
* Path param: The unique identifier of the content
|
|
107
|
+
* Path param: The unique identifier of the content collection
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
|
+
collection_id: string;
|
|
109
110
|
/**
|
|
110
111
|
* Body param: Description of the field
|
|
111
112
|
*/
|
|
@@ -133,13 +134,13 @@ export declare namespace FieldUpdateParams {
|
|
|
133
134
|
*/
|
|
134
135
|
interface Validation {
|
|
135
136
|
/**
|
|
136
|
-
* Allowed
|
|
137
|
+
* Allowed collection apiIds for reference fields
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
+
allowed_collections?: Array<string>;
|
|
139
140
|
/**
|
|
140
|
-
* Allowed
|
|
141
|
+
* Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
|
|
141
142
|
*/
|
|
142
|
-
|
|
143
|
+
allowed_mime_types?: Array<string>;
|
|
143
144
|
/**
|
|
144
145
|
* Allowed values for enum fields
|
|
145
146
|
*/
|
|
@@ -176,9 +177,9 @@ export declare namespace FieldUpdateParams {
|
|
|
176
177
|
}
|
|
177
178
|
export interface FieldDeleteParams {
|
|
178
179
|
/**
|
|
179
|
-
* The unique identifier of the content
|
|
180
|
+
* The unique identifier of the content collection
|
|
180
181
|
*/
|
|
181
|
-
|
|
182
|
+
collection_id: string;
|
|
182
183
|
}
|
|
183
184
|
export declare namespace Fields {
|
|
184
185
|
export { type FieldCreateParams as FieldCreateParams, type FieldUpdateParams as FieldUpdateParams, type FieldDeleteParams as FieldDeleteParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.mts","sourceRoot":"","sources":["../../../src/resources/content/collections/fields.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC;IAInC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC;IAQnC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EACA,MAAM,GACN,UAAU,GACV,QAAQ,GACR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
|
2
|
-
import * as
|
|
2
|
+
import * as CollectionsAPI from "./collections.js";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Fields extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Adds a new field to a content
|
|
8
|
-
*
|
|
7
|
+
* Adds a new field to a content collection. Fields define the structure of
|
|
8
|
+
* entries. The collection must not be locked. Adding a field increments the
|
|
9
|
+
* collection version.
|
|
9
10
|
*/
|
|
10
|
-
create(
|
|
11
|
+
create(collectionID: string, body: FieldCreateParams, options?: RequestOptions): APIPromise<CollectionsAPI.Field>;
|
|
11
12
|
/**
|
|
12
|
-
* Updates an existing field in a content
|
|
13
|
-
* after creation. The
|
|
13
|
+
* Updates an existing field in a content collection. The field type cannot be
|
|
14
|
+
* changed after creation. The collection must not be locked.
|
|
14
15
|
*/
|
|
15
|
-
update(fieldID: string, params: FieldUpdateParams, options?: RequestOptions): APIPromise<
|
|
16
|
+
update(fieldID: string, params: FieldUpdateParams, options?: RequestOptions): APIPromise<CollectionsAPI.Field>;
|
|
16
17
|
/**
|
|
17
|
-
* Removes a field from a content
|
|
18
|
-
* preserved but will no longer be validated. The
|
|
18
|
+
* Removes a field from a content collection. Existing entry data for this field is
|
|
19
|
+
* preserved but will no longer be validated. The collection must not be locked.
|
|
19
20
|
*/
|
|
20
21
|
delete(fieldID: string, params: FieldDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
21
22
|
}
|
|
@@ -42,7 +43,7 @@ export interface FieldCreateParams {
|
|
|
42
43
|
*/
|
|
43
44
|
description?: string;
|
|
44
45
|
/**
|
|
45
|
-
* Display order within the
|
|
46
|
+
* Display order within the collection
|
|
46
47
|
*/
|
|
47
48
|
display_order?: number;
|
|
48
49
|
/**
|
|
@@ -60,13 +61,13 @@ export declare namespace FieldCreateParams {
|
|
|
60
61
|
*/
|
|
61
62
|
interface Validation {
|
|
62
63
|
/**
|
|
63
|
-
* Allowed
|
|
64
|
+
* Allowed collection apiIds for reference fields
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
allowed_collections?: Array<string>;
|
|
66
67
|
/**
|
|
67
|
-
* Allowed
|
|
68
|
+
* Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
|
|
68
69
|
*/
|
|
69
|
-
|
|
70
|
+
allowed_mime_types?: Array<string>;
|
|
70
71
|
/**
|
|
71
72
|
* Allowed values for enum fields
|
|
72
73
|
*/
|
|
@@ -103,9 +104,9 @@ export declare namespace FieldCreateParams {
|
|
|
103
104
|
}
|
|
104
105
|
export interface FieldUpdateParams {
|
|
105
106
|
/**
|
|
106
|
-
* Path param: The unique identifier of the content
|
|
107
|
+
* Path param: The unique identifier of the content collection
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
|
+
collection_id: string;
|
|
109
110
|
/**
|
|
110
111
|
* Body param: Description of the field
|
|
111
112
|
*/
|
|
@@ -133,13 +134,13 @@ export declare namespace FieldUpdateParams {
|
|
|
133
134
|
*/
|
|
134
135
|
interface Validation {
|
|
135
136
|
/**
|
|
136
|
-
* Allowed
|
|
137
|
+
* Allowed collection apiIds for reference fields
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
+
allowed_collections?: Array<string>;
|
|
139
140
|
/**
|
|
140
|
-
* Allowed
|
|
141
|
+
* Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
|
|
141
142
|
*/
|
|
142
|
-
|
|
143
|
+
allowed_mime_types?: Array<string>;
|
|
143
144
|
/**
|
|
144
145
|
* Allowed values for enum fields
|
|
145
146
|
*/
|
|
@@ -176,9 +177,9 @@ export declare namespace FieldUpdateParams {
|
|
|
176
177
|
}
|
|
177
178
|
export interface FieldDeleteParams {
|
|
178
179
|
/**
|
|
179
|
-
* The unique identifier of the content
|
|
180
|
+
* The unique identifier of the content collection
|
|
180
181
|
*/
|
|
181
|
-
|
|
182
|
+
collection_id: string;
|
|
182
183
|
}
|
|
183
184
|
export declare namespace Fields {
|
|
184
185
|
export { type FieldCreateParams as FieldCreateParams, type FieldUpdateParams as FieldUpdateParams, type FieldDeleteParams as FieldDeleteParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/resources/content/collections/fields.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC;IAInC;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC;IAQnC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EACA,MAAM,GACN,UAAU,GACV,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,MAAM,GACN,OAAO,CAAC;IAEZ;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CA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,KAAK,CAAC,MAAM,CAAC,CAAC;QAEpC;;WAEG;QACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEnC;;WAEG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B;;WAEG;QACH,eAAe,CAAC,EACZ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,MAAM,GACN,OAAO,CAAC;QAEZ;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Fields = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
class Fields extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Adds a new field to a content collection. Fields define the structure of
|
|
11
|
+
* entries. The collection must not be locked. Adding a field increments the
|
|
12
|
+
* collection version.
|
|
13
|
+
*/
|
|
14
|
+
create(collectionID, body, options) {
|
|
15
|
+
return this._client.post((0, path_1.path) `/v1/content/collections/${collectionID}/fields`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Updates an existing field in a content collection. The field type cannot be
|
|
19
|
+
* changed after creation. The collection must not be locked.
|
|
20
|
+
*/
|
|
21
|
+
update(fieldID, params, options) {
|
|
22
|
+
const { collection_id, ...body } = params;
|
|
23
|
+
return this._client.patch((0, path_1.path) `/v1/content/collections/${collection_id}/fields/${fieldID}`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Removes a field from a content collection. Existing entry data for this field is
|
|
30
|
+
* preserved but will no longer be validated. The collection must not be locked.
|
|
31
|
+
*/
|
|
32
|
+
delete(fieldID, params, options) {
|
|
33
|
+
const { collection_id } = params;
|
|
34
|
+
return this._client.delete((0, path_1.path) `/v1/content/collections/${collection_id}/fields/${fieldID}`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Fields = Fields;
|
|
41
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/resources/content/collections/fields.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,aAAa,WAAW,OAAO,EAAE,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,aAAa,WAAW,OAAO,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,wBAyCC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
export class Fields extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Adds a new field to a content collection. Fields define the structure of
|
|
8
|
+
* entries. The collection must not be locked. Adding a field increments the
|
|
9
|
+
* collection version.
|
|
10
|
+
*/
|
|
11
|
+
create(collectionID, body, options) {
|
|
12
|
+
return this._client.post(path `/v1/content/collections/${collectionID}/fields`, { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Updates an existing field in a content collection. The field type cannot be
|
|
16
|
+
* changed after creation. The collection must not be locked.
|
|
17
|
+
*/
|
|
18
|
+
update(fieldID, params, options) {
|
|
19
|
+
const { collection_id, ...body } = params;
|
|
20
|
+
return this._client.patch(path `/v1/content/collections/${collection_id}/fields/${fieldID}`, {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Removes a field from a content collection. Existing entry data for this field is
|
|
27
|
+
* preserved but will no longer be validated. The collection must not be locked.
|
|
28
|
+
*/
|
|
29
|
+
delete(fieldID, params, options) {
|
|
30
|
+
const { collection_id } = params;
|
|
31
|
+
return this._client.delete(path `/v1/content/collections/${collection_id}/fields/${fieldID}`, {
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=fields.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.mjs","sourceRoot":"","sources":["../../../src/resources/content/collections/fields.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,aAAa,WAAW,OAAO,EAAE,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,aAAa,WAAW,OAAO,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Collections, type Collection, type Field, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionsCursorIDPage, } from "./collections.mjs";
|
|
2
|
+
export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from "./fields.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/content/collections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Collections, type Collection, type Field, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionsCursorIDPage, } from "./collections.js";
|
|
2
|
+
export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from "./fields.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/content/collections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Fields = exports.Collections = void 0;
|
|
5
|
+
var collections_1 = require("./collections.js");
|
|
6
|
+
Object.defineProperty(exports, "Collections", { enumerable: true, get: function () { return collections_1.Collections; } });
|
|
5
7
|
var fields_1 = require("./fields.js");
|
|
6
8
|
Object.defineProperty(exports, "Fields", { enumerable: true, get: function () { return fields_1.Fields; } });
|
|
7
|
-
var models_1 = require("./models.js");
|
|
8
|
-
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/content/collections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,sCAA0G;AAAjG,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/content/collections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAOZ;OACM,EAAE,MAAM,EAA0E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.d.mts","sourceRoot":"","sources":["../../src/resources/content/collections.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/resources/content/collections.ts"],"names":[],"mappings":""}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
6
|
-
//# sourceMappingURL=
|
|
5
|
+
tslib_1.__exportStar(require("./collections/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/resources/content/collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export * from "./
|
|
3
|
-
//# sourceMappingURL=
|
|
2
|
+
export * from "./collections/index.mjs";
|
|
3
|
+
//# sourceMappingURL=collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.mjs","sourceRoot":"","sources":["../../src/resources/content/collections.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -5,22 +5,22 @@ import * as EntriesAPI from "./entries.mjs";
|
|
|
5
5
|
import { Entries, EntriesCursorIDPage, Entry, EntryCreateParams, EntryListParams, EntryPublishParams, EntryUpdateParams } from "./entries.mjs";
|
|
6
6
|
import * as LocalesAPI from "./locales.mjs";
|
|
7
7
|
import { Locale, LocaleCreateParams, LocaleListParams, LocaleUpdateParams, Locales, LocalesCursorIDPage } from "./locales.mjs";
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
8
|
+
import * as CollectionsAPI from "./collections/collections.mjs";
|
|
9
|
+
import { Collection, CollectionCreateParams, CollectionListParams, CollectionUpdateParams, Collections, CollectionsCursorIDPage, Field } from "./collections/collections.mjs";
|
|
10
10
|
import * as ReleasesAPI from "./releases/releases.mjs";
|
|
11
11
|
import { Release, ReleaseCreateParams, ReleaseItem, ReleaseListParams, ReleaseScheduleParams, ReleaseUpdateParams, Releases, ReleasesCursorIDPage } from "./releases/releases.mjs";
|
|
12
12
|
/**
|
|
13
13
|
* Content APIs are currently in beta.
|
|
14
14
|
*/
|
|
15
15
|
export declare class Content extends APIResource {
|
|
16
|
-
|
|
16
|
+
collections: CollectionsAPI.Collections;
|
|
17
17
|
entries: EntriesAPI.Entries;
|
|
18
18
|
assets: AssetsAPI.Assets;
|
|
19
19
|
locales: LocalesAPI.Locales;
|
|
20
20
|
releases: ReleasesAPI.Releases;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Content {
|
|
23
|
-
export {
|
|
23
|
+
export { Collections as Collections, type Collection as Collection, type Field as Field, type CollectionsCursorIDPage as CollectionsCursorIDPage, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, };
|
|
24
24
|
export { Entries as Entries, type Entry as Entry, type EntriesCursorIDPage as EntriesCursorIDPage, type EntryCreateParams as EntryCreateParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryPublishParams as EntryPublishParams, };
|
|
25
25
|
export { Assets as Assets, type Asset as Asset, type AssetsCursorIDPage as AssetsCursorIDPage, type AssetCreateParams as AssetCreateParams, type AssetUpdateParams as AssetUpdateParams, type AssetListParams as AssetListParams, };
|
|
26
26
|
export { Locales as Locales, type Locale as Locale, type LocalesCursorIDPage as LocalesCursorIDPage, type LocaleCreateParams as LocaleCreateParams, type LocaleUpdateParams as LocaleUpdateParams, type LocaleListParams as LocaleListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB;OACM,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,
|
|
1
|
+
{"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB;OACM,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,cAAc;OACnB,EACL,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,EACX,uBAAuB,EACvB,KAAK,EACN;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;AAED;;GAEG;A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CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -5,22 +5,22 @@ import * as EntriesAPI from "./entries.js";
|
|
|
5
5
|
import { Entries, EntriesCursorIDPage, Entry, EntryCreateParams, EntryListParams, EntryPublishParams, EntryUpdateParams } from "./entries.js";
|
|
6
6
|
import * as LocalesAPI from "./locales.js";
|
|
7
7
|
import { Locale, LocaleCreateParams, LocaleListParams, LocaleUpdateParams, Locales, LocalesCursorIDPage } from "./locales.js";
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
8
|
+
import * as CollectionsAPI from "./collections/collections.js";
|
|
9
|
+
import { Collection, CollectionCreateParams, CollectionListParams, CollectionUpdateParams, Collections, CollectionsCursorIDPage, Field } from "./collections/collections.js";
|
|
10
10
|
import * as ReleasesAPI from "./releases/releases.js";
|
|
11
11
|
import { Release, ReleaseCreateParams, ReleaseItem, ReleaseListParams, ReleaseScheduleParams, ReleaseUpdateParams, Releases, ReleasesCursorIDPage } from "./releases/releases.js";
|
|
12
12
|
/**
|
|
13
13
|
* Content APIs are currently in beta.
|
|
14
14
|
*/
|
|
15
15
|
export declare class Content extends APIResource {
|
|
16
|
-
|
|
16
|
+
collections: CollectionsAPI.Collections;
|
|
17
17
|
entries: EntriesAPI.Entries;
|
|
18
18
|
assets: AssetsAPI.Assets;
|
|
19
19
|
locales: LocalesAPI.Locales;
|
|
20
20
|
releases: ReleasesAPI.Releases;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Content {
|
|
23
|
-
export {
|
|
23
|
+
export { Collections as Collections, type Collection as Collection, type Field as Field, type CollectionsCursorIDPage as CollectionsCursorIDPage, type CollectionCreateParams as CollectionCreateParams, type CollectionUpdateParams as CollectionUpdateParams, type CollectionListParams as CollectionListParams, };
|
|
24
24
|
export { Entries as Entries, type Entry as Entry, type EntriesCursorIDPage as EntriesCursorIDPage, type EntryCreateParams as EntryCreateParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryPublishParams as EntryPublishParams, };
|
|
25
25
|
export { Assets as Assets, type Asset as Asset, type AssetsCursorIDPage as AssetsCursorIDPage, type AssetCreateParams as AssetCreateParams, type AssetUpdateParams as AssetUpdateParams, type AssetListParams as AssetListParams, };
|
|
26
26
|
export { Locales as Locales, type Locale as Locale, type LocalesCursorIDPage as LocalesCursorIDPage, type LocaleCreateParams as LocaleCreateParams, type LocaleUpdateParams as LocaleUpdateParams, type LocaleListParams as LocaleListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB;OACM,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EACnB;OACM,KAAK,UAAU;O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K,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -10,8 +10,8 @@ const EntriesAPI = tslib_1.__importStar(require("./entries.js"));
|
|
|
10
10
|
const entries_1 = require("./entries.js");
|
|
11
11
|
const LocalesAPI = tslib_1.__importStar(require("./locales.js"));
|
|
12
12
|
const locales_1 = require("./locales.js");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const CollectionsAPI = tslib_1.__importStar(require("./collections/collections.js"));
|
|
14
|
+
const collections_1 = require("./collections/collections.js");
|
|
15
15
|
const ReleasesAPI = tslib_1.__importStar(require("./releases/releases.js"));
|
|
16
16
|
const releases_1 = require("./releases/releases.js");
|
|
17
17
|
/**
|
|
@@ -20,7 +20,7 @@ const releases_1 = require("./releases/releases.js");
|
|
|
20
20
|
class Content extends resource_1.APIResource {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
|
-
this.
|
|
23
|
+
this.collections = new CollectionsAPI.Collections(this._client);
|
|
24
24
|
this.entries = new EntriesAPI.Entries(this._client);
|
|
25
25
|
this.assets = new AssetsAPI.Assets(this._client);
|
|
26
26
|
this.locales = new LocalesAPI.Locales(this._client);
|
|
@@ -28,7 +28,7 @@ class Content extends resource_1.APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.Content = Content;
|
|
31
|
-
Content.
|
|
31
|
+
Content.Collections = collections_1.Collections;
|
|
32
32
|
Content.Entries = entries_1.Entries;
|
|
33
33
|
Content.Assets = assets_1.Assets;
|
|
34
34
|
Content.Locales = locales_1.Locales;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAOkB;AAClB,iEAAwC;AACxC,0CAQmB;AACnB,iEAAwC;AACxC,0CAOmB;AACnB,
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/resources/content/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAOkB;AAClB,iEAAwC;AACxC,0CAQmB;AACnB,iEAAwC;AACxC,0CAOmB;AACnB,qFAA4D;AAC5D,8DAQmC;AACnC,4EAAmD;AACnD,qDAS6B;AAE7B;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAND,0BAMC;AAED,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -6,8 +6,8 @@ import * as EntriesAPI from "./entries.mjs";
|
|
|
6
6
|
import { Entries, } from "./entries.mjs";
|
|
7
7
|
import * as LocalesAPI from "./locales.mjs";
|
|
8
8
|
import { Locales, } from "./locales.mjs";
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
9
|
+
import * as CollectionsAPI from "./collections/collections.mjs";
|
|
10
|
+
import { Collections, } from "./collections/collections.mjs";
|
|
11
11
|
import * as ReleasesAPI from "./releases/releases.mjs";
|
|
12
12
|
import { Releases, } from "./releases/releases.mjs";
|
|
13
13
|
/**
|
|
@@ -16,14 +16,14 @@ import { Releases, } from "./releases/releases.mjs";
|
|
|
16
16
|
export class Content extends APIResource {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.
|
|
19
|
+
this.collections = new CollectionsAPI.Collections(this._client);
|
|
20
20
|
this.entries = new EntriesAPI.Entries(this._client);
|
|
21
21
|
this.assets = new AssetsAPI.Assets(this._client);
|
|
22
22
|
this.locales = new LocalesAPI.Locales(this._client);
|
|
23
23
|
this.releases = new ReleasesAPI.Releases(this._client);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
Content.
|
|
26
|
+
Content.Collections = Collections;
|
|
27
27
|
Content.Entries = Entries;
|
|
28
28
|
Content.Assets = Assets;
|
|
29
29
|
Content.Locales = Locales;
|