@skmtc/core 0.0.686 → 0.0.687
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/esm/dsl/operation/OperationBase.d.ts +4 -11
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationBase.js +7 -0
- package/esm/dsl/operation/toOperationBase.d.ts +2 -6
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/dsl/operation/OperationBase.d.ts +4 -11
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationBase.js +7 -0
- package/script/dsl/operation/toOperationBase.d.ts +2 -6
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { OperationInsertable } from './types.js';
|
|
2
2
|
import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type { BaseRegisterArgs, GenerateContext } from '../../context/GenerateContext.js';
|
|
4
|
+
import type { BaseRegisterArgs, GenerateContext, CreateAndRegisterDefinition, DefineAndRegisterArgs } from '../../context/GenerateContext.js';
|
|
5
5
|
import type { GeneratedValue } from '../../types/GeneratedValue.js';
|
|
6
6
|
import type { GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
7
7
|
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Definition } from '../Definition.js';
|
|
9
|
-
import type {
|
|
10
|
-
import type { SchemaToValueFn, SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
9
|
+
import type { SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
11
10
|
import type { Inserted } from '../Inserted.js';
|
|
12
11
|
import type { ModelInsertable } from '../model/types.js';
|
|
13
12
|
import type { RefName } from '../../types/RefName.js';
|
|
@@ -17,12 +16,6 @@ export type OperationBaseArgs<EnrichmentType = undefined> = {
|
|
|
17
16
|
generatorKey: GeneratorKey;
|
|
18
17
|
operation: OasOperation;
|
|
19
18
|
};
|
|
20
|
-
type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
21
|
-
schema: Schema;
|
|
22
|
-
identifier: Identifier;
|
|
23
|
-
schemaToValueFn: SchemaToValueFn;
|
|
24
|
-
rootRef?: RefName;
|
|
25
|
-
};
|
|
26
19
|
export declare class OperationBase<EnrichmentType = undefined> extends ContentBase {
|
|
27
20
|
settings: ContentSettings<EnrichmentType>;
|
|
28
21
|
operation: OasOperation;
|
|
@@ -30,8 +23,8 @@ export declare class OperationBase<EnrichmentType = undefined> extends ContentBa
|
|
|
30
23
|
constructor({ context, generatorKey, settings, operation }: OperationBaseArgs<EnrichmentType>);
|
|
31
24
|
insertOperation<V extends GeneratedValue, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation): Inserted<V, 'force', EnrichmentType>;
|
|
32
25
|
insertModel<V extends GeneratedValue, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, refName: RefName): Inserted<V, 'force', EnrichmentType>;
|
|
33
|
-
|
|
26
|
+
defineAndRegister<V extends GeneratedValue>({ identifier, value }: Omit<DefineAndRegisterArgs<V>, 'destinationPath'>): Definition<V>;
|
|
27
|
+
createAndRegisterDefinition<Schema extends SchemaType>({ schema, identifier, schemaToValueFn, rootRef }: Omit<CreateAndRegisterDefinition<Schema>, 'destinationPath'>): Definition<TypeSystemOutput<Schema['type']>>;
|
|
34
28
|
register(args: BaseRegisterArgs): void;
|
|
35
29
|
}
|
|
36
|
-
export {};
|
|
37
30
|
//# sourceMappingURL=OperationBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,E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,cAAc,CAAC,CAAA;IACzC,SAAS,EAAE,YAAY,CAAA;IACd,YAAY,EAAE,YAAY,CAAA;gBAEvB,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,CAAC,cAAc,CAAC;IAQ7F,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAClE,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,EAClD,SAAS,EAAE,YAAY,GACtB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IAOvC,WAAW,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAC9D,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,GACf,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IAOvC,iBAAiB,CAAC,CAAC,SAAS,cAAc,EAAE,EAC1C,UAAU,EACV,KAAK,EACN,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAQpE,2BAA2B,CAAC,MAAM,SAAS,UAAU,EAAE,EACrD,MAAM,EACN,UAAU,EACV,eAAe,EACf,OAAO,EACR,EAAE,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,GAAG,UAAU,CAC1E,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACjC;IAUQ,QAAQ,CAAC,IAAI,EAAE,gBAAgB;CAMzC"}
|
|
@@ -36,6 +36,13 @@ export class OperationBase extends ContentBase {
|
|
|
36
36
|
destinationPath: this.settings.exportPath
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
+
defineAndRegister({ identifier, value }) {
|
|
40
|
+
return this.context.defineAndRegister({
|
|
41
|
+
identifier,
|
|
42
|
+
value,
|
|
43
|
+
destinationPath: this.settings.exportPath
|
|
44
|
+
});
|
|
45
|
+
}
|
|
39
46
|
createAndRegisterDefinition({ schema, identifier, schemaToValueFn, rootRef }) {
|
|
40
47
|
return this.context.createAndRegisterDefinition({
|
|
41
48
|
schema,
|
|
@@ -20,12 +20,8 @@ export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseO
|
|
|
20
20
|
generatorKey: import("../../mod.js").GeneratorKey;
|
|
21
21
|
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
22
22
|
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_2 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName): import("../Inserted.js").Inserted<V, "force", EnrichmentType_2>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
identifier: Identifier;
|
|
26
|
-
schemaToValueFn: import("../../mod.js").SchemaToValueFn;
|
|
27
|
-
rootRef?: import("../../mod.js").RefName;
|
|
28
|
-
}): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
|
|
23
|
+
defineAndRegister<V extends import("../../mod.js").GeneratedValue>({ identifier, value }: Omit<import("../../mod.js").DefineAndRegisterArgs<V>, "destinationPath">): import("../Definition.js").Definition<V>;
|
|
24
|
+
createAndRegisterDefinition<Schema extends import("../../mod.js").SchemaType>({ schema, identifier, schemaToValueFn, rootRef }: Omit<import("../../mod.js").CreateAndRegisterDefinition<Schema>, "destinationPath">): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
|
|
29
25
|
register(args: import("../../mod.js").BaseRegisterArgs): void;
|
|
30
26
|
context: GenerateContext;
|
|
31
27
|
skipped: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,UAAU,CAAA;IACrD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,MAAM,CAAA;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,GAAG,SAAS,EACxD,QAAQ,mBAAmB,CAAC,cAAc,CAAC;eAoBvB,uBAAuB,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,UAAU,CAAA;IACrD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,MAAM,CAAA;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,GAAG,SAAS,EACxD,QAAQ,mBAAmB,CAAC,cAAc,CAAC;eAoBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;UAhB3C,WAAW;8BAfD,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;oBAmBvB,wBAAwB,iBAAiB,KAAG,cAAc;CAqBrF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { OperationInsertable } from './types.js';
|
|
2
2
|
import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type { BaseRegisterArgs, GenerateContext } from '../../context/GenerateContext.js';
|
|
4
|
+
import type { BaseRegisterArgs, GenerateContext, CreateAndRegisterDefinition, DefineAndRegisterArgs } from '../../context/GenerateContext.js';
|
|
5
5
|
import type { GeneratedValue } from '../../types/GeneratedValue.js';
|
|
6
6
|
import type { GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
7
7
|
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Definition } from '../Definition.js';
|
|
9
|
-
import type {
|
|
10
|
-
import type { SchemaToValueFn, SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
9
|
+
import type { SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
11
10
|
import type { Inserted } from '../Inserted.js';
|
|
12
11
|
import type { ModelInsertable } from '../model/types.js';
|
|
13
12
|
import type { RefName } from '../../types/RefName.js';
|
|
@@ -17,12 +16,6 @@ export type OperationBaseArgs<EnrichmentType = undefined> = {
|
|
|
17
16
|
generatorKey: GeneratorKey;
|
|
18
17
|
operation: OasOperation;
|
|
19
18
|
};
|
|
20
|
-
type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
21
|
-
schema: Schema;
|
|
22
|
-
identifier: Identifier;
|
|
23
|
-
schemaToValueFn: SchemaToValueFn;
|
|
24
|
-
rootRef?: RefName;
|
|
25
|
-
};
|
|
26
19
|
export declare class OperationBase<EnrichmentType = undefined> extends ContentBase {
|
|
27
20
|
settings: ContentSettings<EnrichmentType>;
|
|
28
21
|
operation: OasOperation;
|
|
@@ -30,8 +23,8 @@ export declare class OperationBase<EnrichmentType = undefined> extends ContentBa
|
|
|
30
23
|
constructor({ context, generatorKey, settings, operation }: OperationBaseArgs<EnrichmentType>);
|
|
31
24
|
insertOperation<V extends GeneratedValue, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation): Inserted<V, 'force', EnrichmentType>;
|
|
32
25
|
insertModel<V extends GeneratedValue, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, refName: RefName): Inserted<V, 'force', EnrichmentType>;
|
|
33
|
-
|
|
26
|
+
defineAndRegister<V extends GeneratedValue>({ identifier, value }: Omit<DefineAndRegisterArgs<V>, 'destinationPath'>): Definition<V>;
|
|
27
|
+
createAndRegisterDefinition<Schema extends SchemaType>({ schema, identifier, schemaToValueFn, rootRef }: Omit<CreateAndRegisterDefinition<Schema>, 'destinationPath'>): Definition<TypeSystemOutput<Schema['type']>>;
|
|
34
28
|
register(args: BaseRegisterArgs): void;
|
|
35
29
|
}
|
|
36
|
-
export {};
|
|
37
30
|
//# sourceMappingURL=OperationBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAErD,MAAM,MAAM,iBAAiB,CAAC,cAAc,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IAUQ,QAAQ,CAAC,IAAI,EAAE,gBAAgB;CAMzC"}
|
|
@@ -39,6 +39,13 @@ class OperationBase extends ContentBase_js_1.ContentBase {
|
|
|
39
39
|
destinationPath: this.settings.exportPath
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
defineAndRegister({ identifier, value }) {
|
|
43
|
+
return this.context.defineAndRegister({
|
|
44
|
+
identifier,
|
|
45
|
+
value,
|
|
46
|
+
destinationPath: this.settings.exportPath
|
|
47
|
+
});
|
|
48
|
+
}
|
|
42
49
|
createAndRegisterDefinition({ schema, identifier, schemaToValueFn, rootRef }) {
|
|
43
50
|
return this.context.createAndRegisterDefinition({
|
|
44
51
|
schema,
|
|
@@ -20,12 +20,8 @@ export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseO
|
|
|
20
20
|
generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
|
|
21
21
|
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
22
22
|
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_2 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName): import("../Inserted.js").Inserted<V, "force", EnrichmentType_2>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
identifier: Identifier;
|
|
26
|
-
schemaToValueFn: import("../../mod.js").SchemaToValueFn;
|
|
27
|
-
rootRef?: import("../../mod.js").RefName;
|
|
28
|
-
}): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
|
|
23
|
+
defineAndRegister<V extends import("../../mod.js").GeneratedValue>({ identifier, value }: Omit<import("../../context/GenerateContext.js").DefineAndRegisterArgs<V>, "destinationPath">): import("../Definition.js").Definition<V>;
|
|
24
|
+
createAndRegisterDefinition<Schema extends import("../../mod.js").SchemaType>({ schema, identifier, schemaToValueFn, rootRef }: Omit<import("../../context/GenerateContext.js").CreateAndRegisterDefinition<Schema>, "destinationPath">): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
|
|
29
25
|
register(args: import("../../context/GenerateContext.js").BaseRegisterArgs): void;
|
|
30
26
|
context: GenerateContext;
|
|
31
27
|
skipped: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,UAAU,CAAA;IACrD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,MAAM,CAAA;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,GAAG,SAAS,EACxD,QAAQ,mBAAmB,CAAC,cAAc,CAAC;eAoBvB,uBAAuB,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"toOperationBase.d.ts","source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