@remnawave/backend-contract 2.1.47 → 2.1.51
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/subscription-request-history.d.ts +6 -0
- package/build/backend/api/controllers/subscription-request-history.d.ts.map +1 -0
- package/build/backend/api/controllers/subscription-request-history.js +8 -0
- package/build/backend/api/controllers/subscription-settings.d.ts +0 -4
- package/build/backend/api/controllers/subscription-settings.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-settings.js +0 -4
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +4 -4
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +4 -4
- package/build/backend/commands/hwid/get-all-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-all-hwid-devices.command.js +2 -31
- 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/subscription-request-history/get-subscription-request-history-stats.command.d.ts +46 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +20 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +125 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.js +20 -0
- package/build/backend/commands/subscription-request-history/index.d.ts +3 -0
- package/build/backend/commands/subscription-request-history/index.d.ts.map +1 -0
- package/build/backend/commands/{subscription-settings/subscription-response-rules → subscription-request-history}/index.js +2 -2
- package/build/backend/commands/subscription-settings/index.d.ts +0 -1
- package/build/backend/commands/subscription-settings/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/index.js +0 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +6 -6
- package/build/backend/commands/subscription-template/update-template.command.d.ts +6 -6
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.js +2 -31
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +0 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +2 -7
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +2 -7
- package/build/backend/constants/index.d.ts +0 -1
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +0 -1
- package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts +1 -1
- package/build/backend/models/index.d.ts +2 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +2 -1
- package/build/backend/models/subscription-request-history.schema.d.ts +21 -0
- package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -0
- package/build/backend/models/subscription-request-history.schema.js +14 -0
- package/build/backend/models/tanstack-query/index.d.ts +4 -0
- package/build/backend/models/tanstack-query/index.d.ts.map +1 -0
- package/build/{frontend/constants/subscription-response-rules/subscription-response-type → backend/models/tanstack-query}/index.js +3 -1
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts +12 -0
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts.map +1 -0
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.js +11 -0
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts +54 -0
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts.map +1 -0
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.js +28 -0
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts +12 -0
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts.map +1 -0
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.js +8 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/subscription-request-history.js +8 -0
- package/build/frontend/api/controllers/subscription-settings.js +0 -4
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +4 -4
- package/build/frontend/commands/hwid/get-all-hwid-devices.command.js +2 -31
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +20 -0
- package/build/frontend/commands/subscription-request-history/get-subscription-request-history.command.js +20 -0
- package/build/{backend/constants/subscription-response-rules/subscription-response-type → frontend/commands/subscription-request-history}/index.js +2 -1
- package/build/frontend/commands/subscription-settings/index.js +0 -1
- package/build/frontend/commands/users/get-all-users.command.js +2 -31
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +0 -1
- package/build/frontend/constants/errors/errors.js +2 -7
- package/build/frontend/constants/index.js +0 -1
- package/build/frontend/models/index.js +2 -1
- package/build/frontend/models/subscription-request-history.schema.js +14 -0
- package/build/frontend/{commands/subscription-settings/subscription-response-rules → models/tanstack-query}/index.js +3 -2
- package/build/frontend/models/tanstack-query/tanstask-query-filter.schema.js +11 -0
- package/build/frontend/models/tanstack-query/tanstask-query-request-query.schema.js +28 -0
- package/build/frontend/models/tanstack-query/tanstask-query-sorting.schema.js +8 -0
- package/package.json +1 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts +0 -83
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +0 -18
- package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts +0 -3
- package/build/backend/commands/subscription-settings/subscription-response-rules/index.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts +0 -135
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.d.ts.map +0 -1
- package/build/backend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +0 -28
- package/build/backend/constants/subscription-response-rules/index.d.ts +0 -2
- package/build/backend/constants/subscription-response-rules/index.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/index.js +0 -17
- package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts +0 -2
- package/build/backend/constants/subscription-response-rules/subscription-response-type/index.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts +0 -13
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.d.ts.map +0 -1
- package/build/backend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +0 -14
- package/build/backend/models/subscription-response-rules.schema.d.ts +0 -33
- package/build/backend/models/subscription-response-rules.schema.d.ts.map +0 -1
- package/build/backend/models/subscription-response-rules.schema.js +0 -13
- package/build/frontend/commands/subscription-settings/subscription-response-rules/get-subscription-response-rules.command.js +0 -18
- package/build/frontend/commands/subscription-settings/subscription-response-rules/update-subscription-response-rules.command.js +0 -28
- package/build/frontend/constants/subscription-response-rules/index.js +0 -17
- package/build/frontend/constants/subscription-response-rules/subscription-response-type/subscription-response-type.constant.js +0 -14
- package/build/frontend/models/subscription-response-rules.schema.js +0 -13
@@ -2,44 +2,15 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetAllUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
5
|
const models_1 = require("../../models");
|
6
|
+
const constants_1 = require("../../constants");
|
7
7
|
const api_1 = require("../../api");
|
8
8
|
var GetAllUsersCommand;
|
9
9
|
(function (GetAllUsersCommand) {
|
10
10
|
GetAllUsersCommand.url = api_1.REST_API.USERS.GET;
|
11
11
|
GetAllUsersCommand.TSQ_url = GetAllUsersCommand.url;
|
12
12
|
GetAllUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET, 'get', 'Get all users');
|
13
|
-
|
14
|
-
id: zod_1.z.string(),
|
15
|
-
value: zod_1.z.unknown(),
|
16
|
-
});
|
17
|
-
const SortingSchema = zod_1.z.object({
|
18
|
-
id: zod_1.z.string(),
|
19
|
-
desc: zod_1.z.boolean(),
|
20
|
-
});
|
21
|
-
GetAllUsersCommand.RequestQuerySchema = zod_1.z.object({
|
22
|
-
start: zod_1.z.coerce
|
23
|
-
.number()
|
24
|
-
.default(0)
|
25
|
-
.describe('Start index (offset) of the users to return, default is 0'),
|
26
|
-
size: zod_1.z.coerce
|
27
|
-
.number()
|
28
|
-
.min(1, 'Size (limit) must be greater than 0')
|
29
|
-
.max(1000, 'Size (limit) must be less than 1000')
|
30
|
-
.describe('Number of users to return, no more than 1000')
|
31
|
-
.default(25),
|
32
|
-
filters: zod_1.z
|
33
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(FilterSchema))
|
34
|
-
.optional(),
|
35
|
-
filterModes: zod_1.z
|
36
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.record(zod_1.z.string(), zod_1.z.string()))
|
37
|
-
.optional(),
|
38
|
-
globalFilterMode: zod_1.z.string().optional(),
|
39
|
-
sorting: zod_1.z
|
40
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(SortingSchema))
|
41
|
-
.optional(),
|
42
|
-
});
|
13
|
+
GetAllUsersCommand.RequestQuerySchema = models_1.TanstackQueryRequestQuerySchema;
|
43
14
|
GetAllUsersCommand.ResponseSchema = zod_1.z.object({
|
44
15
|
response: zod_1.z.object({
|
45
16
|
users: zod_1.z.array(models_1.ExtendedUsersSchema),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
1
|
+
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEb,CAAC"}
|
@@ -824,14 +824,9 @@ export declare const ERRORS: {
|
|
824
824
|
readonly message: "Get hwid devices stats error";
|
825
825
|
readonly httpCode: 500;
|
826
826
|
};
|
827
|
-
readonly
|
827
|
+
readonly GET_USER_SUBSCRIPTION_REQUEST_HISTORY_STATS_ERROR: {
|
828
828
|
readonly code: "A160";
|
829
|
-
readonly message: "Get subscription
|
830
|
-
readonly httpCode: 500;
|
831
|
-
};
|
832
|
-
readonly UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
|
833
|
-
readonly code: "A161";
|
834
|
-
readonly message: "Update subscription response rules error";
|
829
|
+
readonly message: "Get user subscription request history stats error";
|
835
830
|
readonly httpCode: 500;
|
836
831
|
};
|
837
832
|
};
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmf3B,CAAC"}
|
@@ -795,14 +795,9 @@ exports.ERRORS = {
|
|
795
795
|
message: 'Get hwid devices stats error',
|
796
796
|
httpCode: 500,
|
797
797
|
},
|
798
|
-
|
798
|
+
GET_USER_SUBSCRIPTION_REQUEST_HISTORY_STATS_ERROR: {
|
799
799
|
code: 'A160',
|
800
|
-
message: 'Get subscription
|
801
|
-
httpCode: 500,
|
802
|
-
},
|
803
|
-
UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
|
804
|
-
code: 'A161',
|
805
|
-
message: 'Update subscription response rules error',
|
800
|
+
message: 'Get user subscription request history stats error',
|
806
801
|
httpCode: 500,
|
807
802
|
},
|
808
803
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
@@ -25,7 +25,6 @@ __exportStar(require("./metrics"), exports);
|
|
25
25
|
__exportStar(require("./nodes"), exports);
|
26
26
|
__exportStar(require("./oauth2"), exports);
|
27
27
|
__exportStar(require("./roles"), exports);
|
28
|
-
__exportStar(require("./subscription-response-rules"), exports);
|
29
28
|
__exportStar(require("./subscription-template"), exports);
|
30
29
|
__exportStar(require("./templates"), exports);
|
31
30
|
__exportStar(require("./users"), exports);
|
package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts
CHANGED
@@ -7,5 +7,5 @@ export declare const SUBSCRIPTION_TEMPLATE_TYPE: {
|
|
7
7
|
readonly CLASH: "CLASH";
|
8
8
|
};
|
9
9
|
export type TSubscriptionTemplateType = [keyof typeof SUBSCRIPTION_TEMPLATE_TYPE][number];
|
10
|
-
export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("
|
10
|
+
export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO" | "XRAY_JSON" | "CLASH")[];
|
11
11
|
//# sourceMappingURL=template-type.constant.d.ts.map
|
@@ -16,7 +16,8 @@ export * from './internal-squad.schema';
|
|
16
16
|
export * from './last-connected-node.schema';
|
17
17
|
export * from './nodes.schema';
|
18
18
|
export * from './subscription-info.schema';
|
19
|
-
export * from './subscription-
|
19
|
+
export * from './subscription-request-history.schema';
|
20
20
|
export * from './subscription-settings.schema';
|
21
|
+
export * from './tanstack-query';
|
21
22
|
export * from './users.schema';
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
@@ -32,6 +32,7 @@ __exportStar(require("./internal-squad.schema"), exports);
|
|
32
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
33
33
|
__exportStar(require("./nodes.schema"), exports);
|
34
34
|
__exportStar(require("./subscription-info.schema"), exports);
|
35
|
-
__exportStar(require("./subscription-
|
35
|
+
__exportStar(require("./subscription-request-history.schema"), exports);
|
36
36
|
__exportStar(require("./subscription-settings.schema"), exports);
|
37
|
+
__exportStar(require("./tanstack-query"), exports);
|
37
38
|
__exportStar(require("./users.schema"), exports);
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const SubscriptionRequestHistorySchema: z.ZodObject<{
|
3
|
+
id: z.ZodNumber;
|
4
|
+
userUuid: z.ZodString;
|
5
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
6
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
7
|
+
requestAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
id: number;
|
10
|
+
userUuid: string;
|
11
|
+
userAgent: string | null;
|
12
|
+
requestIp: string | null;
|
13
|
+
requestAt: Date;
|
14
|
+
}, {
|
15
|
+
id: number;
|
16
|
+
userUuid: string;
|
17
|
+
userAgent: string | null;
|
18
|
+
requestIp: string | null;
|
19
|
+
requestAt: string;
|
20
|
+
}>;
|
21
|
+
//# sourceMappingURL=subscription-request-history.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"subscription-request-history.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-request-history.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;EAS3C,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionRequestHistorySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.SubscriptionRequestHistorySchema = zod_1.z.object({
|
6
|
+
id: zod_1.z.number(),
|
7
|
+
userUuid: zod_1.z.string().uuid(),
|
8
|
+
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
9
|
+
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
10
|
+
requestAt: zod_1.z
|
11
|
+
.string()
|
12
|
+
.datetime()
|
13
|
+
.transform((str) => new Date(str)),
|
14
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/tanstack-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC"}
|
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./tanstask-query-filter.schema"), exports);
|
18
|
+
__exportStar(require("./tanstask-query-request-query.schema"), exports);
|
19
|
+
__exportStar(require("./tanstask-query-sorting.schema"), exports);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const TanstackQueryFilterSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
value: z.ZodUnknown;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
id: string;
|
7
|
+
value?: unknown;
|
8
|
+
}, {
|
9
|
+
id: string;
|
10
|
+
value?: unknown;
|
11
|
+
}>;
|
12
|
+
//# sourceMappingURL=tanstask-query-filter.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tanstask-query-filter.schema.d.ts","sourceRoot":"","sources":["../../../../models/tanstack-query/tanstask-query-filter.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.TanstackQueryFilterSchema = void 0;
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
8
|
+
exports.TanstackQueryFilterSchema = zod_1.default.object({
|
9
|
+
id: zod_1.default.string(),
|
10
|
+
value: zod_1.default.unknown(),
|
11
|
+
});
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const TanstackQueryRequestQuerySchema: z.ZodObject<{
|
3
|
+
start: z.ZodDefault<z.ZodNumber>;
|
4
|
+
size: z.ZodDefault<z.ZodNumber>;
|
5
|
+
filters: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
6
|
+
id: z.ZodString;
|
7
|
+
value: z.ZodUnknown;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
id: string;
|
10
|
+
value?: unknown;
|
11
|
+
}, {
|
12
|
+
id: string;
|
13
|
+
value?: unknown;
|
14
|
+
}>, "many">, {
|
15
|
+
id: string;
|
16
|
+
value?: unknown;
|
17
|
+
}[], unknown>>;
|
18
|
+
filterModes: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, unknown>>;
|
19
|
+
globalFilterMode: z.ZodOptional<z.ZodString>;
|
20
|
+
sorting: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
21
|
+
id: z.ZodString;
|
22
|
+
desc: z.ZodBoolean;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
id: string;
|
25
|
+
desc: boolean;
|
26
|
+
}, {
|
27
|
+
id: string;
|
28
|
+
desc: boolean;
|
29
|
+
}>, "many">, {
|
30
|
+
id: string;
|
31
|
+
desc: boolean;
|
32
|
+
}[], unknown>>;
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
34
|
+
start: number;
|
35
|
+
size: number;
|
36
|
+
filters?: {
|
37
|
+
id: string;
|
38
|
+
value?: unknown;
|
39
|
+
}[] | undefined;
|
40
|
+
filterModes?: Record<string, string> | undefined;
|
41
|
+
globalFilterMode?: string | undefined;
|
42
|
+
sorting?: {
|
43
|
+
id: string;
|
44
|
+
desc: boolean;
|
45
|
+
}[] | undefined;
|
46
|
+
}, {
|
47
|
+
start?: number | undefined;
|
48
|
+
size?: number | undefined;
|
49
|
+
filters?: unknown;
|
50
|
+
filterModes?: unknown;
|
51
|
+
globalFilterMode?: string | undefined;
|
52
|
+
sorting?: unknown;
|
53
|
+
}>;
|
54
|
+
//# sourceMappingURL=tanstask-query-request-query.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tanstask-query-request-query.schema.d.ts","sourceRoot":"","sources":["../../../../models/tanstack-query/tanstask-query-request-query.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC1C,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TanstackQueryRequestQuerySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const tanstask_query_sorting_schema_1 = require("./tanstask-query-sorting.schema");
|
6
|
+
const tanstask_query_filter_schema_1 = require("./tanstask-query-filter.schema");
|
7
|
+
exports.TanstackQueryRequestQuerySchema = zod_1.z.object({
|
8
|
+
start: zod_1.z.coerce
|
9
|
+
.number()
|
10
|
+
.default(0)
|
11
|
+
.describe('Start index (offset) of the results to return, default is 0'),
|
12
|
+
size: zod_1.z.coerce
|
13
|
+
.number()
|
14
|
+
.min(1, 'Size (limit) must be greater than 0')
|
15
|
+
.max(1000, 'Size (limit) must be less than 1000')
|
16
|
+
.describe('Number of results to return, no more than 1000')
|
17
|
+
.default(25),
|
18
|
+
filters: zod_1.z
|
19
|
+
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(tanstask_query_filter_schema_1.TanstackQueryFilterSchema))
|
20
|
+
.optional(),
|
21
|
+
filterModes: zod_1.z
|
22
|
+
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.record(zod_1.z.string(), zod_1.z.string()))
|
23
|
+
.optional(),
|
24
|
+
globalFilterMode: zod_1.z.string().optional(),
|
25
|
+
sorting: zod_1.z
|
26
|
+
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(tanstask_query_sorting_schema_1.TanstackQuerySortingSchema))
|
27
|
+
.optional(),
|
28
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const TanstackQuerySortingSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
desc: z.ZodBoolean;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
id: string;
|
7
|
+
desc: boolean;
|
8
|
+
}, {
|
9
|
+
id: string;
|
10
|
+
desc: boolean;
|
11
|
+
}>;
|
12
|
+
//# sourceMappingURL=tanstask-query-sorting.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tanstask-query-sorting.schema.d.ts","sourceRoot":"","sources":["../../../../models/tanstack-query/tanstask-query-sorting.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TanstackQuerySortingSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.TanstackQuerySortingSchema = zod_1.z.object({
|
6
|
+
id: zod_1.z.string(),
|
7
|
+
desc: zod_1.z.boolean(),
|
8
|
+
});
|
@@ -24,6 +24,7 @@ __exportStar(require("./internal-squads"), exports);
|
|
24
24
|
__exportStar(require("./keygen"), exports);
|
25
25
|
__exportStar(require("./nodes"), exports);
|
26
26
|
__exportStar(require("./subscription"), exports);
|
27
|
+
__exportStar(require("./subscription-request-history"), exports);
|
27
28
|
__exportStar(require("./subscription-settings"), exports);
|
28
29
|
__exportStar(require("./subscription-template"), exports);
|
29
30
|
__exportStar(require("./subscriptions"), exports);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SUBSCRIPTION_REQUEST_HISTORY_ROUTES = exports.SUBSCRIPTION_REQUEST_HISTORY_CONTROLLER = void 0;
|
4
|
+
exports.SUBSCRIPTION_REQUEST_HISTORY_CONTROLLER = 'subscription-request-history';
|
5
|
+
exports.SUBSCRIPTION_REQUEST_HISTORY_ROUTES = {
|
6
|
+
GET: '',
|
7
|
+
STATS: 'stats',
|
8
|
+
};
|
@@ -162,10 +162,6 @@ exports.REST_API = {
|
|
162
162
|
SUBSCRIPTION_SETTINGS: {
|
163
163
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.GET}`,
|
164
164
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.UPDATE}`,
|
165
|
-
RESPONSE_RULES: {
|
166
|
-
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.GET}`,
|
167
|
-
UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.RESPONSE_RULES.UPDATE}`,
|
168
|
-
},
|
169
165
|
},
|
170
166
|
HWID: {
|
171
167
|
GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
|
@@ -219,4 +215,8 @@ exports.REST_API = {
|
|
219
215
|
CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
|
220
216
|
DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
|
221
217
|
},
|
218
|
+
SUBSCRIPTION_REQUEST_HISTORY: {
|
219
|
+
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_REQUEST_HISTORY_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_REQUEST_HISTORY_ROUTES.GET}`,
|
220
|
+
STATS: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_REQUEST_HISTORY_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_REQUEST_HISTORY_ROUTES.STATS}`,
|
221
|
+
},
|
222
222
|
};
|
@@ -2,44 +2,15 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetAllHwidDevicesCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
5
|
const models_1 = require("../../models");
|
6
|
+
const constants_1 = require("../../constants");
|
7
7
|
const api_1 = require("../../api");
|
8
8
|
var GetAllHwidDevicesCommand;
|
9
9
|
(function (GetAllHwidDevicesCommand) {
|
10
10
|
GetAllHwidDevicesCommand.url = api_1.REST_API.HWID.GET_ALL_HWID_DEVICES;
|
11
11
|
GetAllHwidDevicesCommand.TSQ_url = GetAllHwidDevicesCommand.url;
|
12
12
|
GetAllHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.GET_ALL_HWID_DEVICES, 'get', 'Get all HWID devices');
|
13
|
-
|
14
|
-
id: zod_1.z.string(),
|
15
|
-
value: zod_1.z.unknown(),
|
16
|
-
});
|
17
|
-
const SortingSchema = zod_1.z.object({
|
18
|
-
id: zod_1.z.string(),
|
19
|
-
desc: zod_1.z.boolean(),
|
20
|
-
});
|
21
|
-
GetAllHwidDevicesCommand.RequestQuerySchema = zod_1.z.object({
|
22
|
-
start: zod_1.z.coerce
|
23
|
-
.number()
|
24
|
-
.default(0)
|
25
|
-
.describe('Start index (offset) of the results to return, default is 0'),
|
26
|
-
size: zod_1.z.coerce
|
27
|
-
.number()
|
28
|
-
.min(1, 'Size (limit) must be greater than 0')
|
29
|
-
.max(1000, 'Size (limit) must be less than 1000')
|
30
|
-
.describe('Number of results to return, no more than 1000')
|
31
|
-
.default(25),
|
32
|
-
filters: zod_1.z
|
33
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(FilterSchema))
|
34
|
-
.optional(),
|
35
|
-
filterModes: zod_1.z
|
36
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.record(zod_1.z.string(), zod_1.z.string()))
|
37
|
-
.optional(),
|
38
|
-
globalFilterMode: zod_1.z.string().optional(),
|
39
|
-
sorting: zod_1.z
|
40
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(SortingSchema))
|
41
|
-
.optional(),
|
42
|
-
});
|
13
|
+
GetAllHwidDevicesCommand.RequestQuerySchema = models_1.TanstackQueryRequestQuerySchema;
|
43
14
|
GetAllHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
44
15
|
response: zod_1.z.object({
|
45
16
|
devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
|
@@ -24,6 +24,7 @@ __exportStar(require("./internal-squads"), exports);
|
|
24
24
|
__exportStar(require("./keygen"), exports);
|
25
25
|
__exportStar(require("./nodes"), exports);
|
26
26
|
__exportStar(require("./subscription"), exports);
|
27
|
+
__exportStar(require("./subscription-request-history"), exports);
|
27
28
|
__exportStar(require("./subscription-settings"), exports);
|
28
29
|
__exportStar(require("./subscription-template"), exports);
|
29
30
|
__exportStar(require("./subscriptions"), exports);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetSubscriptionRequestHistoryStatsCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
var GetSubscriptionRequestHistoryStatsCommand;
|
8
|
+
(function (GetSubscriptionRequestHistoryStatsCommand) {
|
9
|
+
GetSubscriptionRequestHistoryStatsCommand.url = api_1.REST_API.SUBSCRIPTION_REQUEST_HISTORY.STATS;
|
10
|
+
GetSubscriptionRequestHistoryStatsCommand.TSQ_url = GetSubscriptionRequestHistoryStatsCommand.url;
|
11
|
+
GetSubscriptionRequestHistoryStatsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_REQUEST_HISTORY_ROUTES.STATS, 'get', 'Get subscription request history stats');
|
12
|
+
GetSubscriptionRequestHistoryStatsCommand.ResponseSchema = zod_1.z.object({
|
13
|
+
response: zod_1.z.object({
|
14
|
+
byParsedApp: zod_1.z.array(zod_1.z.object({
|
15
|
+
app: zod_1.z.string(),
|
16
|
+
count: zod_1.z.number(),
|
17
|
+
})),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(GetSubscriptionRequestHistoryStatsCommand || (exports.GetSubscriptionRequestHistoryStatsCommand = GetSubscriptionRequestHistoryStatsCommand = {}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetSubscriptionRequestHistoryCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const models_1 = require("../../models");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
const constants_1 = require("../../constants");
|
8
|
+
var GetSubscriptionRequestHistoryCommand;
|
9
|
+
(function (GetSubscriptionRequestHistoryCommand) {
|
10
|
+
GetSubscriptionRequestHistoryCommand.url = api_1.REST_API.SUBSCRIPTION_REQUEST_HISTORY.GET;
|
11
|
+
GetSubscriptionRequestHistoryCommand.TSQ_url = GetSubscriptionRequestHistoryCommand.url;
|
12
|
+
GetSubscriptionRequestHistoryCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_REQUEST_HISTORY_ROUTES.GET, 'get', 'Get all subscription request history');
|
13
|
+
GetSubscriptionRequestHistoryCommand.RequestQuerySchema = models_1.TanstackQueryRequestQuerySchema;
|
14
|
+
GetSubscriptionRequestHistoryCommand.ResponseSchema = zod_1.z.object({
|
15
|
+
response: zod_1.z.object({
|
16
|
+
records: zod_1.z.array(models_1.SubscriptionRequestHistorySchema),
|
17
|
+
total: zod_1.z.number(),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(GetSubscriptionRequestHistoryCommand || (exports.GetSubscriptionRequestHistoryCommand = GetSubscriptionRequestHistoryCommand = {}));
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./subscription-
|
17
|
+
__exportStar(require("./get-subscription-request-history-stats.command"), exports);
|
18
|
+
__exportStar(require("./get-subscription-request-history.command"), exports);
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./get-subscription-settings.command"), exports);
|
18
|
-
__exportStar(require("./subscription-response-rules"), exports);
|
19
18
|
__exportStar(require("./update-subscription-settings.command"), exports);
|
@@ -2,44 +2,15 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetAllUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
5
|
const models_1 = require("../../models");
|
6
|
+
const constants_1 = require("../../constants");
|
7
7
|
const api_1 = require("../../api");
|
8
8
|
var GetAllUsersCommand;
|
9
9
|
(function (GetAllUsersCommand) {
|
10
10
|
GetAllUsersCommand.url = api_1.REST_API.USERS.GET;
|
11
11
|
GetAllUsersCommand.TSQ_url = GetAllUsersCommand.url;
|
12
12
|
GetAllUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET, 'get', 'Get all users');
|
13
|
-
|
14
|
-
id: zod_1.z.string(),
|
15
|
-
value: zod_1.z.unknown(),
|
16
|
-
});
|
17
|
-
const SortingSchema = zod_1.z.object({
|
18
|
-
id: zod_1.z.string(),
|
19
|
-
desc: zod_1.z.boolean(),
|
20
|
-
});
|
21
|
-
GetAllUsersCommand.RequestQuerySchema = zod_1.z.object({
|
22
|
-
start: zod_1.z.coerce
|
23
|
-
.number()
|
24
|
-
.default(0)
|
25
|
-
.describe('Start index (offset) of the users to return, default is 0'),
|
26
|
-
size: zod_1.z.coerce
|
27
|
-
.number()
|
28
|
-
.min(1, 'Size (limit) must be greater than 0')
|
29
|
-
.max(1000, 'Size (limit) must be less than 1000')
|
30
|
-
.describe('Number of users to return, no more than 1000')
|
31
|
-
.default(25),
|
32
|
-
filters: zod_1.z
|
33
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(FilterSchema))
|
34
|
-
.optional(),
|
35
|
-
filterModes: zod_1.z
|
36
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.record(zod_1.z.string(), zod_1.z.string()))
|
37
|
-
.optional(),
|
38
|
-
globalFilterMode: zod_1.z.string().optional(),
|
39
|
-
sorting: zod_1.z
|
40
|
-
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(SortingSchema))
|
41
|
-
.optional(),
|
42
|
-
});
|
13
|
+
GetAllUsersCommand.RequestQuerySchema = models_1.TanstackQueryRequestQuerySchema;
|
43
14
|
GetAllUsersCommand.ResponseSchema = zod_1.z.object({
|
44
15
|
response: zod_1.z.object({
|
45
16
|
users: zod_1.z.array(models_1.ExtendedUsersSchema),
|
@@ -795,14 +795,9 @@ exports.ERRORS = {
|
|
795
795
|
message: 'Get hwid devices stats error',
|
796
796
|
httpCode: 500,
|
797
797
|
},
|
798
|
-
|
798
|
+
GET_USER_SUBSCRIPTION_REQUEST_HISTORY_STATS_ERROR: {
|
799
799
|
code: 'A160',
|
800
|
-
message: 'Get subscription
|
801
|
-
httpCode: 500,
|
802
|
-
},
|
803
|
-
UPDATE_SUBSCRIPTION_RESPONSE_RULES_ERROR: {
|
804
|
-
code: 'A161',
|
805
|
-
message: 'Update subscription response rules error',
|
800
|
+
message: 'Get user subscription request history stats error',
|
806
801
|
httpCode: 500,
|
807
802
|
},
|
808
803
|
};
|