@storyblok/management-api-client 0.1.1 → 0.1.3
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/client.d.mts +1 -1
- package/dist/client/client.d.ts +1 -1
- package/dist/client/client.js +2 -2
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/types.d.mts +7 -0
- package/dist/client/types.d.ts +7 -0
- package/dist/generated/assets/types.gen.d.mts +14 -2
- package/dist/generated/assets/types.gen.d.ts +14 -2
- package/dist/generated/assets/types.gen.js.map +1 -1
- package/dist/generated/assets/types.gen.mjs.map +1 -1
- package/dist/generated/component_folders/types.gen.d.mts +8 -28
- package/dist/generated/component_folders/types.gen.d.ts +8 -28
- package/dist/generated/component_folders/types.gen.js.map +1 -1
- package/dist/generated/component_folders/types.gen.mjs.map +1 -1
- package/dist/generated/components/types.gen.d.mts +19 -7
- package/dist/generated/components/types.gen.d.ts +19 -7
- package/dist/generated/components/types.gen.js.map +1 -1
- package/dist/generated/components/types.gen.mjs.map +1 -1
- package/dist/generated/datasource_entries/types.gen.d.mts +26 -42
- package/dist/generated/datasource_entries/types.gen.d.ts +26 -42
- package/dist/generated/datasource_entries/types.gen.js.map +1 -1
- package/dist/generated/datasource_entries/types.gen.mjs.map +1 -1
- package/dist/generated/datasources/types.gen.d.mts +13 -59
- package/dist/generated/datasources/types.gen.d.ts +13 -59
- package/dist/generated/datasources/types.gen.js.map +1 -1
- package/dist/generated/datasources/types.gen.mjs.map +1 -1
- package/dist/generated/internal_tags/types.gen.d.mts +14 -2
- package/dist/generated/internal_tags/types.gen.d.ts +14 -2
- package/dist/generated/internal_tags/types.gen.js.map +1 -1
- package/dist/generated/internal_tags/types.gen.mjs.map +1 -1
- package/dist/generated/presets/types.gen.d.mts +10 -80
- package/dist/generated/presets/types.gen.d.ts +10 -80
- package/dist/generated/presets/types.gen.js.map +1 -1
- package/dist/generated/presets/types.gen.mjs.map +1 -1
- package/dist/generated/spaces/types.gen.d.mts +71 -0
- package/dist/generated/spaces/types.gen.d.ts +71 -0
- package/dist/generated/spaces/types.gen.js.map +1 -1
- package/dist/generated/spaces/types.gen.mjs.map +1 -1
- package/dist/generated/stories/types.gen.d.mts +30 -17
- package/dist/generated/stories/types.gen.d.ts +30 -17
- package/dist/generated/stories/types.gen.js.map +1 -1
- package/dist/generated/stories/types.gen.mjs.map +1 -1
- package/dist/generated/users/types.gen.d.mts +10 -113
- package/dist/generated/users/types.gen.d.ts +10 -113
- package/dist/generated/users/types.gen.js.map +1 -1
- package/dist/generated/users/types.gen.mjs.map +1 -1
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry,
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses };
|
|
3
3
|
}
|
|
4
4
|
type DatasourceEntry = {
|
|
5
5
|
/**
|
|
6
6
|
* The numeric ID
|
|
7
7
|
*/
|
|
8
|
-
id
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The key name of the datasource entry
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Given value in the default dimension
|
|
15
15
|
*/
|
|
16
16
|
value?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* The numeric ID of the datasource
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
type DatasourceEntryCreateRequest = {
|
|
23
|
-
datasource_entry?: {
|
|
24
|
-
/**
|
|
25
|
-
* The key name of the datasource entry
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* Given value in the default dimension
|
|
30
|
-
*/
|
|
31
|
-
value: string;
|
|
32
|
-
/**
|
|
33
|
-
* The numeric ID of the datasource
|
|
34
|
-
*/
|
|
35
|
-
datasource_id: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
type DatasourceEntryUpdateRequest = {
|
|
39
|
-
datasource_entry?: {
|
|
40
|
-
/**
|
|
41
|
-
* The key name of the datasource entry
|
|
42
|
-
*/
|
|
43
|
-
name?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Given value in the default dimension
|
|
46
|
-
*/
|
|
47
|
-
value?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Given value in the requested dimension
|
|
50
|
-
*/
|
|
51
|
-
dimension_value?: string;
|
|
52
|
-
};
|
|
20
|
+
datasource_id: number;
|
|
53
21
|
/**
|
|
54
|
-
*
|
|
22
|
+
* Given value in the requested dimension
|
|
55
23
|
*/
|
|
56
|
-
|
|
24
|
+
dimension_value?: string;
|
|
57
25
|
};
|
|
58
26
|
/**
|
|
59
27
|
* The ID of the Storyblok space (can be integer or string)
|
|
60
28
|
*/
|
|
61
29
|
type SpaceId = number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Page number for pagination. Default is 1.
|
|
32
|
+
*/
|
|
33
|
+
type Page = number;
|
|
62
34
|
type ListData = {
|
|
63
35
|
body?: never;
|
|
64
36
|
path: {
|
|
@@ -68,6 +40,14 @@ type ListData = {
|
|
|
68
40
|
space_id: number | string;
|
|
69
41
|
};
|
|
70
42
|
query?: {
|
|
43
|
+
/**
|
|
44
|
+
* Page number for pagination. Default is 1.
|
|
45
|
+
*/
|
|
46
|
+
page?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Number of datasource entries per page. Default is 25, maximum is 1000.
|
|
49
|
+
*/
|
|
50
|
+
per_page?: number;
|
|
71
51
|
/**
|
|
72
52
|
* Provide the numeric id of a datasource
|
|
73
53
|
*/
|
|
@@ -107,7 +87,9 @@ type ListResponses = {
|
|
|
107
87
|
};
|
|
108
88
|
type ListResponse = ListResponses[keyof ListResponses];
|
|
109
89
|
type CreateData = {
|
|
110
|
-
body:
|
|
90
|
+
body: {
|
|
91
|
+
datasource_entry?: DatasourceEntry;
|
|
92
|
+
};
|
|
111
93
|
path: {
|
|
112
94
|
/**
|
|
113
95
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -215,7 +197,9 @@ type GetResponses = {
|
|
|
215
197
|
};
|
|
216
198
|
type GetResponse = GetResponses[keyof GetResponses];
|
|
217
199
|
type UpdateDatasourceEntryData = {
|
|
218
|
-
body:
|
|
200
|
+
body: {
|
|
201
|
+
datasource_entry?: DatasourceEntry;
|
|
202
|
+
};
|
|
219
203
|
path: {
|
|
220
204
|
/**
|
|
221
205
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -256,5 +240,5 @@ type ClientOptions = {
|
|
|
256
240
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
257
241
|
};
|
|
258
242
|
//#endregion
|
|
259
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry,
|
|
243
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses, types_gen_d_exports };
|
|
260
244
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * The key name of the datasource entry\n */\n name: string;\n /**\n * Given value in the default dimension\n */\n value?: string;\n /**\n * The numeric ID of the datasource\n */\n datasource_id: number;\n /**\n * Given value in the requested dimension\n */\n dimension_value?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of datasource entries per page. Default is 25, maximum is 1000.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a datasource\n */\n datasource_id?: number;\n /**\n * Provide the slug of a datasource\n */\n datasource_slug?: string;\n /**\n * Provide dimension id to receive the dimension_value filled\n */\n dimension?: string;\n };\n url: '/v1/spaces/{space_id}/datasource_entries';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of datasource entries\n */\n 200: {\n datasource_entries?: Array<DatasourceEntry>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Datasource entry created\n */\n 201: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource entry deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource entry details\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateDatasourceEntryData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type UpdateDatasourceEntryErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type UpdateDatasourceEntryResponses = {\n /**\n * Datasource entry updated\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type UpdateDatasourceEntryResponse = UpdateDatasourceEntryResponses[keyof UpdateDatasourceEntryResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * The key name of the datasource entry\n */\n name: string;\n /**\n * Given value in the default dimension\n */\n value?: string;\n /**\n * The numeric ID of the datasource\n */\n datasource_id: number;\n /**\n * Given value in the requested dimension\n */\n dimension_value?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of datasource entries per page. Default is 25, maximum is 1000.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a datasource\n */\n datasource_id?: number;\n /**\n * Provide the slug of a datasource\n */\n datasource_slug?: string;\n /**\n * Provide dimension id to receive the dimension_value filled\n */\n dimension?: string;\n };\n url: '/v1/spaces/{space_id}/datasource_entries';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of datasource entries\n */\n 200: {\n datasource_entries?: Array<DatasourceEntry>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Datasource entry created\n */\n 201: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource entry deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource entry details\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateDatasourceEntryData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type UpdateDatasourceEntryErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type UpdateDatasourceEntryResponses = {\n /**\n * Datasource entry updated\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type UpdateDatasourceEntryResponse = UpdateDatasourceEntryResponses[keyof UpdateDatasourceEntryResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
3
|
}
|
|
4
4
|
type Datasource = {
|
|
5
5
|
/**
|
|
6
6
|
* The numeric ID of the datasource
|
|
7
7
|
*/
|
|
8
|
-
id
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The complete name provided for a datasource
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Slug of a datasource
|
|
15
15
|
*/
|
|
16
|
-
slug
|
|
16
|
+
slug: string;
|
|
17
17
|
/**
|
|
18
18
|
* An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource
|
|
19
19
|
*/
|
|
@@ -46,61 +46,11 @@ type Datasource = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Creation date
|
|
48
48
|
*/
|
|
49
|
-
created_at
|
|
49
|
+
created_at: string;
|
|
50
50
|
/**
|
|
51
51
|
* Latest update date
|
|
52
52
|
*/
|
|
53
|
-
updated_at
|
|
54
|
-
};
|
|
55
|
-
type DatasourceCreateRequest = {
|
|
56
|
-
datasource?: {
|
|
57
|
-
/**
|
|
58
|
-
* The complete name provided for a datasource
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* Slug of a datasource
|
|
63
|
-
*/
|
|
64
|
-
slug: string;
|
|
65
|
-
/**
|
|
66
|
-
* An array of dimension attributes for creating dimensions within the datasource
|
|
67
|
-
*/
|
|
68
|
-
dimensions_attributes?: Array<{
|
|
69
|
-
/**
|
|
70
|
-
* The complete name provided for the datasource dimension
|
|
71
|
-
*/
|
|
72
|
-
name?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
75
|
-
*/
|
|
76
|
-
entry_value?: string;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
type DatasourceUpdateRequest = {
|
|
81
|
-
datasource?: {
|
|
82
|
-
/**
|
|
83
|
-
* The complete name provided for a datasource
|
|
84
|
-
*/
|
|
85
|
-
name?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Slug of a datasource
|
|
88
|
-
*/
|
|
89
|
-
slug?: string;
|
|
90
|
-
/**
|
|
91
|
-
* An array of dimension attributes for updating dimensions within the datasource
|
|
92
|
-
*/
|
|
93
|
-
dimensions_attributes?: Array<{
|
|
94
|
-
/**
|
|
95
|
-
* The complete name provided for the datasource dimension
|
|
96
|
-
*/
|
|
97
|
-
name?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
100
|
-
*/
|
|
101
|
-
entry_value?: string;
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
53
|
+
updated_at: string;
|
|
104
54
|
};
|
|
105
55
|
/**
|
|
106
56
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -150,7 +100,9 @@ type ListResponses = {
|
|
|
150
100
|
};
|
|
151
101
|
type ListResponse = ListResponses[keyof ListResponses];
|
|
152
102
|
type CreateData = {
|
|
153
|
-
body:
|
|
103
|
+
body: {
|
|
104
|
+
datasource?: Datasource;
|
|
105
|
+
};
|
|
154
106
|
path: {
|
|
155
107
|
/**
|
|
156
108
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -258,7 +210,9 @@ type GetResponses = {
|
|
|
258
210
|
};
|
|
259
211
|
type GetResponse = GetResponses[keyof GetResponses];
|
|
260
212
|
type UpdateData = {
|
|
261
|
-
body:
|
|
213
|
+
body: {
|
|
214
|
+
datasource?: Datasource;
|
|
215
|
+
};
|
|
262
216
|
path: {
|
|
263
217
|
/**
|
|
264
218
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -299,5 +253,5 @@ type ClientOptions = {
|
|
|
299
253
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
300
254
|
};
|
|
301
255
|
//#endregion
|
|
302
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
256
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
303
257
|
//# sourceMappingURL=types.gen.d.mts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
3
|
}
|
|
4
4
|
type Datasource = {
|
|
5
5
|
/**
|
|
6
6
|
* The numeric ID of the datasource
|
|
7
7
|
*/
|
|
8
|
-
id
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The complete name provided for a datasource
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Slug of a datasource
|
|
15
15
|
*/
|
|
16
|
-
slug
|
|
16
|
+
slug: string;
|
|
17
17
|
/**
|
|
18
18
|
* An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource
|
|
19
19
|
*/
|
|
@@ -46,61 +46,11 @@ type Datasource = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Creation date
|
|
48
48
|
*/
|
|
49
|
-
created_at
|
|
49
|
+
created_at: string;
|
|
50
50
|
/**
|
|
51
51
|
* Latest update date
|
|
52
52
|
*/
|
|
53
|
-
updated_at
|
|
54
|
-
};
|
|
55
|
-
type DatasourceCreateRequest = {
|
|
56
|
-
datasource?: {
|
|
57
|
-
/**
|
|
58
|
-
* The complete name provided for a datasource
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* Slug of a datasource
|
|
63
|
-
*/
|
|
64
|
-
slug: string;
|
|
65
|
-
/**
|
|
66
|
-
* An array of dimension attributes for creating dimensions within the datasource
|
|
67
|
-
*/
|
|
68
|
-
dimensions_attributes?: Array<{
|
|
69
|
-
/**
|
|
70
|
-
* The complete name provided for the datasource dimension
|
|
71
|
-
*/
|
|
72
|
-
name?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
75
|
-
*/
|
|
76
|
-
entry_value?: string;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
type DatasourceUpdateRequest = {
|
|
81
|
-
datasource?: {
|
|
82
|
-
/**
|
|
83
|
-
* The complete name provided for a datasource
|
|
84
|
-
*/
|
|
85
|
-
name?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Slug of a datasource
|
|
88
|
-
*/
|
|
89
|
-
slug?: string;
|
|
90
|
-
/**
|
|
91
|
-
* An array of dimension attributes for updating dimensions within the datasource
|
|
92
|
-
*/
|
|
93
|
-
dimensions_attributes?: Array<{
|
|
94
|
-
/**
|
|
95
|
-
* The complete name provided for the datasource dimension
|
|
96
|
-
*/
|
|
97
|
-
name?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
100
|
-
*/
|
|
101
|
-
entry_value?: string;
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
53
|
+
updated_at: string;
|
|
104
54
|
};
|
|
105
55
|
/**
|
|
106
56
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -150,7 +100,9 @@ type ListResponses = {
|
|
|
150
100
|
};
|
|
151
101
|
type ListResponse = ListResponses[keyof ListResponses];
|
|
152
102
|
type CreateData = {
|
|
153
|
-
body:
|
|
103
|
+
body: {
|
|
104
|
+
datasource?: Datasource;
|
|
105
|
+
};
|
|
154
106
|
path: {
|
|
155
107
|
/**
|
|
156
108
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -258,7 +210,9 @@ type GetResponses = {
|
|
|
258
210
|
};
|
|
259
211
|
type GetResponse = GetResponses[keyof GetResponses];
|
|
260
212
|
type UpdateData = {
|
|
261
|
-
body:
|
|
213
|
+
body: {
|
|
214
|
+
datasource?: Datasource;
|
|
215
|
+
};
|
|
262
216
|
path: {
|
|
263
217
|
/**
|
|
264
218
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -299,5 +253,5 @@ type ClientOptions = {
|
|
|
299
253
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
300
254
|
};
|
|
301
255
|
//#endregion
|
|
302
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
256
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
303
257
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasources/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Datasource = {\n /**\n * The numeric ID of the datasource\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasources/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Datasource = {\n /**\n * The numeric ID of the datasource\n */\n readonly id: number;\n /**\n * The complete name provided for a datasource\n */\n name: string;\n /**\n * Slug of a datasource\n */\n slug: string;\n /**\n * An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource\n */\n dimensions?: Array<{\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * The complete name provided for the datasource\n */\n name?: string;\n /**\n * The value provided for the datasource dimension (e.g., a language code)\n */\n entry_value?: string;\n /**\n * The numeric ID of the datasource that the dimension belongs to\n */\n datasource_id?: number;\n /**\n * Creation date\n */\n created_at?: string;\n /**\n * Latest update date\n */\n updated_at?: string;\n }>;\n /**\n * Creation date\n */\n created_at: string;\n /**\n * Latest update date\n */\n updated_at: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Search by name of datasources\n */\n search?: string;\n /**\n * Search by IDs of datasources (comma separated)\n */\n by_ids?: string;\n };\n url: '/v1/spaces/{space_id}/datasources';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of datasources\n */\n 200: {\n datasources?: Array<Datasource>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource?: Datasource;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Datasource created\n */\n 201: {\n datasource?: Datasource;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource details\n */\n 200: {\n datasource?: Datasource;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n datasource?: Datasource;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Datasource updated\n */\n 200: {\n datasource?: Datasource;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/datasources/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Datasource = {\n /**\n * The numeric ID of the datasource\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/datasources/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Datasource = {\n /**\n * The numeric ID of the datasource\n */\n readonly id: number;\n /**\n * The complete name provided for a datasource\n */\n name: string;\n /**\n * Slug of a datasource\n */\n slug: string;\n /**\n * An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource\n */\n dimensions?: Array<{\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * The complete name provided for the datasource\n */\n name?: string;\n /**\n * The value provided for the datasource dimension (e.g., a language code)\n */\n entry_value?: string;\n /**\n * The numeric ID of the datasource that the dimension belongs to\n */\n datasource_id?: number;\n /**\n * Creation date\n */\n created_at?: string;\n /**\n * Latest update date\n */\n updated_at?: string;\n }>;\n /**\n * Creation date\n */\n created_at: string;\n /**\n * Latest update date\n */\n updated_at: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Search by name of datasources\n */\n search?: string;\n /**\n * Search by IDs of datasources (comma separated)\n */\n by_ids?: string;\n };\n url: '/v1/spaces/{space_id}/datasources';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of datasources\n */\n 200: {\n datasources?: Array<Datasource>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource?: Datasource;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Datasource created\n */\n 201: {\n datasource?: Datasource;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource details\n */\n 200: {\n datasource?: Datasource;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n datasource?: Datasource;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric id of a datasource\n */\n datasource_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasources/{datasource_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Datasource updated\n */\n 200: {\n datasource?: Datasource;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
3
|
}
|
|
4
4
|
type InternalTag = {
|
|
5
5
|
/**
|
|
@@ -19,6 +19,10 @@ type InternalTag = {
|
|
|
19
19
|
* The ID of the Storyblok space (can be integer or string)
|
|
20
20
|
*/
|
|
21
21
|
type SpaceId = number | string;
|
|
22
|
+
/**
|
|
23
|
+
* Page number for pagination. Default is 1.
|
|
24
|
+
*/
|
|
25
|
+
type Page = number;
|
|
22
26
|
type ListData = {
|
|
23
27
|
body?: never;
|
|
24
28
|
path: {
|
|
@@ -28,6 +32,14 @@ type ListData = {
|
|
|
28
32
|
space_id: number | string;
|
|
29
33
|
};
|
|
30
34
|
query?: {
|
|
35
|
+
/**
|
|
36
|
+
* Page number for pagination. Default is 1.
|
|
37
|
+
*/
|
|
38
|
+
page?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Number of internal tags per page. Default is 25, maximum is 100.
|
|
41
|
+
*/
|
|
42
|
+
per_page?: number;
|
|
31
43
|
/**
|
|
32
44
|
* Filter by search term
|
|
33
45
|
*/
|
|
@@ -174,5 +186,5 @@ type ClientOptions = {
|
|
|
174
186
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
175
187
|
};
|
|
176
188
|
//#endregion
|
|
177
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
189
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
178
190
|
//# sourceMappingURL=types.gen.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
3
|
}
|
|
4
4
|
type InternalTag = {
|
|
5
5
|
/**
|
|
@@ -19,6 +19,10 @@ type InternalTag = {
|
|
|
19
19
|
* The ID of the Storyblok space (can be integer or string)
|
|
20
20
|
*/
|
|
21
21
|
type SpaceId = number | string;
|
|
22
|
+
/**
|
|
23
|
+
* Page number for pagination. Default is 1.
|
|
24
|
+
*/
|
|
25
|
+
type Page = number;
|
|
22
26
|
type ListData = {
|
|
23
27
|
body?: never;
|
|
24
28
|
path: {
|
|
@@ -28,6 +32,14 @@ type ListData = {
|
|
|
28
32
|
space_id: number | string;
|
|
29
33
|
};
|
|
30
34
|
query?: {
|
|
35
|
+
/**
|
|
36
|
+
* Page number for pagination. Default is 1.
|
|
37
|
+
*/
|
|
38
|
+
page?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Number of internal tags per page. Default is 25, maximum is 100.
|
|
41
|
+
*/
|
|
42
|
+
per_page?: number;
|
|
31
43
|
/**
|
|
32
44
|
* Filter by search term
|
|
33
45
|
*/
|
|
@@ -174,5 +186,5 @@ type ClientOptions = {
|
|
|
174
186
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
175
187
|
};
|
|
176
188
|
//#endregion
|
|
177
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
189
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, InternalTag, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
178
190
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/internal_tags/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type InternalTag = {\n /**\n * Name of the internal tag\n */\n name: string;\n /**\n * Numeric ID of the internal tag\n */\n readonly id: number;\n /**\n * The object type of an internal tag (where does the internal tag belong to). Can be `asset` or `component`\n */\n object_type: 'asset' | 'component';\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Filter by search term\n */\n search?: string;\n /**\n * Filter internal tags by object type. Possible values - `asset` or `component`\n */\n by_object_type?: 'asset' | 'component';\n };\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of internal tags\n */\n 200: {\n internal_tags?: Array<InternalTag>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Internal tag created\n */\n 201: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Internal tag deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type UpdateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Internal tag updated\n */\n 200: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/internal_tags/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type InternalTag = {\n /**\n * Name of the internal tag\n */\n name: string;\n /**\n * Numeric ID of the internal tag\n */\n readonly id: number;\n /**\n * The object type of an internal tag (where does the internal tag belong to). Can be `asset` or `component`\n */\n object_type: 'asset' | 'component';\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of internal tags per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by search term\n */\n search?: string;\n /**\n * Filter internal tags by object type. Possible values - `asset` or `component`\n */\n by_object_type?: 'asset' | 'component';\n };\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of internal tags\n */\n 200: {\n internal_tags?: Array<InternalTag>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Internal tag created\n */\n 201: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Internal tag deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type UpdateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Internal tag updated\n */\n 200: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/internal_tags/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type InternalTag = {\n /**\n * Name of the internal tag\n */\n name: string;\n /**\n * Numeric ID of the internal tag\n */\n readonly id: number;\n /**\n * The object type of an internal tag (where does the internal tag belong to). Can be `asset` or `component`\n */\n object_type: 'asset' | 'component';\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Filter by search term\n */\n search?: string;\n /**\n * Filter internal tags by object type. Possible values - `asset` or `component`\n */\n by_object_type?: 'asset' | 'component';\n };\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of internal tags\n */\n 200: {\n internal_tags?: Array<InternalTag>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Internal tag created\n */\n 201: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Internal tag deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type UpdateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Internal tag updated\n */\n 200: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/internal_tags/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type InternalTag = {\n /**\n * Name of the internal tag\n */\n name: string;\n /**\n * Numeric ID of the internal tag\n */\n readonly id: number;\n /**\n * The object type of an internal tag (where does the internal tag belong to). Can be `asset` or `component`\n */\n object_type: 'asset' | 'component';\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of internal tags per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by search term\n */\n search?: string;\n /**\n * Filter internal tags by object type. Possible values - `asset` or `component`\n */\n by_object_type?: 'asset' | 'component';\n };\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of internal tags\n */\n 200: {\n internal_tags?: Array<InternalTag>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Internal tag created\n */\n 201: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Internal tag deleted\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type UpdateData = {\n body: InternalTag;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of the internal tag\n */\n internal_tag_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/internal_tags/{internal_tag_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Internal tag not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Internal tag updated\n */\n 200: {\n internal_tag?: InternalTag;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|