@storyblok/management-api-client 1.0.0-alpha.4 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.cts +3 -0
- package/dist/client.d.mts +3 -0
- package/dist/generated/mapi/types-aliased.gen.d.cts +2 -2
- package/dist/generated/mapi/types-aliased.gen.d.mts +2 -2
- package/dist/generated/mapi/types.gen.d.cts +2 -2
- package/dist/generated/mapi/types.gen.d.mts +2 -2
- package/dist/generated/types/block.d.cts +6 -0
- package/dist/generated/types/block.d.mts +6 -0
- package/dist/generated/types/field.d.cts +22 -3
- package/dist/generated/types/field.d.mts +22 -3
- package/dist/resources/datasource-entries.cjs +2 -1
- package/dist/resources/datasource-entries.cjs.map +1 -1
- package/dist/resources/datasource-entries.mjs +2 -1
- package/dist/resources/datasource-entries.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -302,6 +302,9 @@ declare function buildResources<DefaultThrowOnError extends boolean = false>(dep
|
|
|
302
302
|
} & SpaceIdPathOverride): Promise<ApiResponse<DatasourceEntryShowResponse, ThrowOnError>>;
|
|
303
303
|
update<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: {
|
|
304
304
|
body: PartialUpdateDatasourceEntryData["body"];
|
|
305
|
+
query?: {
|
|
306
|
+
dimension_id?: number;
|
|
307
|
+
} | undefined;
|
|
305
308
|
signal?: AbortSignal;
|
|
306
309
|
throwOnError?: ThrowOnError | undefined;
|
|
307
310
|
fetchOptions?: FetchOptions;
|
package/dist/client.d.mts
CHANGED
|
@@ -302,6 +302,9 @@ declare function buildResources<DefaultThrowOnError extends boolean = false>(dep
|
|
|
302
302
|
} & SpaceIdPathOverride): Promise<ApiResponse<DatasourceEntryShowResponse, ThrowOnError>>;
|
|
303
303
|
update<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: {
|
|
304
304
|
body: PartialUpdateDatasourceEntryData["body"];
|
|
305
|
+
query?: {
|
|
306
|
+
dimension_id?: number;
|
|
307
|
+
} | undefined;
|
|
305
308
|
signal?: AbortSignal;
|
|
306
309
|
throwOnError?: ThrowOnError | undefined;
|
|
307
310
|
fetchOptions?: FetchOptions;
|
|
@@ -181,7 +181,7 @@ type ComponentCreate = {
|
|
|
181
181
|
/**
|
|
182
182
|
* UUID
|
|
183
183
|
*/
|
|
184
|
-
component_group_uuid?: string;
|
|
184
|
+
component_group_uuid?: string | null;
|
|
185
185
|
/**
|
|
186
186
|
* Component color for UI display
|
|
187
187
|
*/
|
|
@@ -266,7 +266,7 @@ type ComponentUpdate = {
|
|
|
266
266
|
/**
|
|
267
267
|
* UUID
|
|
268
268
|
*/
|
|
269
|
-
component_group_uuid?: string;
|
|
269
|
+
component_group_uuid?: string | null;
|
|
270
270
|
/**
|
|
271
271
|
* Component color for UI display
|
|
272
272
|
*/
|
|
@@ -181,7 +181,7 @@ type ComponentCreate = {
|
|
|
181
181
|
/**
|
|
182
182
|
* UUID
|
|
183
183
|
*/
|
|
184
|
-
component_group_uuid?: string;
|
|
184
|
+
component_group_uuid?: string | null;
|
|
185
185
|
/**
|
|
186
186
|
* Component color for UI display
|
|
187
187
|
*/
|
|
@@ -266,7 +266,7 @@ type ComponentUpdate = {
|
|
|
266
266
|
/**
|
|
267
267
|
* UUID
|
|
268
268
|
*/
|
|
269
|
-
component_group_uuid?: string;
|
|
269
|
+
component_group_uuid?: string | null;
|
|
270
270
|
/**
|
|
271
271
|
* Component color for UI display
|
|
272
272
|
*/
|
|
@@ -94,7 +94,7 @@ type ComponentCreateRequest = {
|
|
|
94
94
|
/**
|
|
95
95
|
* UUID
|
|
96
96
|
*/
|
|
97
|
-
component_group_uuid?: string;
|
|
97
|
+
component_group_uuid?: string | null;
|
|
98
98
|
/**
|
|
99
99
|
* Component color for UI display
|
|
100
100
|
*/
|
|
@@ -193,7 +193,7 @@ type ComponentUpdateRequest = {
|
|
|
193
193
|
/**
|
|
194
194
|
* UUID
|
|
195
195
|
*/
|
|
196
|
-
component_group_uuid?: string;
|
|
196
|
+
component_group_uuid?: string | null;
|
|
197
197
|
/**
|
|
198
198
|
* Component color for UI display
|
|
199
199
|
*/
|
|
@@ -94,7 +94,7 @@ type ComponentCreateRequest = {
|
|
|
94
94
|
/**
|
|
95
95
|
* UUID
|
|
96
96
|
*/
|
|
97
|
-
component_group_uuid?: string;
|
|
97
|
+
component_group_uuid?: string | null;
|
|
98
98
|
/**
|
|
99
99
|
* Component color for UI display
|
|
100
100
|
*/
|
|
@@ -193,7 +193,7 @@ type ComponentUpdateRequest = {
|
|
|
193
193
|
/**
|
|
194
194
|
* UUID
|
|
195
195
|
*/
|
|
196
|
-
component_group_uuid?: string;
|
|
196
|
+
component_group_uuid?: string | null;
|
|
197
197
|
/**
|
|
198
198
|
* Component color for UI display
|
|
199
199
|
*/
|
|
@@ -34,6 +34,12 @@ type Block<TName extends string = string, TFields extends BlockFields = BlockFie
|
|
|
34
34
|
* directory layout.
|
|
35
35
|
*/
|
|
36
36
|
component_group_uuid?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Folder membership as a display name path (e.g. `'Layout/Heros'`); `null` =
|
|
39
|
+
* explicitly ungrouped (push clears the group). Absent = unmanaged (push
|
|
40
|
+
* leaves the remote group untouched).
|
|
41
|
+
*/
|
|
42
|
+
folder?: string | null;
|
|
37
43
|
}>;
|
|
38
44
|
/**
|
|
39
45
|
* A root {@link Block} (`is_root: true`). Given a union of blocks, narrows to
|
|
@@ -34,6 +34,12 @@ type Block<TName extends string = string, TFields extends BlockFields = BlockFie
|
|
|
34
34
|
* directory layout.
|
|
35
35
|
*/
|
|
36
36
|
component_group_uuid?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Folder membership as a display name path (e.g. `'Layout/Heros'`); `null` =
|
|
39
|
+
* explicitly ungrouped (push clears the group). Absent = unmanaged (push
|
|
40
|
+
* leaves the remote group untouched).
|
|
41
|
+
*/
|
|
42
|
+
folder?: string | null;
|
|
37
43
|
}>;
|
|
38
44
|
/**
|
|
39
45
|
* A root {@link Block} (`is_root: true`). Given a union of blocks, narrows to
|
|
@@ -69,11 +69,30 @@ type IsNestable<T> = T extends {
|
|
|
69
69
|
} ? false : T extends {
|
|
70
70
|
is_nestable: true;
|
|
71
71
|
} ? true : true;
|
|
72
|
+
type AllowEntry = string | {
|
|
73
|
+
folder: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Keeps `TBlock` when its `folder` is `TFolder` or any nested subfolder (mirrors
|
|
77
|
+
* the editor's `isAnywhereInFolder`). This is a best-effort compile-time check,
|
|
78
|
+
* compared case-insensitively via `Lowercase` so `folder: 'blog'` and a `Blog`
|
|
79
|
+
* folder ref narrow the same. TypeScript cannot replicate the CLI's full slug at
|
|
80
|
+
* the type level, so separator/symbol drift (`'My Layout'` vs `'my-layout'`) is
|
|
81
|
+
* only reconciled at push/validate time — full folder identity is enforced
|
|
82
|
+
* there, not here. To rely on narrowing, prefer a `defineFolder` ref over a
|
|
83
|
+
* string path on both the block's `folder` and the field's `allow`: a shared ref
|
|
84
|
+
* carries the exact path on both sides, so no drift is possible.
|
|
85
|
+
*/
|
|
86
|
+
type MatchesFolder<TBlock, TFolder extends string> = TBlock extends {
|
|
87
|
+
folder: infer BF extends string;
|
|
88
|
+
} ? Lowercase<BF> extends Lowercase<TFolder> | `${Lowercase<TFolder>}/${string}` ? TBlock : never : never;
|
|
72
89
|
type ApplyAllow<TField, TBlocks> = TField extends {
|
|
73
|
-
allow: ReadonlyArray<infer TAllowed extends
|
|
74
|
-
} ? Extract<TBlocks, {
|
|
90
|
+
allow: ReadonlyArray<infer TAllowed extends AllowEntry>;
|
|
91
|
+
} ? TAllowed extends string ? Extract<TBlocks, {
|
|
75
92
|
name: TAllowed;
|
|
76
|
-
}> :
|
|
93
|
+
}> : TAllowed extends {
|
|
94
|
+
folder: infer F extends string;
|
|
95
|
+
} ? TBlocks extends any ? MatchesFolder<TBlocks, F> : never : never : TBlocks extends any ? IsNestable<TBlocks> extends true ? TBlocks : never : never;
|
|
77
96
|
/**
|
|
78
97
|
* Resolves a `custom` field to its registered plugin value. When the field's
|
|
79
98
|
* `field_type` is a key of `TFieldPlugins`, the validator output is merged with
|
|
@@ -69,11 +69,30 @@ type IsNestable<T> = T extends {
|
|
|
69
69
|
} ? false : T extends {
|
|
70
70
|
is_nestable: true;
|
|
71
71
|
} ? true : true;
|
|
72
|
+
type AllowEntry = string | {
|
|
73
|
+
folder: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Keeps `TBlock` when its `folder` is `TFolder` or any nested subfolder (mirrors
|
|
77
|
+
* the editor's `isAnywhereInFolder`). This is a best-effort compile-time check,
|
|
78
|
+
* compared case-insensitively via `Lowercase` so `folder: 'blog'` and a `Blog`
|
|
79
|
+
* folder ref narrow the same. TypeScript cannot replicate the CLI's full slug at
|
|
80
|
+
* the type level, so separator/symbol drift (`'My Layout'` vs `'my-layout'`) is
|
|
81
|
+
* only reconciled at push/validate time — full folder identity is enforced
|
|
82
|
+
* there, not here. To rely on narrowing, prefer a `defineFolder` ref over a
|
|
83
|
+
* string path on both the block's `folder` and the field's `allow`: a shared ref
|
|
84
|
+
* carries the exact path on both sides, so no drift is possible.
|
|
85
|
+
*/
|
|
86
|
+
type MatchesFolder<TBlock, TFolder extends string> = TBlock extends {
|
|
87
|
+
folder: infer BF extends string;
|
|
88
|
+
} ? Lowercase<BF> extends Lowercase<TFolder> | `${Lowercase<TFolder>}/${string}` ? TBlock : never : never;
|
|
72
89
|
type ApplyAllow<TField, TBlocks> = TField extends {
|
|
73
|
-
allow: ReadonlyArray<infer TAllowed extends
|
|
74
|
-
} ? Extract<TBlocks, {
|
|
90
|
+
allow: ReadonlyArray<infer TAllowed extends AllowEntry>;
|
|
91
|
+
} ? TAllowed extends string ? Extract<TBlocks, {
|
|
75
92
|
name: TAllowed;
|
|
76
|
-
}> :
|
|
93
|
+
}> : TAllowed extends {
|
|
94
|
+
folder: infer F extends string;
|
|
95
|
+
} ? TBlocks extends any ? MatchesFolder<TBlocks, F> : never : never : TBlocks extends any ? IsNestable<TBlocks> extends true ? TBlocks : never : never;
|
|
77
96
|
/**
|
|
78
97
|
* Resolves a `custom` field to its registered plugin value. When the field's
|
|
79
98
|
* `field_type` is a key of `TFieldPlugins`, the validator output is merged with
|
|
@@ -42,7 +42,7 @@ function createDatasourceEntriesResource(deps) {
|
|
|
42
42
|
}), throwOnError);
|
|
43
43
|
},
|
|
44
44
|
update(datasourceEntryId, options) {
|
|
45
|
-
const { body, signal, path, throwOnError, fetchOptions } = options;
|
|
45
|
+
const { body, query, signal, path, throwOnError, fetchOptions } = options;
|
|
46
46
|
const resolvedSpaceId = getSpaceId(path);
|
|
47
47
|
return wrapRequest(() => require_sdk_gen.partialUpdateDatasourceEntry({
|
|
48
48
|
client,
|
|
@@ -51,6 +51,7 @@ function createDatasourceEntriesResource(deps) {
|
|
|
51
51
|
id: datasourceEntryId
|
|
52
52
|
},
|
|
53
53
|
body,
|
|
54
|
+
...query ? { query } : {},
|
|
54
55
|
signal,
|
|
55
56
|
...require_shared.buildCallOptions(client, throwOnError, fetchOptions)
|
|
56
57
|
}), throwOnError);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource-entries.cjs","names":["resolveSpaceId","buildCallOptions"],"sources":["../../src/resources/datasource-entries.ts"],"sourcesContent":["import * as mapi from '../generated/mapi/sdk.gen';\nimport type {\n CreateDatasourceEntryData,\n CreateDatasourceEntryResponses,\n DatasourceEntriesIndexResponse,\n GetDatasourceEntryResponses,\n ListDatasourceEntriesData,\n PartialUpdateDatasourceEntryData,\n PartialUpdateDatasourceEntryResponses,\n ReplaceDatasourceEntryData,\n ReplaceDatasourceEntryResponses,\n} from '../generated/mapi/types.gen';\nimport type { ApiResponse, FetchOptions, MapiResourceDeps } from '../client';\nimport { buildCallOptions, resolveSpaceId, type SpaceIdPathOverride } from './shared';\n\nexport function createDatasourceEntriesResource<DefaultThrowOnError extends boolean = false>(deps: MapiResourceDeps<DefaultThrowOnError>) {\n const { client, spaceId, wrapRequest } = deps;\n const getSpaceId = (path?: SpaceIdPathOverride['path']) => resolveSpaceId(spaceId, path);\n\n return {\n list<ThrowOnError extends boolean = DefaultThrowOnError>(options: { query?: ListDatasourceEntriesData['query']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<DatasourceEntriesIndexResponse, ThrowOnError>> {\n const { query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<DatasourceEntriesIndexResponse, ThrowOnError>(() =>\n mapi.listDatasourceEntries({ client, path: { space_id: resolvedSpaceId }, query, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n get<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<GetDatasourceEntryResponses[200], ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<GetDatasourceEntryResponses[200], ThrowOnError>(() =>\n mapi.getDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n\n create<ThrowOnError extends boolean = DefaultThrowOnError>(options: { body: CreateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride): Promise<ApiResponse<CreateDatasourceEntryResponses[201], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<CreateDatasourceEntryResponses[201], ThrowOnError>(() =>\n mapi.createDatasourceEntry({ client, path: { space_id: resolvedSpaceId }, body, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n /**\n * PATCH /datasource_entries/{id}: partial update.\n */\n update<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: PartialUpdateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.partialUpdateDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n /**\n * PUT /datasource_entries/{id}: full replace.\n */\n replace<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: ReplaceDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<ReplaceDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<ReplaceDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.replaceDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n delete<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<void, ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<void, ThrowOnError>(() =>\n mapi.deleteDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n };\n}\n"],"mappings":";;;;AAeA,SAAgB,gCAA6E,MAA6C;CACxI,MAAM,EAAE,QAAQ,SAAS,gBAAgB;CACzC,MAAM,cAAc,SAAuCA,8BAAe,SAAS,KAAK;AAExF,QAAO;EACL,KAAyD,UAAgK,EAAE,EAAsE;GAC/R,MAAM,EAAE,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAC5D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,wDACsB;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAO;IAAQ,GAAGC,gCAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAGtK,IAAwD,mBAA2B,UAAoH,EAAE,EAAwE;GAC/Q,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,qDACmB;IACtB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAGrB,OAA2D,SAAqO;GAC9R,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,wDACsB;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAM;IAAQ,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAMrK,OACE,mBACA,SACgF;GAChF,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;
|
|
1
|
+
{"version":3,"file":"datasource-entries.cjs","names":["resolveSpaceId","buildCallOptions"],"sources":["../../src/resources/datasource-entries.ts"],"sourcesContent":["import * as mapi from '../generated/mapi/sdk.gen';\nimport type {\n CreateDatasourceEntryData,\n CreateDatasourceEntryResponses,\n DatasourceEntriesIndexResponse,\n GetDatasourceEntryResponses,\n ListDatasourceEntriesData,\n PartialUpdateDatasourceEntryData,\n PartialUpdateDatasourceEntryResponses,\n ReplaceDatasourceEntryData,\n ReplaceDatasourceEntryResponses,\n} from '../generated/mapi/types.gen';\nimport type { ApiResponse, FetchOptions, MapiResourceDeps } from '../client';\nimport { buildCallOptions, resolveSpaceId, type SpaceIdPathOverride } from './shared';\n\nexport function createDatasourceEntriesResource<DefaultThrowOnError extends boolean = false>(deps: MapiResourceDeps<DefaultThrowOnError>) {\n const { client, spaceId, wrapRequest } = deps;\n const getSpaceId = (path?: SpaceIdPathOverride['path']) => resolveSpaceId(spaceId, path);\n\n return {\n list<ThrowOnError extends boolean = DefaultThrowOnError>(options: { query?: ListDatasourceEntriesData['query']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<DatasourceEntriesIndexResponse, ThrowOnError>> {\n const { query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<DatasourceEntriesIndexResponse, ThrowOnError>(() =>\n mapi.listDatasourceEntries({ client, path: { space_id: resolvedSpaceId }, query, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n get<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<GetDatasourceEntryResponses[200], ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<GetDatasourceEntryResponses[200], ThrowOnError>(() =>\n mapi.getDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n\n create<ThrowOnError extends boolean = DefaultThrowOnError>(options: { body: CreateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride): Promise<ApiResponse<CreateDatasourceEntryResponses[201], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<CreateDatasourceEntryResponses[201], ThrowOnError>(() =>\n mapi.createDatasourceEntry({ client, path: { space_id: resolvedSpaceId }, body, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n /**\n * PATCH /datasource_entries/{id}: partial update.\n */\n update<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: PartialUpdateDatasourceEntryData['body']; query?: { dimension_id?: number }; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.partialUpdateDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n // The update endpoint accepts a `dimension_id` query param to write a\n // per-dimension child value, but it is not modeled in the OpenAPI spec\n // yet (generated `PartialUpdateDatasourceEntryData['query']` is\n // `never`). The generated SDK\n // forwards `query` verbatim, so pass it through with a localized cast.\n ...(query ? { query } as { query: never } : {}),\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n /**\n * PUT /datasource_entries/{id}: full replace.\n */\n replace<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: ReplaceDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<ReplaceDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<ReplaceDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.replaceDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n delete<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<void, ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<void, ThrowOnError>(() =>\n mapi.deleteDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n };\n}\n"],"mappings":";;;;AAeA,SAAgB,gCAA6E,MAA6C;CACxI,MAAM,EAAE,QAAQ,SAAS,gBAAgB;CACzC,MAAM,cAAc,SAAuCA,8BAAe,SAAS,KAAK;AAExF,QAAO;EACL,KAAyD,UAAgK,EAAE,EAAsE;GAC/R,MAAM,EAAE,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAC5D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,wDACsB;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAO;IAAQ,GAAGC,gCAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAGtK,IAAwD,mBAA2B,UAAoH,EAAE,EAAwE;GAC/Q,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,qDACmB;IACtB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAGrB,OAA2D,SAAqO;GAC9R,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,wDACsB;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAM;IAAQ,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAMrK,OACE,mBACA,SACgF;GAChF,MAAM,EAAE,MAAM,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAClE,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,+DAC6B;IAChC;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IAMA,GAAI,QAAQ,EAAE,OAAO,GAAuB,EAAE;IAC9C;IACA,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAKrB,QACE,mBACA,SAC0E;GAC1E,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,yDACuB;IAC1B;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA;IACA,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAErB,OAA2D,mBAA2B,UAAoH,EAAE,EAA4C;GACtP,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,wDACsB;IACzB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAGA,gCAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAEtB"}
|
|
@@ -42,7 +42,7 @@ function createDatasourceEntriesResource(deps) {
|
|
|
42
42
|
}), throwOnError);
|
|
43
43
|
},
|
|
44
44
|
update(datasourceEntryId, options) {
|
|
45
|
-
const { body, signal, path, throwOnError, fetchOptions } = options;
|
|
45
|
+
const { body, query, signal, path, throwOnError, fetchOptions } = options;
|
|
46
46
|
const resolvedSpaceId = getSpaceId(path);
|
|
47
47
|
return wrapRequest(() => partialUpdateDatasourceEntry({
|
|
48
48
|
client,
|
|
@@ -51,6 +51,7 @@ function createDatasourceEntriesResource(deps) {
|
|
|
51
51
|
id: datasourceEntryId
|
|
52
52
|
},
|
|
53
53
|
body,
|
|
54
|
+
...query ? { query } : {},
|
|
54
55
|
signal,
|
|
55
56
|
...buildCallOptions(client, throwOnError, fetchOptions)
|
|
56
57
|
}), throwOnError);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource-entries.mjs","names":["mapi.listDatasourceEntries","mapi.getDatasourceEntry","mapi.createDatasourceEntry","mapi.partialUpdateDatasourceEntry","mapi.replaceDatasourceEntry","mapi.deleteDatasourceEntry"],"sources":["../../src/resources/datasource-entries.ts"],"sourcesContent":["import * as mapi from '../generated/mapi/sdk.gen';\nimport type {\n CreateDatasourceEntryData,\n CreateDatasourceEntryResponses,\n DatasourceEntriesIndexResponse,\n GetDatasourceEntryResponses,\n ListDatasourceEntriesData,\n PartialUpdateDatasourceEntryData,\n PartialUpdateDatasourceEntryResponses,\n ReplaceDatasourceEntryData,\n ReplaceDatasourceEntryResponses,\n} from '../generated/mapi/types.gen';\nimport type { ApiResponse, FetchOptions, MapiResourceDeps } from '../client';\nimport { buildCallOptions, resolveSpaceId, type SpaceIdPathOverride } from './shared';\n\nexport function createDatasourceEntriesResource<DefaultThrowOnError extends boolean = false>(deps: MapiResourceDeps<DefaultThrowOnError>) {\n const { client, spaceId, wrapRequest } = deps;\n const getSpaceId = (path?: SpaceIdPathOverride['path']) => resolveSpaceId(spaceId, path);\n\n return {\n list<ThrowOnError extends boolean = DefaultThrowOnError>(options: { query?: ListDatasourceEntriesData['query']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<DatasourceEntriesIndexResponse, ThrowOnError>> {\n const { query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<DatasourceEntriesIndexResponse, ThrowOnError>(() =>\n mapi.listDatasourceEntries({ client, path: { space_id: resolvedSpaceId }, query, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n get<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<GetDatasourceEntryResponses[200], ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<GetDatasourceEntryResponses[200], ThrowOnError>(() =>\n mapi.getDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n\n create<ThrowOnError extends boolean = DefaultThrowOnError>(options: { body: CreateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride): Promise<ApiResponse<CreateDatasourceEntryResponses[201], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<CreateDatasourceEntryResponses[201], ThrowOnError>(() =>\n mapi.createDatasourceEntry({ client, path: { space_id: resolvedSpaceId }, body, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n /**\n * PATCH /datasource_entries/{id}: partial update.\n */\n update<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: PartialUpdateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.partialUpdateDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n /**\n * PUT /datasource_entries/{id}: full replace.\n */\n replace<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: ReplaceDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<ReplaceDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<ReplaceDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.replaceDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n delete<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<void, ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<void, ThrowOnError>(() =>\n mapi.deleteDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n };\n}\n"],"mappings":";;;;AAeA,SAAgB,gCAA6E,MAA6C;CACxI,MAAM,EAAE,QAAQ,SAAS,gBAAgB;CACzC,MAAM,cAAc,SAAuC,eAAe,SAAS,KAAK;AAExF,QAAO;EACL,KAAyD,UAAgK,EAAE,EAAsE;GAC/R,MAAM,EAAE,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAC5D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLA,sBAA2B;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAO;IAAQ,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAGtK,IAAwD,mBAA2B,UAAoH,EAAE,EAAwE;GAC/Q,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,mBAAwB;IACtB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAGrB,OAA2D,SAAqO;GAC9R,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,sBAA2B;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAM;IAAQ,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAMrK,OACE,mBACA,SACgF;GAChF,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;
|
|
1
|
+
{"version":3,"file":"datasource-entries.mjs","names":["mapi.listDatasourceEntries","mapi.getDatasourceEntry","mapi.createDatasourceEntry","mapi.partialUpdateDatasourceEntry","mapi.replaceDatasourceEntry","mapi.deleteDatasourceEntry"],"sources":["../../src/resources/datasource-entries.ts"],"sourcesContent":["import * as mapi from '../generated/mapi/sdk.gen';\nimport type {\n CreateDatasourceEntryData,\n CreateDatasourceEntryResponses,\n DatasourceEntriesIndexResponse,\n GetDatasourceEntryResponses,\n ListDatasourceEntriesData,\n PartialUpdateDatasourceEntryData,\n PartialUpdateDatasourceEntryResponses,\n ReplaceDatasourceEntryData,\n ReplaceDatasourceEntryResponses,\n} from '../generated/mapi/types.gen';\nimport type { ApiResponse, FetchOptions, MapiResourceDeps } from '../client';\nimport { buildCallOptions, resolveSpaceId, type SpaceIdPathOverride } from './shared';\n\nexport function createDatasourceEntriesResource<DefaultThrowOnError extends boolean = false>(deps: MapiResourceDeps<DefaultThrowOnError>) {\n const { client, spaceId, wrapRequest } = deps;\n const getSpaceId = (path?: SpaceIdPathOverride['path']) => resolveSpaceId(spaceId, path);\n\n return {\n list<ThrowOnError extends boolean = DefaultThrowOnError>(options: { query?: ListDatasourceEntriesData['query']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<DatasourceEntriesIndexResponse, ThrowOnError>> {\n const { query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<DatasourceEntriesIndexResponse, ThrowOnError>(() =>\n mapi.listDatasourceEntries({ client, path: { space_id: resolvedSpaceId }, query, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n get<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<GetDatasourceEntryResponses[200], ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<GetDatasourceEntryResponses[200], ThrowOnError>(() =>\n mapi.getDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n\n create<ThrowOnError extends boolean = DefaultThrowOnError>(options: { body: CreateDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride): Promise<ApiResponse<CreateDatasourceEntryResponses[201], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<CreateDatasourceEntryResponses[201], ThrowOnError>(() =>\n mapi.createDatasourceEntry({ client, path: { space_id: resolvedSpaceId }, body, signal, ...buildCallOptions(client, throwOnError, fetchOptions) }), throwOnError);\n },\n\n /**\n * PATCH /datasource_entries/{id}: partial update.\n */\n update<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: PartialUpdateDatasourceEntryData['body']; query?: { dimension_id?: number }; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, query, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<PartialUpdateDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.partialUpdateDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n // The update endpoint accepts a `dimension_id` query param to write a\n // per-dimension child value, but it is not modeled in the OpenAPI spec\n // yet (generated `PartialUpdateDatasourceEntryData['query']` is\n // `never`). The generated SDK\n // forwards `query` verbatim, so pass it through with a localized cast.\n ...(query ? { query } as { query: never } : {}),\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n /**\n * PUT /datasource_entries/{id}: full replace.\n */\n replace<ThrowOnError extends boolean = DefaultThrowOnError>(\n datasourceEntryId: number,\n options: { body: ReplaceDatasourceEntryData['body']; signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride,\n ): Promise<ApiResponse<ReplaceDatasourceEntryResponses[204], ThrowOnError>> {\n const { body, signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<ReplaceDatasourceEntryResponses[204], ThrowOnError>(() =>\n mapi.replaceDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n body,\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n delete<ThrowOnError extends boolean = DefaultThrowOnError>(datasourceEntryId: number, options: { signal?: AbortSignal; throwOnError?: ThrowOnError; fetchOptions?: FetchOptions } & SpaceIdPathOverride = {}): Promise<ApiResponse<void, ThrowOnError>> {\n const { signal, path, throwOnError, fetchOptions } = options;\n const resolvedSpaceId = getSpaceId(path);\n return wrapRequest<void, ThrowOnError>(() =>\n mapi.deleteDatasourceEntry({\n client,\n path: { space_id: resolvedSpaceId, id: datasourceEntryId },\n signal,\n ...buildCallOptions(client, throwOnError, fetchOptions),\n }), throwOnError);\n },\n };\n}\n"],"mappings":";;;;AAeA,SAAgB,gCAA6E,MAA6C;CACxI,MAAM,EAAE,QAAQ,SAAS,gBAAgB;CACzC,MAAM,cAAc,SAAuC,eAAe,SAAS,KAAK;AAExF,QAAO;EACL,KAAyD,UAAgK,EAAE,EAAsE;GAC/R,MAAM,EAAE,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAC5D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLA,sBAA2B;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAO;IAAQ,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAGtK,IAAwD,mBAA2B,UAAoH,EAAE,EAAwE;GAC/Q,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,mBAAwB;IACtB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAGrB,OAA2D,SAAqO;GAC9R,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,sBAA2B;IAAE;IAAQ,MAAM,EAAE,UAAU,iBAAiB;IAAE;IAAM;IAAQ,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IAAE,CAAC,EAAE,aAAa;;EAMrK,OACE,mBACA,SACgF;GAChF,MAAM,EAAE,MAAM,OAAO,QAAQ,MAAM,cAAc,iBAAiB;GAClE,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,6BAAkC;IAChC;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IAMA,GAAI,QAAQ,EAAE,OAAO,GAAuB,EAAE;IAC9C;IACA,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAKrB,QACE,mBACA,SAC0E;GAC1E,MAAM,EAAE,MAAM,QAAQ,MAAM,cAAc,iBAAiB;GAC3D,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,uBAA4B;IAC1B;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA;IACA,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAErB,OAA2D,mBAA2B,UAAoH,EAAE,EAA4C;GACtP,MAAM,EAAE,QAAQ,MAAM,cAAc,iBAAiB;GACrD,MAAM,kBAAkB,WAAW,KAAK;AACxC,UAAO,kBACLC,sBAA2B;IACzB;IACA,MAAM;KAAE,UAAU;KAAiB,IAAI;KAAmB;IAC1D;IACA,GAAG,iBAAiB,QAAQ,cAAc,aAAa;IACxD,CAAC,EAAE,aAAa;;EAEtB"}
|