@skmtc/core 0.0.358 → 0.0.360
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/Definition.js +2 -2
- package/esm/dsl/Identifier.d.ts +4 -4
- package/esm/dsl/Identifier.d.ts.map +1 -1
- package/esm/dsl/Identifier.js +6 -6
- package/esm/dsl/model/ModelInsertable.d.ts +2 -2
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.d.ts +3 -3
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +2 -2
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +3 -3
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/dsl/Definition.js +2 -2
- package/script/dsl/Identifier.d.ts +4 -4
- package/script/dsl/Identifier.d.ts.map +1 -1
- package/script/dsl/Identifier.js +6 -6
- package/script/dsl/model/ModelInsertable.d.ts +2 -2
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.d.ts +3 -3
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationInsertable.d.ts +2 -2
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.d.ts +3 -3
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
package/esm/dsl/Definition.js
CHANGED
|
@@ -26,8 +26,8 @@ export class Definition extends ValueBase {
|
|
|
26
26
|
this.description = description;
|
|
27
27
|
}
|
|
28
28
|
toString() {
|
|
29
|
-
const identifier = this.identifier.
|
|
30
|
-
? `${this.identifier.name}: ${this.identifier.
|
|
29
|
+
const identifier = this.identifier.typeName
|
|
30
|
+
? `${this.identifier.name}: ${this.identifier.typeName}`
|
|
31
31
|
: this.identifier.name;
|
|
32
32
|
// @TODO move syntax to typescript package to enable language agnostic use
|
|
33
33
|
return withDescription(`export ${this.identifier.entityType} ${identifier} = ${this.value};`, {
|
package/esm/dsl/Identifier.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EntityType } from './EntityType.js';
|
|
2
2
|
type ConstructorArgs = {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
typeName?: string;
|
|
5
5
|
entityType: EntityType;
|
|
6
6
|
};
|
|
7
7
|
export declare class Identifier {
|
|
8
8
|
name: string;
|
|
9
9
|
entityType: EntityType;
|
|
10
|
-
|
|
11
|
-
constructor({ name,
|
|
12
|
-
static createVariable(name: string,
|
|
10
|
+
typeName?: string;
|
|
11
|
+
constructor({ name, typeName, entityType }: ConstructorArgs);
|
|
12
|
+
static createVariable(name: string, typeName?: string): Identifier;
|
|
13
13
|
static createType(name: string): Identifier;
|
|
14
14
|
toString(): string;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identifier.d.ts","sourceRoot":"","sources":["../../src/dsl/Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,
|
|
1
|
+
{"version":3,"file":"Identifier.d.ts","sourceRoot":"","sources":["../../src/dsl/Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;gBAEL,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe;IAM3D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU;IAelE,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAO3C,QAAQ,IAAI,MAAM;CAGnB"}
|
package/esm/dsl/Identifier.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityType } from './EntityType.js';
|
|
2
2
|
export class Identifier {
|
|
3
|
-
constructor({ name,
|
|
3
|
+
constructor({ name, typeName, entityType }) {
|
|
4
4
|
Object.defineProperty(this, "name", {
|
|
5
5
|
enumerable: true,
|
|
6
6
|
configurable: true,
|
|
@@ -13,21 +13,21 @@ export class Identifier {
|
|
|
13
13
|
writable: true,
|
|
14
14
|
value: void 0
|
|
15
15
|
});
|
|
16
|
-
Object.defineProperty(this, "
|
|
16
|
+
Object.defineProperty(this, "typeName", {
|
|
17
17
|
enumerable: true,
|
|
18
18
|
configurable: true,
|
|
19
19
|
writable: true,
|
|
20
20
|
value: void 0
|
|
21
21
|
});
|
|
22
22
|
this.name = name;
|
|
23
|
-
this.
|
|
23
|
+
this.typeName = typeName;
|
|
24
24
|
this.entityType = entityType;
|
|
25
25
|
}
|
|
26
|
-
static createVariable(name,
|
|
27
|
-
if (
|
|
26
|
+
static createVariable(name, typeName) {
|
|
27
|
+
if (typeName) {
|
|
28
28
|
return new Identifier({
|
|
29
29
|
name,
|
|
30
|
-
|
|
30
|
+
typeName,
|
|
31
31
|
entityType: new EntityType('variable')
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -9,7 +9,7 @@ type ModelInsertableConstructorArgs = {
|
|
|
9
9
|
settings: ContentSettings;
|
|
10
10
|
destinationPath: string;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type ToModelInsertableArgs = {
|
|
13
13
|
refName: RefName;
|
|
14
14
|
baseSettings: BaseSettings;
|
|
15
15
|
};
|
|
@@ -39,7 +39,7 @@ export type ModelInsertable<V> = {
|
|
|
39
39
|
id: string;
|
|
40
40
|
type: 'model';
|
|
41
41
|
_class: 'ModelInsertable';
|
|
42
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
42
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
43
43
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
44
44
|
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
45
45
|
pinnable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"ModelInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CA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AAU,CAAA;IAC9E,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;IACvE,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,MAAM,OAAO,CAAA;CAE3B,GAAG,QAAQ,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateContext } from '../../context/GenerateContext.js';
|
|
2
2
|
import type { RefName } from '../../types/RefName.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type { IsModelSelectedArgs, ToModelExportPathArgs,
|
|
4
|
+
import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelInsertableArgs } from './ModelInsertable.js';
|
|
5
5
|
import type { Identifier } from '../Identifier.js';
|
|
6
6
|
export type ModelInsertableArgs = {
|
|
7
7
|
context: GenerateContext;
|
|
@@ -10,7 +10,7 @@ export type ModelInsertableArgs = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ModelConfig = {
|
|
12
12
|
id: string;
|
|
13
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
13
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
14
14
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
15
15
|
isSelected?: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
16
16
|
};
|
|
@@ -28,7 +28,7 @@ export declare const toModelBase: (config: ModelConfig) => {
|
|
|
28
28
|
id: string;
|
|
29
29
|
type: "model";
|
|
30
30
|
_class: "ModelInsertable";
|
|
31
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
31
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
32
32
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
33
33
|
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
34
34
|
isSupported: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,UAAU,CAAA;IAC9E,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,WAAW,WAAY,WAAW;;mBAWzB,mBAAmB;;;;;;;;;;;;kDAhBG,qBAAqB,KAAK,UAAU;kDACpC,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAgCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
|
|
@@ -8,7 +8,7 @@ type OperationInsertableConstructorArgs = {
|
|
|
8
8
|
settings: ContentSettings;
|
|
9
9
|
operation: OasOperation;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type ToOperationInsertableArgs = {
|
|
12
12
|
operation: OasOperation;
|
|
13
13
|
baseSettings: BaseSettings;
|
|
14
14
|
};
|
|
@@ -38,7 +38,7 @@ export type OperationInsertable<V> = {
|
|
|
38
38
|
id: string;
|
|
39
39
|
type: 'operation';
|
|
40
40
|
_class: 'OperationInsertable';
|
|
41
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
41
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
42
42
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
43
43
|
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
44
44
|
pinnable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,kBAAkB,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,OAAO,EAAE,eAAe,GAAG,sBAAsB,CAAA;IACtD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,kBAAkB,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,GAAG;IACtD,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kCAAkC,GAAG,CAAC,CAAA;IAC7E,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,qBAAqB,CAAA;IAC7B,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,UAAU,CAAA;IAC3C,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,MAAM,CAAA;IACvC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,KAAK,OAAO,CAAA;IAC7E,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAElD,GAAG,QAAQ,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateContext } from '../../context/GenerateContext.js';
|
|
2
2
|
import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ToOperationInsertableArgs, ToOperationExportPathArgs, IsOperationSelectedArgs } from './OperationInsertable.js';
|
|
5
5
|
import type { Identifier } from '../Identifier.js';
|
|
6
6
|
export type OperationInsertableArgs = {
|
|
7
7
|
context: GenerateContext;
|
|
@@ -10,7 +10,7 @@ export type OperationInsertableArgs = {
|
|
|
10
10
|
};
|
|
11
11
|
export type OperationConfig = {
|
|
12
12
|
id: string;
|
|
13
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
13
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
14
14
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
15
15
|
isSelected?: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
16
16
|
isSupported?: (operation: OasOperation) => boolean;
|
|
@@ -38,7 +38,7 @@ export declare const toOperationBase: (config: OperationConfig) => {
|
|
|
38
38
|
id: string;
|
|
39
39
|
type: "operation";
|
|
40
40
|
_class: "OperationInsertable";
|
|
41
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
41
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
42
42
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
43
43
|
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
44
44
|
isSupported: (operation: OasOperation) => 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;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,
|
|
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;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,UAAU,CAAA;IAC3C,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,MAAM,CAAA;IACvC,UAAU,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,KAAK,OAAO,CAAA;IAC9E,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,WAAY,eAAe;;mBAWjC,uBAAuB;;;;;;;;;;;;;;;;;;;;oDArBxC,yBAAyB,KAAK,UAAU;oDAIxC,yBAAyB,KAAK,MAAM;kDACI,uBAAuB,KAAK,OAAO;iCACpD,YAAY,KAAK,OAAO;;;;sBAiC3B,eAAe;;;;;;iCAjCZ,YAAY,KAAK,OAAO;;;CAuCnD,CAAA"}
|
package/package.json
CHANGED
package/script/dsl/Definition.js
CHANGED
|
@@ -29,8 +29,8 @@ class Definition extends ValueBase_js_1.ValueBase {
|
|
|
29
29
|
this.description = description;
|
|
30
30
|
}
|
|
31
31
|
toString() {
|
|
32
|
-
const identifier = this.identifier.
|
|
33
|
-
? `${this.identifier.name}: ${this.identifier.
|
|
32
|
+
const identifier = this.identifier.typeName
|
|
33
|
+
? `${this.identifier.name}: ${this.identifier.typeName}`
|
|
34
34
|
: this.identifier.name;
|
|
35
35
|
// @TODO move syntax to typescript package to enable language agnostic use
|
|
36
36
|
return (0, withDescription_js_1.withDescription)(`export ${this.identifier.entityType} ${identifier} = ${this.value};`, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EntityType } from './EntityType.js';
|
|
2
2
|
type ConstructorArgs = {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
typeName?: string;
|
|
5
5
|
entityType: EntityType;
|
|
6
6
|
};
|
|
7
7
|
export declare class Identifier {
|
|
8
8
|
name: string;
|
|
9
9
|
entityType: EntityType;
|
|
10
|
-
|
|
11
|
-
constructor({ name,
|
|
12
|
-
static createVariable(name: string,
|
|
10
|
+
typeName?: string;
|
|
11
|
+
constructor({ name, typeName, entityType }: ConstructorArgs);
|
|
12
|
+
static createVariable(name: string, typeName?: string): Identifier;
|
|
13
13
|
static createType(name: string): Identifier;
|
|
14
14
|
toString(): string;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identifier.d.ts","sourceRoot":"","sources":["../../src/dsl/Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,
|
|
1
|
+
{"version":3,"file":"Identifier.d.ts","sourceRoot":"","sources":["../../src/dsl/Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;gBAEL,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe;IAM3D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU;IAelE,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAO3C,QAAQ,IAAI,MAAM;CAGnB"}
|
package/script/dsl/Identifier.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Identifier = void 0;
|
|
4
4
|
const EntityType_js_1 = require("./EntityType.js");
|
|
5
5
|
class Identifier {
|
|
6
|
-
constructor({ name,
|
|
6
|
+
constructor({ name, typeName, entityType }) {
|
|
7
7
|
Object.defineProperty(this, "name", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
configurable: true,
|
|
@@ -16,21 +16,21 @@ class Identifier {
|
|
|
16
16
|
writable: true,
|
|
17
17
|
value: void 0
|
|
18
18
|
});
|
|
19
|
-
Object.defineProperty(this, "
|
|
19
|
+
Object.defineProperty(this, "typeName", {
|
|
20
20
|
enumerable: true,
|
|
21
21
|
configurable: true,
|
|
22
22
|
writable: true,
|
|
23
23
|
value: void 0
|
|
24
24
|
});
|
|
25
25
|
this.name = name;
|
|
26
|
-
this.
|
|
26
|
+
this.typeName = typeName;
|
|
27
27
|
this.entityType = entityType;
|
|
28
28
|
}
|
|
29
|
-
static createVariable(name,
|
|
30
|
-
if (
|
|
29
|
+
static createVariable(name, typeName) {
|
|
30
|
+
if (typeName) {
|
|
31
31
|
return new Identifier({
|
|
32
32
|
name,
|
|
33
|
-
|
|
33
|
+
typeName,
|
|
34
34
|
entityType: new EntityType_js_1.EntityType('variable')
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -9,7 +9,7 @@ type ModelInsertableConstructorArgs = {
|
|
|
9
9
|
settings: ContentSettings;
|
|
10
10
|
destinationPath: string;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type ToModelInsertableArgs = {
|
|
13
13
|
refName: RefName;
|
|
14
14
|
baseSettings: BaseSettings;
|
|
15
15
|
};
|
|
@@ -39,7 +39,7 @@ export type ModelInsertable<V> = {
|
|
|
39
39
|
id: string;
|
|
40
40
|
type: 'model';
|
|
41
41
|
_class: 'ModelInsertable';
|
|
42
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
42
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
43
43
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
44
44
|
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
45
45
|
pinnable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"ModelInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MA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B,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,UAAU,CAAA;IAC9E,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;IACvE,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,MAAM,OAAO,CAAA;CAE3B,GAAG,QAAQ,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateContext } from '../../context/GenerateContext.js';
|
|
2
2
|
import type { RefName } from '../../types/RefName.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type { IsModelSelectedArgs, ToModelExportPathArgs,
|
|
4
|
+
import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelInsertableArgs } from './ModelInsertable.js';
|
|
5
5
|
import type { Identifier } from '../Identifier.js';
|
|
6
6
|
export type ModelInsertableArgs = {
|
|
7
7
|
context: GenerateContext;
|
|
@@ -10,7 +10,7 @@ export type ModelInsertableArgs = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ModelConfig = {
|
|
12
12
|
id: string;
|
|
13
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
13
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
14
14
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
15
15
|
isSelected?: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
16
16
|
};
|
|
@@ -28,7 +28,7 @@ export declare const toModelBase: (config: ModelConfig) => {
|
|
|
28
28
|
id: string;
|
|
29
29
|
type: "model";
|
|
30
30
|
_class: "ModelInsertable";
|
|
31
|
-
toIdentifier: ({ refName, baseSettings }:
|
|
31
|
+
toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
|
|
32
32
|
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
33
33
|
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
34
34
|
isSupported: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,UAAU,CAAA;IAC9E,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,WAAW,WAAY,WAAW;;mBAWzB,mBAAmB;;;;;;;;;;;;kDAhBG,qBAAqB,KAAK,UAAU;kDACpC,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAgCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
|
|
@@ -8,7 +8,7 @@ type OperationInsertableConstructorArgs = {
|
|
|
8
8
|
settings: ContentSettings;
|
|
9
9
|
operation: OasOperation;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type ToOperationInsertableArgs = {
|
|
12
12
|
operation: OasOperation;
|
|
13
13
|
baseSettings: BaseSettings;
|
|
14
14
|
};
|
|
@@ -38,7 +38,7 @@ export type OperationInsertable<V> = {
|
|
|
38
38
|
id: string;
|
|
39
39
|
type: 'operation';
|
|
40
40
|
_class: 'OperationInsertable';
|
|
41
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
41
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
42
42
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
43
43
|
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
44
44
|
pinnable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,kBAAkB,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,OAAO,EAAE,eAAe,GAAG,sBAAsB,CAAA;IACtD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,kBAAkB,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,GAAG;IACtD,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kCAAkC,GAAG,CAAC,CAAA;IAC7E,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,qBAAqB,CAAA;IAC7B,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,UAAU,CAAA;IAC3C,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,MAAM,CAAA;IACvC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,KAAK,OAAO,CAAA;IAC7E,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAElD,GAAG,QAAQ,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateContext } from '../../context/GenerateContext.js';
|
|
2
2
|
import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ToOperationInsertableArgs, ToOperationExportPathArgs, IsOperationSelectedArgs } from './OperationInsertable.js';
|
|
5
5
|
import type { Identifier } from '../Identifier.js';
|
|
6
6
|
export type OperationInsertableArgs = {
|
|
7
7
|
context: GenerateContext;
|
|
@@ -10,7 +10,7 @@ export type OperationInsertableArgs = {
|
|
|
10
10
|
};
|
|
11
11
|
export type OperationConfig = {
|
|
12
12
|
id: string;
|
|
13
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
13
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
14
14
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
15
15
|
isSelected?: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
16
16
|
isSupported?: (operation: OasOperation) => boolean;
|
|
@@ -38,7 +38,7 @@ export declare const toOperationBase: (config: OperationConfig) => {
|
|
|
38
38
|
id: string;
|
|
39
39
|
type: "operation";
|
|
40
40
|
_class: "OperationInsertable";
|
|
41
|
-
toIdentifier: ({ operation, baseSettings }:
|
|
41
|
+
toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
|
|
42
42
|
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
43
43
|
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
44
44
|
isSupported: (operation: OasOperation) => 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;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,
|
|
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;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MA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