effect-app 1.30.3 → 1.30.4
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/CHANGELOG.md +6 -0
- package/_cjs/Operations.cjs +6 -6
- package/_cjs/Operations.cjs.map +1 -1
- package/dist/Operations.d.ts +25 -25
- package/dist/Operations.d.ts.map +1 -1
- package/dist/Operations.js +4 -4
- package/package.json +1 -1
- package/src/Operations.ts +15 -11
package/CHANGELOG.md
CHANGED
package/_cjs/Operations.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OperationSuccess = exports.OperationResult = exports.OperationProgress = exports.OperationId = exports.OperationFailure = exports.Operation = void 0;
|
|
7
7
|
var S = _interopRequireWildcard(require("./schema.cjs"));
|
|
8
8
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
9
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -13,15 +13,15 @@ class OperationProgress extends S.ExtendedClass()({
|
|
|
13
13
|
total: S.NonNegativeInt
|
|
14
14
|
}) {}
|
|
15
15
|
exports.OperationProgress = OperationProgress;
|
|
16
|
-
class
|
|
16
|
+
class OperationSuccess extends S.ExtendedTaggedClass()("OperationSuccess", {
|
|
17
17
|
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
18
18
|
}) {}
|
|
19
|
-
exports.
|
|
20
|
-
class
|
|
19
|
+
exports.OperationSuccess = OperationSuccess;
|
|
20
|
+
class OperationFailure extends S.ExtendedTaggedClass()("OperationFailure", {
|
|
21
21
|
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
22
22
|
}) {}
|
|
23
|
-
exports.
|
|
24
|
-
const OperationResult = exports.OperationResult = S.TaggedUnion(
|
|
23
|
+
exports.OperationFailure = OperationFailure;
|
|
24
|
+
const OperationResult = exports.OperationResult = S.TaggedUnion(OperationSuccess, OperationFailure);
|
|
25
25
|
class Operation extends S.ExtendedClass()({
|
|
26
26
|
id: OperationId,
|
|
27
27
|
title: S.NonEmptyString2k,
|
package/_cjs/Operations.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operations.cjs","names":["S","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","OperationId","exports","StringId","OperationProgress","ExtendedClass","completed","NonNegativeInt","total","
|
|
1
|
+
{"version":3,"file":"Operations.cjs","names":["S","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","OperationId","exports","StringId","OperationProgress","ExtendedClass","completed","NonNegativeInt","total","OperationSuccess","ExtendedTaggedClass","message","NullOr","NonEmptyString2k","withDefault","OperationFailure","OperationResult","TaggedUnion","Operation","id","title","progress","optional","result","createdAt","Date","updatedAt"],"sources":["../src/Operations.ts"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
|
package/dist/Operations.d.ts
CHANGED
|
@@ -20,32 +20,32 @@ declare const OperationProgress_base: S.EnhancedClass<OperationProgress, {
|
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export declare class OperationProgress extends OperationProgress_base {
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
24
|
-
readonly _tag: S.tag<"
|
|
23
|
+
declare const OperationSuccess_base: S.EnhancedClass<OperationSuccess, {
|
|
24
|
+
readonly _tag: S.tag<"OperationSuccess">;
|
|
25
25
|
} & {
|
|
26
26
|
message: S.PropertySignature<":", (string & S.NonEmptyString2kBrand) | null, never, ":", string | null, true, never>;
|
|
27
|
-
},
|
|
27
|
+
}, OperationSuccess.From, never, {
|
|
28
28
|
readonly message?: (string & S.NonEmptyString2kBrand) | null;
|
|
29
29
|
}, {}, {}>;
|
|
30
|
-
export declare class
|
|
30
|
+
export declare class OperationSuccess extends OperationSuccess_base {
|
|
31
31
|
}
|
|
32
|
-
declare const
|
|
33
|
-
readonly _tag: S.tag<"
|
|
32
|
+
declare const OperationFailure_base: S.EnhancedClass<OperationFailure, {
|
|
33
|
+
readonly _tag: S.tag<"OperationFailure">;
|
|
34
34
|
} & {
|
|
35
35
|
message: S.PropertySignature<":", (string & S.NonEmptyString2kBrand) | null, never, ":", string | null, true, never>;
|
|
36
|
-
},
|
|
36
|
+
}, OperationFailure.From, never, {
|
|
37
37
|
readonly message?: (string & S.NonEmptyString2kBrand) | null;
|
|
38
38
|
}, {}, {}>;
|
|
39
|
-
export declare class
|
|
39
|
+
export declare class OperationFailure extends OperationFailure_base {
|
|
40
40
|
}
|
|
41
|
-
export declare const OperationResult: S.Union<[typeof
|
|
42
|
-
is: S.Is<
|
|
43
|
-
isAnyOf: S.IsAny<
|
|
41
|
+
export declare const OperationResult: S.Union<[typeof OperationSuccess, typeof OperationFailure]> & {
|
|
42
|
+
is: S.Is<OperationSuccess | OperationFailure>;
|
|
43
|
+
isAnyOf: S.IsAny<OperationSuccess | OperationFailure>;
|
|
44
44
|
tagMap: {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
OperationSuccess: typeof OperationSuccess;
|
|
46
|
+
OperationFailure: typeof OperationFailure;
|
|
47
47
|
};
|
|
48
|
-
tags: S.Literal<["
|
|
48
|
+
tags: S.Literal<["OperationSuccess", "OperationFailure"]>;
|
|
49
49
|
};
|
|
50
50
|
export type OperationResult = S.Schema.Type<typeof OperationResult>;
|
|
51
51
|
declare const Operation_base: S.EnhancedClass<Operation, {
|
|
@@ -58,14 +58,14 @@ declare const Operation_base: S.EnhancedClass<Operation, {
|
|
|
58
58
|
};
|
|
59
59
|
title: S.WithDefaults<S.Schema<string & S.NonEmptyString2kBrand, string, never>> & S.Schema<string & S.NonEmptyString2kBrand, string, never>;
|
|
60
60
|
progress: S.optional<typeof OperationProgress>;
|
|
61
|
-
result: S.optional<S.Union<[typeof
|
|
62
|
-
is: S.Is<
|
|
63
|
-
isAnyOf: S.IsAny<
|
|
61
|
+
result: S.optional<S.Union<[typeof OperationSuccess, typeof OperationFailure]> & {
|
|
62
|
+
is: S.Is<OperationSuccess | OperationFailure>;
|
|
63
|
+
isAnyOf: S.IsAny<OperationSuccess | OperationFailure>;
|
|
64
64
|
tagMap: {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
OperationSuccess: typeof OperationSuccess;
|
|
66
|
+
OperationFailure: typeof OperationFailure;
|
|
67
67
|
};
|
|
68
|
-
tags: S.Literal<["
|
|
68
|
+
tags: S.Literal<["OperationSuccess", "OperationFailure"]>;
|
|
69
69
|
}>;
|
|
70
70
|
createdAt: S.PropertySignature<":", Date, never, ":", string, true, never>;
|
|
71
71
|
updatedAt: S.PropertySignature<":", Date | null, never, ":", string | null, true, never>;
|
|
@@ -74,7 +74,7 @@ declare const Operation_base: S.EnhancedClass<Operation, {
|
|
|
74
74
|
readonly title: string & S.NonEmptyString2kBrand;
|
|
75
75
|
readonly createdAt?: Date;
|
|
76
76
|
readonly progress?: OperationProgress | undefined;
|
|
77
|
-
readonly result?:
|
|
77
|
+
readonly result?: OperationSuccess | OperationFailure | undefined;
|
|
78
78
|
readonly updatedAt?: Date | null;
|
|
79
79
|
}, {}, {}>;
|
|
80
80
|
export declare class Operation extends Operation_base {
|
|
@@ -83,12 +83,12 @@ export declare namespace OperationProgress {
|
|
|
83
83
|
interface From extends S.Struct.Encoded<typeof OperationProgress["fields"]> {
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
export declare namespace
|
|
87
|
-
interface From extends S.Struct.Encoded<typeof
|
|
86
|
+
export declare namespace OperationSuccess {
|
|
87
|
+
interface From extends S.Struct.Encoded<typeof OperationSuccess["fields"]> {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
export declare namespace
|
|
91
|
-
interface From extends S.Struct.Encoded<typeof
|
|
90
|
+
export declare namespace OperationFailure {
|
|
91
|
+
interface From extends S.Struct.Encoded<typeof OperationFailure["fields"]> {
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
export declare namespace Operation {
|
package/dist/Operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operations.d.ts","sourceRoot":"","sources":["../src/Operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,QAAQ,CAAA;AACpC,eAAO,MAAM,WAAW;;;;;;CAAa,CAAA;;;;;;;;;;;;AAErC,qBAAa,iBAAkB,SAAQ,sBAMrC;CAAG;;;;;;;;AAEL,qBAAa,
|
|
1
|
+
{"version":3,"file":"Operations.d.ts","sourceRoot":"","sources":["../src/Operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,QAAQ,CAAA;AACpC,eAAO,MAAM,WAAW;;;;;;CAAa,CAAA;;;;;;;;;;;;AAErC,qBAAa,iBAAkB,SAAQ,sBAMrC;CAAG;;;;;;;;AAEL,qBAAa,gBACX,SAAQ,qBAEN;CACF;;;;;;;;AAEF,qBAAa,gBACX,SAAQ,qBAEN;CACF;AAEF,eAAO,MAAM,eAAe;;;;;;;;CAAoD,CAAA;AAChF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEnE,qBAAa,SAAU,SAAQ,cAO7B;CAAG;AAKL,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,IAAK,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;KAAG;CACtF;AACD,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAK,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KAAG;CACrF;AACD,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAK,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KAAG;CACrF;AACD,yBAAiB,SAAS,CAAC;IACzB,UAAiB,IAAK,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;KAAG;CAC9E"}
|
package/dist/Operations.js
CHANGED
|
@@ -5,15 +5,15 @@ export class OperationProgress extends S.ExtendedClass()({
|
|
|
5
5
|
total: S.NonNegativeInt
|
|
6
6
|
}) {
|
|
7
7
|
}
|
|
8
|
-
export class
|
|
8
|
+
export class OperationSuccess extends S.ExtendedTaggedClass()("OperationSuccess", {
|
|
9
9
|
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
10
10
|
}) {
|
|
11
11
|
}
|
|
12
|
-
export class
|
|
12
|
+
export class OperationFailure extends S.ExtendedTaggedClass()("OperationFailure", {
|
|
13
13
|
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
14
14
|
}) {
|
|
15
15
|
}
|
|
16
|
-
export const OperationResult = S.TaggedUnion(
|
|
16
|
+
export const OperationResult = S.TaggedUnion(OperationSuccess, OperationFailure);
|
|
17
17
|
export class Operation extends S.ExtendedClass()({
|
|
18
18
|
id: OperationId,
|
|
19
19
|
title: S.NonEmptyString2k,
|
|
@@ -26,4 +26,4 @@ export class Operation extends S.ExtendedClass()({
|
|
|
26
26
|
/* eslint-enable */
|
|
27
27
|
//
|
|
28
28
|
// codegen:end
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlcmF0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9PcGVyYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxDQUFDLE1BQU0sYUFBYSxDQUFBO0FBR2hDLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFBO0FBRXJDLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxDQUFDLENBQUMsYUFBYSxFQUduRCxDQUFDO0lBQ0YsU0FBUyxFQUFFLENBQUMsQ0FBQyxjQUFjO0lBQzNCLEtBQUssRUFBRSxDQUFDLENBQUMsY0FBYztDQUN4QixDQUFDO0NBQUc7QUFFTCxNQUFNLE9BQU8sZ0JBQ1gsU0FBUSxDQUFDLENBQUMsbUJBQW1CLEVBQTJDLENBQUMsa0JBQWtCLEVBQUU7SUFDM0YsT0FBTyxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLGdCQUFnQixDQUFDLENBQUMsV0FBVztDQUNsRCxDQUFDO0NBQ0Y7QUFFRixNQUFNLE9BQU8sZ0JBQ1gsU0FBUSxDQUFDLENBQUMsbUJBQW1CLEVBQTJDLENBQUMsa0JBQWtCLEVBQUU7SUFDM0YsT0FBTyxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLGdCQUFnQixDQUFDLENBQUMsV0FBVztDQUNsRCxDQUFDO0NBQ0Y7QUFFRixNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFBO0FBR2hGLE1BQU0sT0FBTyxTQUFVLFNBQVEsQ0FBQyxDQUFDLGFBQWEsRUFBNkIsQ0FBQztJQUMxRSxFQUFFLEVBQUUsV0FBVztJQUNmLEtBQUssRUFBRSxDQUFDLENBQUMsZ0JBQWdCO0lBQ3pCLFFBQVEsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLGlCQUFpQixDQUFDO0lBQ3ZDLE1BQU0sRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLGVBQWUsQ0FBQztJQUNuQyxTQUFTLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxXQUFXO0lBQzdCLFNBQVMsRUFBRSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxXQUFXO0NBQ3hDLENBQUM7Q0FBRztBQWlCTCxtQkFBbUI7QUFDbkIsRUFBRTtBQUNGLGNBQWMifQ==
|
package/package.json
CHANGED
package/src/Operations.ts
CHANGED
|
@@ -11,15 +11,19 @@ export class OperationProgress extends S.ExtendedClass<
|
|
|
11
11
|
total: S.NonNegativeInt
|
|
12
12
|
}) {}
|
|
13
13
|
|
|
14
|
-
export class
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export class OperationSuccess
|
|
15
|
+
extends S.ExtendedTaggedClass<OperationSuccess, OperationSuccess.From>()("OperationSuccess", {
|
|
16
|
+
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
17
|
+
})
|
|
18
|
+
{}
|
|
17
19
|
|
|
18
|
-
export class
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export class OperationFailure
|
|
21
|
+
extends S.ExtendedTaggedClass<OperationFailure, OperationFailure.From>()("OperationFailure", {
|
|
22
|
+
message: S.NullOr(S.NonEmptyString2k).withDefault
|
|
23
|
+
})
|
|
24
|
+
{}
|
|
21
25
|
|
|
22
|
-
export const OperationResult = S.TaggedUnion(
|
|
26
|
+
export const OperationResult = S.TaggedUnion(OperationSuccess, OperationFailure)
|
|
23
27
|
export type OperationResult = S.Schema.Type<typeof OperationResult>
|
|
24
28
|
|
|
25
29
|
export class Operation extends S.ExtendedClass<Operation, Operation.From>()({
|
|
@@ -37,11 +41,11 @@ export class Operation extends S.ExtendedClass<Operation, Operation.From>()({
|
|
|
37
41
|
export namespace OperationProgress {
|
|
38
42
|
export interface From extends S.Struct.Encoded<typeof OperationProgress["fields"]> {}
|
|
39
43
|
}
|
|
40
|
-
export namespace
|
|
41
|
-
export interface From extends S.Struct.Encoded<typeof
|
|
44
|
+
export namespace OperationSuccess {
|
|
45
|
+
export interface From extends S.Struct.Encoded<typeof OperationSuccess["fields"]> {}
|
|
42
46
|
}
|
|
43
|
-
export namespace
|
|
44
|
-
export interface From extends S.Struct.Encoded<typeof
|
|
47
|
+
export namespace OperationFailure {
|
|
48
|
+
export interface From extends S.Struct.Encoded<typeof OperationFailure["fields"]> {}
|
|
45
49
|
}
|
|
46
50
|
export namespace Operation {
|
|
47
51
|
export interface From extends S.Struct.Encoded<typeof Operation["fields"]> {}
|