@remnawave/backend-contract 2.0.0-alpha.2 → 2.0.0-alpha.20
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/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- package/build/backend/api/controllers/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +15 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +15 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +4 -2
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +413 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +407 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +399 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +62 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +85 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +75 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +75 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/index.d.ts +4 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/infra-billing-node.schema.d.ts +153 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/infra-provider.schema.d.ts +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +41 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +3 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +15 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +4 -2
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/constants/errors/errors.js +75 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/index.js +4 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/models/infra-provider.schema.js +41 -0
- package/build/frontend/models/nodes.schema.js +3 -0
- package/package.json +1 -1
@@ -33,30 +33,30 @@ export declare namespace GetNodeUserUsageByRangeCommand {
|
|
33
33
|
date: Date;
|
34
34
|
username: string;
|
35
35
|
userUuid: string;
|
36
|
-
total: number;
|
37
36
|
nodeUuid: string;
|
37
|
+
total: number;
|
38
38
|
}, {
|
39
39
|
date: string;
|
40
40
|
username: string;
|
41
41
|
userUuid: string;
|
42
|
-
total: number;
|
43
42
|
nodeUuid: string;
|
43
|
+
total: number;
|
44
44
|
}>, "many">;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
46
|
response: {
|
47
47
|
date: Date;
|
48
48
|
username: string;
|
49
49
|
userUuid: string;
|
50
|
-
total: number;
|
51
50
|
nodeUuid: string;
|
51
|
+
total: number;
|
52
52
|
}[];
|
53
53
|
}, {
|
54
54
|
response: {
|
55
55
|
date: string;
|
56
56
|
username: string;
|
57
57
|
userUuid: string;
|
58
|
-
total: number;
|
59
58
|
nodeUuid: string;
|
59
|
+
total: number;
|
60
60
|
}[];
|
61
61
|
}>;
|
62
62
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -28,8 +28,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
29
29
|
date: Date;
|
30
30
|
nodeName: string;
|
31
|
-
total: number;
|
32
31
|
nodeUuid: string;
|
32
|
+
total: number;
|
33
33
|
totalDownload: number;
|
34
34
|
totalUpload: number;
|
35
35
|
humanReadableTotal: string;
|
@@ -38,8 +38,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
38
38
|
}, {
|
39
39
|
date: string;
|
40
40
|
nodeName: string;
|
41
|
-
total: number;
|
42
41
|
nodeUuid: string;
|
42
|
+
total: number;
|
43
43
|
totalDownload: number;
|
44
44
|
totalUpload: number;
|
45
45
|
humanReadableTotal: string;
|
@@ -50,8 +50,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
50
50
|
response: {
|
51
51
|
date: Date;
|
52
52
|
nodeName: string;
|
53
|
-
total: number;
|
54
53
|
nodeUuid: string;
|
54
|
+
total: number;
|
55
55
|
totalDownload: number;
|
56
56
|
totalUpload: number;
|
57
57
|
humanReadableTotal: string;
|
@@ -62,8 +62,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
62
62
|
response: {
|
63
63
|
date: string;
|
64
64
|
nodeName: string;
|
65
|
-
total: number;
|
66
65
|
nodeUuid: string;
|
66
|
+
total: number;
|
67
67
|
totalDownload: number;
|
68
68
|
totalUpload: number;
|
69
69
|
humanReadableTotal: string;
|
@@ -60,6 +60,29 @@ export declare namespace UpdateNodeCommand {
|
|
60
60
|
port: number | null;
|
61
61
|
rawInbound?: unknown;
|
62
62
|
}>, "many">>;
|
63
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
64
|
+
provider: z.ZodNullable<z.ZodObject<{
|
65
|
+
uuid: z.ZodString;
|
66
|
+
name: z.ZodString;
|
67
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
68
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
69
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
70
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
uuid: string;
|
73
|
+
createdAt: Date;
|
74
|
+
updatedAt: Date;
|
75
|
+
name: string;
|
76
|
+
faviconLink: string | null;
|
77
|
+
loginUrl: string | null;
|
78
|
+
}, {
|
79
|
+
uuid: string;
|
80
|
+
createdAt: string;
|
81
|
+
updatedAt: string;
|
82
|
+
name: string;
|
83
|
+
faviconLink: string | null;
|
84
|
+
loginUrl: string | null;
|
85
|
+
}>>;
|
63
86
|
}, "uuid"> & {
|
64
87
|
name: z.ZodOptional<z.ZodString>;
|
65
88
|
address: z.ZodOptional<z.ZodString>;
|
@@ -72,6 +95,7 @@ export declare namespace UpdateNodeCommand {
|
|
72
95
|
consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
73
96
|
activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
|
74
97
|
activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
98
|
+
providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
75
99
|
}, "strip", z.ZodTypeAny, {
|
76
100
|
uuid: string;
|
77
101
|
name?: string | undefined;
|
@@ -85,6 +109,7 @@ export declare namespace UpdateNodeCommand {
|
|
85
109
|
consumptionMultiplier?: number | undefined;
|
86
110
|
activeConfigProfileUuid?: string | undefined;
|
87
111
|
activeInbounds?: string[] | undefined;
|
112
|
+
providerUuid?: string | null | undefined;
|
88
113
|
}, {
|
89
114
|
uuid: string;
|
90
115
|
name?: string | undefined;
|
@@ -98,6 +123,7 @@ export declare namespace UpdateNodeCommand {
|
|
98
123
|
consumptionMultiplier?: number | undefined;
|
99
124
|
activeConfigProfileUuid?: string | undefined;
|
100
125
|
activeInbounds?: string[] | undefined;
|
126
|
+
providerUuid?: string | null | undefined;
|
101
127
|
}>;
|
102
128
|
type Request = z.infer<typeof RequestSchema>;
|
103
129
|
const ResponseSchema: z.ZodObject<{
|
@@ -158,6 +184,29 @@ export declare namespace UpdateNodeCommand {
|
|
158
184
|
port: number | null;
|
159
185
|
rawInbound?: unknown;
|
160
186
|
}>, "many">>;
|
187
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
188
|
+
provider: z.ZodNullable<z.ZodObject<{
|
189
|
+
uuid: z.ZodString;
|
190
|
+
name: z.ZodString;
|
191
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
192
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
193
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
194
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
196
|
+
uuid: string;
|
197
|
+
createdAt: Date;
|
198
|
+
updatedAt: Date;
|
199
|
+
name: string;
|
200
|
+
faviconLink: string | null;
|
201
|
+
loginUrl: string | null;
|
202
|
+
}, {
|
203
|
+
uuid: string;
|
204
|
+
createdAt: string;
|
205
|
+
updatedAt: string;
|
206
|
+
name: string;
|
207
|
+
faviconLink: string | null;
|
208
|
+
loginUrl: string | null;
|
209
|
+
}>>;
|
161
210
|
}, "strip", z.ZodTypeAny, {
|
162
211
|
uuid: string;
|
163
212
|
createdAt: Date;
|
@@ -197,6 +246,15 @@ export declare namespace UpdateNodeCommand {
|
|
197
246
|
port: number | null;
|
198
247
|
rawInbound?: unknown;
|
199
248
|
}[] | null;
|
249
|
+
providerUuid: string | null;
|
250
|
+
provider: {
|
251
|
+
uuid: string;
|
252
|
+
createdAt: Date;
|
253
|
+
updatedAt: Date;
|
254
|
+
name: string;
|
255
|
+
faviconLink: string | null;
|
256
|
+
loginUrl: string | null;
|
257
|
+
} | null;
|
200
258
|
}, {
|
201
259
|
uuid: string;
|
202
260
|
createdAt: string;
|
@@ -236,6 +294,15 @@ export declare namespace UpdateNodeCommand {
|
|
236
294
|
port: number | null;
|
237
295
|
rawInbound?: unknown;
|
238
296
|
}[] | null;
|
297
|
+
providerUuid: string | null;
|
298
|
+
provider: {
|
299
|
+
uuid: string;
|
300
|
+
createdAt: string;
|
301
|
+
updatedAt: string;
|
302
|
+
name: string;
|
303
|
+
faviconLink: string | null;
|
304
|
+
loginUrl: string | null;
|
305
|
+
} | null;
|
239
306
|
}>;
|
240
307
|
}, "strip", z.ZodTypeAny, {
|
241
308
|
response: {
|
@@ -277,6 +344,15 @@ export declare namespace UpdateNodeCommand {
|
|
277
344
|
port: number | null;
|
278
345
|
rawInbound?: unknown;
|
279
346
|
}[] | null;
|
347
|
+
providerUuid: string | null;
|
348
|
+
provider: {
|
349
|
+
uuid: string;
|
350
|
+
createdAt: Date;
|
351
|
+
updatedAt: Date;
|
352
|
+
name: string;
|
353
|
+
faviconLink: string | null;
|
354
|
+
loginUrl: string | null;
|
355
|
+
} | null;
|
280
356
|
};
|
281
357
|
}, {
|
282
358
|
response: {
|
@@ -318,6 +394,15 @@ export declare namespace UpdateNodeCommand {
|
|
318
394
|
port: number | null;
|
319
395
|
rawInbound?: unknown;
|
320
396
|
}[] | null;
|
397
|
+
providerUuid: string | null;
|
398
|
+
provider: {
|
399
|
+
uuid: string;
|
400
|
+
createdAt: string;
|
401
|
+
updatedAt: string;
|
402
|
+
name: string;
|
403
|
+
faviconLink: string | null;
|
404
|
+
loginUrl: string | null;
|
405
|
+
} | null;
|
321
406
|
};
|
322
407
|
}>;
|
323
408
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -35,6 +35,7 @@ var UpdateNodeCommand;
|
|
35
35
|
activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
36
36
|
invalid_type_error: 'Active inbounds must be an array of UUIDs',
|
37
37
|
})),
|
38
|
+
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
38
39
|
});
|
39
40
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
40
41
|
response: models_1.NodesSchema,
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetUserAccessibleNodesCommand {
|
3
|
+
const url: (uuid: string) => string;
|
4
|
+
const TSQ_url: string;
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
uuid: string;
|
10
|
+
}, {
|
11
|
+
uuid: string;
|
12
|
+
}>;
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
15
|
+
response: z.ZodObject<{
|
16
|
+
userUuid: z.ZodString;
|
17
|
+
activeNodes: z.ZodArray<z.ZodObject<{
|
18
|
+
uuid: z.ZodString;
|
19
|
+
nodeName: z.ZodString;
|
20
|
+
countryCode: z.ZodString;
|
21
|
+
configProfileUuid: z.ZodString;
|
22
|
+
configProfileName: z.ZodString;
|
23
|
+
activeSquads: z.ZodArray<z.ZodObject<{
|
24
|
+
squadName: z.ZodString;
|
25
|
+
activeInbounds: z.ZodArray<z.ZodString, "many">;
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
27
|
+
activeInbounds: string[];
|
28
|
+
squadName: string;
|
29
|
+
}, {
|
30
|
+
activeInbounds: string[];
|
31
|
+
squadName: string;
|
32
|
+
}>, "many">;
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
34
|
+
uuid: string;
|
35
|
+
countryCode: string;
|
36
|
+
nodeName: string;
|
37
|
+
configProfileUuid: string;
|
38
|
+
configProfileName: string;
|
39
|
+
activeSquads: {
|
40
|
+
activeInbounds: string[];
|
41
|
+
squadName: string;
|
42
|
+
}[];
|
43
|
+
}, {
|
44
|
+
uuid: string;
|
45
|
+
countryCode: string;
|
46
|
+
nodeName: string;
|
47
|
+
configProfileUuid: string;
|
48
|
+
configProfileName: string;
|
49
|
+
activeSquads: {
|
50
|
+
activeInbounds: string[];
|
51
|
+
squadName: string;
|
52
|
+
}[];
|
53
|
+
}>, "many">;
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
55
|
+
userUuid: string;
|
56
|
+
activeNodes: {
|
57
|
+
uuid: string;
|
58
|
+
countryCode: string;
|
59
|
+
nodeName: string;
|
60
|
+
configProfileUuid: string;
|
61
|
+
configProfileName: string;
|
62
|
+
activeSquads: {
|
63
|
+
activeInbounds: string[];
|
64
|
+
squadName: string;
|
65
|
+
}[];
|
66
|
+
}[];
|
67
|
+
}, {
|
68
|
+
userUuid: string;
|
69
|
+
activeNodes: {
|
70
|
+
uuid: string;
|
71
|
+
countryCode: string;
|
72
|
+
nodeName: string;
|
73
|
+
configProfileUuid: string;
|
74
|
+
configProfileName: string;
|
75
|
+
activeSquads: {
|
76
|
+
activeInbounds: string[];
|
77
|
+
squadName: string;
|
78
|
+
}[];
|
79
|
+
}[];
|
80
|
+
}>;
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
82
|
+
response: {
|
83
|
+
userUuid: string;
|
84
|
+
activeNodes: {
|
85
|
+
uuid: string;
|
86
|
+
countryCode: string;
|
87
|
+
nodeName: string;
|
88
|
+
configProfileUuid: string;
|
89
|
+
configProfileName: string;
|
90
|
+
activeSquads: {
|
91
|
+
activeInbounds: string[];
|
92
|
+
squadName: string;
|
93
|
+
}[];
|
94
|
+
}[];
|
95
|
+
};
|
96
|
+
}, {
|
97
|
+
response: {
|
98
|
+
userUuid: string;
|
99
|
+
activeNodes: {
|
100
|
+
uuid: string;
|
101
|
+
countryCode: string;
|
102
|
+
nodeName: string;
|
103
|
+
configProfileUuid: string;
|
104
|
+
configProfileName: string;
|
105
|
+
activeSquads: {
|
106
|
+
activeInbounds: string[];
|
107
|
+
squadName: string;
|
108
|
+
}[];
|
109
|
+
}[];
|
110
|
+
};
|
111
|
+
}>;
|
112
|
+
type Response = z.infer<typeof ResponseSchema>;
|
113
|
+
}
|
114
|
+
//# sourceMappingURL=get-user-accessible-nodes.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetUserAccessibleNodesCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
var GetUserAccessibleNodesCommand;
|
8
|
+
(function (GetUserAccessibleNodesCommand) {
|
9
|
+
GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
|
10
|
+
GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
|
11
|
+
GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
|
12
|
+
GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
14
|
+
});
|
15
|
+
GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
userUuid: zod_1.z.string().uuid(),
|
18
|
+
activeNodes: zod_1.z.array(zod_1.z.object({
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
20
|
+
nodeName: zod_1.z.string(),
|
21
|
+
countryCode: zod_1.z.string(),
|
22
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
23
|
+
configProfileName: zod_1.z.string(),
|
24
|
+
activeSquads: zod_1.z.array(zod_1.z.object({
|
25
|
+
squadName: zod_1.z.string(),
|
26
|
+
activeInbounds: zod_1.z.array(zod_1.z.string()),
|
27
|
+
})),
|
28
|
+
})),
|
29
|
+
}),
|
30
|
+
});
|
31
|
+
})(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
|
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
33
33
|
date: Date;
|
34
34
|
nodeName: string;
|
35
35
|
userUuid: string;
|
36
|
-
total: number;
|
37
36
|
nodeUuid: string;
|
37
|
+
total: number;
|
38
38
|
}, {
|
39
39
|
date: string;
|
40
40
|
nodeName: string;
|
41
41
|
userUuid: string;
|
42
|
-
total: number;
|
43
42
|
nodeUuid: string;
|
43
|
+
total: number;
|
44
44
|
}>, "many">;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
46
|
response: {
|
47
47
|
date: Date;
|
48
48
|
nodeName: string;
|
49
49
|
userUuid: string;
|
50
|
-
total: number;
|
51
50
|
nodeUuid: string;
|
51
|
+
total: number;
|
52
52
|
}[];
|
53
53
|
}, {
|
54
54
|
response: {
|
55
55
|
date: string;
|
56
56
|
nodeName: string;
|
57
57
|
userUuid: string;
|
58
|
-
total: number;
|
59
58
|
nodeUuid: string;
|
59
|
+
total: number;
|
60
60
|
}[];
|
61
61
|
}>;
|
62
62
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -5,6 +5,7 @@ export * from './create-user.command';
|
|
5
5
|
export * from './delete-user.command';
|
6
6
|
export * from './get-all-users.command';
|
7
7
|
export * from './get-by';
|
8
|
+
export * from './get-user-accessible-nodes.command';
|
8
9
|
export * from './get-user-by-uuid.command';
|
9
10
|
export * from './get-user-usage-by-range.command';
|
10
11
|
export * from './tags';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAElD,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
@@ -21,6 +21,7 @@ __exportStar(require("./create-user.command"), exports);
|
|
21
21
|
__exportStar(require("./delete-user.command"), exports);
|
22
22
|
__exportStar(require("./get-all-users.command"), exports);
|
23
23
|
__exportStar(require("./get-by"), exports);
|
24
|
+
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
24
25
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
25
26
|
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
26
27
|
__exportStar(require("./tags"), exports);
|
@@ -649,5 +649,80 @@ export declare const ERRORS: {
|
|
649
649
|
readonly message: "Config profile inbound not found in specified profile";
|
650
650
|
readonly httpCode: 404;
|
651
651
|
};
|
652
|
+
readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
|
653
|
+
readonly code: "A125";
|
654
|
+
readonly message: "Get user accessible nodes error";
|
655
|
+
readonly httpCode: 500;
|
656
|
+
};
|
657
|
+
readonly GET_INFRA_PROVIDERS_ERROR: {
|
658
|
+
readonly code: "A126";
|
659
|
+
readonly message: "Get infra providers error";
|
660
|
+
readonly httpCode: 500;
|
661
|
+
};
|
662
|
+
readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
663
|
+
readonly code: "A127";
|
664
|
+
readonly message: "Get infra provider by UUID error";
|
665
|
+
readonly httpCode: 500;
|
666
|
+
};
|
667
|
+
readonly INFRA_PROVIDER_NOT_FOUND: {
|
668
|
+
readonly code: "A128";
|
669
|
+
readonly message: "Infra provider not found";
|
670
|
+
readonly httpCode: 404;
|
671
|
+
};
|
672
|
+
readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
673
|
+
readonly code: "A129";
|
674
|
+
readonly message: "Delete infra provider by UUID error";
|
675
|
+
readonly httpCode: 500;
|
676
|
+
};
|
677
|
+
readonly CREATE_INFRA_PROVIDER_ERROR: {
|
678
|
+
readonly code: "A130";
|
679
|
+
readonly message: "Create infra provider error";
|
680
|
+
readonly httpCode: 500;
|
681
|
+
};
|
682
|
+
readonly UPDATE_INFRA_PROVIDER_ERROR: {
|
683
|
+
readonly code: "A131";
|
684
|
+
readonly message: "Update infra provider error";
|
685
|
+
readonly httpCode: 500;
|
686
|
+
};
|
687
|
+
readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
688
|
+
readonly code: "A132";
|
689
|
+
readonly message: "Create infra billing history record error";
|
690
|
+
readonly httpCode: 500;
|
691
|
+
};
|
692
|
+
readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
693
|
+
readonly code: "A133";
|
694
|
+
readonly message: "Get infra billing history records error";
|
695
|
+
readonly httpCode: 500;
|
696
|
+
};
|
697
|
+
readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
698
|
+
readonly code: "A134";
|
699
|
+
readonly message: "Delete infra billing history record by UUID error";
|
700
|
+
readonly httpCode: 500;
|
701
|
+
};
|
702
|
+
readonly GET_BILLING_NODES_ERROR: {
|
703
|
+
readonly code: "A135";
|
704
|
+
readonly message: "Get billing nodes error";
|
705
|
+
readonly httpCode: 500;
|
706
|
+
};
|
707
|
+
readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
|
708
|
+
readonly code: "A136";
|
709
|
+
readonly message: "Update infra billing node error";
|
710
|
+
readonly httpCode: 500;
|
711
|
+
};
|
712
|
+
readonly CREATE_INFRA_BILLING_NODE_ERROR: {
|
713
|
+
readonly code: "A137";
|
714
|
+
readonly message: "Create infra billing node error";
|
715
|
+
readonly httpCode: 500;
|
716
|
+
};
|
717
|
+
readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
718
|
+
readonly code: "A138";
|
719
|
+
readonly message: "Delete infra billing node by UUID error";
|
720
|
+
readonly httpCode: 500;
|
721
|
+
};
|
722
|
+
readonly GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
723
|
+
readonly code: "A139";
|
724
|
+
readonly message: "Get billing nodes for notifications error";
|
725
|
+
readonly httpCode: 500;
|
726
|
+
};
|
652
727
|
};
|
653
728
|
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Y3B,CAAC"}
|
@@ -620,4 +620,79 @@ exports.ERRORS = {
|
|
620
620
|
message: 'Config profile inbound not found in specified profile',
|
621
621
|
httpCode: 404,
|
622
622
|
},
|
623
|
+
GET_USER_ACCESSIBLE_NODES_ERROR: {
|
624
|
+
code: 'A125',
|
625
|
+
message: 'Get user accessible nodes error',
|
626
|
+
httpCode: 500,
|
627
|
+
},
|
628
|
+
GET_INFRA_PROVIDERS_ERROR: {
|
629
|
+
code: 'A126',
|
630
|
+
message: 'Get infra providers error',
|
631
|
+
httpCode: 500,
|
632
|
+
},
|
633
|
+
GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
634
|
+
code: 'A127',
|
635
|
+
message: 'Get infra provider by UUID error',
|
636
|
+
httpCode: 500,
|
637
|
+
},
|
638
|
+
INFRA_PROVIDER_NOT_FOUND: {
|
639
|
+
code: 'A128',
|
640
|
+
message: 'Infra provider not found',
|
641
|
+
httpCode: 404,
|
642
|
+
},
|
643
|
+
DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
644
|
+
code: 'A129',
|
645
|
+
message: 'Delete infra provider by UUID error',
|
646
|
+
httpCode: 500,
|
647
|
+
},
|
648
|
+
CREATE_INFRA_PROVIDER_ERROR: {
|
649
|
+
code: 'A130',
|
650
|
+
message: 'Create infra provider error',
|
651
|
+
httpCode: 500,
|
652
|
+
},
|
653
|
+
UPDATE_INFRA_PROVIDER_ERROR: {
|
654
|
+
code: 'A131',
|
655
|
+
message: 'Update infra provider error',
|
656
|
+
httpCode: 500,
|
657
|
+
},
|
658
|
+
CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
659
|
+
code: 'A132',
|
660
|
+
message: 'Create infra billing history record error',
|
661
|
+
httpCode: 500,
|
662
|
+
},
|
663
|
+
GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
664
|
+
code: 'A133',
|
665
|
+
message: 'Get infra billing history records error',
|
666
|
+
httpCode: 500,
|
667
|
+
},
|
668
|
+
DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
669
|
+
code: 'A134',
|
670
|
+
message: 'Delete infra billing history record by UUID error',
|
671
|
+
httpCode: 500,
|
672
|
+
},
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
674
|
+
code: 'A135',
|
675
|
+
message: 'Get billing nodes error',
|
676
|
+
httpCode: 500,
|
677
|
+
},
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
679
|
+
code: 'A136',
|
680
|
+
message: 'Update infra billing node error',
|
681
|
+
httpCode: 500,
|
682
|
+
},
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
684
|
+
code: 'A137',
|
685
|
+
message: 'Create infra billing node error',
|
686
|
+
httpCode: 500,
|
687
|
+
},
|
688
|
+
DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
689
|
+
code: 'A138',
|
690
|
+
message: 'Delete infra billing node by UUID error',
|
691
|
+
httpCode: 500,
|
692
|
+
},
|
693
|
+
GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
694
|
+
code: 'A139',
|
695
|
+
message: 'Get billing nodes for notifications error',
|
696
|
+
httpCode: 500,
|
697
|
+
},
|
623
698
|
};
|
@@ -36,13 +36,24 @@ export declare const EVENTS: {
|
|
36
36
|
readonly ERRORS: {
|
37
37
|
readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
38
38
|
};
|
39
|
+
readonly CRM: {
|
40
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: "crm.infra_billing_node_payment_in_7_days";
|
41
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_48HRS: "crm.infra_billing_node_payment_in_48hrs";
|
42
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_24HRS: "crm.infra_billing_node_payment_in_24hrs";
|
43
|
+
readonly INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: "crm.infra_billing_node_payment_due_today";
|
44
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: "crm.infra_billing_node_payment_overdue_24hrs";
|
45
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
|
46
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
|
47
|
+
};
|
39
48
|
readonly CATCH_ALL_USER_EVENTS: "user.*";
|
40
49
|
readonly CATCH_ALL_NODE_EVENTS: "node.*";
|
41
50
|
readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
|
42
51
|
readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
|
52
|
+
readonly CATCH_ALL_CRM_EVENTS: "crm.*";
|
43
53
|
};
|
44
54
|
export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
|
45
55
|
export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
|
46
56
|
export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
|
47
57
|
export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
|
58
|
+
export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
|
48
59
|
//# sourceMappingURL=events.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC"}
|
@@ -39,8 +39,18 @@ exports.EVENTS = {
|
|
39
39
|
ERRORS: {
|
40
40
|
BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
|
41
41
|
},
|
42
|
+
CRM: {
|
43
|
+
INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: 'crm.infra_billing_node_payment_in_7_days',
|
44
|
+
INFRA_BILLING_NODE_PAYMENT_IN_48HRS: 'crm.infra_billing_node_payment_in_48hrs',
|
45
|
+
INFRA_BILLING_NODE_PAYMENT_IN_24HRS: 'crm.infra_billing_node_payment_in_24hrs',
|
46
|
+
INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: 'crm.infra_billing_node_payment_due_today',
|
47
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: 'crm.infra_billing_node_payment_overdue_24hrs',
|
48
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
|
49
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
|
50
|
+
},
|
42
51
|
CATCH_ALL_USER_EVENTS: 'user.*',
|
43
52
|
CATCH_ALL_NODE_EVENTS: 'node.*',
|
44
53
|
CATCH_ALL_SERVICE_EVENTS: 'service.*',
|
45
54
|
CATCH_ALL_ERRORS_EVENTS: 'errors.*',
|
55
|
+
CATCH_ALL_CRM_EVENTS: 'crm.*',
|
46
56
|
};
|