controlresell 2.0.1 → 2.0.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.
Files changed (44) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -3
  3. package/src/com/controlresell/models/catalogs/Catalog.js +1 -1
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +1 -1
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -5
  6. package/src/com/controlresell/models/customers/contracts/ContractItem.d.ts +2 -2
  7. package/src/com/controlresell/models/customers/contracts/PrepareContractPayload.d.ts +4 -4
  8. package/src/com/controlresell/models/fees/Fee.d.ts +2 -2
  9. package/src/com/controlresell/models/items/CreatedItems.d.ts +37 -42
  10. package/src/com/controlresell/models/items/Item.d.ts +23 -26
  11. package/src/com/controlresell/models/items/Item.js +0 -1
  12. package/src/com/controlresell/models/items/Item.ts +0 -1
  13. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
  14. package/src/com/controlresell/models/items/ItemSort.d.ts +1 -1
  15. package/src/com/controlresell/models/items/ItemSort.js +1 -1
  16. package/src/com/controlresell/models/items/ItemSort.ts +1 -1
  17. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +43 -48
  18. package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -1
  19. package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -1
  20. package/src/com/controlresell/models/items/UpdatedItem.d.ts +37 -42
  21. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
  22. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
  23. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  24. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  25. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  26. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
  27. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +4 -4
  28. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +33 -38
  29. package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
  30. package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
  31. package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
  32. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  33. package/src/com/controlresell/models/platforms/orders/Order.d.ts +11 -11
  34. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  35. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +6 -6
  36. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +6 -0
  37. package/src/com/controlresell/models/users/UpdateUserPayload.js +2 -0
  38. package/src/com/controlresell/models/users/UpdateUserPayload.ts +2 -0
  39. package/src/com/controlresell/models/users/User.d.ts +3 -0
  40. package/src/com/controlresell/models/users/User.js +2 -1
  41. package/src/com/controlresell/models/users/User.ts +2 -1
  42. package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
  43. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +4 -4
  44. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +2 -2
@@ -19,5 +19,6 @@ exports.UserSchema = zod_1.z.object({
19
19
  customers: zod_1.z.array(Customer_1.CustomerSchema).nullish(),
20
20
  fieldConfigs: zod_1.z.array(FieldConfig_1.FieldConfigSchema).nullish(),
21
21
  createdAt: zod_1.z.coerce.date(),
22
- updatedAt: zod_1.z.coerce.date()
22
+ updatedAt: zod_1.z.coerce.date(),
23
+ lastLoginAt: zod_1.z.coerce.date()
23
24
  });
@@ -17,6 +17,7 @@ export const UserSchema = z.object({
17
17
  customers: z.array(CustomerSchema).nullish(),
18
18
  fieldConfigs: z.array(FieldConfigSchema).nullish(),
19
19
  createdAt: z.coerce.date(),
20
- updatedAt: z.coerce.date()
20
+ updatedAt: z.coerce.date(),
21
+ lastLoginAt: z.coerce.date()
21
22
  })
22
23
  export type User = z.infer<typeof UserSchema>
@@ -10,16 +10,16 @@ export declare const FieldSchema: z.ZodObject<{
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  type: "TEXT" | "SPOT";
12
12
  id: string | number;
13
- userId: string | number;
14
13
  name: string;
14
+ userId: string | number;
15
15
  section: string;
16
16
  config?: string | null | undefined;
17
17
  defaultValue?: string | null | undefined;
18
18
  }, {
19
19
  type: "TEXT" | "SPOT";
20
20
  id: string | number;
21
- userId: string | number;
22
21
  name: string;
22
+ userId: string | number;
23
23
  section: string;
24
24
  config?: string | null | undefined;
25
25
  defaultValue?: string | null | undefined;
@@ -10,14 +10,14 @@ export declare const PlatformAuthRequestSchema: z.ZodObject<{
10
10
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
11
11
  platform: "VINTED" | "SHOPIFY";
12
12
  accountId: string;
13
- userId: string | number;
14
13
  name: string;
14
+ userId: string | number;
15
15
  }, {
16
16
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
17
17
  platform: "VINTED" | "SHOPIFY";
18
18
  accountId: string;
19
- userId: string | number;
20
19
  name: string;
20
+ userId: string | number;
21
21
  }>;
22
22
  otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -26,8 +26,8 @@ export declare const PlatformAuthRequestSchema: z.ZodObject<{
26
26
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
27
27
  platform: "VINTED" | "SHOPIFY";
28
28
  accountId: string;
29
- userId: string | number;
30
29
  name: string;
30
+ userId: string | number;
31
31
  };
32
32
  error?: string | null | undefined;
33
33
  otp?: number | null | undefined;
@@ -36,8 +36,8 @@ export declare const PlatformAuthRequestSchema: z.ZodObject<{
36
36
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
37
37
  platform: "VINTED" | "SHOPIFY";
38
38
  accountId: string;
39
- userId: string | number;
40
39
  name: string;
40
+ userId: string | number;
41
41
  };
42
42
  error?: string | null | undefined;
43
43
  otp?: number | null | undefined;
@@ -9,13 +9,13 @@ export declare const UserOnPlatformSchema: z.ZodObject<{
9
9
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
10
10
  platform: "VINTED" | "SHOPIFY";
11
11
  accountId: string;
12
- userId: string | number;
13
12
  name: string;
13
+ userId: string | number;
14
14
  }, {
15
15
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
16
16
  platform: "VINTED" | "SHOPIFY";
17
17
  accountId: string;
18
- userId: string | number;
19
18
  name: string;
19
+ userId: string | number;
20
20
  }>;
21
21
  export type UserOnPlatform = z.infer<typeof UserOnPlatformSchema>;