controlresell 0.0.41 → 0.0.42
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/package.json +1 -1
- package/src/com/controlresell/models/auth/AuthToken.d.ts +15 -0
- package/src/com/controlresell/models/auth/AuthToken.js +10 -0
- package/src/com/controlresell/models/auth/AuthToken.ts +9 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.d.ts +9 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.js +7 -0
- package/src/com/controlresell/models/auth/RefreshTokenPayload.ts +6 -0
- package/src/com/controlresell/models/catalogs/Catalog.js +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.ts +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AuthTokenSchema: z.ZodObject<{
|
|
3
|
+
accessToken: z.ZodString;
|
|
4
|
+
refreshToken: z.ZodString;
|
|
5
|
+
idToken: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
accessToken: string;
|
|
8
|
+
refreshToken: string;
|
|
9
|
+
idToken: string | number;
|
|
10
|
+
}, {
|
|
11
|
+
accessToken: string;
|
|
12
|
+
refreshToken: string;
|
|
13
|
+
idToken: string | number;
|
|
14
|
+
}>;
|
|
15
|
+
export type AuthToken = z.infer<typeof AuthTokenSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthTokenSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
|
+
exports.AuthTokenSchema = zod_1.z.object({
|
|
7
|
+
accessToken: zod_1.z.string(),
|
|
8
|
+
refreshToken: zod_1.z.string(),
|
|
9
|
+
idToken: zodable_idschema_1.IdSchema
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RefreshTokenPayloadSchema: z.ZodObject<{
|
|
3
|
+
refreshToken: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
refreshToken: string;
|
|
6
|
+
}, {
|
|
7
|
+
refreshToken: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type RefreshTokenPayload = z.infer<typeof RefreshTokenPayloadSchema>;
|
|
@@ -4,6 +4,6 @@ export const CatalogSchema = z.object({
|
|
|
4
4
|
id: z.number(),
|
|
5
5
|
sizeGroupIds: z.array(z.number()),
|
|
6
6
|
title: z.string(),
|
|
7
|
-
disabledFields: z.array(z.string()).nullish()
|
|
7
|
+
disabledFields: z.array(z.string()).nullish()
|
|
8
8
|
})
|
|
9
9
|
export type Catalog = z.infer<typeof CatalogSchema>
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./com/controlresell/models/application/ControlResellEnvironment";
|
|
2
2
|
export * from "./com/controlresell/models/application/RabbitMQRoutingKey";
|
|
3
|
+
export * from "./com/controlresell/models/auth/AuthToken";
|
|
4
|
+
export * from "./com/controlresell/models/auth/RefreshTokenPayload";
|
|
3
5
|
export * from "./com/controlresell/models/catalogs/Catalog";
|
|
4
6
|
export * from "./com/controlresell/models/catalogs/CatalogRoot";
|
|
5
7
|
export * from "./com/controlresell/models/catalogs/ColorRoot";
|
package/src/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./com/controlresell/models/application/ControlResellEnvironment"), exports);
|
|
18
18
|
__exportStar(require("./com/controlresell/models/application/RabbitMQRoutingKey"), exports);
|
|
19
|
+
__exportStar(require("./com/controlresell/models/auth/AuthToken"), exports);
|
|
20
|
+
__exportStar(require("./com/controlresell/models/auth/RefreshTokenPayload"), exports);
|
|
19
21
|
__exportStar(require("./com/controlresell/models/catalogs/Catalog"), exports);
|
|
20
22
|
__exportStar(require("./com/controlresell/models/catalogs/CatalogRoot"), exports);
|
|
21
23
|
__exportStar(require("./com/controlresell/models/catalogs/ColorRoot"), exports);
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./com/controlresell/models/application/ControlResellEnvironment"
|
|
2
2
|
export * from "./com/controlresell/models/application/RabbitMQRoutingKey"
|
|
3
|
+
export * from "./com/controlresell/models/auth/AuthToken"
|
|
4
|
+
export * from "./com/controlresell/models/auth/RefreshTokenPayload"
|
|
3
5
|
export * from "./com/controlresell/models/catalogs/Catalog"
|
|
4
6
|
export * from "./com/controlresell/models/catalogs/CatalogRoot"
|
|
5
7
|
export * from "./com/controlresell/models/catalogs/ColorRoot"
|