controlresell 2.2.18 → 2.3.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.
Files changed (37) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +130 -130
  3. package/src/com/controlresell/models/items/Item.d.ts +104 -104
  4. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +130 -130
  5. package/src/com/controlresell/models/items/UpdatedItem.d.ts +130 -130
  6. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  7. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  8. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  9. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  10. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  11. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +130 -130
  12. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +130 -130
  13. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  14. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +130 -130
  15. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  16. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  17. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  18. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  19. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  23. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  24. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  25. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +1417 -1417
  26. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  27. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  28. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  32. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  33. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  34. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  35. package/src/index.d.ts +1 -0
  36. package/src/index.js +3 -1
  37. package/src/index.ts +1 -0
@@ -1,34 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreferenceCaseVariantDecodedPayloadSchema = void 0;
3
+ exports.PreferenceCaseVariantDecodedPayloadSchema = exports.PreferenceCaseVariantDecodedPayloadVisionSchema = exports.PreferenceCaseVariantDecodedPayloadTextSchema = exports.PreferenceCaseVariantDecodedPayloadPriceSchema = exports.PreferenceCaseVariantDecodedPayloadFeesSchema = exports.PreferenceCaseVariantDecodedPayloadEmptySchema = exports.PreferenceCaseVariantDecodedPayloadActionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const PreferencePricePayload_1 = require("../payloads/prices/PreferencePricePayload");
6
- const PreferenceVisionPayload_1 = require("../payloads/vision/PreferenceVisionPayload");
7
- const PreferenceTextPayload_1 = require("../payloads/texts/PreferenceTextPayload");
8
5
  const PreferenceActionsPayload_1 = require("../payloads/actions/PreferenceActionsPayload");
9
6
  const PreferenceFeesPayload_1 = require("../payloads/fees/PreferenceFeesPayload");
7
+ const PreferencePricePayload_1 = require("../payloads/prices/PreferencePricePayload");
8
+ const PreferenceTextPayload_1 = require("../payloads/texts/PreferenceTextPayload");
9
+ const PreferenceVisionPayload_1 = require("../payloads/vision/PreferenceVisionPayload");
10
+ exports.PreferenceCaseVariantDecodedPayloadActionsSchema = zod_1.z.object({
11
+ data: PreferenceActionsPayload_1.PreferenceActionsPayloadSchema,
12
+ type: zod_1.z.literal("ACTIONS")
13
+ });
14
+ exports.PreferenceCaseVariantDecodedPayloadEmptySchema = zod_1.z.object({
15
+ type: zod_1.z.literal("EMPTY")
16
+ });
17
+ exports.PreferenceCaseVariantDecodedPayloadFeesSchema = zod_1.z.object({
18
+ data: PreferenceFeesPayload_1.PreferenceFeesPayloadSchema,
19
+ type: zod_1.z.literal("FEES")
20
+ });
21
+ exports.PreferenceCaseVariantDecodedPayloadPriceSchema = zod_1.z.object({
22
+ data: PreferencePricePayload_1.PreferencePricePayloadSchema,
23
+ type: zod_1.z.literal("PRICE")
24
+ });
25
+ exports.PreferenceCaseVariantDecodedPayloadTextSchema = zod_1.z.object({
26
+ data: PreferenceTextPayload_1.PreferenceTextPayloadSchema,
27
+ type: zod_1.z.literal("TEXT")
28
+ });
29
+ exports.PreferenceCaseVariantDecodedPayloadVisionSchema = zod_1.z.object({
30
+ data: PreferenceVisionPayload_1.PreferenceVisionPayloadSchema,
31
+ type: zod_1.z.literal("VISION")
32
+ });
10
33
  exports.PreferenceCaseVariantDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
11
- zod_1.z.object({
12
- type: zod_1.z.literal("EMPTY"),
13
- }),
14
- zod_1.z.object({
15
- type: zod_1.z.literal("PRICE"),
16
- data: PreferencePricePayload_1.PreferencePricePayloadSchema,
17
- }),
18
- zod_1.z.object({
19
- type: zod_1.z.literal("VISION"),
20
- data: PreferenceVisionPayload_1.PreferenceVisionPayloadSchema,
21
- }),
22
- zod_1.z.object({
23
- type: zod_1.z.literal("TEXT"),
24
- data: PreferenceTextPayload_1.PreferenceTextPayloadSchema,
25
- }),
26
- zod_1.z.object({
27
- type: zod_1.z.literal("ACTIONS"),
28
- data: PreferenceActionsPayload_1.PreferenceActionsPayloadSchema,
29
- }),
30
- zod_1.z.object({
31
- type: zod_1.z.literal("FEES"),
32
- data: PreferenceFeesPayload_1.PreferenceFeesPayloadSchema,
33
- }),
34
+ exports.PreferenceCaseVariantDecodedPayloadActionsSchema,
35
+ exports.PreferenceCaseVariantDecodedPayloadEmptySchema,
36
+ exports.PreferenceCaseVariantDecodedPayloadFeesSchema,
37
+ exports.PreferenceCaseVariantDecodedPayloadPriceSchema,
38
+ exports.PreferenceCaseVariantDecodedPayloadTextSchema,
39
+ exports.PreferenceCaseVariantDecodedPayloadVisionSchema
34
40
  ]);
