hh-contracts 0.0.129 → 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 +10 -10
- package/build/hotel-clients/contracts/find-many-hotel-client-assignments.contract.js +1 -1
- package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.d.ts +9 -9
- package/build/hotel-clients/contracts/find-many-hotel-client-credentials.contract.js +1 -1
- package/build/hotel-clients/contracts/find-many-hotel-clients.contract.d.ts +10 -10
- package/build/hotel-clients/contracts/find-many-hotel-clients.contract.js +1 -1
- package/package.json +1 -1
|
@@ -23,25 +23,25 @@ export declare namespace FindManyHotelClientAssignmentsContract {
|
|
|
23
23
|
const SORTING_KEYS: ("createdAt" | "updatedAt" | "hotelId" | "clientId" | "provider" | "hotelExternalId")[];
|
|
24
24
|
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
25
25
|
const RequestSchema: z.ZodObject<{
|
|
26
|
-
orderDir: z.ZodOptional<z.
|
|
26
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
27
27
|
asc: "asc";
|
|
28
28
|
desc: "desc";
|
|
29
|
-
}
|
|
30
|
-
page: z.
|
|
31
|
-
pageSize: z.
|
|
32
|
-
searchText: z.
|
|
33
|
-
orderBy: z.ZodOptional<z.
|
|
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
34
|
createdAt: "createdAt";
|
|
35
35
|
updatedAt: "updatedAt";
|
|
36
36
|
hotelId: "hotelId";
|
|
37
37
|
clientId: "clientId";
|
|
38
38
|
provider: "provider";
|
|
39
39
|
hotelExternalId: "hotelExternalId";
|
|
40
|
-
}
|
|
41
|
-
hotelIds: z.ZodOptional<z.ZodOptional<z.
|
|
42
|
-
provider: z.ZodOptional<z.ZodOptional<z.
|
|
40
|
+
}>>;
|
|
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
43
|
opera: "opera";
|
|
44
|
-
}
|
|
44
|
+
}>>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
47
47
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -48,7 +48,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientAssignmentSchema.omit({ i
|
|
|
48
48
|
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
49
49
|
...BaseQuerySchema.shape,
|
|
50
50
|
orderBy: OrderBySchema.optional(),
|
|
51
|
-
})
|
|
51
|
+
});
|
|
52
52
|
const _ResponseSchema = z
|
|
53
53
|
.object({ assignments: z.array(hotel_client_models_1.HotelClientAssignmentListItemSchema) })
|
|
54
54
|
.extend(common_1.PaginationResponseSchema.shape);
|
|
@@ -23,24 +23,24 @@ export declare namespace FindManyHotelClientCredentialsContract {
|
|
|
23
23
|
const SORTING_KEYS: ("type" | "createdAt" | "updatedAt" | "lastUsedAt" | "keyVersion")[];
|
|
24
24
|
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
25
25
|
const RequestSchema: z.ZodObject<{
|
|
26
|
-
orderDir: z.ZodOptional<z.
|
|
26
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
27
27
|
asc: "asc";
|
|
28
28
|
desc: "desc";
|
|
29
|
-
}
|
|
30
|
-
page: z.
|
|
31
|
-
pageSize: z.
|
|
32
|
-
searchText: z.
|
|
33
|
-
orderBy: z.ZodOptional<z.
|
|
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
34
|
type: "type";
|
|
35
35
|
createdAt: "createdAt";
|
|
36
36
|
updatedAt: "updatedAt";
|
|
37
37
|
lastUsedAt: "lastUsedAt";
|
|
38
38
|
keyVersion: "keyVersion";
|
|
39
|
-
}
|
|
40
|
-
type: z.
|
|
39
|
+
}>>;
|
|
40
|
+
type: z.ZodEnum<{
|
|
41
41
|
db: "db";
|
|
42
42
|
api: "api";
|
|
43
|
-
}
|
|
43
|
+
}>;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
46
46
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -45,7 +45,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientCredentialSchema.omit({ i
|
|
|
45
45
|
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
46
46
|
...BaseQuerySchema.shape,
|
|
47
47
|
orderBy: OrderBySchema.optional(),
|
|
48
|
-
})
|
|
48
|
+
});
|
|
49
49
|
const _ResponseSchema = z
|
|
50
50
|
.object({ credentials: z.array(hotel_client_models_1.HotelClientCredentialSchema) })
|
|
51
51
|
.extend(common_1.PaginationResponseSchema.shape);
|
|
@@ -21,25 +21,25 @@ export declare namespace FindManyHotelClientsContract {
|
|
|
21
21
|
const SORTING_KEYS: ("name" | "createdAt" | "updatedAt" | "status" | "lastSeenAt")[];
|
|
22
22
|
type TSortingKey = z.infer<typeof OrderBySchema>;
|
|
23
23
|
const RequestSchema: z.ZodObject<{
|
|
24
|
-
orderDir: z.ZodOptional<z.
|
|
24
|
+
orderDir: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
asc: "asc";
|
|
26
26
|
desc: "desc";
|
|
27
|
-
}
|
|
28
|
-
page: z.
|
|
29
|
-
pageSize: z.
|
|
30
|
-
searchText: z.
|
|
31
|
-
orderBy: z.ZodOptional<z.
|
|
27
|
+
}>>;
|
|
28
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
29
|
+
pageSize: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number, number>>;
|
|
30
|
+
searchText: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
31
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
name: "name";
|
|
33
33
|
createdAt: "createdAt";
|
|
34
34
|
updatedAt: "updatedAt";
|
|
35
35
|
status: "status";
|
|
36
36
|
lastSeenAt: "lastSeenAt";
|
|
37
|
-
}
|
|
38
|
-
status: z.ZodOptional<z.
|
|
37
|
+
}>>;
|
|
38
|
+
status: z.ZodOptional<z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
39
39
|
active: "active";
|
|
40
40
|
disabled: "disabled";
|
|
41
|
-
}
|
|
42
|
-
hotelIds: z.ZodOptional<z.
|
|
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>>>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
type TRequest = z.infer<typeof RequestSchema>;
|
|
45
45
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -47,7 +47,7 @@ const OrderBySchema = hotel_client_models_1.HotelClientListItemSchema.omit({ id:
|
|
|
47
47
|
const _RequestSchema = common_1.CommonQueryParamsSchema.extend({
|
|
48
48
|
...BaseQuerySchema.shape,
|
|
49
49
|
orderBy: OrderBySchema.optional(),
|
|
50
|
-
})
|
|
50
|
+
});
|
|
51
51
|
const _ResponseSchema = z
|
|
52
52
|
.object({ hotelClients: z.array(hotel_client_models_1.HotelClientListItemSchema) })
|
|
53
53
|
.extend(common_1.PaginationResponseSchema.shape);
|