@mxpicture/gcp-functions-common 1.1.75 → 1.1.76
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/decorator/index.d.ts +0 -1
- package/dist/decorator/index.d.ts.map +1 -1
- package/dist/decorator/index.js +0 -1
- package/dist/decorator/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/decorator/deco.properties.d.ts +0 -30
- package/dist/decorator/deco.properties.d.ts.map +0 -1
- package/dist/decorator/deco.properties.js +0 -69
- package/dist/decorator/deco.properties.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
package/dist/decorator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DecoPropertyBase, DecoPropertyRaw } from "../types/types.deco.property.js";
|
|
2
|
-
import { DecoArray } from "./DecoArray.js";
|
|
3
|
-
import { DecoBoolean } from "./DecoBoolean.js";
|
|
4
|
-
import { DecoDate } from "./DecoDate.js";
|
|
5
|
-
import { DecoEnum } from "./DecoEnum.js";
|
|
6
|
-
import { DecoNumber } from "./DecoNumber.js";
|
|
7
|
-
import { DecoString } from "./DecoString.js";
|
|
8
|
-
/**
|
|
9
|
-
* Creates a typed {@link DecoProperty} instance from raw extracted data.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Dispatches on the `type` discriminator within the raw data to instantiate
|
|
13
|
-
* the correct subclass (string, number, boolean, date, or array).
|
|
14
|
-
* Object types are not yet supported and will return `null`.
|
|
15
|
-
*
|
|
16
|
-
* @param extr - The raw property data previously obtained via {@link DecoProperty.extractRaw}.
|
|
17
|
-
* @returns A reconstituted property instance, or `null` for unsupported types.
|
|
18
|
-
*/
|
|
19
|
-
export declare const createInstance: <T extends DecoPropertyBase>(extr: DecoPropertyRaw<T>) => DecoArray | DecoBoolean | DecoDate | DecoEnum | DecoNumber | DecoString | null;
|
|
20
|
-
/**
|
|
21
|
-
* Creates typed {@link DecoProperty} instances from an array of raw extracted data.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Filters out any entries that cannot be reconstituted (unsupported types).
|
|
25
|
-
*
|
|
26
|
-
* @param extracts - Array of raw property data objects.
|
|
27
|
-
* @returns Array of reconstituted property instances.
|
|
28
|
-
*/
|
|
29
|
-
export declare const createInstances: (extracts: DecoPropertyRaw<any>[]) => (DecoArray | DecoBoolean | DecoDate | DecoEnum | DecoNumber | DecoString)[];
|
|
30
|
-
//# sourceMappingURL=deco.properties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deco.properties.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.properties.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,gBAAgB,EACvD,MAAM,eAAe,CAAC,CAAC,CAAC,mFA8CzB,CAAC;AAEF;;;;;;;;GAQG;AAEH,eAAO,MAAM,eAAe,GAAI,UAAU,eAAe,CAAC,GAAG,CAAC,EAAE,gFACW,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { DecoPropertyType } from "./deco.enum.js";
|
|
2
|
-
import { DecoArray } from "./DecoArray.js";
|
|
3
|
-
import { DecoBoolean } from "./DecoBoolean.js";
|
|
4
|
-
import { DecoDate } from "./DecoDate.js";
|
|
5
|
-
import { DecoEnum } from "./DecoEnum.js";
|
|
6
|
-
import { DecoNumber } from "./DecoNumber.js";
|
|
7
|
-
import { DecoString } from "./DecoString.js";
|
|
8
|
-
/**
|
|
9
|
-
* Creates a typed {@link DecoProperty} instance from raw extracted data.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Dispatches on the `type` discriminator within the raw data to instantiate
|
|
13
|
-
* the correct subclass (string, number, boolean, date, or array).
|
|
14
|
-
* Object types are not yet supported and will return `null`.
|
|
15
|
-
*
|
|
16
|
-
* @param extr - The raw property data previously obtained via {@link DecoProperty.extractRaw}.
|
|
17
|
-
* @returns A reconstituted property instance, or `null` for unsupported types.
|
|
18
|
-
*/
|
|
19
|
-
export const createInstance = (extr) => {
|
|
20
|
-
if (extr.data.type === DecoPropertyType.string)
|
|
21
|
-
return new DecoString().setAll({
|
|
22
|
-
common: extr.common,
|
|
23
|
-
data: extr.data,
|
|
24
|
-
});
|
|
25
|
-
if (extr.data.type === DecoPropertyType.number)
|
|
26
|
-
return new DecoNumber().setAll({
|
|
27
|
-
common: extr.common,
|
|
28
|
-
data: extr.data,
|
|
29
|
-
});
|
|
30
|
-
if (extr.data.type === DecoPropertyType.boolean)
|
|
31
|
-
return new DecoBoolean().setAll({
|
|
32
|
-
common: extr.common,
|
|
33
|
-
data: extr.data,
|
|
34
|
-
});
|
|
35
|
-
if (extr.data.type === DecoPropertyType.date)
|
|
36
|
-
return new DecoDate().setAll({
|
|
37
|
-
common: extr.common,
|
|
38
|
-
data: extr.data,
|
|
39
|
-
});
|
|
40
|
-
if (extr.data.type === DecoPropertyType.array)
|
|
41
|
-
return new DecoArray().setAll({
|
|
42
|
-
common: extr.common,
|
|
43
|
-
data: extr.data,
|
|
44
|
-
});
|
|
45
|
-
if (extr.data.type === DecoPropertyType.enum)
|
|
46
|
-
return new DecoEnum().setAll({
|
|
47
|
-
common: extr.common,
|
|
48
|
-
data: extr.data,
|
|
49
|
-
});
|
|
50
|
-
// todo
|
|
51
|
-
// if (extr.data.type === DecoPropertyType.object)
|
|
52
|
-
// return new DecoObject().setAll({
|
|
53
|
-
// common: extr.common,
|
|
54
|
-
// data: extr.data,
|
|
55
|
-
// });
|
|
56
|
-
return null;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Creates typed {@link DecoProperty} instances from an array of raw extracted data.
|
|
60
|
-
*
|
|
61
|
-
* @remarks
|
|
62
|
-
* Filters out any entries that cannot be reconstituted (unsupported types).
|
|
63
|
-
*
|
|
64
|
-
* @param extracts - Array of raw property data objects.
|
|
65
|
-
* @returns Array of reconstituted property instances.
|
|
66
|
-
*/
|
|
67
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
68
|
-
export const createInstances = (extracts) => extracts.map(createInstance).filter((s) => s !== null && s !== undefined);
|
|
69
|
-
//# sourceMappingURL=deco.properties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deco.properties.js","sourceRoot":"","sources":["../../src/decorator/deco.properties.ts"],"names":[],"mappings":"AA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