erpnext-queue-client 1.19.13 → 1.20.0

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,60 +1,19 @@
1
1
  import { z } from "zod";
2
2
  export declare const Trigger: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"UI">, z.ZodLiteral<"API">]>, z.ZodLiteral<"API-TEST">]>, z.ZodLiteral<"REAL-DATA-TEST">]>, z.ZodLiteral<"SCHEDULE">]>;
3
3
  export type TriggerType = z.infer<typeof Trigger>;
4
- export declare const DispatchRun: z.ZodObject<z.objectUtil.extendShape<Omit<{
4
+ export declare const DispatchRun: z.ZodObject<{
5
5
  name: z.ZodString;
6
+ doctype: z.ZodString;
6
7
  owner: z.ZodString;
7
8
  creation: z.ZodEffects<z.ZodDate, Date, unknown>;
8
9
  modified: z.ZodEffects<z.ZodDate, Date, unknown>;
9
10
  modified_by: z.ZodString;
10
11
  idx: z.ZodNumber;
11
12
  docstatus: z.ZodNumber;
12
- is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
13
13
  title: z.ZodString;
14
14
  fulfiller: z.ZodString;
15
- doctype: z.ZodString;
16
15
  is_simulation_mode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
17
- fulfiller_priority: z.ZodArray<z.ZodObject<{
18
- name: z.ZodString;
19
- owner: z.ZodString;
20
- creation: z.ZodEffects<z.ZodDate, Date, unknown>;
21
- modified: z.ZodEffects<z.ZodDate, Date, unknown>;
22
- modified_by: z.ZodString;
23
- parent: z.ZodString;
24
- parentfield: z.ZodString;
25
- parenttype: z.ZodString;
26
- idx: z.ZodNumber;
27
- docstatus: z.ZodNumber;
28
- fulfiller: z.ZodString;
29
- doctype: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- name: string;
32
- doctype: string;
33
- owner: string;
34
- creation: Date;
35
- modified: Date;
36
- modified_by: string;
37
- parent: string;
38
- parentfield: string;
39
- parenttype: string;
40
- idx: number;
41
- docstatus: number;
42
- fulfiller: string;
43
- }, {
44
- name: string;
45
- doctype: string;
46
- owner: string;
47
- modified_by: string;
48
- parent: string;
49
- parentfield: string;
50
- parenttype: string;
51
- idx: number;
52
- docstatus: number;
53
- fulfiller: string;
54
- creation?: unknown;
55
- modified?: unknown;
56
- }>, "many">;
57
- }, "is_active">, {
16
+ } & {
58
17
  dispatch_run_id: z.ZodString;
59
18
  warehouse_categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
60
19
  warehouse_category: z.ZodString;
@@ -85,7 +44,7 @@ export declare const DispatchRun: z.ZodObject<z.objectUtil.extendShape<Omit<{
85
44
  trigger: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"UI">, z.ZodLiteral<"API">]>, z.ZodLiteral<"API-TEST">]>, z.ZodLiteral<"REAL-DATA-TEST">]>, z.ZodLiteral<"SCHEDULE">]>;
86
45
  order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
46
  status: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>>;
