controlresell 2.2.1 → 2.2.3
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/PartialPreferenceCasePayload.d.ts +18 -0
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.js +10 -0
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.ts +9 -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 +7 -1
- 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 +5 -1
- package/src/index.js +12 -4
- package/src/index.ts +5 -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.3",
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
|
+
testMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
payload?: string | null | undefined;
|
|
9
|
+
enabled?: boolean | null | undefined;
|
|
10
|
+
testMode?: boolean | null | undefined;
|
|
11
|
+
savedFiltersId?: string | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
payload?: string | null | undefined;
|
|
14
|
+
enabled?: boolean | null | undefined;
|
|
15
|
+
testMode?: boolean | null | undefined;
|
|
16
|
+
savedFiltersId?: string | null | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type PartialPreferenceCasePayload = z.infer<typeof PartialPreferenceCasePayloadSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartialPreferenceCasePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PartialPreferenceCasePayloadSchema = zod_1.z.object({
|
|
6
|
+
enabled: zod_1.z.boolean().nullish(),
|
|
7
|
+
testMode: zod_1.z.boolean().nullish(),
|
|
8
|
+
payload: zod_1.z.string().nullish(),
|
|
9
|
+
savedFiltersId: zod_1.z.string().uuid().nullish()
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const PartialPreferenceCasePayloadSchema = z.object({
|
|
4
|
+
enabled: z.boolean().nullish(),
|
|
5
|
+
testMode: z.boolean().nullish(),
|
|
6
|
+
payload: z.string().nullish(),
|
|
7
|
+
savedFiltersId: z.string().uuid().nullish()
|
|
8
|
+
})
|
|
9
|
+
export type PartialPreferenceCasePayload = z.infer<typeof PartialPreferenceCasePayloadSchema>
|
|
@@ -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
|
-
|
|
3
|
+
enabled: z.ZodBoolean;
|
|
4
|
+
testMode: z.ZodBoolean;
|
|
4
5
|
payload: z.ZodString;
|
|
6
|
+
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
7
|
}, "strip", z.ZodTypeAny, {
|
|
6
8
|
payload: string;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
testMode: boolean;
|
|
7
11
|
savedFiltersId?: string | null | undefined;
|
|
8
12
|
}, {
|
|
9
13
|
payload: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
testMode: boolean;
|
|
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(),
|
|
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(),
|
|
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
|
@@ -123,6 +123,7 @@ export { CreatePreferencePayloadSchema, CreatePreferencePayload } from "./com/co
|
|
|
123
123
|
export { PreferenceSchema, Preference } from "./com/controlresell/models/preferences/Preference";
|
|
124
124
|
export { PreferenceTypeSchema, PreferenceType } from "./com/controlresell/models/preferences/PreferenceType";
|
|
125
125
|
export { UpdatePreferencePayloadSchema, UpdatePreferencePayload } from "./com/controlresell/models/preferences/UpdatePreferencePayload";
|
|
126
|
+
export { PartialPreferenceCasePayloadSchema, PartialPreferenceCasePayload } from "./com/controlresell/models/preferences/cases/PartialPreferenceCasePayload";
|
|
126
127
|
export { PreferenceCaseSchema, PreferenceCase } from "./com/controlresell/models/preferences/cases/PreferenceCase";
|
|
127
128
|
export { PreferenceCasePayloadSchema, PreferenceCasePayload } from "./com/controlresell/models/preferences/cases/PreferenceCasePayload";
|
|
128
129
|
export { PreferenceActionPayloadSchema, PreferenceActionPayload } from "./com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload";
|
|
@@ -137,6 +138,10 @@ export { PreferencePricePayloadRoundTypeSchema, PreferencePricePayloadRoundType
|
|
|
137
138
|
export { PreferencePricePayloadTypeSchema, PreferencePricePayloadType } from "./com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType";
|
|
138
139
|
export { PreferenceTextPayloadSchema, PreferenceTextPayload } from "./com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload";
|
|
139
140
|
export { PreferenceVisionPayloadSchema, PreferenceVisionPayload } from "./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload";
|
|
141
|
+
export { PreferenceWaitPayloadSchema, PreferenceWaitPayload } from "./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload";
|
|
142
|
+
export { PreferenceVariableSchema, PreferenceVariable } from "./com/controlresell/models/preferences/variables/PreferenceVariable";
|
|
143
|
+
export { PreferenceVariableNameSchema, PreferenceVariableName } from "./com/controlresell/models/preferences/variables/PreferenceVariableName";
|
|
144
|
+
export { PreferenceVariableTemplateSchema, PreferenceVariableTemplate } from "./com/controlresell/models/preferences/variables/PreferenceVariableTemplate";
|
|
140
145
|
export { CreateUserPayloadSchema, CreateUserPayload } from "./com/controlresell/models/users/CreateUserPayload";
|
|
141
146
|
export { GettingStartedStepsSchema, GettingStartedSteps } from "./com/controlresell/models/users/GettingStartedSteps";
|
|
142
147
|
export { UpdateUserPayloadSchema, UpdateUserPayload } from "./com/controlresell/models/users/UpdateUserPayload";
|
|
@@ -159,4 +164,3 @@ export { UserOnPlatformSchema, UserOnPlatform } from "./com/controlresell/models
|
|
|
159
164
|
export { UserOnPlatformRequestSchema, UserOnPlatformRequest } from "./com/controlresell/models/users/platforms/UserOnPlatformRequest";
|
|
160
165
|
export { UserOnPlatformSessionMessageSchema, UserOnPlatformSessionMessage } from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage";
|
|
161
166
|
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.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.PartialPreferenceCasePayloadSchema = 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 = exports.AffiliateSchema = 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");
|
|
@@ -254,6 +254,8 @@ var PreferenceType_1 = require("./com/controlresell/models/preferences/Preferenc
|
|
|
254
254
|
Object.defineProperty(exports, "PreferenceTypeSchema", { enumerable: true, get: function () { return PreferenceType_1.PreferenceTypeSchema; } });
|
|
255
255
|
var UpdatePreferencePayload_1 = require("./com/controlresell/models/preferences/UpdatePreferencePayload");
|
|
256
256
|
Object.defineProperty(exports, "UpdatePreferencePayloadSchema", { enumerable: true, get: function () { return UpdatePreferencePayload_1.UpdatePreferencePayloadSchema; } });
|
|
257
|
+
var PartialPreferenceCasePayload_1 = require("./com/controlresell/models/preferences/cases/PartialPreferenceCasePayload");
|
|
258
|
+
Object.defineProperty(exports, "PartialPreferenceCasePayloadSchema", { enumerable: true, get: function () { return PartialPreferenceCasePayload_1.PartialPreferenceCasePayloadSchema; } });
|
|
257
259
|
var PreferenceCase_1 = require("./com/controlresell/models/preferences/cases/PreferenceCase");
|
|
258
260
|
Object.defineProperty(exports, "PreferenceCaseSchema", { enumerable: true, get: function () { return PreferenceCase_1.PreferenceCaseSchema; } });
|
|
259
261
|
var PreferenceCasePayload_1 = require("./com/controlresell/models/preferences/cases/PreferenceCasePayload");
|
|
@@ -282,6 +284,14 @@ var PreferenceTextPayload_1 = require("./com/controlresell/models/preferences/pa
|
|
|
282
284
|
Object.defineProperty(exports, "PreferenceTextPayloadSchema", { enumerable: true, get: function () { return PreferenceTextPayload_1.PreferenceTextPayloadSchema; } });
|
|
283
285
|
var PreferenceVisionPayload_1 = require("./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload");
|
|
284
286
|
Object.defineProperty(exports, "PreferenceVisionPayloadSchema", { enumerable: true, get: function () { return PreferenceVisionPayload_1.PreferenceVisionPayloadSchema; } });
|
|
287
|
+
var PreferenceWaitPayload_1 = require("./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload");
|
|
288
|
+
Object.defineProperty(exports, "PreferenceWaitPayloadSchema", { enumerable: true, get: function () { return PreferenceWaitPayload_1.PreferenceWaitPayloadSchema; } });
|
|
289
|
+
var PreferenceVariable_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariable");
|
|
290
|
+
Object.defineProperty(exports, "PreferenceVariableSchema", { enumerable: true, get: function () { return PreferenceVariable_1.PreferenceVariableSchema; } });
|
|
291
|
+
var PreferenceVariableName_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariableName");
|
|
292
|
+
Object.defineProperty(exports, "PreferenceVariableNameSchema", { enumerable: true, get: function () { return PreferenceVariableName_1.PreferenceVariableNameSchema; } });
|
|
293
|
+
var PreferenceVariableTemplate_1 = require("./com/controlresell/models/preferences/variables/PreferenceVariableTemplate");
|
|
294
|
+
Object.defineProperty(exports, "PreferenceVariableTemplateSchema", { enumerable: true, get: function () { return PreferenceVariableTemplate_1.PreferenceVariableTemplateSchema; } });
|
|
285
295
|
var CreateUserPayload_1 = require("./com/controlresell/models/users/CreateUserPayload");
|
|
286
296
|
Object.defineProperty(exports, "CreateUserPayloadSchema", { enumerable: true, get: function () { return CreateUserPayload_1.CreateUserPayloadSchema; } });
|
|
287
297
|
var GettingStartedSteps_1 = require("./com/controlresell/models/users/GettingStartedSteps");
|
|
@@ -326,5 +336,3 @@ var UserOnPlatformSessionMessage_1 = require("./com/controlresell/models/users/p
|
|
|
326
336
|
Object.defineProperty(exports, "UserOnPlatformSessionMessageSchema", { enumerable: true, get: function () { return UserOnPlatformSessionMessage_1.UserOnPlatformSessionMessageSchema; } });
|
|
327
337
|
var UserOnPlatformStatus_1 = require("./com/controlresell/models/users/platforms/UserOnPlatformStatus");
|
|
328
338
|
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
|
@@ -123,6 +123,7 @@ export {CreatePreferencePayloadSchema, CreatePreferencePayload} from "./com/cont
|
|
|
123
123
|
export {PreferenceSchema, Preference} from "./com/controlresell/models/preferences/Preference"
|
|
124
124
|
export {PreferenceTypeSchema, PreferenceType} from "./com/controlresell/models/preferences/PreferenceType"
|
|
125
125
|
export {UpdatePreferencePayloadSchema, UpdatePreferencePayload} from "./com/controlresell/models/preferences/UpdatePreferencePayload"
|
|
126
|
+
export {PartialPreferenceCasePayloadSchema, PartialPreferenceCasePayload} from "./com/controlresell/models/preferences/cases/PartialPreferenceCasePayload"
|
|
126
127
|
export {PreferenceCaseSchema, PreferenceCase} from "./com/controlresell/models/preferences/cases/PreferenceCase"
|
|
127
128
|
export {PreferenceCasePayloadSchema, PreferenceCasePayload} from "./com/controlresell/models/preferences/cases/PreferenceCasePayload"
|
|
128
129
|
export {PreferenceActionPayloadSchema, PreferenceActionPayload} from "./com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload"
|
|
@@ -137,6 +138,10 @@ export {PreferencePricePayloadRoundTypeSchema, PreferencePricePayloadRoundType}
|
|
|
137
138
|
export {PreferencePricePayloadTypeSchema, PreferencePricePayloadType} from "./com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType"
|
|
138
139
|
export {PreferenceTextPayloadSchema, PreferenceTextPayload} from "./com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload"
|
|
139
140
|
export {PreferenceVisionPayloadSchema, PreferenceVisionPayload} from "./com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload"
|
|
141
|
+
export {PreferenceWaitPayloadSchema, PreferenceWaitPayload} from "./com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload"
|
|
142
|
+
export {PreferenceVariableSchema, PreferenceVariable} from "./com/controlresell/models/preferences/variables/PreferenceVariable"
|
|
143
|
+
export {PreferenceVariableNameSchema, PreferenceVariableName} from "./com/controlresell/models/preferences/variables/PreferenceVariableName"
|
|
144
|
+
export {PreferenceVariableTemplateSchema, PreferenceVariableTemplate} from "./com/controlresell/models/preferences/variables/PreferenceVariableTemplate"
|
|
140
145
|
export {CreateUserPayloadSchema, CreateUserPayload} from "./com/controlresell/models/users/CreateUserPayload"
|
|
141
146
|
export {GettingStartedStepsSchema, GettingStartedSteps} from "./com/controlresell/models/users/GettingStartedSteps"
|
|
142
147
|
export {UpdateUserPayloadSchema, UpdateUserPayload} from "./com/controlresell/models/users/UpdateUserPayload"
|
|
@@ -159,4 +164,3 @@ export {UserOnPlatformSchema, UserOnPlatform} from "./com/controlresell/models/u
|
|
|
159
164
|
export {UserOnPlatformRequestSchema, UserOnPlatformRequest} from "./com/controlresell/models/users/platforms/UserOnPlatformRequest"
|
|
160
165
|
export {UserOnPlatformSessionMessageSchema, UserOnPlatformSessionMessage} from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"
|
|
161
166
|
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>
|