@purpleschool/gptbot 0.20.8-stage-2 → 0.20.9-stage-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.
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- import { ORDER_STATUS, ORDER_TYPE, SORT_ORDER } from '../../constants';
2
+ import { ORDER_STATUS, ORDER_TYPE, SORT_ORDER, REGISTRATION_PLATFORM } from '../../constants';
3
3
  import { ORDER_SORT_BY } from '../../constants/order/enums/order-sort-by.enum';
4
4
  export declare namespace GetUserOrdersCommand {
5
5
  const RequestParamSchema: z.ZodObject<{
@@ -8,6 +8,7 @@ export declare namespace GetUserOrdersCommand {
8
8
  type RequestParam = z.infer<typeof RequestParamSchema>;
9
9
  const RequestSchema: z.ZodObject<{
10
10
  status: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ORDER_STATUS>>>;
11
+ clientPlatform: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof REGISTRATION_PLATFORM>>>;
11
12
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ORDER_TYPE>>>;
12
13
  sortBy: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ORDER_SORT_BY>>>;
13
14
  sortOrder: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof SORT_ORDER>>>>;
@@ -16,6 +17,7 @@ export declare namespace GetUserOrdersCommand {
16
17
  data: z.ZodArray<z.ZodObject<{
17
18
  uuid: z.ZodUUID;
18
19
  userId: z.ZodUUID;
20
+ clientPlatform: z.ZodEnum<typeof REGISTRATION_PLATFORM>;
19
21
  status: z.ZodString;
20
22
  type: z.ZodString;
21
23
  productId: z.ZodNullable<z.ZodUUID>;
@@ -16,6 +16,7 @@ var GetUserOrdersCommand;
16
16
  GetUserOrdersCommand.RequestSchema = zod_1.default
17
17
  .object({
18
18
  status: zod_1.default.enum(constants_1.ORDER_STATUS).optional(),
19
+ clientPlatform: zod_1.default.enum(constants_1.REGISTRATION_PLATFORM).optional(),
19
20
  type: zod_1.default.enum(constants_1.ORDER_TYPE).optional(),
20
21
  sortBy: zod_1.default.enum(order_sort_by_enum_1.ORDER_SORT_BY).optional(),
21
22
  sortOrder: zod_1.default.enum(constants_1.SORT_ORDER).default(constants_1.SORT_ORDER.DESC).optional(),
@@ -1,7 +1,9 @@
1
1
  import { z } from 'zod';
2
+ import { REGISTRATION_PLATFORM } from '../constants';
2
3
  export declare const OrderSchema: z.ZodObject<{
3
4
  uuid: z.ZodUUID;
4
5
  userId: z.ZodUUID;
6
+ clientPlatform: z.ZodEnum<typeof REGISTRATION_PLATFORM>;
5
7
  status: z.ZodString;
6
8
  type: z.ZodString;
7
9
  productId: z.ZodNullable<z.ZodUUID>;
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const constants_1 = require("../constants");
5
6
  exports.OrderSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.uuid(),
7
8
  userId: zod_1.z.uuid(),
9
+ clientPlatform: zod_1.z.enum(constants_1.REGISTRATION_PLATFORM),
8
10
  status: zod_1.z.string(),
9
11
  type: zod_1.z.string(),
10
12
  productId: zod_1.z.nullable(zod_1.z.uuid()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.20.8-stage-2",
3
+ "version": "0.20.9-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",