88
- }>, "strip", z.ZodTypeAny, {
47
+ }, "strip", z.ZodTypeAny, {
89
48
  status: "Processing" | "Failed" | "Completed";
90
49
  name: string;
91
50
  doctype: string;
@@ -147,60 +106,19 @@ export declare const DispatchRun: z.ZodObject<z.objectUtil.extendShape<Omit<{
147
106
  picking_strategy?: "Single Order" | "Multi Order" | null | undefined;
148
107
  }>;
149
108
  export type DispatchRunType = z.infer<typeof DispatchRun>;
150
- export declare const DispatchRunPostBody: z.ZodObject<Pick<z.objectUtil.extendShape<Omit<{
109
+ export declare const DispatchRunPostBody: z.ZodObject<Pick<{
151
110
  name: z.ZodString;
111
+ doctype: z.ZodString;
152
112
  owner: z.ZodString;
153
113
  creation: z.ZodEffects<z.ZodDate, Date, unknown>;
154
114
  modified: z.ZodEffects<z.ZodDate, Date, unknown>;
155
115
  modified_by: z.ZodString;
156
116
  idx: z.ZodNumber;
157
117
  docstatus: z.ZodNumber;
158
- is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
159
118
  title: z.ZodString;
160
119
  fulfiller: z.ZodString;
161
- doctype: z.ZodString;
162
120
  is_simulation_mode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
163
- fulfiller_priority: z.ZodArray<z.ZodObject<{
164
- name: z.ZodString;
165
- owner: z.ZodString;
166
- creation: z.ZodEffects<z.ZodDate, Date, unknown>;
167
- modified: z.ZodEffects<z.ZodDate, Date, unknown>;
168
- modified_by: z.ZodString;
169
- parent: z.ZodString;
170
- parentfield: z.ZodString;
171
- parenttype: z.ZodString;
172
- idx: z.ZodNumber;
173
- docstatus: z.ZodNumber;
174
- fulfiller: z.ZodString;
175
- doctype: z.ZodString;
176
- }, "strip", z.ZodTypeAny, {
177
- name: string;
178
- doctype: string;
179
- owner: string;
180
- creation: Date;
181
- modified: Date;
182
- modified_by: string;
183
- parent: string;
184
- parentfield: string;
185
- parenttype: string;
186
- idx: number;
187
- docstatus: number;
188
- fulfiller: string;
189
- }, {
190
- name: string;
191
- doctype: string;
192
- owner: string;
193
- modified_by: string;
194
- parent: string;
195
- parentfield: string;
196
- parenttype: string;
197
- idx: number;
198
- docstatus: number;
199
- fulfiller: string;
200
- creation?: unknown;
201
- modified?: unknown;
202
- }>, "many">;
203
- }, "is_active">, {
121
+ } & {
204
122
  dispatch_run_id: z.ZodString;
205
123
  warehouse_categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
206
124
  warehouse_category: z.ZodString;
@@ -231,7 +149,7 @@ export declare const DispatchRunPostBody: z.ZodObject<Pick<z.objectUtil.extendSh
231
149
  trigger: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"UI">, z.ZodLiteral<"API">]>, z.ZodLiteral<"API-TEST">]>, z.ZodLiteral<"REAL-DATA-TEST">]>, z.ZodLiteral<"SCHEDULE">]>;
232
150
  order_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
233
151
  status: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Failed">]>, z.ZodLiteral<"Completed">]>>;
