erpnext-queue-client 1.20.0 → 1.21.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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const InternalReason: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type InternalReasonType = z.infer<typeof InternalReason>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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.InternalReason = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.InternalReason = zod_1.default.object({
|
|
9
|
+
name: zod_1.default.string(),
|
|
10
|
+
title: zod_1.default.string(),
|
|
11
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { ServiceportalProductConfiguration } from "./erpnext/model/Serviceportal
|
|
|
31
31
|
import { ShippingLabel } from "./erpnext/model/ShippingLabel";
|
|
32
32
|
import { ServicecaseReason } from "./erpnext/model/ServicecaseReason";
|
|
33
33
|
import { ServiceCaseSolution } from "./erpnext/model/ServicecaseSolution";
|
|
34
|
+
import { InternalReason } from "./erpnext/model/InternalReasons";
|
|
34
35
|
export declare class ERPNextQueueClient {
|
|
35
36
|
temporalClient: TemporalClient;
|
|
36
37
|
private credentials?;
|
|
@@ -62,6 +63,7 @@ export declare class ERPNextQueueClient {
|
|
|
62
63
|
serviceportalProductConfiguration: ERPNextDoctypeResourceRequest<typeof ServiceportalProductConfiguration>;
|
|
63
64
|
servicecaseReason: ERPNextDoctypeResourceRequest<typeof ServicecaseReason>;
|
|
64
65
|
servicecaseSolution: ERPNextDoctypeResourceRequest<typeof ServiceCaseSolution>;
|
|
66
|
+
internalReason: ERPNextDoctypeResourceRequest<typeof InternalReason>;
|
|
65
67
|
shippingLabel: ERPNextDoctypeResourceRequest<typeof ShippingLabel>;
|
|
66
68
|
/**
|
|
67
69
|
* @description Provide either a temporal client or connection details to create a new client
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ const ServiceportalProductConfiguration_1 = require("./erpnext/model/Serviceport
|
|
|
34
34
|
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
|
+
const InternalReasons_1 = require("./erpnext/model/InternalReasons");
|
|
37
38
|
class ERPNextQueueClient {
|
|
38
39
|
/**
|
|
39
40
|
* @description Provide either a temporal client or connection details to create a new client
|
|
@@ -73,6 +74,7 @@ class ERPNextQueueClient {
|
|
|
73
74
|
this.serviceportalProductConfiguration = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Serviceportal Product Configuration", ServiceportalProductConfiguration_1.ServiceportalProductConfiguration);
|
|
74
75
|
this.servicecaseReason = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Servicecase Reason", ServicecaseReason_1.ServicecaseReason);
|
|
75
76
|
this.servicecaseSolution = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Servicecase Solution", ServicecaseSolution_1.ServiceCaseSolution);
|
|
77
|
+
this.internalReason = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Internal Reason", InternalReasons_1.InternalReason);
|
|
76
78
|
this.shippingLabel = new doctypeResourceRequest_1.ERPNextDoctypeResourceRequest(this.temporalClient, "Shipping Label", ShippingLabel_1.ShippingLabel);
|
|
77
79
|
}
|
|
78
80
|
}
|