@@ -1,34 +1,51 @@
1
1
  import {z} from "zod"
2
-
3
- import {PreferencePricePayloadSchema} from "../payloads/prices/PreferencePricePayload"
4
- import {PreferenceVisionPayloadSchema} from "../payloads/vision/PreferenceVisionPayload"
5
- import {PreferenceTextPayloadSchema} from "../payloads/texts/PreferenceTextPayload"
6
2
  import {PreferenceActionsPayloadSchema} from "../payloads/actions/PreferenceActionsPayload"
7
3
  import {PreferenceFeesPayloadSchema} from "../payloads/fees/PreferenceFeesPayload"
4
+ import {PreferencePricePayloadSchema} from "../payloads/prices/PreferencePricePayload"
5
+ import {PreferenceTextPayloadSchema} from "../payloads/texts/PreferenceTextPayload"
6
+ import {PreferenceVisionPayloadSchema} from "../payloads/vision/PreferenceVisionPayload"
7
+
8
+ export const PreferenceCaseVariantDecodedPayloadActionsSchema = z.object({
9
+ data: PreferenceActionsPayloadSchema,
10
+ type: z.literal("ACTIONS")
11
+ })
12
+ export type PreferenceCaseVariantDecodedPayloadActions = z.infer<typeof PreferenceCaseVariantDecodedPayloadActionsSchema>
13
+
14
+ export const PreferenceCaseVariantDecodedPayloadEmptySchema = z.object({
15
+ type: z.literal("EMPTY")
16
+ })
17
+ export type PreferenceCaseVariantDecodedPayloadEmpty = z.infer<typeof PreferenceCaseVariantDecodedPayloadEmptySchema>
18
+
19
+ export const PreferenceCaseVariantDecodedPayloadFeesSchema = z.object({
20
+ data: PreferenceFeesPayloadSchema,
21
+ type: z.literal("FEES")
22
+ })
23
+ export type PreferenceCaseVariantDecodedPayloadFees = z.infer<typeof PreferenceCaseVariantDecodedPayloadFeesSchema>
24
+
25
+ export const PreferenceCaseVariantDecodedPayloadPriceSchema = z.object({
26
+ data: PreferencePricePayloadSchema,
27
+ type: z.literal("PRICE")
28
+ })
29
+ export type PreferenceCaseVariantDecodedPayloadPrice = z.infer<typeof PreferenceCaseVariantDecodedPayloadPriceSchema>
30
+
31
+ export const PreferenceCaseVariantDecodedPayloadTextSchema = z.object({
32
+ data: PreferenceTextPayloadSchema,
33
+ type: z.literal("TEXT")
34
+ })
35
+ export type PreferenceCaseVariantDecodedPayloadText = z.infer<typeof PreferenceCaseVariantDecodedPayloadTextSchema>
36
+
37
+ export const PreferenceCaseVariantDecodedPayloadVisionSchema = z.object({
38
+ data: PreferenceVisionPayloadSchema,
39
+ type: z.literal("VISION")
40
+ })
41
+ export type PreferenceCaseVariantDecodedPayloadVision = z.infer<typeof PreferenceCaseVariantDecodedPayloadVisionSchema>
8
42
 
9
43
  export const PreferenceCaseVariantDecodedPayloadSchema = z.discriminatedUnion("type", [
10
- z.object({
11
- type: z.literal("EMPTY"),
12
- }),
13
- z.object({
14
- type: z.literal("PRICE"),
15
- data: PreferencePricePayloadSchema,
16
- }),
17
- z.object({
18
- type: z.literal("VISION"),
19
- data: PreferenceVisionPayloadSchema,
20
- }),
21
- z.object({
22
- type: z.literal("TEXT"),
23
- data: PreferenceTextPayloadSchema,
24
- }),
25
- z.object({
26
- type: z.literal("ACTIONS"),
27
- data: PreferenceActionsPayloadSchema,
28
- }),
29
- z.object({
30
- type: z.literal("FEES"),
31
- data: PreferenceFeesPayloadSchema,
32
- }),
44
+ PreferenceCaseVariantDecodedPayloadActionsSchema,
45
+ PreferenceCaseVariantDecodedPayloadEmptySchema,
46
+ PreferenceCaseVariantDecodedPayloadFeesSchema,
47
+ PreferenceCaseVariantDecodedPayloadPriceSchema,
48
+ PreferenceCaseVariantDecodedPayloadTextSchema,
49
+ PreferenceCaseVariantDecodedPayloadVisionSchema
33
50
  ])
34
51
  export type PreferenceCaseVariantDecodedPayload = z.infer<typeof PreferenceCaseVariantDecodedPayloadSchema>