erpnext-queue-client 1.25.0 → 1.25.1

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.
@@ -9,7 +9,7 @@ export declare class ERPNextServicecase {
9
9
  protected attachmentCollectionRequest: ERPNextDoctypeResourceRequest<typeof AttachmentCollection>;
10
10
  protected internalReasonCollectionRequest: ERPNextDoctypeResourceRequest<typeof InternalReasonCollection>;
11
11
  create: (servicecase: ServicecaseInputType) => Promise<{
12
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
12
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
13
13
  name: string;
14
14
  country: string;
15
15
  owner: string;
@@ -58,7 +58,7 @@ export declare class ERPNextServicecase {
58
58
  asDict?: TAsDict;
59
59
  params?: Record<string, string>;
60
60
  }) => Promise<TAsDict extends false ? string[][] : Pick<{
61
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
61
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
62
62
  name: string;
63
63
  country: string;
64
64
  owner: string;
@@ -102,7 +102,7 @@ export declare class ERPNextServicecase {
102
102
  resourceId: string;
103
103
  priority?: number;
104
104
  }) => Promise<{
105
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
105
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
106
106
  name: string;
107
107
  country: string;
108
108
  owner: string;
@@ -143,7 +143,7 @@ export declare class ERPNextServicecase {
143
143
  agreed_terms?: string | null | undefined;
144
144
  }>;
145
145
  updateById: (resourceId: string, servicecase: ServicecaseInputType) => Promise<{
146
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
146
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
147
147
  name: string;
148
148
  country: string;
149
149
  owner: string;
@@ -189,7 +189,7 @@ export declare class ERPNextServicecase {
189
189
  }) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
190
190
  constructor(temporalClient: TemporalClient);
191
191
  createServicecase(servicecase: ServicecaseInputType): Promise<{
192
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
192
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
193
193
  name: string;
194
194
  country: string;
195
195
  owner: string;
@@ -230,7 +230,7 @@ export declare class ERPNextServicecase {
230
230
  agreed_terms?: string | null | undefined;
231
231
  }>;
232
232
  updateServicecase(resourceId: string, servicecase: ServicecaseInputType): Promise<{
233
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
233
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
234
234
  name: string;
235
235
  country: string;
236
236
  owner: string;
@@ -274,7 +274,7 @@ export declare class ERPNextServicecase {
274
274
  email: string;
275
275
  id?: string;
276
276
  }): Promise<{
277
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
277
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
278
278
  name: string;
279
279
  country: string;
280
280
  owner: string;
@@ -421,7 +421,7 @@ export declare const ServicecaseBase: z.ZodObject<{
421
421
  external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
422
422
  shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
423
423
  customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
424
- status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
424
+ status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
425
425
  complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
426
426
  is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
427
427
  is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -430,7 +430,7 @@ export declare const ServicecaseBase: z.ZodObject<{
430
430
  created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
431
431
  country: z.ZodString;
432
432
  }, "strip", z.ZodTypeAny, {
433
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
433
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
434
434
  country: string;
435
435
  title: string;
436
436
  order_number: string;
@@ -448,7 +448,7 @@ export declare const ServicecaseBase: z.ZodObject<{
448
448
  title: string;
449
449
  order_number: string;
450
450
  shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
451
- status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
451
+ status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
452
452
  external_id?: string | null | undefined;
453
453
  customer_email?: string | null | undefined;
454
454
  complaint_date?: string | null | undefined;
@@ -465,7 +465,7 @@ export declare const Servicecase: z.ZodObject<{
465
465
  external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
466
466
  shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
467
467
  customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
468
- status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
468
+ status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
469
469
  complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
470
470
  customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
471
471
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -542,7 +542,7 @@ export declare const Servicecase: z.ZodObject<{
542
542
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
543
543
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
544
544
  }, "strip", z.ZodTypeAny, {
545
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
545
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
546
546
  name: string;
547
547
  country: string;
548
548
  owner: string;
@@ -614,7 +614,7 @@ export declare const Servicecase: z.ZodObject<{
614
614
  complaint_description?: string | null | undefined;
615
615
  return_label?: string | null | undefined;
616
616
  }[];
617
- status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
617
+ status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
618
618
  external_id?: string | null | undefined;
619
619
  customer_email?: string | null | undefined;
620
620
  complaint_date?: string | null | undefined;
@@ -629,7 +629,7 @@ export declare const ServicecaseInput: z.ZodObject<{
629
629
  external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
630
630
  shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
631
631
  customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
632
- status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
632
+ status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
633
633
  complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
634
634
  customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
635
635
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -683,7 +683,7 @@ export declare const ServicecaseInput: z.ZodObject<{
683
683
  is_sent_to_client: z.ZodEffects<z.ZodNumber, number, unknown>;
684
684
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, number, unknown>;
685
685
  }, "strip", z.ZodTypeAny, {
686
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
686
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
687
687
  country: string;
688
688
  title: string;
689
689
  order_number: string;
@@ -731,7 +731,7 @@ export declare const ServicecaseInput: z.ZodObject<{
731
731
  complaint_description?: string | null | undefined;
732
732
  return_label?: string | null | undefined;
733
733
  }[];
734
- status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
734
+ status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
735
735
  external_id?: string | null | undefined;
736
736
  customer_email?: string | null | undefined;
737
737
  complaint_date?: string | null | undefined;
@@ -748,7 +748,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
748
748
  external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
749
749
  shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
750
750
  customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
751
- status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
751
+ status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
752
752
  complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
753
753
  customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
754
754
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -846,7 +846,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
846
846
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
847
847
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
848
848
  }, "strip", z.ZodTypeAny, {
849
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
849
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
850
850
  name: string;
851
851
  country: string;
852
852
  owner: string;
@@ -928,7 +928,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
928
928
  attachments_collection_name?: string | null | undefined;
929
929
  internal_reasons_collection_name?: string | null | undefined;
930
930
  }[];
931
- status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
931
+ status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
932
932
  external_id?: string | null | undefined;
933
933
  customer_email?: string | null | undefined;
934
934
  complaint_date?: string | null | undefined;
@@ -943,7 +943,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
943
943
  external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
944
944
  shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
945
945
  customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
946
- status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
946
+ status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
947
947
  complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
948
948
  customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
949
949
  agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1041,7 +1041,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1041
1041
  is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
1042
1042
  is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
1043
1043
  }, "strip", z.ZodTypeAny, {
1044
- status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
1044
+ status: "EDITING" | "SUBMITTED" | "COMPLETED";
1045
1045
  name: string;
1046
1046
  country: string;
1047
1047
  owner: string;
@@ -1123,7 +1123,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
1123
1123
  attachments_collection_name?: string | null | undefined;
1124
1124
  internal_reasons_collection_name?: string | null | undefined;
1125
1125
  }[];
1126
- status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
1126
+ status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
1127
1127
  external_id?: string | null | undefined;
1128
1128
  customer_email?: string | null | undefined;
1129
1129
  complaint_date?: string | null | undefined;
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServicecaseMethodResponse = exports.ServicecaseExtended = exports.ServicecaseInput = exports.Servicecase = exports.ServicecaseBase = exports.ReturnItemExtended = exports.ReturnItem = exports.ReturnItemInput = exports.ReturnItemBase = exports.UpdateInternalReasonCollectionInput = exports.InternalReasonCollection = exports.UpdateAttachmentCollectionInput = exports.AttachmentCollection = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const Shop = zod_1.z.enum(["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]);
6
- const Status = zod_1.z.enum([
7
- "EDITING",
8
- "SUBMITTING",
9
- "VALIDATING",
10
- "REJECTED",
11
- "SHIPPING",
12
- "COMPLETED",
13
- ]);
6
+ const Status = zod_1.z.enum(["EDITING", "SUBMITTED", "COMPLETED"]);
14
7
  const CreatedWith = zod_1.z.enum([
15
8
  "Serviceportal",
16
9
  "Missive Sidebar",
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "^3.24.1"
27
27
  },
28
- "version": "1.25.0",
28
+ "version": "1.25.1",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",