234
- }>, "limit" | "items" | "title" | "fulfiller" | "fulfiller_priority" | "warehouse_categories" | "is_auto_bundling" | "dispatcher_preset" | "picking_strategy" | "trigger">, "strip", z.ZodTypeAny, {
152
+ }, "limit" | "items" | "title" | "fulfiller" | "fulfiller_priority" | "warehouse_categories" | "is_auto_bundling" | "dispatcher_preset" | "picking_strategy" | "trigger">, "strip", z.ZodTypeAny, {
235
153
  title: string;
236
154
  fulfiller: string;
237
155
  fulfiller_priority: {
@@ -70,7 +70,7 @@ export declare const ERPNextFile: z.ZodObject<{
70
70
  s3_file_key?: string | null | undefined;
71
71
  }>;
72
72
  export type ERPNextFileType = z.infer<typeof ERPNextFile>;
73
- export declare const ERPNextValidatedFile: z.ZodObject<z.objectUtil.extendShape<Omit<{
73
+ export declare const ERPNextValidatedFile: z.ZodObject<Omit<{
74
74
  name: z.ZodString;
75
75
  owner: z.ZodString;
76
76
  creation: z.ZodString;
@@ -93,10 +93,10 @@ export declare const ERPNextValidatedFile: z.ZodObject<z.objectUtil.extendShape<
93
93
  uploaded_to_dropbox: z.ZodNumber;
94
94
  uploaded_to_google_drive: z.ZodNumber;
95
95
  doctype: z.ZodString;
96
- }, "file_name" | "file_url">, {
96
+ }, "file_name" | "file_url"> & {
97
97
  file_name: z.ZodString;
98
98
  file_url: z.ZodString;
99
- }>, "strip", z.ZodTypeAny, {
99
+ }, "strip", z.ZodTypeAny, {
100
100
  name: string;
101
101
  doctype: string;
102
102
  owner: string;
@@ -69,7 +69,7 @@ export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
69
69
  max_bundle_with_amount?: number | null | undefined;
70
70
  }>, "many">;
71
71
  export type FulfillerShippingSettingsType = z.infer<typeof FulfillerShippingSettings>;
72
- export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
72
+ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<{
73
73
  name: z.ZodString;
74
74
  is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
75
75
  parent: z.ZodString;
@@ -80,9 +80,9 @@ export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z
80
80
  can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
81
81
  bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
82
82
  max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
83
- }, {
83
+ } & {
84
84
  skus: z.ZodArray<z.ZodString, "many">;
85
- }>, "strip", z.ZodTypeAny, {
85
+ }, "strip", z.ZodTypeAny, {
86
86
  name: string;
87
87
  parent: string;
88
88
  shipping_provider: string;
@@ -1003,7 +1003,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
1003
1003
  shipping_height?: number | null | undefined;
1004
1004
  }>, "many">;
1005
1005
  export type ItemListWithShippingTemplateType = z.infer<typeof ItemListWithShippingTemplate>;
1006
- export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<Omit<{
1006
+ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<Pick<Omit<{
1007
1007
  name: z.ZodString;
1008
1008
  image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1009
1009
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1315,9 +1315,9 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
1315
1315
  certification: string;
1316
1316
  }>, "many">;
1317
1317
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1318
- }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, {
1318
+ }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit"> & {
1319
1319
  sku: z.ZodString;
1320
- }>, "strip", z.ZodTypeAny, {
1320
+ }, "strip", z.ZodTypeAny, {
1321
1321
  disabled: number;
1322
1322
  item_name: string;
1323
1323
  weight_per_unit: number;
@@ -2348,14 +2348,14 @@ export declare const ItemSupplierResponse: z.ZodArray<z.ZodObject<{
2348
2348
  supplier_part_no?: string | null | undefined;
2349
2349
  }>, "many">;
2350
2350
  export type ItemSupplierResponseType = z.infer<typeof ItemSupplierResponse>;
2351
- declare const ItemSupplierValidated: z.ZodObject<z.objectUtil.extendShape<Omit<{
2351
+ declare const ItemSupplierValidated: z.ZodObject<Omit<{
2352
2352
  name: z.ZodString;
2353
2353
  supplier: z.ZodString;
2354
2354
  parent: z.ZodString;
2355
2355
  supplier_part_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2356
- }, "parent">, {
2356
+ }, "parent"> & {
2357
2357
  item_code: z.ZodString;
2358
- }>, "strip", z.ZodTypeAny, {
2358
+ }, "strip", z.ZodTypeAny, {
2359
2359
  name: string;
2360
2360
  item_code: string;
2361
2361
  supplier: string;
@@ -1,17 +1,15 @@
1
1
  import { z } from "zod";
2
- declare const PurchaseInvoiceItemWithLineItemId: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2
+ declare const PurchaseInvoiceItemWithLineItemId: z.ZodObject<{
3
3
  owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  parentfield: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  parenttype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  idx: z.ZodNumber;
7
7
  docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
- item_code: z.ZodString;
9
8
  item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
9
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
10
  item_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
11
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
12
  received_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
- qty: z.ZodNumber;
15
13
  rejected_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
14
  uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
15
  conversion_factor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -25,7 +23,6 @@ declare const PurchaseInvoiceItemWithLineItemId: z.ZodObject<z.objectUtil.extend
25
23
  discount_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
24
  discount_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
25
  base_rate_with_margin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
26
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
27
  base_rate: z.ZodNumber;
31
28
  base_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -58,13 +55,13 @@ declare const PurchaseInvoiceItemWithLineItemId: z.ZodObject<z.objectUtil.extend
58
55
  doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
56
  __islocal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
57
  __unsaved: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
- }, {
58
+ } & {
62
59
  item_code: z.ZodString;
63
60
  qty: z.ZodNumber;
64
61
  rate: z.ZodNumber;
65
- }>, {
62
+ } & {
66
63
  lineItemId: z.ZodString;
67
- }>, "strip", z.ZodTypeAny, {
64
+ }, "strip", z.ZodTypeAny, {
68
65
  idx: number;
69
66
  item_code: string;
70
67
  qty: number;
@@ -363,7 +363,7 @@ export declare const Servicecase: z.ZodObject<{
363
363
  agreed_terms?: string | null | undefined;
364
364
  created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
365
365
  }>;
366
- export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit<{
366
+ export declare const ServicecaseInput: z.ZodObject<Omit<{
367
367
  name: z.ZodString;
368
368
  owner: z.ZodString;
369
369
  creation: z.ZodString;
@@ -440,10 +440,10 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
440
440
  batch_number?: string | null | undefined;
441
441
  complaint_description?: string | null | undefined;
442
442
  }>, "many">;
443
- }, "name" | "owner" | "creation" | "modified" | "modified_by" | "is_sent_to_client" | "is_sent_to_cc" | "return_items">, {
443
+ }, "name" | "owner" | "creation" | "modified" | "modified_by" | "is_sent_to_client" | "is_sent_to_cc" | "return_items"> & {
444
444
  is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
445
445
  is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
446
- return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
446
+ return_items: z.ZodArray<z.ZodObject<Omit<{
447
447
  name: z.ZodString;
448
448
  owner: z.ZodString;
449
449
  creation: z.ZodString;
@@ -462,9 +462,9 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
462
462
  internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
463
  complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
464
464
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
465
- }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "is_complaint">, {
466
- is_complaint: z.ZodNumber;
467
- }>, "strip", z.ZodTypeAny, {
465
+ }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "is_complaint"> & {
466
+ is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
467
+ }, "strip", z.ZodTypeAny, {
468
468
  item: string;
469
469
  return_quantity: number;
470
470
  is_complaint: number;
@@ -480,18 +480,18 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
480
480
  }, {
481
481
  item: string;
482
482
  return_quantity: number;
483
- is_complaint: number;
484
483
  attachments?: string | null | undefined;
485
484
  internal_reasons?: string | null | undefined;
486
485
  line_item_id?: string | null | undefined;
487
486
  total_price?: number | null | undefined;
488
487
  return_fee?: number | null | undefined;
488
+ is_complaint?: unknown;
489
489
  servicecase_reason?: string | null | undefined;
490
490
  servicecase_solution?: string | null | undefined;
491
491
  batch_number?: string | null | undefined;
492
492
  complaint_description?: string | null | undefined;
493
493
  }>, "many">;
494
- }>, "strip", z.ZodTypeAny, {
494
+ }, "strip", z.ZodTypeAny, {
495
495
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
496
496
  country: "Afghanistan" | "Åland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia, Plurinational State of" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cambodia" | "Cameroon" | "Canada" | "Cape Verde" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of the" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands (Malvinas)" | "Faroe Islands" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (Vatican City State)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Democratic Peoples Republic of" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Lao Peoples Democratic Republic" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia, Federated States of" | "Moldova, Republic of" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory, Occupied" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Réunion" | "Romania" | "Russian Federation" | "Rwanda" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard and Jan Mayen" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States" | "United States Minor Outlying Islands" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela, Bolivarian Republic of" | "Vietnam" | "Virgin Islands, British" | "Virgin Islands, U.S." | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
497
497
  title: string;
@@ -527,12 +527,12 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
527
527
  return_items: {
528
528
  item: string;
529
529
  return_quantity: number;
530
- is_complaint: number;
531
530
  attachments?: string | null | undefined;
532
531
  internal_reasons?: string | null | undefined;
533
532
  line_item_id?: string | null | undefined;
534
533
  total_price?: number | null | undefined;
535
534
  return_fee?: number | null | undefined;
535
+ is_complaint?: unknown;
536
536
  servicecase_reason?: string | null | undefined;
537
537
  servicecase_solution?: string | null | undefined;
538
538
  batch_number?: string | null | undefined;
@@ -548,7 +548,7 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
548
548
  agreed_terms?: string | null | undefined;
549
549
  created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
550
550
  }>;
551
- export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<Omit<{
551
+ export declare const ServicecaseExtended: z.ZodObject<Omit<{
552
552
  name: z.ZodString;
553
553
  owner: z.ZodString;
554
554
  creation: z.ZodString;
@@ -625,8 +625,8 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
625
625
  batch_number?: string | null | undefined;
626
626
  complaint_description?: string | null | undefined;
627
627
  }>, "many">;
628
- }, "return_items">, {
629
- return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
628
+ }, "return_items"> & {
629
+ return_items: z.ZodArray<z.ZodObject<Omit<{
630
630
  name: z.ZodString;
631
631
  owner: z.ZodString;
632
632
  creation: z.ZodString;
@@ -645,12 +645,12 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
645
645
  internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
646
646
  complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
647
647
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
648
- }, "attachments" | "internal_reasons">, {
648
+ }, "attachments" | "internal_reasons"> & {
649
649
  attachments: z.ZodArray<z.ZodString, "many">;
650
650
  attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
651
651
  internal_reasons: z.ZodArray<z.ZodString, "many">;
652
652
  internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
653
- }>, "strip", z.ZodTypeAny, {
653
+ }, "strip", z.ZodTypeAny, {
654
654
  name: string;
655
655
  owner: string;
656
656
  creation: string;
@@ -693,7 +693,7 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
693
693
  attachments_collection_name?: string | null | undefined;
694
694
  internal_reasons_collection_name?: string | null | undefined;
695
695
  }>, "many">;
696
- }>, "strip", z.ZodTypeAny, {
696
+ }, "strip", z.ZodTypeAny, {
697
697
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
698
698
  name: string;
699
699
  country: "Afghanistan" | "Åland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia, Plurinational State of" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cambodia" | "Cameroon" | "Canada" | "Cape Verde" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of the" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands (Malvinas)" | "Faroe Islands" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (Vatican City State)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Democratic Peoples Republic of" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Lao Peoples Democratic Republic" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia, Federated States of" | "Moldova, Republic of" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory, Occupied" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Réunion" | "Romania" | "Russian Federation" | "Rwanda" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard and Jan Mayen" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States" | "United States Minor Outlying Islands" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela, Bolivarian Republic of" | "Vietnam" | "Virgin Islands, British" | "Virgin Islands, U.S." | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
@@ -777,7 +777,7 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
777
777
  created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
778
778
  }>;
779
779
  export type ServicecaseExtendedType = z.infer<typeof ServicecaseExtended>;
780
- export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
780
+ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
781
781
  name: z.ZodString;
782
782
  owner: z.ZodString;
783
783
  creation: z.ZodString;
@@ -854,8 +854,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
854
854
  batch_number?: string | null | undefined;
855
855
  complaint_description?: string | null | undefined;
856
856
  }>, "many">;
857
- }, "return_items">, {
858
- return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
857
+ }, "return_items"> & {
858
+ return_items: z.ZodArray<z.ZodObject<Omit<{
859
859
  name: z.ZodString;
860
860
  owner: z.ZodString;
861
861
  creation: z.ZodString;
@@ -874,12 +874,12 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
874
874
  internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
875
875
  complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
876
876
  attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
877
- }, "attachments" | "internal_reasons">, {
877
+ }, "attachments" | "internal_reasons"> & {
878
878
  attachments: z.ZodArray<z.ZodString, "many">;
879
879
  attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
880
880
  internal_reasons: z.ZodArray<z.ZodString, "many">;
881
881
  internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
882
- }>, "strip", z.ZodTypeAny, {
882
+ }, "strip", z.ZodTypeAny, {
883
883
  name: string;
884
884
  owner: string;
885
885
  creation: string;
@@ -922,7 +922,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
922
922
  attachments_collection_name?: string | null | undefined;
923
923
  internal_reasons_collection_name?: string | null | undefined;
924
924
  }>, "many">;
925
- }>, "strip", z.ZodTypeAny, {
925
+ }, "strip", z.ZodTypeAny, {
926
926
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
927
927
  name: string;
928
928
  country: "Afghanistan" | "Åland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia, Plurinational State of" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cambodia" | "Cameroon" | "Canada" | "Cape Verde" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of the" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands (Malvinas)" | "Faroe Islands" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (Vatican City State)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Democratic Peoples Republic of" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Lao Peoples Democratic Republic" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia, Federated States of" | "Moldova, Republic of" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory, Occupied" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Réunion" | "Romania" | "Russian Federation" | "Rwanda" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard and Jan Mayen" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States" | "United States Minor Outlying Islands" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela, Bolivarian Republic of" | "Vietnam" | "Virgin Islands, British" | "Virgin Islands, U.S." | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
@@ -143,7 +143,7 @@ exports.ServicecaseInput = exports.Servicecase.omit({
143
143
  idx: true,
144
144
  is_complaint: true,
145
145
  }).extend({
146
- is_complaint: zod_1.z.number(),
146
+ is_complaint: zod_1.z.preprocess((val) => Number(val), zod_1.z.number()),
147
147
  })),
148
148
  })
149
149
  .describe("ServicecaseInput");
@@ -0,0 +1,40 @@
1
+ import z from "zod";
2
+ export declare const ServicecaseReason: z.ZodObject<{
3
+ name: z.ZodString;
4
+ title: z.ZodString;
5
+ solutions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ name: z.ZodString;
7
+ title: z.ZodString;
8
+ is_send_back: z.ZodBoolean;
9
+ send_back_reason: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ title: string;
13
+ is_send_back: boolean;
14
+ send_back_reason: string;
15
+ }, {
16
+ name: string;
17
+ title: string;
18
+ is_send_back: boolean;
19
+ send_back_reason: string;
20
+ }>, "many">>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ name: string;
23
+ title: string;
24
+ solutions?: {
25
+ name: string;
26
+ title: string;
27
+ is_send_back: boolean;
28
+ send_back_reason: string;
29
+ }[] | undefined;
30
+ }, {
31
+ name: string;
32
+ title: string;
33
+ solutions?: {
34
+ name: string;
35
+ title: string;
36
+ is_send_back: boolean;
37
+ send_back_reason: string;
38
+ }[] | undefined;
39
+ }>;
40
+ export type ServiceCaseReasonType = z.infer<typeof ServicecaseReason>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ServicecaseReason = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const ServicecaseSolution_1 = require("./ServicecaseSolution");
9
+ exports.ServicecaseReason = zod_1.default
10
+ .object({
11
+ name: zod_1.default.string(),
12
+ title: zod_1.default.string(),
13
+ solutions: zod_1.default.array(ServicecaseSolution_1.ServiceCaseSolution).optional(),
14
+ })
15
+ .describe("ServicecaseReason");
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const ServiceCaseSolution: z.ZodObject<{
3
+ name: z.ZodString;
4
+ title: z.ZodString;
5
+ is_send_back: z.ZodBoolean;
6
+ send_back_reason: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ title: string;
10
+ is_send_back: boolean;
11
+ send_back_reason: string;
12
+ }, {
13
+ name: string;
14
+ title: string;
15
+ is_send_back: boolean;
16
+ send_back_reason: string;
17
+ }>;
18
+ export type ServiceCaseSolutionType = z.infer<typeof ServiceCaseSolution>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCaseSolution = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ServiceCaseSolution = zod_1.z
6
+ .object({
7
+ name: zod_1.z.string(),
8
+ title: zod_1.z.string(),
9
+ is_send_back: zod_1.z.boolean(),
10
+ send_back_reason: zod_1.z.string(),
11
+ })
12
+ .describe("ServiceCaseSolution");
@@ -225,7 +225,7 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
225
225
  internal_reasons_section?: string | null | undefined;
226
226
  }>;
227
227
  export type ServiceportalProductConfigurationType = z.infer<typeof ServiceportalProductConfiguration>;
228
- export declare const ServiceportalProductConfigurationInput: z.ZodObject<z.objectUtil.extendShape<Omit<{
228
+ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
229
229
  name: z.ZodString;
230
230
  owner: z.ZodString;
231
231
  creation: z.ZodString;
@@ -321,7 +321,7 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<z.objec
321
321
  return_shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
322
322
  return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
323
323
  internal_reasons_section: z.ZodNullable<z.ZodOptional<z.ZodString>>;
324
- }, "name" | "owner" | "creation" | "modified" | "modified_by" | "internal_reasons" | "batch_numbers">, {
324
+ }, "name" | "owner" | "creation" | "modified" | "modified_by" | "internal_reasons" | "batch_numbers"> & {
325
325
  batch_numbers: z.ZodArray<z.ZodObject<Pick<{
326
326
  name: z.ZodString;
327
327
  owner: z.ZodString;
@@ -358,7 +358,7 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<z.objec
358
358
  }, {
359
359
  internal_reason: string;
360
360
  }>, "many">;
361
- }>, "strip", z.ZodTypeAny, {
361
+ }, "strip", z.ZodTypeAny, {
362
362
  doctype: "Serviceportal Product Configuration";
363
363
  title: string;
364
364
  internal_reasons: {
@@ -586,7 +586,7 @@ export declare const Shipment: z.ZodObject<{
586
586
  tracking_status_info?: string | null | undefined;
587
587
  tracking_url?: string | null | undefined;
588
588
  }>;
589
- export declare const ShipmentDraftPostBody: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
589
+ export declare const ShipmentDraftPostBody: z.ZodObject<Omit<{
590
590
  __onload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
591
591
  load_after_mapping: z.ZodBoolean;
592
592
  }, "strip", z.ZodTypeAny, {
@@ -749,7 +749,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<z.objectUtil.extendShape
749
749
  tracking_status: z.ZodString;
750
750
  tracking_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
751
751
  value_of_goods: z.ZodNumber;
752
- }, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel">, {
752
+ }, "name" | "creation" | "modified" | "modified_by" | "shipment_delivery_note" | "shipment_parcel"> & {
753
753
  shipment_delivery_note: z.ZodArray<z.ZodOptional<z.ZodObject<{
754
754
  owner: z.ZodString;
755
755
  parentfield: z.ZodString;
@@ -784,7 +784,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<z.objectUtil.extendShape
784
784
  __unsaved?: number | null | undefined;
785
785
  __islocal?: number | null | undefined;
786
786
  }>>, "many">;
787
- }>, {
787
+ } & {
788
788
  shipment_parcel: z.ZodArray<z.ZodObject<{
789
789
  length: z.ZodNumber;
790
790
  width: z.ZodNumber;
@@ -804,7 +804,7 @@ export declare const ShipmentDraftPostBody: z.ZodObject<z.objectUtil.extendShape
804
804
  weight: number;
805
805
  count: number;
806
806
  }>, "many">;
807
- }>, "strip", z.ZodTypeAny, {
807
+ }, "strip", z.ZodTypeAny, {
808
808
  status: string;
809
809
  doctype: string;
810
810
  owner: string;
@@ -414,18 +414,16 @@ export declare const ShippingProviderCredentials: z.ZodObject<{
414
414
  product_id_europe?: string | null | undefined;
415
415
  }>;
416
416
  export type ShippingProviderCredentialsType = z.infer<typeof ShippingProviderCredentials>;
417
- export declare const BillbeeShippingProviderCredentials: z.ZodObject<z.objectUtil.extendShape<{
417
+ export declare const BillbeeShippingProviderCredentials: z.ZodObject<{
418
418
  api_user: z.ZodNullable<z.ZodOptional<z.ZodString>>;
419
419
  api_password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
420
420
  billbee_shipping_provider_id: z.ZodString;
421
421
  gls_shipper_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
422
422
  dhl_ekp_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
423
- product_id_germany: z.ZodNullable<z.ZodOptional<z.ZodString>>;
424
- product_id_europe: z.ZodNullable<z.ZodOptional<z.ZodString>>;
425
- }, {
423
+ } & {
426
424
  product_id_germany: z.ZodString;
427
425
  product_id_europe: z.ZodString;
428
- }>, "strip", z.ZodTypeAny, {
426
+ }, "strip", z.ZodTypeAny, {
429
427
  billbee_shipping_provider_id: string;
430
428
  product_id_germany: string;
431
429
  product_id_europe: string;
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ import { ERPNextResourceRequest } from "./erpnext/resourceRequest";
29
29
  import { ERPNextServicecase } from "./erpnext/doctypes/servicecase";
30
30
  import { ServiceportalProductConfiguration } from "./erpnext/model/ServiceportalProductConfiguration";
31
31
  import { ShippingLabel } from "./erpnext/model/ShippingLabel";
32
+ import { ServicecaseReason } from "./erpnext/model/ServicecaseReason";
33
+ import { ServiceCaseSolution } from "./erpnext/model/ServicecaseSolution";
32
34
  export declare class ERPNextQueueClient {
33
35
  temporalClient: TemporalClient;
34
36
  private credentials?;
@@ -58,6 +60,8 @@ export declare class ERPNextQueueClient {
58
60
  partList: ERPNextDoctypeResourceRequest<typeof PartList>;
59
61
  servicecase: ERPNextServicecase;
60
62
  serviceportalProductConfiguration: ERPNextDoctypeResourceRequest<typeof ServiceportalProductConfiguration>;
63
+ servicecaseReason: ERPNextDoctypeResourceRequest<typeof ServicecaseReason>;
64
+ servicecaseSolution: ERPNextDoctypeResourceRequest<typeof ServiceCaseSolution>;
61
65
  shippingLabel: ERPNextDoctypeResourceRequest<typeof ShippingLabel>;
62
66
  /**
63
67
  * @description Provide either a temporal client or connection details to create a new client
package/dist/index.js CHANGED
@@ -32,6 +32,8 @@ const resourceRequest_1 = require("./erpnext/resourceRequest");
32
32
  const servicecase_1 = require("./erpnext/doctypes/servicecase");
33
33
  const ServiceportalProductConfiguration_1 = require("./erpnext/model/ServiceportalProductConfiguration");
34
34
  const ShippingLabel_1 = require("./erpnext/model/ShippingLabel");
35
+ const ServicecaseReason_1 = require("./erpnext/model/ServicecaseReason");
36
+ const ServicecaseSolution_1 = require("./erpnext/model/ServicecaseSolution");
35
37
  class ERPNextQueueClient {
36
38
  /**
37
39
  * @description Provide either a temporal client or connection details to create a new client
@@ -69,6 +71,8 @@ class ERPNextQueueClient {
69
71
  this.partList = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Part List", PartList_1.PartList);
70
72
  this.servicecase = new servicecase_1.ERPNextServicecase(this.temporalClient);
71
73
  this.serviceportalProductConfiguration = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Serviceportal Product Configuration", ServiceportalProductConfiguration_1.ServiceportalProductConfiguration);
74
+ this.servicecaseReason = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Servicecase Reason", ServicecaseReason_1.ServicecaseReason);
75
+ this.servicecaseSolution = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Servicecase Solution", ServicecaseSolution_1.ServiceCaseSolution);
72
76
  this.shippingLabel = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Shipping Label", ShippingLabel_1.ShippingLabel);
73
77
  }
74
78
  }
package/package.json CHANGED
@@ -23,9 +23,9 @@
23
23
  "pako": "^2.1.0",
24
24
  "randombytes": "^2.1.0",
25
25
  "winston": "^3.15.0",
26
- "zod": "3.24.1"
26
+ "zod": "^3.24.1"
27
27
  },
28
- "version": "1.19.13",
28
+ "version": "1.20.0",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",
@@ -34,4 +34,4 @@
34
34
  "typescript": "^5.6.3",
35
35
  "vitest": "^2.1.8"
36
36
  }
37
- }
37
+ }