@jsdev_ninja/core 0.13.18 → 0.13.20

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.
@@ -82,6 +82,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
82
82
  _COMMENT?: string | undefined;
83
83
  }>;
84
84
  warning: z.ZodOptional<z.ZodString>;
85
+ date: z.ZodOptional<z.ZodNumber>;
85
86
  }, "strip", z.ZodTypeAny, {
86
87
  doc_uuid: string;
87
88
  pdf_link: string;
@@ -103,6 +104,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
103
104
  price_total_in_currency: number;
104
105
  _COMMENT?: string | undefined;
105
106
  };
107
+ date?: number | undefined;
106
108
  warning?: string | undefined;
107
109
  }, {
108
110
  doc_uuid: string;
@@ -125,6 +127,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
125
127
  price_total_in_currency: number;
126
128
  _COMMENT?: string | undefined;
127
129
  };
130
+ date?: number | undefined;
128
131
  warning?: string | undefined;
129
132
  }>;
130
133
  export type TDeliveryNote = z.infer<typeof DeliveryNoteSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"DeliveryNote.d.ts","sourceRoot":"","sources":["../../lib/entities/DeliveryNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAGH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAEvE"}
1
+ {"version":3,"file":"DeliveryNote.d.ts","sourceRoot":"","sources":["../../lib/entities/DeliveryNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AAGH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAEvE"}
@@ -24,6 +24,7 @@ export const DeliveryNoteSchema = z.object({
24
24
  ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
25
25
  calculatedData: CalculatedDataSchema,
26
26
  warning: z.string().optional(),
27
+ date: z.number().optional(),
27
28
  });
28
29
  // Validation functions
29
30
  export function isDeliveryNote(data) {
@@ -45,6 +45,7 @@ export declare const InvoiceSchema: z.ZodObject<{
45
45
  _COMMENT?: string | undefined;
46
46
  }>;
47
47
  warning: z.ZodOptional<z.ZodString>;
48
+ date: z.ZodOptional<z.ZodNumber>;
48
49
  }, "strip", z.ZodTypeAny, {
49
50
  doc_uuid: string;
50
51
  pdf_link: string;
@@ -66,6 +67,7 @@ export declare const InvoiceSchema: z.ZodObject<{
66
67
  price_total_in_currency: number;
67
68
  _COMMENT?: string | undefined;
68
69
  };
70
+ date?: number | undefined;
69
71
  warning?: string | undefined;
70
72
  }, {
71
73
  doc_uuid: string;
@@ -88,6 +90,7 @@ export declare const InvoiceSchema: z.ZodObject<{
88
90
  price_total_in_currency: number;
89
91
  _COMMENT?: string | undefined;
90
92
  };
93
+ date?: number | undefined;
91
94
  warning?: string | undefined;
92
95
  }>;
93
96
  export type TInvoice = z.infer<typeof InvoiceSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../lib/entities/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGrD,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,QAAQ,CAEzD"}
1
+ {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../lib/entities/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGrD,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,QAAQ,CAEzD"}
@@ -11,6 +11,7 @@ export const InvoiceSchema = z.object({
11
11
  ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
12
12
  calculatedData: CalculatedDataSchema,
13
13
  warning: z.string().optional(),
14
+ date: z.number().optional(),
14
15
  });
15
16
  // Validation functions
16
17
  export function isInvoice(data) {
@@ -6,6 +6,7 @@ export declare const OrderSchema: z.ZodObject<{
6
6
  storeId: z.ZodString;
7
7
  userId: z.ZodString;
8
8
  status: z.ZodEnum<["draft", "pending", "processing", "in_delivery", "delivered", "cancelled", "completed", "refunded"]>;
9
+ paymentType: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
9
10
  paymentStatus: z.ZodEnum<["pending", "pending_j5", "external", "completed", "failed", "refunded"]>;
10
11
  cart: z.ZodObject<{
11
12
  id: z.ZodString;
@@ -789,7 +790,7 @@ export declare const OrderSchema: z.ZodObject<{
789
790
  createdDate: z.ZodNumber;
790
791
  lastActivityDate: z.ZodNumber;
791
792
  paymentType: z.ZodEnum<["default", "delayed"]>;
792
- organizationId: z.ZodOptional<z.ZodString>;
793
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
793
794
  }, "strip", z.ZodTypeAny, {
794
795
  type: "Profile";
795
796
  id: string;
@@ -814,7 +815,7 @@ export declare const OrderSchema: z.ZodObject<{
814
815
  apartmentEnterNumber: string;
815
816
  apartmentNumber: string;
816
817
  } | undefined;
817
- organizationId?: string | undefined;
818
+ organizationId?: string | null | undefined;
818
819
  }, {
819
820
  type: "Profile";
820
821
  id: string;
@@ -839,7 +840,7 @@ export declare const OrderSchema: z.ZodObject<{
839
840
  apartmentEnterNumber: string;
840
841
  apartmentNumber: string;
841
842
  } | undefined;
842
- organizationId?: string | undefined;
843
+ organizationId?: string | null | undefined;
843
844
  }>;
844
845
  nameOnInvoice: z.ZodOptional<z.ZodString>;
845
846
  clientComment: z.ZodOptional<z.ZodString>;
@@ -889,6 +890,7 @@ export declare const OrderSchema: z.ZodObject<{
889
890
  _COMMENT?: string | undefined;
890
891
  }>;
891
892
  warning: z.ZodOptional<z.ZodString>;
893
+ date: z.ZodOptional<z.ZodNumber>;
892
894
  }, "strip", z.ZodTypeAny, {
893
895
  doc_uuid: string;
894
896
  pdf_link: string;
@@ -910,6 +912,7 @@ export declare const OrderSchema: z.ZodObject<{
910
912
  price_total_in_currency: number;
911
913
  _COMMENT?: string | undefined;
912
914
  };
915
+ date?: number | undefined;
913
916
  warning?: string | undefined;
914
917
  }, {
915
918
  doc_uuid: string;
@@ -932,6 +935,7 @@ export declare const OrderSchema: z.ZodObject<{
932
935
  price_total_in_currency: number;
933
936
  _COMMENT?: string | undefined;
934
937
  };
938
+ date?: number | undefined;
935
939
  warning?: string | undefined;
936
940
  }>>;
937
941
  invoice: z.ZodOptional<z.ZodObject<{
@@ -980,6 +984,7 @@ export declare const OrderSchema: z.ZodObject<{
980
984
  _COMMENT?: string | undefined;
981
985
  }>;
982
986
  warning: z.ZodOptional<z.ZodString>;
987
+ date: z.ZodOptional<z.ZodNumber>;
983
988
  }, "strip", z.ZodTypeAny, {
984
989
  doc_uuid: string;
985
990
  pdf_link: string;
@@ -1001,6 +1006,7 @@ export declare const OrderSchema: z.ZodObject<{
1001
1006
  price_total_in_currency: number;
1002
1007
  _COMMENT?: string | undefined;
1003
1008
  };
1009
+ date?: number | undefined;
1004
1010
  warning?: string | undefined;
1005
1011
  }, {
1006
1012
  doc_uuid: string;
@@ -1023,6 +1029,7 @@ export declare const OrderSchema: z.ZodObject<{
1023
1029
  price_total_in_currency: number;
1024
1030
  _COMMENT?: string | undefined;
1025
1031
  };
1032
+ date?: number | undefined;
1026
1033
  warning?: string | undefined;
1027
1034
  }>>;
1028
1035
  organizationId: z.ZodOptional<z.ZodString>;
@@ -1047,7 +1054,7 @@ export declare const OrderSchema: z.ZodObject<{
1047
1054
  companyId: string;
1048
1055
  storeId: string;
1049
1056
  userId: string;
1050
- paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "external" | "failed";
1057
+ paymentStatus: "completed" | "pending" | "refunded" | "external" | "pending_j5" | "failed";
1051
1058
  cart: {
1052
1059
  id: string;
1053
1060
  items: {
@@ -1173,8 +1180,9 @@ export declare const OrderSchema: z.ZodObject<{
1173
1180
  apartmentEnterNumber: string;
1174
1181
  apartmentNumber: string;
1175
1182
  } | undefined;
1176
- organizationId?: string | undefined;
1183
+ organizationId?: string | null | undefined;
1177
1184
  };
1185
+ paymentType?: "internal" | "external" | undefined;
1178
1186
  organizationId?: string | undefined;
1179
1187
  nameOnInvoice?: string | undefined;
1180
1188
  originalAmount?: number | undefined;
@@ -1201,6 +1209,7 @@ export declare const OrderSchema: z.ZodObject<{
1201
1209
  price_total_in_currency: number;
1202
1210
  _COMMENT?: string | undefined;
1203
1211
  };
1212
+ date?: number | undefined;
1204
1213
  warning?: string | undefined;
1205
1214
  } | undefined;
1206
1215
  invoice?: {
@@ -1224,6 +1233,7 @@ export declare const OrderSchema: z.ZodObject<{
1224
1233
  price_total_in_currency: number;
1225
1234
  _COMMENT?: string | undefined;
1226
1235
  };
1236
+ date?: number | undefined;
1227
1237
  warning?: string | undefined;
1228
1238
  } | undefined;
1229
1239
  billingAccount?: {
@@ -1239,7 +1249,7 @@ export declare const OrderSchema: z.ZodObject<{
1239
1249
  companyId: string;
1240
1250
  storeId: string;
1241
1251
  userId: string;
1242
- paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "external" | "failed";
1252
+ paymentStatus: "completed" | "pending" | "refunded" | "external" | "pending_j5" | "failed";
1243
1253
  cart: {
1244
1254
  id: string;
1245
1255
  items: {
@@ -1365,8 +1375,9 @@ export declare const OrderSchema: z.ZodObject<{
1365
1375
  apartmentEnterNumber: string;
1366
1376
  apartmentNumber: string;
1367
1377
  } | undefined;
1368
- organizationId?: string | undefined;
1378
+ organizationId?: string | null | undefined;
1369
1379
  };
1380
+ paymentType?: "internal" | "external" | undefined;
1370
1381
  organizationId?: string | undefined;
1371
1382
  nameOnInvoice?: string | undefined;
1372
1383
  originalAmount?: number | undefined;
@@ -1393,6 +1404,7 @@ export declare const OrderSchema: z.ZodObject<{
1393
1404
  price_total_in_currency: number;
1394
1405
  _COMMENT?: string | undefined;
1395
1406
  };
1407
+ date?: number | undefined;
1396
1408
  warning?: string | undefined;
1397
1409
  } | undefined;
1398
1410
  invoice?: {
@@ -1416,6 +1428,7 @@ export declare const OrderSchema: z.ZodObject<{
1416
1428
  price_total_in_currency: number;
1417
1429
  _COMMENT?: string | undefined;
1418
1430
  };
1431
+ date?: number | undefined;
1419
1432
  warning?: string | undefined;
1420
1433
  } | undefined;
1421
1434
  billingAccount?: {
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -27,6 +27,7 @@ export const OrderSchema = z.object({
27
27
  "completed",
28
28
  "refunded",
29
29
  ]),
30
+ paymentType: z.enum(["internal", "external"]).optional(),
30
31
  paymentStatus: z.enum(["pending", "pending_j5", "external", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
31
32
  cart: z.object({
32
33
  id: z.string(),
@@ -30,9 +30,11 @@ export declare const OrganizationSchema: z.ZodObject<{
30
30
  id: string;
31
31
  name: string;
32
32
  }>, "many">;
33
+ paymentType: z.ZodEnum<["default", "delayed"]>;
33
34
  }, "strip", z.ZodTypeAny, {
34
35
  id: string;
35
36
  name: string;
37
+ paymentType: "default" | "delayed";
36
38
  billingAccounts: {
37
39
  number: string;
38
40
  id: string;
@@ -43,6 +45,7 @@ export declare const OrganizationSchema: z.ZodObject<{
43
45
  }, {
44
46
  id: string;
45
47
  name: string;
48
+ paymentType: "default" | "delayed";
46
49
  billingAccounts: {
47
50
  number: string;
48
51
  id: string;
@@ -69,8 +72,10 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
69
72
  id: string;
70
73
  name: string;
71
74
  }>, "many">;
75
+ paymentType: z.ZodEnum<["default", "delayed"]>;
72
76
  }, "id">, "strip", z.ZodTypeAny, {
73
77
  name: string;
78
+ paymentType: "default" | "delayed";
74
79
  billingAccounts: {
75
80
  number: string;
76
81
  id: string;
@@ -80,6 +85,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
80
85
  nameOnInvoice?: string | undefined;
81
86
  }, {
82
87
  name: string;
88
+ paymentType: "default" | "delayed";
83
89
  billingAccounts: {
84
90
  number: string;
85
91
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -11,5 +11,6 @@ export const OrganizationSchema = z.object({
11
11
  discountPercentage: z.number().positive().min(0).max(100).optional(),
12
12
  nameOnInvoice: z.string().optional(),
13
13
  billingAccounts: z.array(BillingAccountSchema),
14
+ paymentType: z.enum(["default", "delayed"]),
14
15
  });
15
16
  export const NewOrganizationSchema = OrganizationSchema.omit({ id: true });
@@ -41,7 +41,7 @@ export declare const ProfileSchema: z.ZodObject<{
41
41
  createdDate: z.ZodNumber;
42
42
  lastActivityDate: z.ZodNumber;
43
43
  paymentType: z.ZodEnum<["default", "delayed"]>;
44
- organizationId: z.ZodOptional<z.ZodString>;
44
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  type: "Profile";
47
47
  id: string;
@@ -66,7 +66,7 @@ export declare const ProfileSchema: z.ZodObject<{
66
66
  apartmentEnterNumber: string;
67
67
  apartmentNumber: string;
68
68
  } | undefined;
69
- organizationId?: string | undefined;
69
+ organizationId?: string | null | undefined;
70
70
  }, {
71
71
  type: "Profile";
72
72
  id: string;
@@ -91,7 +91,7 @@ export declare const ProfileSchema: z.ZodObject<{
91
91
  apartmentEnterNumber: string;
92
92
  apartmentNumber: string;
93
93
  } | undefined;
94
- organizationId?: string | undefined;
94
+ organizationId?: string | null | undefined;
95
95
  }>;
96
96
  export type TProfile = z.infer<typeof ProfileSchema>;
97
97
  export declare function createEmptyProfile(): TProfile;
@@ -20,7 +20,7 @@ export const ProfileSchema = z.object({
20
20
  createdDate: z.number(),
21
21
  lastActivityDate: z.number(),
22
22
  paymentType: ProfilePaymentTypeSchema,
23
- organizationId: z.string().optional(),
23
+ organizationId: z.string().optional().nullable(),
24
24
  });
25
25
  export function createEmptyProfile() {
26
26
  return {
@@ -26,6 +26,7 @@ export const DeliveryNoteSchema = z.object({
26
26
  ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
27
27
  calculatedData: CalculatedDataSchema,
28
28
  warning: z.string().optional(),
29
+ date: z.number().optional(),
29
30
  });
30
31
 
31
32
  // Type inference
@@ -12,6 +12,7 @@ export const InvoiceSchema = z.object({
12
12
  ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
13
13
  calculatedData: CalculatedDataSchema,
14
14
  warning: z.string().optional(),
15
+ date: z.number().optional(),
15
16
  });
16
17
 
17
18
  // Type inference
@@ -30,6 +30,7 @@ export const OrderSchema = z.object({
30
30
  "completed",
31
31
  "refunded",
32
32
  ]),
33
+ paymentType: z.enum(["internal", "external"]).optional(),
33
34
  paymentStatus: z.enum(["pending", "pending_j5", "external", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
34
35
  cart: z.object({
35
36
  id: z.string(),
@@ -13,6 +13,7 @@ export const OrganizationSchema = z.object({
13
13
  discountPercentage: z.number().positive().min(0).max(100).optional(),
14
14
  nameOnInvoice: z.string().optional(),
15
15
  billingAccounts: z.array(BillingAccountSchema),
16
+ paymentType: z.enum(["default", "delayed"]),
16
17
  });
17
18
 
18
19
  export const NewOrganizationSchema = OrganizationSchema.omit({ id: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.13.18",
3
+ "version": "0.13.20",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",