@pax2pay/client 0.4.6 → 0.4.7
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/model/Notification/CreatableType.d.ts +7 -0
- package/dist/model/Notification/CreatableType.js +8 -0
- package/dist/model/Notification/CreatableType.js.map +1 -0
- package/dist/model/Notification/InsertRequest.d.ts +2 -2
- package/dist/model/Notification/InsertRequest.js +2 -2
- package/dist/model/Notification/InsertRequest.js.map +1 -1
- package/dist/model/Notification/Type.d.ts +3 -3
- package/dist/model/Notification/Type.js +1 -1
- package/dist/model/Notification/Type.js.map +1 -1
- package/dist/model/Notification/index.d.ts +2 -0
- package/dist/model/Notification/index.js +2 -0
- package/dist/model/Notification/index.js.map +1 -1
- package/model/Notification/CreatableType.ts +9 -0
- package/model/Notification/InsertRequest.ts +3 -3
- package/model/Notification/Type.ts +1 -1
- package/model/Notification/index.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var CreatableType;
|
|
3
|
+
(function (CreatableType) {
|
|
4
|
+
CreatableType.values = ["news"];
|
|
5
|
+
CreatableType.type = isly.string(CreatableType.values);
|
|
6
|
+
CreatableType.is = CreatableType.type.is;
|
|
7
|
+
})(CreatableType || (CreatableType = {}));
|
|
8
|
+
//# sourceMappingURL=CreatableType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatableType.js","sourceRoot":"../","sources":["model/Notification/CreatableType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,aAAa,CAI7B;AAJD,WAAiB,aAAa;IAChB,oBAAM,GAAG,CAAC,MAAM,CAAU,CAAA;IAC1B,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB,cAAA,MAAM,CAAC,CAAA;IACzC,gBAAE,GAAG,cAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,aAAa,KAAb,aAAa,QAI7B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { CreatableType } from "./CreatableType";
|
|
1
2
|
import { Format } from "./Format";
|
|
2
3
|
import { Tag } from "./Tag";
|
|
3
4
|
import { TargetRequest } from "./TargetRequest";
|
|
4
|
-
import { Type } from "./Type";
|
|
5
5
|
export interface InsertRequest {
|
|
6
6
|
title: string;
|
|
7
7
|
body: string;
|
|
8
8
|
format: Format;
|
|
9
9
|
tag?: Tag;
|
|
10
|
-
type:
|
|
10
|
+
type: CreatableType;
|
|
11
11
|
target?: TargetRequest[];
|
|
12
12
|
createDefault?: boolean;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { CreatableType } from "./CreatableType";
|
|
2
3
|
import { Format } from "./Format";
|
|
3
4
|
import { Tag } from "./Tag";
|
|
4
5
|
import { TargetRequest } from "./TargetRequest";
|
|
5
|
-
import { Type } from "./Type";
|
|
6
6
|
export var InsertRequest;
|
|
7
7
|
(function (InsertRequest) {
|
|
8
8
|
InsertRequest.type = isly.object({
|
|
@@ -10,7 +10,7 @@ export var InsertRequest;
|
|
|
10
10
|
body: isly.string(),
|
|
11
11
|
format: Format.type,
|
|
12
12
|
tag: Tag.type.optional(),
|
|
13
|
-
type:
|
|
13
|
+
type: CreatableType.type,
|
|
14
14
|
target: TargetRequest.type.array().optional(),
|
|
15
15
|
createDefault: isly.boolean().optional(),
|
|
16
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsertRequest.js","sourceRoot":"../","sources":["model/Notification/InsertRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"InsertRequest.js","sourceRoot":"../","sources":["model/Notification/InsertRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAY/C,MAAM,KAAW,aAAa,CAW7B;AAXD,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB;QAC9C,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE;QACxB,IAAI,EAAE,aAAa,CAAC,IAAI;QACxB,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC7C,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAA;IACW,gBAAE,GAAG,cAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,aAAa,KAAb,aAAa,QAW7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type Type = typeof Type.values[number];
|
|
3
3
|
export declare namespace Type {
|
|
4
|
-
const values: readonly ["news"];
|
|
5
|
-
const type: isly.Type<"news">;
|
|
6
|
-
const is: (value: any | "news") => value is "news";
|
|
4
|
+
const values: readonly ["news", "alert"];
|
|
5
|
+
const type: isly.Type<"alert" | "news">;
|
|
6
|
+
const is: (value: any | ("alert" | "news")) => value is "alert" | "news";
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Type.js","sourceRoot":"../","sources":["model/Notification/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,IAAI,CAIpB;AAJD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,MAAM,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"../","sources":["model/Notification/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,IAAI,CAIpB;AAJD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAA;IACnC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;IAChC,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,IAAI,KAAJ,IAAI,QAIpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatableType as NotificationCreatableType } from "./CreatableType";
|
|
1
2
|
import { Format as NotificationFormat } from "./Format";
|
|
2
3
|
import { InsertRequest as NotificationInsertRequest } from "./InsertRequest";
|
|
3
4
|
import { Response as NotificationResponse } from "./Response";
|
|
@@ -11,4 +12,5 @@ export declare namespace Notification {
|
|
|
11
12
|
export import Tag = NotificationTag;
|
|
12
13
|
export import TargetRequest = NotificationTargetRequest;
|
|
13
14
|
export import Type = NotificationType;
|
|
15
|
+
export import CreatableType = NotificationCreatableType;
|
|
14
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatableType as NotificationCreatableType } from "./CreatableType";
|
|
1
2
|
import { Format as NotificationFormat } from "./Format";
|
|
2
3
|
import { InsertRequest as NotificationInsertRequest } from "./InsertRequest";
|
|
3
4
|
import { Response as NotificationResponse } from "./Response";
|
|
@@ -12,5 +13,6 @@ export var Notification;
|
|
|
12
13
|
Notification.Tag = NotificationTag;
|
|
13
14
|
Notification.TargetRequest = NotificationTargetRequest;
|
|
14
15
|
Notification.Type = NotificationType;
|
|
16
|
+
Notification.CreatableType = NotificationCreatableType;
|
|
15
17
|
})(Notification || (Notification = {}));
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7D,OAAO,EAAE,GAAG,IAAI,eAAe,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,IAAI,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEjD,MAAM,KAAW,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7D,OAAO,EAAE,GAAG,IAAI,eAAe,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,IAAI,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEjD,MAAM,KAAW,YAAY,CAQ5B;AARD,WAAiB,YAAY;IACd,mBAAM,GAAG,kBAAkB,CAAA;IAC3B,0BAAa,GAAG,yBAAyB,CAAA;IACzC,qBAAQ,GAAG,oBAAoB,CAAA;IAC/B,gBAAG,GAAG,eAAe,CAAA;IACrB,0BAAa,GAAG,yBAAyB,CAAA;IACzC,iBAAI,GAAG,gBAAgB,CAAA;IACvB,0BAAa,GAAG,yBAAyB,CAAA;AACxD,CAAC,EARgB,YAAY,KAAZ,YAAY,QAQ5B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
+
import { CreatableType } from "./CreatableType"
|
|
2
3
|
import { Format } from "./Format"
|
|
3
4
|
import { Tag } from "./Tag"
|
|
4
5
|
import { TargetRequest } from "./TargetRequest"
|
|
5
|
-
import { Type } from "./Type"
|
|
6
6
|
|
|
7
7
|
export interface InsertRequest {
|
|
8
8
|
title: string
|
|
9
9
|
body: string
|
|
10
10
|
format: Format
|
|
11
11
|
tag?: Tag
|
|
12
|
-
type:
|
|
12
|
+
type: CreatableType
|
|
13
13
|
target?: TargetRequest[]
|
|
14
14
|
createDefault?: boolean
|
|
15
15
|
}
|
|
@@ -20,7 +20,7 @@ export namespace InsertRequest {
|
|
|
20
20
|
body: isly.string(),
|
|
21
21
|
format: Format.type,
|
|
22
22
|
tag: Tag.type.optional(),
|
|
23
|
-
type:
|
|
23
|
+
type: CreatableType.type,
|
|
24
24
|
target: TargetRequest.type.array().optional(),
|
|
25
25
|
createDefault: isly.boolean().optional(),
|
|
26
26
|
})
|
|
@@ -3,7 +3,7 @@ import { isly } from "isly"
|
|
|
3
3
|
export type Type = typeof Type.values[number]
|
|
4
4
|
|
|
5
5
|
export namespace Type {
|
|
6
|
-
export const values = ["news"] as const
|
|
6
|
+
export const values = ["news", "alert"] as const
|
|
7
7
|
export const type = isly.string<Type>(values)
|
|
8
8
|
export const is = type.is
|
|
9
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreatableType as NotificationCreatableType } from "./CreatableType"
|
|
1
2
|
import { Format as NotificationFormat } from "./Format"
|
|
2
3
|
import { InsertRequest as NotificationInsertRequest } from "./InsertRequest"
|
|
3
4
|
import { Response as NotificationResponse } from "./Response"
|
|
@@ -12,4 +13,5 @@ export namespace Notification {
|
|
|
12
13
|
export import Tag = NotificationTag
|
|
13
14
|
export import TargetRequest = NotificationTargetRequest
|
|
14
15
|
export import Type = NotificationType
|
|
16
|
+
export import CreatableType = NotificationCreatableType
|
|
15
17
|
}
|