@pax2pay/model-banking 0.1.75 → 0.1.77
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/Acquirer/index.ts +18 -0
- package/Settlement/Entry.ts +36 -8
- package/Settlement/index.ts +4 -0
- package/dist/Acquirer/index.d.ts +12 -0
- package/dist/Acquirer/index.js +13 -0
- package/dist/Acquirer/index.js.map +1 -0
- package/dist/{Merchant.js → Merchant/index.js} +1 -1
- package/dist/Merchant/index.js.map +1 -0
- package/dist/Settlement/Entry.d.ts +26 -4
- package/dist/Settlement/Entry.js +30 -4
- package/dist/Settlement/Entry.js.map +1 -1
- package/dist/Settlement/index.d.ts +1 -0
- package/dist/Settlement/index.js +3 -0
- package/dist/Settlement/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/Merchant.js.map +0 -1
- /package/{Merchant.ts → Merchant/index.ts} +0 -0
- /package/dist/{Merchant.d.ts → Merchant/index.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
3
|
+
|
|
4
|
+
export interface Acquirer {
|
|
5
|
+
id: string
|
|
6
|
+
number: string
|
|
7
|
+
country: isoly.CountryCode.Alpha2
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Acquirer {
|
|
11
|
+
export const type = isly.object<Acquirer>({
|
|
12
|
+
id: isly.string(),
|
|
13
|
+
number: isly.string(),
|
|
14
|
+
country: isly.fromIs("Acquirer.country", isoly.CountryCode.Alpha2.is),
|
|
15
|
+
})
|
|
16
|
+
export const is = type.is
|
|
17
|
+
export const flaw = type.flaw
|
|
18
|
+
}
|
package/Settlement/Entry.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
|
+
import { Acquirer } from "../Acquirer"
|
|
4
|
+
import { Merchant } from "../Merchant"
|
|
3
5
|
|
|
4
6
|
export type Entry = Succeeded | Failed
|
|
5
7
|
|
|
@@ -7,17 +9,19 @@ export interface Succeeded {
|
|
|
7
9
|
status: "succeeded"
|
|
8
10
|
type: "capture" | "cancel" | "refund"
|
|
9
11
|
account: string
|
|
10
|
-
card: string
|
|
11
|
-
transaction: string
|
|
12
|
+
card: { id: string; token: string; iin: string; last4: string }
|
|
13
|
+
transaction: { id: string; posted: isoly.DateTime; description: string }
|
|
12
14
|
amount: [isoly.Currency, number]
|
|
13
15
|
fee: [isoly.Currency, number]
|
|
16
|
+
merchant: Merchant
|
|
17
|
+
acquirer: Acquirer
|
|
14
18
|
}
|
|
15
19
|
export interface Failed {
|
|
16
20
|
status: "failed"
|
|
17
21
|
type?: "capture" | "cancel" | "refund"
|
|
18
22
|
account?: string
|
|
19
|
-
card?: string
|
|
20
|
-
transaction?: string
|
|
23
|
+
card?: { id: string; token: string; iin: string; last4: string }
|
|
24
|
+
transaction?: { id: string; posted: isoly.DateTime; description: string }
|
|
21
25
|
amount?: [isoly.Currency, number]
|
|
22
26
|
fee?: [isoly.Currency, number]
|
|
23
27
|
reason?: string
|
|
@@ -29,10 +33,21 @@ export namespace Entry {
|
|
|
29
33
|
status: isly.string("succeeded"),
|
|
30
34
|
type: isly.union(isly.string("capture"), isly.string("cancel"), isly.string("refund")),
|
|
31
35
|
account: isly.string(),
|
|
32
|
-
card: isly.string(
|
|
33
|
-
|
|
36
|
+
card: isly.object<{ id: string; token: string; iin: string; last4: string }>({
|
|
37
|
+
id: isly.string(),
|
|
38
|
+
token: isly.string(),
|
|
39
|
+
iin: isly.string(),
|
|
40
|
+
last4: isly.string(),
|
|
41
|
+
}),
|
|
42
|
+
transaction: isly.object<{ id: string; posted: string; description: string }>({
|
|
43
|
+
id: isly.string(),
|
|
44
|
+
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
45
|
+
description: isly.string(),
|
|
46
|
+
}),
|
|
34
47
|
amount: isly.tuple(isly.fromIs("Entry.amount", isoly.Currency.is), isly.number()),
|
|
35
48
|
fee: isly.tuple(isly.fromIs("Entry.fee", isoly.Currency.is), isly.number()),
|
|
49
|
+
merchant: Merchant.type,
|
|
50
|
+
acquirer: Acquirer.type,
|
|
36
51
|
})
|
|
37
52
|
export const is = type.is
|
|
38
53
|
}
|
|
@@ -41,8 +56,21 @@ export namespace Entry {
|
|
|
41
56
|
status: isly.string("failed"),
|
|
42
57
|
type: isly.union(isly.string("capture"), isly.string("cancel"), isly.string("refund")).optional(),
|
|
43
58
|
account: isly.string().optional(),
|
|
44
|
-
card: isly
|
|
45
|
-
|
|
59
|
+
card: isly
|
|
60
|
+
.object<{ id: string; token: string; iin: string; last4: string }>({
|
|
61
|
+
id: isly.string(),
|
|
62
|
+
token: isly.string(),
|
|
63
|
+
iin: isly.string(),
|
|
64
|
+
last4: isly.string(),
|
|
65
|
+
})
|
|
66
|
+
.optional(),
|
|
67
|
+
transaction: isly
|
|
68
|
+
.object<{ id: string; posted: string; description: string }>({
|
|
69
|
+
id: isly.string(),
|
|
70
|
+
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
71
|
+
description: isly.string(),
|
|
72
|
+
})
|
|
73
|
+
.optional(),
|
|
46
74
|
amount: isly.tuple(isly.fromIs("Entry.amount", isoly.Currency.is), isly.number()).optional(),
|
|
47
75
|
fee: isly.tuple(isly.fromIs("Entry.fee", isoly.Currency.is), isly.number()).optional(),
|
|
48
76
|
reason: isly.string().optional(),
|
package/Settlement/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export namespace Settlement {
|
|
|
8
8
|
export interface Base {
|
|
9
9
|
id: string
|
|
10
10
|
created: [string, isoly.DateTime]
|
|
11
|
+
regarding: isoly.Date
|
|
11
12
|
configuration: string
|
|
12
13
|
status: string
|
|
13
14
|
}
|
|
@@ -30,6 +31,7 @@ export namespace Settlement {
|
|
|
30
31
|
export const type = isly.object<Succeeded>({
|
|
31
32
|
id: isly.string(),
|
|
32
33
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
34
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
33
35
|
configuration: isly.string(),
|
|
34
36
|
settled: isly
|
|
35
37
|
.object<{ user: string; created: isoly.DateTime; transactions: Record<string, [isoly.Currency, number]> }>({
|
|
@@ -52,6 +54,7 @@ export namespace Settlement {
|
|
|
52
54
|
export const type = isly.object<Failed>({
|
|
53
55
|
id: isly.string(),
|
|
54
56
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
57
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
55
58
|
configuration: isly.string(),
|
|
56
59
|
status: isly.string("failed"),
|
|
57
60
|
reason: isly.string(),
|
|
@@ -62,6 +65,7 @@ export namespace Settlement {
|
|
|
62
65
|
export const type = isly.object<Ongoing>({
|
|
63
66
|
id: isly.string(),
|
|
64
67
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
68
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
65
69
|
configuration: isly.string(),
|
|
66
70
|
status: isly.string("ongoing"),
|
|
67
71
|
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
|
+
export interface Acquirer {
|
|
4
|
+
id: string;
|
|
5
|
+
number: string;
|
|
6
|
+
country: isoly.CountryCode.Alpha2;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Acquirer {
|
|
9
|
+
const type: isly.object.ExtendableType<Acquirer>;
|
|
10
|
+
const is: isly.Type.IsFunction<Acquirer>;
|
|
11
|
+
const flaw: isly.Type.FlawFunction;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
|
+
export var Acquirer;
|
|
4
|
+
(function (Acquirer) {
|
|
5
|
+
Acquirer.type = isly.object({
|
|
6
|
+
id: isly.string(),
|
|
7
|
+
number: isly.string(),
|
|
8
|
+
country: isly.fromIs("Acquirer.country", isoly.CountryCode.Alpha2.is),
|
|
9
|
+
});
|
|
10
|
+
Acquirer.is = Acquirer.type.is;
|
|
11
|
+
Acquirer.flaw = Acquirer.type.flaw;
|
|
12
|
+
})(Acquirer || (Acquirer = {}));
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Acquirer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAQ3B,MAAM,KAAW,QAAQ,CAQxB;AARD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;KACrE,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EARgB,QAAQ,KAAR,QAAQ,QAQxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Merchant/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
|
|
@@ -1,21 +1,43 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
+
import { Acquirer } from "../Acquirer";
|
|
4
|
+
import { Merchant } from "../Merchant";
|
|
3
5
|
export type Entry = Succeeded | Failed;
|
|
4
6
|
export interface Succeeded {
|
|
5
7
|
status: "succeeded";
|
|
6
8
|
type: "capture" | "cancel" | "refund";
|
|
7
9
|
account: string;
|
|
8
|
-
card:
|
|
9
|
-
|
|
10
|
+
card: {
|
|
11
|
+
id: string;
|
|
12
|
+
token: string;
|
|
13
|
+
iin: string;
|
|
14
|
+
last4: string;
|
|
15
|
+
};
|
|
16
|
+
transaction: {
|
|
17
|
+
id: string;
|
|
18
|
+
posted: isoly.DateTime;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
10
21
|
amount: [isoly.Currency, number];
|
|
11
22
|
fee: [isoly.Currency, number];
|
|
23
|
+
merchant: Merchant;
|
|
24
|
+
acquirer: Acquirer;
|
|
12
25
|
}
|
|
13
26
|
export interface Failed {
|
|
14
27
|
status: "failed";
|
|
15
28
|
type?: "capture" | "cancel" | "refund";
|
|
16
29
|
account?: string;
|
|
17
|
-
card?:
|
|
18
|
-
|
|
30
|
+
card?: {
|
|
31
|
+
id: string;
|
|
32
|
+
token: string;
|
|
33
|
+
iin: string;
|
|
34
|
+
last4: string;
|
|
35
|
+
};
|
|
36
|
+
transaction?: {
|
|
37
|
+
id: string;
|
|
38
|
+
posted: isoly.DateTime;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
19
41
|
amount?: [isoly.Currency, number];
|
|
20
42
|
fee?: [isoly.Currency, number];
|
|
21
43
|
reason?: string;
|
package/dist/Settlement/Entry.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
+
import { Acquirer } from "../Acquirer";
|
|
4
|
+
import { Merchant } from "../Merchant";
|
|
3
5
|
export var Entry;
|
|
4
6
|
(function (Entry) {
|
|
5
7
|
let Succeeded;
|
|
@@ -8,10 +10,21 @@ export var Entry;
|
|
|
8
10
|
status: isly.string("succeeded"),
|
|
9
11
|
type: isly.union(isly.string("capture"), isly.string("cancel"), isly.string("refund")),
|
|
10
12
|
account: isly.string(),
|
|
11
|
-
card: isly.
|
|
12
|
-
|
|
13
|
+
card: isly.object({
|
|
14
|
+
id: isly.string(),
|
|
15
|
+
token: isly.string(),
|
|
16
|
+
iin: isly.string(),
|
|
17
|
+
last4: isly.string(),
|
|
18
|
+
}),
|
|
19
|
+
transaction: isly.object({
|
|
20
|
+
id: isly.string(),
|
|
21
|
+
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
22
|
+
description: isly.string(),
|
|
23
|
+
}),
|
|
13
24
|
amount: isly.tuple(isly.fromIs("Entry.amount", isoly.Currency.is), isly.number()),
|
|
14
25
|
fee: isly.tuple(isly.fromIs("Entry.fee", isoly.Currency.is), isly.number()),
|
|
26
|
+
merchant: Merchant.type,
|
|
27
|
+
acquirer: Acquirer.type,
|
|
15
28
|
});
|
|
16
29
|
Succeeded.is = Succeeded.type.is;
|
|
17
30
|
})(Succeeded = Entry.Succeeded || (Entry.Succeeded = {}));
|
|
@@ -21,8 +34,21 @@ export var Entry;
|
|
|
21
34
|
status: isly.string("failed"),
|
|
22
35
|
type: isly.union(isly.string("capture"), isly.string("cancel"), isly.string("refund")).optional(),
|
|
23
36
|
account: isly.string().optional(),
|
|
24
|
-
card: isly
|
|
25
|
-
|
|
37
|
+
card: isly
|
|
38
|
+
.object({
|
|
39
|
+
id: isly.string(),
|
|
40
|
+
token: isly.string(),
|
|
41
|
+
iin: isly.string(),
|
|
42
|
+
last4: isly.string(),
|
|
43
|
+
})
|
|
44
|
+
.optional(),
|
|
45
|
+
transaction: isly
|
|
46
|
+
.object({
|
|
47
|
+
id: isly.string(),
|
|
48
|
+
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
49
|
+
description: isly.string(),
|
|
50
|
+
})
|
|
51
|
+
.optional(),
|
|
26
52
|
amount: isly.tuple(isly.fromIs("Entry.amount", isoly.Currency.is), isly.number()).optional(),
|
|
27
53
|
fee: isly.tuple(isly.fromIs("Entry.fee", isoly.Currency.is), isly.number()).optional(),
|
|
28
54
|
reason: isly.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entry.js","sourceRoot":"../","sources":["Settlement/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Entry.js","sourceRoot":"../","sources":["Settlement/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AA0BtC,MAAM,KAAW,KAAK,CAqDrB;AArDD,WAAiB,KAAK;IACrB,IAAiB,SAAS,CAsBzB;IAtBD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;YAChC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,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,GAAG,EAAE,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAA;QACW,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IAC1B,CAAC,EA1BgB,MAAM,GAAN,YAAM,KAAN,YAAM,QA0BtB;IACY,UAAI,GAAG,IAAI,CAAC,KAAK,CAA2B,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACxE,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EArDgB,KAAK,KAAL,KAAK,QAqDrB"}
|
package/dist/Settlement/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export var Settlement;
|
|
|
8
8
|
Succeeded.type = isly.object({
|
|
9
9
|
id: isly.string(),
|
|
10
10
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
11
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
11
12
|
configuration: isly.string(),
|
|
12
13
|
settled: isly
|
|
13
14
|
.object({
|
|
@@ -28,6 +29,7 @@ export var Settlement;
|
|
|
28
29
|
Failed.type = isly.object({
|
|
29
30
|
id: isly.string(),
|
|
30
31
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
32
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
31
33
|
configuration: isly.string(),
|
|
32
34
|
status: isly.string("failed"),
|
|
33
35
|
reason: isly.string(),
|
|
@@ -39,6 +41,7 @@ export var Settlement;
|
|
|
39
41
|
Ongoing.type = isly.object({
|
|
40
42
|
id: isly.string(),
|
|
41
43
|
created: isly.tuple(isly.string(), isly.fromIs("Settlement.created", isoly.DateTime.is)),
|
|
44
|
+
regarding: isly.fromIs("Settlement.regarding", isoly.Date.is),
|
|
42
45
|
configuration: isly.string(),
|
|
43
46
|
status: isly.string("ongoing"),
|
|
44
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Settlement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,SAAS,CAAA;AAGlD,MAAM,KAAW,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Settlement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,SAAS,CAAA;AAGlD,MAAM,KAAW,UAAU,CAyE1B;AAzED,WAAiB,UAAU;IAwB1B,IAAiB,SAAS,CAsBzB;IAtBD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;YACjB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACxF,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7D,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE;YAC5B,OAAO,EAAE,IAAI;iBACX,MAAM,CAAoG;gBAC1G,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;gBACnB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,4BAA4B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACrE,YAAY,EAAE,IAAI,CAAC,MAAM,CACxB,IAAI,CAAC,MAAM,EAAE,EACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,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AG,IAAI,CAAC,MAAM,CAAW;QACzC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
|
|
File without changes
|
|
File without changes
|