erpnext-queue-client 1.24.3 → 1.25.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.
@@ -15,8 +15,8 @@ export declare const ShippingLabel: z.ZodObject<{
15
15
  address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16
16
  contact: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
17
  doctype: z.ZodString;
18
- document_name: z.ZodOptional<z.ZodString>;
19
- document_url: z.ZodOptional<z.ZodString>;
18
+ document_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
+ document_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  name: string;
22
22
  doctype: string;
@@ -33,8 +33,8 @@ export declare const ShippingLabel: z.ZodObject<{
33
33
  tracking_code?: string | null | undefined;
34
34
  label_type?: "Shipping Label" | "Return Label" | null | undefined;
35
35
  contact?: string | null | undefined;
36
- document_name?: string | undefined;
37
- document_url?: string | undefined;
36
+ document_name?: string | null | undefined;
37
+ document_url?: string | null | undefined;
38
38
  }, {
39
39
  name: string;
40
40
  doctype: string;
@@ -51,8 +51,8 @@ export declare const ShippingLabel: z.ZodObject<{
51
51
  tracking_code?: string | null | undefined;
52
52
  label_type?: "Shipping Label" | "Return Label" | null | undefined;
53
53
  contact?: string | null | undefined;
54
- document_name?: string | undefined;
55
- document_url?: string | undefined;
54
+ document_name?: string | null | undefined;
55
+ document_url?: string | null | undefined;
56
56
  }>;
57
57
  export declare const ShippingLabelPostBody: z.ZodObject<Pick<{
58
58
  name: z.ZodString;
@@ -70,8 +70,8 @@ export declare const ShippingLabelPostBody: z.ZodObject<Pick<{
70
70
  address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
71
  contact: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
72
  doctype: z.ZodString;
73
- document_name: z.ZodOptional<z.ZodString>;
74
- document_url: z.ZodOptional<z.ZodString>;
73
+ document_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
+ document_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
75
  }, "address" | "customer" | "shipping_provider" | "label_id" | "tracking_code" | "label_type" | "contact" | "document_name" | "document_url">, "strip", z.ZodTypeAny, {
76
76
  shipping_provider: string;
77
77
  label_id: string;
@@ -80,8 +80,8 @@ export declare const ShippingLabelPostBody: z.ZodObject<Pick<{
80
80
  tracking_code?: string | null | undefined;
81
81
  label_type?: "Shipping Label" | "Return Label" | null | undefined;
82
82
  contact?: string | null | undefined;
83
- document_name?: string | undefined;
84
- document_url?: string | undefined;
83
+ document_name?: string | null | undefined;
84
+ document_url?: string | null | undefined;
85
85
  }, {
86
86
  shipping_provider: string;
87
87
  label_id: string;
@@ -90,8 +90,8 @@ export declare const ShippingLabelPostBody: z.ZodObject<Pick<{
90
90
  tracking_code?: string | null | undefined;
91
91
  label_type?: "Shipping Label" | "Return Label" | null | undefined;
92
92
  contact?: string | null | undefined;
93
- document_name?: string | undefined;
94
- document_url?: string | undefined;
93
+ document_name?: string | null | undefined;
94
+ document_url?: string | null | undefined;
95
95
  }>;
96
96
  export type ShippingLabelPostBodyType = z.infer<typeof ShippingLabelPostBody>;
97
97
  export type ShippingLabelType = z.infer<typeof ShippingLabel>;
@@ -23,8 +23,8 @@ exports.ShippingLabel = zod_1.z
23
23
  address: zod_1.z.string().optional().nullable(),
24
24
  contact: zod_1.z.string().optional().nullable(),
25
25
  doctype: zod_1.z.string(),
26
- document_name: zod_1.z.string().optional(),
27
- document_url: zod_1.z.string().optional(),
26
+ document_name: zod_1.z.string().optional().nullable(),
27
+ document_url: zod_1.z.string().optional().nullable(),
28
28
  })
29
29
  .describe("Shipping Label");
30
30
  exports.ShippingLabelPostBody = exports.ShippingLabel.pick({
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ import { ShippingLabel } from "./erpnext/model/ShippingLabel";
32
32
  import { ServicecaseReason } from "./erpnext/model/ServicecaseReason";
33
33
  import { ServiceCaseSolution } from "./erpnext/model/ServicecaseSolution";
34
34
  import { InternalReason } from "./erpnext/model/InternalReasons";
35
+ import { ERPNextFile } from "./erpnext/model/File";
35
36
  export declare class ERPNextQueueClient {
36
37
  temporalClient: TemporalClient;
37
38
  private credentials?;
@@ -65,6 +66,7 @@ export declare class ERPNextQueueClient {
65
66
  servicecaseSolution: ERPNextDoctypeResourceRequest<typeof ServiceCaseSolution>;
66
67
  internalReason: ERPNextDoctypeResourceRequest<typeof InternalReason>;
67
68
  shippingLabel: ERPNextDoctypeResourceRequest<typeof ShippingLabel>;
69
+ file: ERPNextDoctypeResourceRequest<typeof ERPNextFile>;
68
70
  /**
69
71
  * @description Provide either a temporal client or connection details to create a new client
70
72
  */
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ const ShippingLabel_1 = require("./erpnext/model/ShippingLabel");
35
35
  const ServicecaseReason_1 = require("./erpnext/model/ServicecaseReason");
36
36
  const ServicecaseSolution_1 = require("./erpnext/model/ServicecaseSolution");
37
37
  const InternalReasons_1 = require("./erpnext/model/InternalReasons");
38
+ const File_1 = require("./erpnext/model/File");
38
39
  class ERPNextQueueClient {
39
40
  /**
40
41
  * @description Provide either a temporal client or connection details to create a new client
@@ -52,6 +53,7 @@ class ERPNextQueueClient {
52
53
  this.address = new address_1.ERPNextAddress(this.temporalClient);
53
54
  this.contact = new contact_1.ERPNextContact(this.temporalClient);
54
55
  this.customer = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Customer", Customer_1.Customer);
56
+ this.file = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "File", File_1.ERPNextFile);
55
57
  this.fileRequests = new fileRequests_1.ERPNextFileRequests(this.temporalClient, this.credentials);
56
58
  this.deliveryNote = new deliveryNote_1.ERPNextDeliveryNote(this.temporalClient, this.fileRequests);
57
59
  this.shipment = new shipment_1.ERPNextShipment(this.temporalClient);
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.24.3",
28
+ "version": "1.25.0",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",