controlresell 2.2.1 → 2.2.2
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 +2 -2
- package/src/com/controlresell/models/preferences/Preference.d.ts +10 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +6 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +2 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +2 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +9 -3
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.js +4 -2
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +4 -2
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.d.ts +9 -0
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.js +7 -0
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.ts +6 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +12 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.js +10 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.ts +9 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +3 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +7 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +6 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.d.ts +3 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.js +7 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +10 -4
- package/src/index.ts +4 -1
- package/src/com/controlresell/models/users/preferences/UserPreference.d.ts +0 -18
- package/src/com/controlresell/models/users/preferences/UserPreference.js +0 -11
- package/src/com/controlresell/models/users/preferences/UserPreference.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"controlresell-connector": "^0.3.6",
|
|
21
|
-
"zod": "^3.25.
|
|
21
|
+
"zod": "^3.25.63",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -10,15 +10,21 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
preferenceId: z.ZodString;
|
|
12
12
|
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
enabled: z.ZodBoolean;
|
|
14
|
+
testMode: z.ZodBoolean;
|
|
13
15
|
payload: z.ZodString;
|
|
14
16
|
}, "strip", z.ZodTypeAny, {
|
|
15
17
|
id: string;
|
|
16
18
|
payload: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
testMode: boolean;
|
|
17
21
|
preferenceId: string;
|
|
18
22
|
savedFiltersId?: string | null | undefined;
|
|
19
23
|
}, {
|
|
20
24
|
id: string;
|
|
21
25
|
payload: string;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
testMode: boolean;
|
|
22
28
|
preferenceId: string;
|
|
23
29
|
savedFiltersId?: string | null | undefined;
|
|
24
30
|
}>, "many">>>;
|
|
@@ -32,6 +38,8 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
32
38
|
cases?: {
|
|
33
39
|
id: string;
|
|
34
40
|
payload: string;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
testMode: boolean;
|
|
35
43
|
preferenceId: string;
|
|
36
44
|
savedFiltersId?: string | null | undefined;
|
|
37
45
|
}[] | null | undefined;
|
|
@@ -45,6 +53,8 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
45
53
|
cases?: {
|
|
46
54
|
id: string;
|
|
47
55
|
payload: string;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
testMode: boolean;
|
|
48
58
|
preferenceId: string;
|
|
49
59
|
savedFiltersId?: string | null | undefined;
|
|
50
60
|
}[] | null | undefined;
|
|
@@ -3,15 +3,21 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
preferenceId: z.ZodString;
|
|
5
5
|
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
enabled: z.ZodBoolean;
|
|
7
|
+
testMode: z.ZodBoolean;
|
|
6
8
|
payload: z.ZodString;
|
|
7
9
|
}, "strip", z.ZodTypeAny, {
|
|
8
10
|
id: string;
|
|
9
11
|
payload: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
testMode: boolean;
|
|
10
14
|
preferenceId: string;
|
|
11
15
|
savedFiltersId?: string | null | undefined;
|
|
12
16
|
}, {
|
|
13
17
|
id: string;
|
|
14
18
|
payload: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
testMode: boolean;
|
|
15
21
|
preferenceId: string;
|
|
16
22
|
savedFiltersId?: string | null | undefined;
|
|
17
23
|
}>;
|
|
@@ -6,5 +6,7 @@ exports.PreferenceCaseSchema = zod_1.z.object({
|
|
|
6
6
|
id: zod_1.z.string().uuid(),
|
|
7
7
|
preferenceId: zod_1.z.string().uuid(),
|
|
8
8
|
savedFiltersId: zod_1.z.string().uuid().nullish(),
|
|
9
|
+
enabled: zod_1.z.boolean(),
|
|
10
|
+
testMode: zod_1.z.boolean(),
|
|
9
11
|
payload: zod_1.z.string()
|
|
10
12
|
});
|
|
@@ -4,6 +4,8 @@ export const PreferenceCaseSchema = z.object({
|
|
|
4
4
|
id: z.string().uuid(),
|
|
5
5
|
preferenceId: z.string().uuid(),
|
|
6
6
|
savedFiltersId: z.string().uuid().nullish(),
|
|
7
|
+
enabled: z.boolean(),
|
|
8
|
+
testMode: z.boolean(),
|
|
7
9
|
payload: z.string()
|
|
8
10
|
})
|
|
9
11
|
export type PreferenceCase = z.infer<typeof PreferenceCaseSchema>
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const PreferenceCasePayloadSchema: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodBoolean;
|
|
4
|
+
testMode: z.ZodBoolean;
|
|
5
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
6
|
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
payload: z.ZodString;
|
|
5
7
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
testMode: boolean;
|
|
10
|
+
payload?: string | null | undefined;
|
|
7
11
|
savedFiltersId?: string | null | undefined;
|
|
8
12
|
}, {
|
|
9
|
-
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
testMode: boolean;
|
|
15
|
+
payload?: string | null | undefined;
|
|
10
16
|
savedFiltersId?: string | null | undefined;
|
|
11
17
|
}>;
|
|
12
18
|
export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PreferenceCasePayloadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.PreferenceCasePayloadSchema = zod_1.z.object({
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
enabled: zod_1.z.boolean(),
|
|
7
|
+
testMode: zod_1.z.boolean(),
|
|
8
|
+
payload: zod_1.z.string().nullish(),
|
|
9
|
+
savedFiltersId: zod_1.z.string().uuid().nullish()
|
|
8
10
|
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const PreferenceCasePayloadSchema = z.object({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
enabled: z.boolean(),
|
|
5
|
+
testMode: z.boolean(),
|
|
6
|
+
payload: z.string().nullish(),
|
|
7
|
+
savedFiltersId: z.string().uuid().nullish()
|
|
6
8
|
})
|
|
7
9
|
export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PreferenceWaitPayloadSchema: z.ZodObject<{
|
|
3
|
+
seconds: z.ZodNumber;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
seconds: number;
|
|
6
|
+
}, {
|
|
7
|
+
seconds: number;
|
|
8
|
+
}>;
|
|
9
|
+
export type PreferenceWaitPayload = z.infer<typeof PreferenceWaitPayloadSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PreferenceVariableSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
|
|
4
|
+
allowedTemplates: z.ZodArray<z.ZodEnum<["TITLE", "DESCRIPTION", "MESSAGE"]>, "many">;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
|
|
7
|
+
allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
|
|
8
|
+
}, {
|
|
9
|
+
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
|
|
10
|
+
allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
|
|
11
|
+
}>;
|
|
12
|
+
export type PreferenceVariable = z.infer<typeof PreferenceVariableSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreferenceVariableSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PreferenceVariableName_1 = require("./PreferenceVariableName");
|
|
6
|
+
const PreferenceVariableTemplate_1 = require("./PreferenceVariableTemplate");
|
|
7
|
+
exports.PreferenceVariableSchema = zod_1.z.object({
|
|
8
|
+
name: PreferenceVariableName_1.PreferenceVariableNameSchema,
|
|
9
|
+
allowedTemplates: zod_1.z.array(PreferenceVariableTemplate_1.PreferenceVariableTemplateSchema)
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PreferenceVariableNameSchema} from "./PreferenceVariableName"
|
|
3
|
+
import {PreferenceVariableTemplateSchema} from "./PreferenceVariableTemplate"
|
|
4
|
+
|
|
5
|
+
export const PreferenceVariableSchema = z.object({
|
|
6
|
+
name: PreferenceVariableNameSchema,
|
|
7
|
+
allowedTemplates: z.array(PreferenceVariableTemplateSchema)
|
|
8
|
+
})
|
|
9
|
+
export type PreferenceVariable = z.infer<typeof PreferenceVariableSchema>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PreferenceVariableNameSchema: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
|
|
3
|
+
export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreferenceVariableNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PreferenceVariableNameSchema = zod_1.z.enum([
|
|
6
|
+
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
|
|
7
|
+
]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const PreferenceVariableNameSchema = z.enum([
|
|
4
|
+
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
|
|
5
|
+
])
|
|
6
|
+
export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>
|
package/src/index.d.ts
CHANGED
|
@@ -137,6 +137,10 @@ export { PreferencePricePayloadRoundTypeSchema, PreferencePricePayloadRoundType
|
|
|
137
137
|
export { PreferencePricePayloadTypeSchema, PreferencePricePayloadType } from "./com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType";
|
|
138
138
|
export { PreferenceTextPayloadSchema, PreferenceTextPayload } from "./com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload";
|
|
139
139
|
export { PreferenceVisionPayloadSchema, PreferenceVisionPayload } from "./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload";
|
|
140
|
+
export { PreferenceWaitPayloadSchema, PreferenceWaitPayload } from "./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload";
|
|
141
|
+
export { PreferenceVariableSchema, PreferenceVariable } from "./com/controlresell/models/preferences/variables/PreferenceVariable";
|
|
142
|
+
export { PreferenceVariableNameSchema, PreferenceVariableName } from "./com/controlresell/models/preferences/variables/PreferenceVariableName";
|
|
143
|
+
export { PreferenceVariableTemplateSchema, PreferenceVariableTemplate } from "./com/controlresell/models/preferences/variables/PreferenceVariableTemplate";
|
|
140
144
|
export { CreateUserPayloadSchema, CreateUserPayload } from "./com/controlresell/models/users/CreateUserPayload";
|
|
141
145
|
export { GettingStartedStepsSchema, GettingStartedSteps } from "./com/controlresell/models/users/GettingStartedSteps";
|
|
142
146
|
export { UpdateUserPayloadSchema, UpdateUserPayload } from "./com/controlresell/models/users/UpdateUserPayload";
|
|
@@ -159,4 +163,3 @@ export { UserOnPlatformSchema, UserOnPlatform } from "./com/controlresell/models
|
|
|
159
163
|
export { UserOnPlatformRequestSchema, UserOnPlatformRequest } from "./com/controlresell/models/users/platforms/UserOnPlatformRequest";
|
|
160
164
|
export { UserOnPlatformSessionMessageSchema, UserOnPlatformSessionMessage } from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage";
|
|
161
165
|
export { UserOnPlatformStatusSchema, UserOnPlatformStatus } from "./com/controlresell/models/users/platforms/UserOnPlatformStatus";
|
|
162
|
-
export { UserPreferenceSchema, UserPreference } from "./com/controlresell/models/users/preferences/UserPreference";
|
package/src/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ItemHistorySchema = exports.CreateItemHistoryPayloadSchema = exports.UpdateItemFilePayloadSchema = exports.ItemFileSchema = exports.CreateItemFilePayloadSchema = exports.ItemFieldPayloadSchema = exports.ItemFieldSchema = exports.ItemAnalysisRequestSchema = exports.ItemAnalysisCompletionSchema = exports.UpdatedItemSchema = exports.ItemsWithFiltersSchema = exports.ItemSortSchema = exports.ItemSoldPayloadSchema = exports.ItemPayloadSchema = exports.ItemFiltersContextSchema = exports.ItemSchema = exports.CreatedItemsSchema = exports.SavedFiltersPayloadSchema = exports.SavedFiltersSchema = exports.SpotValueSchema = exports.SpotDefaultValueSchema = exports.SpotConfigSchema = exports.FeeRecurrenceSchema = exports.FeeSchema = exports.PrepareContractResponseSchema = exports.PrepareContractPayloadSchema = exports.CreateContractPayloadSchema = exports.ContractItemSchema = exports.ContractSchema = exports.VerifyCustomerRequestSchema = exports.CustomerSchema = exports.SizeRootSchema = exports.SizeGroupSchema = exports.PackageSizesAndStatusesSchema = exports.ColorRootSchema = exports.CatalogRootSchema = exports.CatalogSchema = exports.SwitchAccountPayloadSchema = exports.ResetPasswordPayloadSchema = exports.RegisterPayloadSchema = exports.RefreshTokenPayloadSchema = exports.LoginPayloadSchema = exports.EmailPayloadSchema = exports.CreateAuthCodePayloadSchema = exports.AuthTokenSchema = exports.AuthCodeTypeSchema = exports.AuthCodeSchema = exports.VersionsSchema = exports.RabbitMQRoutingKeySchema = exports.ControlResellEnvironmentSchema = void 0;
|
|
4
4
|
exports.TranslationContextSchema = exports.TranslatedMessageSchema = exports.CreateTranslatedMessagePayloadSchema = exports.UpdateConversationMessageOfferPayloadSchema = exports.CreateConversationMessageOfferPayloadSchema = exports.ConversationOfferUpdateRequestSchema = exports.ConversationOfferRequestSchema = exports.ConversationMessageOfferSchema = exports.UpdateConversationMessageFilePayloadSchema = exports.CreateConversationMessageFilePayloadSchema = exports.ConversationMessageFileSchema = exports.UpdateConversationMessagePayloadSchema = exports.PaginatedConversationMessagesSchema = exports.CreateConversationMessagePayloadSchema = exports.ConversationMessageRequestSchema = exports.ConversationMessageSchema = exports.UserConversationsSchema = exports.UpdateConversationPayloadSchema = exports.CreateConversationPayloadSchema = exports.ConversationOnPlatformUpdateRequestSchema = exports.ConversationSchema = exports.PlatformFiltersContextSchema = exports.NotificationTokenSchema = exports.CreateNotificationTokenPayloadSchema = exports.StatusSchema = exports.SizeSchema = exports.PlaceSchema = exports.CreatePlacePayloadSchema = exports.PackageSizeSchema = exports.LabelSchema = exports.CreateLabelPayloadSchema = exports.ColorSchema = exports.CreateBrandPayloadSchema = exports.BrandSchema = exports.InvestmentSummaryBreakdownSchema = exports.InvestmentSummarySchema = exports.UpdateItemOnPlatformPayloadSchema = exports.PlatformInfoSchema = exports.ItemOnPlatformsRequestWithItemSchema = exports.ItemOnPlatformsRequestSchema = exports.ItemOnPlatformUpdateRequestSchema = exports.ItemOnPlatformStatusSchema = exports.ItemOnPlatformSchema = exports.CreateItemOnPlatformPayloadSchema = exports.ItemLabelSchema = exports.CreateItemLabelPayloadSchema = exports.ItemHistoryScheduledPayloadSchema = exports.ItemHistoryFailedToPublishPayloadSchema = exports.ItemHistoryTypeWithCountSchema = exports.ItemHistoryTypeSchema = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
5
|
+
exports.AffiliateSchema = exports.WalletSchema = exports.UserContextSchema = exports.UserSchema = exports.UpdateUserPayloadSchema = exports.GettingStartedStepsSchema = exports.CreateUserPayloadSchema = exports.PreferenceVariableTemplateSchema = exports.PreferenceVariableNameSchema = exports.PreferenceVariableSchema = exports.PreferenceWaitPayloadSchema = exports.PreferenceVisionPayloadSchema = exports.PreferenceTextPayloadSchema = exports.PreferencePricePayloadTypeSchema = exports.PreferencePricePayloadRoundTypeSchema = exports.PreferencePricePayloadSchema = exports.PreferencePriceNegotiationProfileSchema = exports.PreferenceFeesPayloadFeeSchema = exports.PreferenceFeesPayloadSchema = exports.PreferenceActionsPayloadSchema = exports.PreferenceActionVariantPayloadSchema = exports.PreferenceActionPayloadTypeSchema = exports.PreferenceActionPayloadSchema = exports.PreferenceCasePayloadSchema = exports.PreferenceCaseSchema = exports.UpdatePreferencePayloadSchema = exports.PreferenceTypeSchema = exports.PreferenceSchema = exports.CreatePreferencePayloadSchema = exports.TransactionWithItemsSchema = exports.ItemInTransactionSchema = exports.CreateItemInTransactionPayloadSchema = exports.UpdateTransactionPayloadSchema = exports.TransactionSchema = exports.CreateTransactionPayloadSchema = exports.UpdatePlatformPreferencePayloadSchema = exports.PlatformPreferenceSchema = exports.CreatePlatformPreferencePayloadSchema = exports.OrderWithItemsSchema = exports.ItemInOrderSchema = exports.CreateItemInOrderPayloadSchema = exports.UpdateOrderPayloadSchema = exports.OrderOnPlatformUpdateRequestSchema = exports.OrderSchema = exports.CreateOrderPayloadSchema = exports.OrderLabelSchema = exports.CreateOrderLabelPayloadSchema = exports.UpdateConversationUserPayloadSchema = exports.CreateConversationUserPayloadSchema = exports.ConversationUserSchema = void 0;
|
|
6
|
+
exports.UserOnPlatformStatusSchema = exports.UserOnPlatformSessionMessageSchema = exports.UserOnPlatformRequestSchema = exports.UserOnPlatformSchema = exports.UpdateUserOnPlatformPayloadSchema = exports.PlatformJobUpdateSchema = exports.PlatformAuthRequestSchema = exports.CreateUserOnPlatformPayloadSchema = exports.FileSchema = exports.CreateFilePayloadSchema = exports.FieldsWithDataSchema = exports.FieldTypeSchema = exports.FieldPayloadSchema = exports.FieldConfigSchema = exports.FieldSchema = void 0;
|
|
7
7
|
var ControlResellEnvironment_1 = require("./com/controlresell/models/application/ControlResellEnvironment");
|
|
8
8
|
Object.defineProperty(exports, "ControlResellEnvironmentSchema", { enumerable: true, get: function () { return ControlResellEnvironment_1.ControlResellEnvironmentSchema; } });
|
|
9
9
|
var RabbitMQRoutingKey_1 = require("./com/controlresell/models/application/RabbitMQRoutingKey");
|
|
@@ -282,6 +282,14 @@ var PreferenceTextPayload_1 = require("./com/controlresell/models/preferences/pa
|
|
|
282
282
|
Object.defineProperty(exports, "PreferenceTextPayloadSchema", { enumerable: true, get: function () { return PreferenceTextPayload_1.PreferenceTextPayloadSchema; } });
|
|
283
283
|
var PreferenceVisionPayload_1 = require("./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload");
|
|
284
284
|
Object.defineProperty(exports, "PreferenceVisionPayloadSchema", { enumerable: true, get: function () { return PreferenceVisionPayload_1.PreferenceVisionPayloadSchema; } });
|
|
285
|
+
var PreferenceWaitPayload_1 = require("./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload");
|
|
286
|
+
Object.defineProperty(exports, "PreferenceWaitPayloadSchema", { enumerable: true, get: function () { return PreferenceWaitPayload_1.PreferenceWaitPayloadSchema; } });
|
|
287
|
+
var PreferenceVariable_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariable");
|
|
288
|
+
Object.defineProperty(exports, "PreferenceVariableSchema", { enumerable: true, get: function () { return PreferenceVariable_1.PreferenceVariableSchema; } });
|
|
289
|
+
var PreferenceVariableName_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariableName");
|
|
290
|
+
Object.defineProperty(exports, "PreferenceVariableNameSchema", { enumerable: true, get: function () { return PreferenceVariableName_1.PreferenceVariableNameSchema; } });
|
|
291
|
+
var PreferenceVariableTemplate_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariableTemplate");
|
|
292
|
+
Object.defineProperty(exports, "PreferenceVariableTemplateSchema", { enumerable: true, get: function () { return PreferenceVariableTemplate_1.PreferenceVariableTemplateSchema; } });
|
|
285
293
|
var CreateUserPayload_1 = require("./com/controlresell/models/users/CreateUserPayload");
|
|
286
294
|
Object.defineProperty(exports, "CreateUserPayloadSchema", { enumerable: true, get: function () { return CreateUserPayload_1.CreateUserPayloadSchema; } });
|
|
287
295
|
var GettingStartedSteps_1 = require("./com/controlresell/models/users/GettingStartedSteps");
|
|
@@ -326,5 +334,3 @@ var UserOnPlatformSessionMessage_1 = require("./com/controlresell/models/users/p
|
|
|
326
334
|
Object.defineProperty(exports, "UserOnPlatformSessionMessageSchema", { enumerable: true, get: function () { return UserOnPlatformSessionMessage_1.UserOnPlatformSessionMessageSchema; } });
|
|
327
335
|
var UserOnPlatformStatus_1 = require("./com/controlresell/models/users/platforms/UserOnPlatformStatus");
|
|
328
336
|
Object.defineProperty(exports, "UserOnPlatformStatusSchema", { enumerable: true, get: function () { return UserOnPlatformStatus_1.UserOnPlatformStatusSchema; } });
|
|
329
|
-
var UserPreference_1 = require("./com/controlresell/models/users/preferences/UserPreference");
|
|
330
|
-
Object.defineProperty(exports, "UserPreferenceSchema", { enumerable: true, get: function () { return UserPreference_1.UserPreferenceSchema; } });
|
package/src/index.ts
CHANGED
|
@@ -137,6 +137,10 @@ export {PreferencePricePayloadRoundTypeSchema, PreferencePricePayloadRoundType}
|
|
|
137
137
|
export {PreferencePricePayloadTypeSchema, PreferencePricePayloadType} from "./com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType"
|
|
138
138
|
export {PreferenceTextPayloadSchema, PreferenceTextPayload} from "./com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload"
|
|
139
139
|
export {PreferenceVisionPayloadSchema, PreferenceVisionPayload} from "./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload"
|
|
140
|
+
export {PreferenceWaitPayloadSchema, PreferenceWaitPayload} from "./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload"
|
|
141
|
+
export {PreferenceVariableSchema, PreferenceVariable} from "./com/controlresell/models/preferences/variables/PreferenceVariable"
|
|
142
|
+
export {PreferenceVariableNameSchema, PreferenceVariableName} from "./com/controlresell/models/preferences/variables/PreferenceVariableName"
|
|
143
|
+
export {PreferenceVariableTemplateSchema, PreferenceVariableTemplate} from "./com/controlresell/models/preferences/variables/PreferenceVariableTemplate"
|
|
140
144
|
export {CreateUserPayloadSchema, CreateUserPayload} from "./com/controlresell/models/users/CreateUserPayload"
|
|
141
145
|
export {GettingStartedStepsSchema, GettingStartedSteps} from "./com/controlresell/models/users/GettingStartedSteps"
|
|
142
146
|
export {UpdateUserPayloadSchema, UpdateUserPayload} from "./com/controlresell/models/users/UpdateUserPayload"
|
|
@@ -159,4 +163,3 @@ export {UserOnPlatformSchema, UserOnPlatform} from "./com/controlresell/models/u
|
|
|
159
163
|
export {UserOnPlatformRequestSchema, UserOnPlatformRequest} from "./com/controlresell/models/users/platforms/UserOnPlatformRequest"
|
|
160
164
|
export {UserOnPlatformSessionMessageSchema, UserOnPlatformSessionMessage} from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"
|
|
161
165
|
export {UserOnPlatformStatusSchema, UserOnPlatformStatus} from "./com/controlresell/models/users/platforms/UserOnPlatformStatus"
|
|
162
|
-
export {UserPreferenceSchema, UserPreference} from "./com/controlresell/models/users/preferences/UserPreference"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const UserPreferenceSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5
|
-
titleTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
descriptionTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: number;
|
|
9
|
-
userId: string | number;
|
|
10
|
-
descriptionTemplate?: string | null | undefined;
|
|
11
|
-
titleTemplate?: string | null | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
id: number;
|
|
14
|
-
userId: string | number;
|
|
15
|
-
descriptionTemplate?: string | null | undefined;
|
|
16
|
-
titleTemplate?: string | null | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export type UserPreference = z.infer<typeof UserPreferenceSchema>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserPreferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
|
-
exports.UserPreferenceSchema = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.number(),
|
|
8
|
-
userId: zodable_idschema_1.IdSchema,
|
|
9
|
-
titleTemplate: zod_1.z.string().nullish(),
|
|
10
|
-
descriptionTemplate: zod_1.z.string().nullish()
|
|
11
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {z} from "zod"
|
|
2
|
-
import {IdSchema} from "zodable-idschema"
|
|
3
|
-
|
|
4
|
-
export const UserPreferenceSchema = z.object({
|
|
5
|
-
id: z.number(),
|
|
6
|
-
userId: IdSchema,
|
|
7
|
-
titleTemplate: z.string().nullish(),
|
|
8
|
-
descriptionTemplate: z.string().nullish()
|
|
9
|
-
})
|
|
10
|
-
export type UserPreference = z.infer<typeof UserPreferenceSchema>
|