hh-contracts 0.0.128 → 0.0.130
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/hotel-clients/contracts/find-many-hotel-client-assignments.contract.d.ts +22 -11
- package/build/hotel-clients/contracts/find-many-hotel-client-assignments.contract.d.ts.map +1 -1
- package/build/hotel-clients/contracts/find-many-hotel-client-assignments.contract.js +7 -7
- package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.d.ts +24 -8
- package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.d.ts.map +1 -1
- package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.js +8 -5
- package/build/hotel-clients/contracts/find-many-hotel-clients.contract.d.ts +22 -12
- package/build/hotel-clients/contracts/find-many-hotel-clients.contract.d.ts.map +1 -1
- package/build/hotel-clients/contracts/find-many-hotel-clients.contract.js +7 -7
- package/build/hotel-clients/contracts/index.d.ts +1 -0
- package/build/hotel-clients/contracts/index.d.ts.map +1 -1
- package/build/hotel-clients/contracts/index.js +1 -0
- package/build/roles/contracts/find-many-roles.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
declare const OrderBySchema: z.ZodEnum<{
|
|
3
|
+
createdAt: "createdAt";
|
|
4
|
+
updatedAt: "updatedAt";
|
|
5
|
+
hotelId: "hotelId";
|
|
6
|
+
clientId: "clientId";
|
|
7
|
+
provider: "provider";
|
|
8
|
+
hotelExternalId: "hotelExternalId";
|
|
9
|
+
}>;
|
|
2
10
|
export declare namespace FindManyHotelClientAssignmentsContract {
|
|
3
11
|
const getUrl: (params: {
|
|
4
12
|
hotelClientId: string | number;
|
|
@@ -11,12 +19,17 @@ export declare namespace FindManyHotelClientAssignmentsContract {
|
|
|
11
19
|
opera: "opera";
|
|
12
20
|
}>>>;
|
|
13
21
|
}, z.core.$strip>;
|
|
22
|
+
type TBaseFilter = z.infer<typeof BaseFilterSchema>;
|
|
14
23
|
const SORTING_KEYS: ("createdAt" | "updatedAt" | "hotelId" | "clientId" | "provider" | "hotelExternalId")[];
|
|
24
|
+
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
15
25
|
const RequestSchema: z.ZodObject<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
26
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
asc: "asc";
|
|
28
|
+
desc: "desc";
|
|
29
|
+
}>>;
|
|
30
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
31
|
+
pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
|
|
32
|
+
searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
20
33
|
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
21
34
|
createdAt: "createdAt";
|
|
22
35
|
updatedAt: "updatedAt";
|
|
@@ -25,13 +38,10 @@ export declare namespace FindManyHotelClientAssignmentsContract {
|
|
|
25
38
|
provider: "provider";
|
|
26
39
|
hotelExternalId: "hotelExternalId";
|
|
27
40
|
}>>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
33
|
-
pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
|
|
34
|
-
searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
41
|
+
hotelIds: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>>;
|
|
42
|
+
provider: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
opera: "opera";
|
|
44
|
+
}>>>;
|
|
35
45
|
}, z.core.$strip>;
|
|
36
46
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
37
47
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -53,4 +63,5 @@ export declare namespace FindManyHotelClientAssignmentsContract {
|
|
|
53
63
|
}, z.core.$strip>;
|
|
54
64
|
type TResponse = z.infer<typeof ResponseSchema>;
|
|
55
65
|
}
|
|
66
|
+
export {};
|
|
56
67
|
//# sourceMappingURL=find-many-hotel-client-assignments.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-many-hotel-client-assignments.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-client-assignments.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"find-many-hotel-client-assignments.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-client-assignments.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAuBzB,QAAA,MAAM,aAAa;;;;;;;EAAyD,CAAC;AAW7E,yBAAiB,sCAAsC,CAAC;IAC/C,MAAM,MAAM;;gBAAwC,CAAC;IACrD,MAAM,QAAQ,IAAyD,CAAC;IACxE,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB;;;;;qBAAkB,CAAC;IAChD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpD,MAAM,YAAY,yFAAwB,CAAC;IAClD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;qBAAiB,CAAC;IAC5C,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -38,16 +38,16 @@ const z = __importStar(require("zod"));
|
|
|
38
38
|
const hotel_client_models_1 = require("../hotel-client.models");
|
|
39
39
|
const common_1 = require("../../common");
|
|
40
40
|
const hotel_client_assignments_api_1 = require("../hotel-client-assignments.api");
|
|
41
|
-
const
|
|
41
|
+
const BaseQuerySchema = z
|
|
42
42
|
.object({
|
|
43
43
|
hotelIds: common_1.UuidArrayQueryParamSchema.optional(),
|
|
44
44
|
provider: hotel_client_models_1.HotelClientAssignmentSchema.shape.provider.optional(),
|
|
45
45
|
})
|
|
46
46
|
.partial();
|
|
47
|
-
const
|
|
48
|
-
const _RequestSchema =
|
|
49
|
-
...
|
|
50
|
-
orderBy:
|
|
47
|
+
const OrderBySchema = hotel_client_models_1.HotelClientAssignmentSchema.omit({ id: true }).keyof();
|
|
48
|
+
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
49
|
+
...BaseQuerySchema.shape,
|
|
50
|
+
orderBy: OrderBySchema.optional(),
|
|
51
51
|
});
|
|
52
52
|
const _ResponseSchema = z
|
|
53
53
|
.object({ assignments: z.array(hotel_client_models_1.HotelClientAssignmentListItemSchema) })
|
|
@@ -57,8 +57,8 @@ var FindManyHotelClientAssignmentsContract;
|
|
|
57
57
|
FindManyHotelClientAssignmentsContract.getUrl = hotel_client_assignments_api_1.HOTEL_CLIENT_ASSIGNMENTS_API.findMany;
|
|
58
58
|
FindManyHotelClientAssignmentsContract.endpoint = hotel_client_assignments_api_1.HOTEL_CLIENT_ASSIGNMENTS_CONTROLLER.endpoints.findMany;
|
|
59
59
|
FindManyHotelClientAssignmentsContract.httpMethod = common_1.HTTP_METHODS.get;
|
|
60
|
-
FindManyHotelClientAssignmentsContract.BaseFilterSchema =
|
|
61
|
-
FindManyHotelClientAssignmentsContract.SORTING_KEYS =
|
|
60
|
+
FindManyHotelClientAssignmentsContract.BaseFilterSchema = BaseQuerySchema;
|
|
61
|
+
FindManyHotelClientAssignmentsContract.SORTING_KEYS = OrderBySchema.options;
|
|
62
62
|
FindManyHotelClientAssignmentsContract.RequestSchema = _RequestSchema;
|
|
63
63
|
FindManyHotelClientAssignmentsContract.ResponseSchema = _ResponseSchema;
|
|
64
64
|
})(FindManyHotelClientAssignmentsContract || (exports.FindManyHotelClientAssignmentsContract = FindManyHotelClientAssignmentsContract = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
declare const OrderBySchema: z.ZodEnum<{
|
|
3
|
+
type: "type";
|
|
4
|
+
createdAt: "createdAt";
|
|
5
|
+
updatedAt: "updatedAt";
|
|
6
|
+
lastUsedAt: "lastUsedAt";
|
|
7
|
+
keyVersion: "keyVersion";
|
|
8
|
+
}>;
|
|
2
9
|
export declare namespace FindManyHotelClientCredentialsContract {
|
|
3
10
|
const getUrl: (params: {
|
|
4
11
|
assignmentId: string | number;
|
|
@@ -12,20 +19,28 @@ export declare namespace FindManyHotelClientCredentialsContract {
|
|
|
12
19
|
api: "api";
|
|
13
20
|
}>;
|
|
14
21
|
}, z.core.$strip>;
|
|
22
|
+
type TBaseFilter = z.infer<typeof BaseFilterSchema>;
|
|
15
23
|
const SORTING_KEYS: ("type" | "createdAt" | "updatedAt" | "lastUsedAt" | "keyVersion")[];
|
|
24
|
+
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
16
25
|
const RequestSchema: z.ZodObject<{
|
|
17
|
-
|
|
18
|
-
orderDir: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
19
27
|
asc: "asc";
|
|
20
28
|
desc: "desc";
|
|
21
|
-
}
|
|
22
|
-
page: z.
|
|
23
|
-
pageSize: z.
|
|
24
|
-
searchText: z.
|
|
25
|
-
|
|
29
|
+
}>>;
|
|
30
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
31
|
+
pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
|
|
32
|
+
searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
33
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
type: "type";
|
|
35
|
+
createdAt: "createdAt";
|
|
36
|
+
updatedAt: "updatedAt";
|
|
37
|
+
lastUsedAt: "lastUsedAt";
|
|
38
|
+
keyVersion: "keyVersion";
|
|
39
|
+
}>>;
|
|
40
|
+
type: z.ZodEnum<{
|
|
26
41
|
db: "db";
|
|
27
42
|
api: "api";
|
|
28
|
-
}
|
|
43
|
+
}>;
|
|
29
44
|
}, z.core.$strip>;
|
|
30
45
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
31
46
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -47,4 +62,5 @@ export declare namespace FindManyHotelClientCredentialsContract {
|
|
|
47
62
|
}, z.core.$strip>;
|
|
48
63
|
type TResponse = z.infer<typeof ResponseSchema>;
|
|
49
64
|
}
|
|
65
|
+
export {};
|
|
50
66
|
//# sourceMappingURL=find-many-hotel-client-credentials.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-many-hotel-client-credentials.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-client-credentials.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"find-many-hotel-client-credentials.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-client-credentials.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,QAAA,MAAM,aAAa;;;;;;EAA6E,CAAC;AAWjG,yBAAiB,sCAAsC,CAAC;IAC/C,MAAM,MAAM;;;gBAAwC,CAAC;IACrD,MAAM,QAAQ,IAAyD,CAAC;IACxE,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB;;;;;qBAAkB,CAAC;IAChD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpD,MAAM,YAAY,sEAAwB,CAAC;IAClD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;qBAAiB,CAAC;IAC5C,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -38,11 +38,14 @@ const z = __importStar(require("zod"));
|
|
|
38
38
|
const hotel_client_models_1 = require("../hotel-client.models");
|
|
39
39
|
const common_1 = require("../../common");
|
|
40
40
|
const hotel_client_credentials_api_1 = require("../hotel-client-credentials.api");
|
|
41
|
-
const
|
|
41
|
+
const BaseQuerySchema = hotel_client_models_1.HotelClientCredentialSchema.pick({
|
|
42
42
|
type: true,
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
const
|
|
44
|
+
const OrderBySchema = hotel_client_models_1.HotelClientCredentialSchema.omit({ id: true, assignmentId: true }).keyof();
|
|
45
|
+
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
46
|
+
...BaseQuerySchema.shape,
|
|
47
|
+
orderBy: OrderBySchema.optional(),
|
|
48
|
+
});
|
|
46
49
|
const _ResponseSchema = z
|
|
47
50
|
.object({ credentials: z.array(hotel_client_models_1.HotelClientCredentialSchema) })
|
|
48
51
|
.extend(common_1.PaginationResponseSchema.shape);
|
|
@@ -51,8 +54,8 @@ var FindManyHotelClientCredentialsContract;
|
|
|
51
54
|
FindManyHotelClientCredentialsContract.getUrl = hotel_client_credentials_api_1.HOTEL_CLIENT_CREDENTIALS_API.findMany;
|
|
52
55
|
FindManyHotelClientCredentialsContract.endpoint = hotel_client_credentials_api_1.HOTEL_CLIENT_CREDENTIALS_CONTROLLER.endpoints.findMany;
|
|
53
56
|
FindManyHotelClientCredentialsContract.httpMethod = common_1.HTTP_METHODS.get;
|
|
54
|
-
FindManyHotelClientCredentialsContract.BaseFilterSchema =
|
|
55
|
-
FindManyHotelClientCredentialsContract.SORTING_KEYS =
|
|
57
|
+
FindManyHotelClientCredentialsContract.BaseFilterSchema = BaseQuerySchema;
|
|
58
|
+
FindManyHotelClientCredentialsContract.SORTING_KEYS = OrderBySchema.options;
|
|
56
59
|
FindManyHotelClientCredentialsContract.RequestSchema = _RequestSchema;
|
|
57
60
|
FindManyHotelClientCredentialsContract.ResponseSchema = _ResponseSchema;
|
|
58
61
|
})(FindManyHotelClientCredentialsContract || (exports.FindManyHotelClientCredentialsContract = FindManyHotelClientCredentialsContract = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
declare const OrderBySchema: z.ZodEnum<{
|
|
3
|
+
name: "name";
|
|
4
|
+
createdAt: "createdAt";
|
|
5
|
+
updatedAt: "updatedAt";
|
|
6
|
+
status: "status";
|
|
7
|
+
lastSeenAt: "lastSeenAt";
|
|
8
|
+
}>;
|
|
2
9
|
export declare namespace FindManyHotelClientsContract {
|
|
3
10
|
const getUrl: (params?: {} | undefined) => string;
|
|
4
11
|
const endpoint: "";
|
|
@@ -10,20 +17,10 @@ export declare namespace FindManyHotelClientsContract {
|
|
|
10
17
|
}>>>>;
|
|
11
18
|
hotelIds: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>;
|
|
12
19
|
}, z.core.$strip>;
|
|
20
|
+
type TBaseFilter = z.infer<typeof BaseFilterSchema>;
|
|
13
21
|
const SORTING_KEYS: ("name" | "createdAt" | "updatedAt" | "status" | "lastSeenAt")[];
|
|
22
|
+
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
14
23
|
const RequestSchema: z.ZodObject<{
|
|
15
|
-
status: z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
active: "active";
|
|
17
|
-
disabled: "disabled";
|
|
18
|
-
}>>>>;
|
|
19
|
-
hotelIds: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>;
|
|
20
|
-
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
name: "name";
|
|
22
|
-
createdAt: "createdAt";
|
|
23
|
-
updatedAt: "updatedAt";
|
|
24
|
-
status: "status";
|
|
25
|
-
lastSeenAt: "lastSeenAt";
|
|
26
|
-
}>>;
|
|
27
24
|
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
28
25
|
asc: "asc";
|
|
29
26
|
desc: "desc";
|
|
@@ -31,6 +28,18 @@ export declare namespace FindManyHotelClientsContract {
|
|
|
31
28
|
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
32
29
|
pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
|
|
33
30
|
searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
31
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
name: "name";
|
|
33
|
+
createdAt: "createdAt";
|
|
34
|
+
updatedAt: "updatedAt";
|
|
35
|
+
status: "status";
|
|
36
|
+
lastSeenAt: "lastSeenAt";
|
|
37
|
+
}>>;
|
|
38
|
+
status: z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
active: "active";
|
|
40
|
+
disabled: "disabled";
|
|
41
|
+
}>>>>;
|
|
42
|
+
hotelIds: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodString>]>, z.ZodArray<z.ZodUUID>>>;
|
|
34
43
|
}, z.core.$strip>;
|
|
35
44
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
36
45
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -55,4 +64,5 @@ export declare namespace FindManyHotelClientsContract {
|
|
|
55
64
|
}, z.core.$strip>;
|
|
56
65
|
type TResponse = z.infer<typeof ResponseSchema>;
|
|
57
66
|
}
|
|
67
|
+
export {};
|
|
58
68
|
//# sourceMappingURL=find-many-hotel-clients.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-many-hotel-clients.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-clients.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"find-many-hotel-clients.contract.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/find-many-hotel-clients.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAezB,QAAA,MAAM,aAAa;;;;;;EAAqE,CAAC;AAWzF,yBAAiB,4BAA4B,CAAC;IACrC,MAAM,MAAM,qCAA6B,CAAC;IAC1C,MAAM,QAAQ,IAA8C,CAAC;IAC7D,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB;;;;;;qBAAkB,CAAC;IAChD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpD,MAAM,YAAY,kEAAwB,CAAC;IAClD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;qBAAiB,CAAC;IAC5C,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;qBAAkB,CAAC;IAC9C,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|
|
@@ -38,15 +38,15 @@ const z = __importStar(require("zod"));
|
|
|
38
38
|
const common_1 = require("../../common");
|
|
39
39
|
const hotel_client_models_1 = require("../hotel-client.models");
|
|
40
40
|
const hotel_clients_api_1 = require("../hotel-clients.api");
|
|
41
|
-
const
|
|
41
|
+
const BaseQuerySchema = hotel_client_models_1.HotelClientListItemSchema.pick({ status: true })
|
|
42
42
|
.extend({
|
|
43
43
|
hotelIds: common_1.UuidArrayQueryParamSchema,
|
|
44
44
|
})
|
|
45
45
|
.partial();
|
|
46
|
-
const
|
|
47
|
-
const _RequestSchema =
|
|
48
|
-
...
|
|
49
|
-
orderBy:
|
|
46
|
+
const OrderBySchema = hotel_client_models_1.HotelClientListItemSchema.omit({ id: true, hotels: true }).keyof();
|
|
47
|
+
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
48
|
+
...BaseQuerySchema.shape,
|
|
49
|
+
orderBy: OrderBySchema.optional(),
|
|
50
50
|
});
|
|
51
51
|
const _ResponseSchema = z
|
|
52
52
|
.object({ hotelClients: z.array(hotel_client_models_1.HotelClientListItemSchema) })
|
|
@@ -56,8 +56,8 @@ var FindManyHotelClientsContract;
|
|
|
56
56
|
FindManyHotelClientsContract.getUrl = hotel_clients_api_1.HOTEL_CLIENTS_API.findMany;
|
|
57
57
|
FindManyHotelClientsContract.endpoint = hotel_clients_api_1.HOTEL_CLIENTS_CONTROLLER.endpoints.findMany;
|
|
58
58
|
FindManyHotelClientsContract.httpMethod = common_1.HTTP_METHODS.get;
|
|
59
|
-
FindManyHotelClientsContract.BaseFilterSchema =
|
|
60
|
-
FindManyHotelClientsContract.SORTING_KEYS =
|
|
59
|
+
FindManyHotelClientsContract.BaseFilterSchema = BaseQuerySchema;
|
|
60
|
+
FindManyHotelClientsContract.SORTING_KEYS = OrderBySchema.options;
|
|
61
61
|
FindManyHotelClientsContract.RequestSchema = _RequestSchema;
|
|
62
62
|
FindManyHotelClientsContract.ResponseSchema = _ResponseSchema;
|
|
63
63
|
})(FindManyHotelClientsContract || (exports.FindManyHotelClientsContract = FindManyHotelClientsContract = {}));
|
|
@@ -14,4 +14,5 @@ export * from './delete-hotel-client-credential.contract';
|
|
|
14
14
|
export * from './find-hotel-client-credential.contract';
|
|
15
15
|
export * from './find-many-hotel-client-credentials.contract';
|
|
16
16
|
export * from './rotate-hotel-client-credential.contract';
|
|
17
|
+
export * from './reveal-hotel-client-credential.contract';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../hotel-clients/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC"}
|
|
@@ -30,3 +30,4 @@ __exportStar(require("./delete-hotel-client-credential.contract"), exports);
|
|
|
30
30
|
__exportStar(require("./find-hotel-client-credential.contract"), exports);
|
|
31
31
|
__exportStar(require("./find-many-hotel-client-credentials.contract"), exports);
|
|
32
32
|
__exportStar(require("./rotate-hotel-client-credential.contract"), exports);
|
|
33
|
+
__exportStar(require("./reveal-hotel-client-credential.contract"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-many-roles.contract.d.ts","sourceRoot":"","sources":["../../../roles/contracts/find-many-roles.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"find-many-roles.contract.d.ts","sourceRoot":"","sources":["../../../roles/contracts/find-many-roles.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAoBzB,QAAA,MAAM,aAAa;;;;;;;EAIT,CAAC;AAaX,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,MAAM,qCAAqB,CAAC;IAClC,MAAM,QAAQ,IAAsC,CAAC;IACrD,MAAM,UAAU,OAAmB,CAAC;IAEpC,MAAM,gBAAgB;;;;;;;;;qBAAkB,CAAC;IAChD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpD,MAAM,YAAY,4EAAwB,CAAC;IAClD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAEjD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;qBAAqC,CAAC;IAChE,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE9C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;qBAAsC,CAAC;IAClE,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACxD"}
|