@kohost/api-client 3.1.14 → 3.1.16
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.
- package/dist/cjs/Errors/AppError.js +1 -0
- package/dist/cjs/Errors/AuthenticationError.js +1 -0
- package/dist/cjs/Errors/AuthorizationError.js +1 -0
- package/dist/cjs/Errors/ConflictError.js +1 -0
- package/dist/cjs/Errors/DeviceCommError.js +1 -0
- package/dist/cjs/Errors/LoginError.js +1 -0
- package/dist/cjs/Errors/NotFoundError.js +1 -0
- package/dist/cjs/Errors/RequestError.js +1 -0
- package/dist/cjs/Errors/SystemCommError.js +1 -0
- package/dist/cjs/Errors/TokenExpiredError.js +1 -0
- package/dist/cjs/Errors/UnprocessableRequestError.js +1 -0
- package/dist/cjs/Errors/ValidationError.js +1 -0
- package/dist/cjs/schemas/OrganizationSchema.d.ts +4 -0
- package/dist/cjs/schemas/TicketSchema.d.ts +2 -0
- package/dist/cjs/schemas/organization.json +9 -0
- package/dist/cjs/schemas/ticket.json +6 -0
- package/dist/esm/Commands.js +12 -0
- package/dist/esm/Commands.js.map +2 -2
- package/dist/esm/Errors.js +12 -0
- package/dist/esm/Errors.js.map +2 -2
- package/dist/esm/Models.js +27 -0
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +12 -0
- package/dist/esm/utils.js.map +2 -2
- package/package.json +1 -1
package/dist/esm/Models.js
CHANGED
|
@@ -7871,6 +7871,7 @@ var require_AppError = __commonJS({
|
|
|
7871
7871
|
super(message, options);
|
|
7872
7872
|
this.type = this.constructor.name;
|
|
7873
7873
|
this.statusCode = 500;
|
|
7874
|
+
this.name = "AppError";
|
|
7874
7875
|
Object.setPrototypeOf(this, AppError.prototype);
|
|
7875
7876
|
}
|
|
7876
7877
|
};
|
|
@@ -7888,6 +7889,7 @@ var require_AuthenticationError = __commonJS({
|
|
|
7888
7889
|
constructor(message = "Authentication Error", options = {}) {
|
|
7889
7890
|
super(message, options);
|
|
7890
7891
|
this.statusCode = 401;
|
|
7892
|
+
this.name = "AuthenticationError";
|
|
7891
7893
|
Object.setPrototypeOf(this, AuthenticationError.prototype);
|
|
7892
7894
|
}
|
|
7893
7895
|
};
|
|
@@ -7905,6 +7907,7 @@ var require_AuthorizationError = __commonJS({
|
|
|
7905
7907
|
constructor(message = "Authorization Error", options = {}) {
|
|
7906
7908
|
super(message, options);
|
|
7907
7909
|
this.statusCode = 403;
|
|
7910
|
+
this.name = "AuthorizationError";
|
|
7908
7911
|
Object.setPrototypeOf(this, AuthorizationError.prototype);
|
|
7909
7912
|
}
|
|
7910
7913
|
};
|
|
@@ -7922,6 +7925,7 @@ var require_ConflictError = __commonJS({
|
|
|
7922
7925
|
constructor(message = "Bad Request", options = {}) {
|
|
7923
7926
|
super(message, options);
|
|
7924
7927
|
this.statusCode = 409;
|
|
7928
|
+
this.name = "ConflictError";
|
|
7925
7929
|
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
7926
7930
|
}
|
|
7927
7931
|
};
|
|
@@ -7939,6 +7943,7 @@ var require_DeviceCommError = __commonJS({
|
|
|
7939
7943
|
constructor(message = "Device Communication Error", options = {}) {
|
|
7940
7944
|
super(message, options);
|
|
7941
7945
|
this.statusCode = 503;
|
|
7946
|
+
this.name = "DeviceCommError";
|
|
7942
7947
|
Object.setPrototypeOf(this, DeviceCommError.prototype);
|
|
7943
7948
|
}
|
|
7944
7949
|
};
|
|
@@ -7956,6 +7961,7 @@ var require_LoginError = __commonJS({
|
|
|
7956
7961
|
constructor(message = "Invalid Login information provided", options = {}) {
|
|
7957
7962
|
super(message, options);
|
|
7958
7963
|
this.statusCode = 401;
|
|
7964
|
+
this.name = "LoginError";
|
|
7959
7965
|
Object.setPrototypeOf(this, LoginError.prototype);
|
|
7960
7966
|
}
|
|
7961
7967
|
};
|
|
@@ -7973,6 +7979,7 @@ var require_NotFoundError = __commonJS({
|
|
|
7973
7979
|
constructor(message = "Resource Not Found", options = {}) {
|
|
7974
7980
|
super(message, options);
|
|
7975
7981
|
this.statusCode = 404;
|
|
7982
|
+
this.name = "NotFoundError";
|
|
7976
7983
|
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
7977
7984
|
}
|
|
7978
7985
|
};
|
|
@@ -7990,6 +7997,7 @@ var require_RequestError = __commonJS({
|
|
|
7990
7997
|
constructor(message = "Bad Request", options = {}) {
|
|
7991
7998
|
super(message, options);
|
|
7992
7999
|
this.statusCode = 400;
|
|
8000
|
+
this.name = "RequestError";
|
|
7993
8001
|
Object.setPrototypeOf(this, RequestError.prototype);
|
|
7994
8002
|
}
|
|
7995
8003
|
};
|
|
@@ -8007,6 +8015,7 @@ var require_SystemCommError = __commonJS({
|
|
|
8007
8015
|
constructor(message = "System Communication Error", options = {}) {
|
|
8008
8016
|
super(message, options);
|
|
8009
8017
|
this.statusCode = 503;
|
|
8018
|
+
this.name = "SystemCommError";
|
|
8010
8019
|
Object.setPrototypeOf(this, SystemCommError.prototype);
|
|
8011
8020
|
}
|
|
8012
8021
|
};
|
|
@@ -8024,6 +8033,7 @@ var require_TokenExpiredError = __commonJS({
|
|
|
8024
8033
|
constructor(message = "Token Expired", options = {}) {
|
|
8025
8034
|
super(message, options);
|
|
8026
8035
|
this.statusCode = 401;
|
|
8036
|
+
this.name = "TokenExpiredError";
|
|
8027
8037
|
Object.setPrototypeOf(this, TokenExpiredError.prototype);
|
|
8028
8038
|
}
|
|
8029
8039
|
};
|
|
@@ -8041,6 +8051,7 @@ var require_UnprocessableRequestError = __commonJS({
|
|
|
8041
8051
|
constructor(message = "Unprocessable Request Error", options = {}) {
|
|
8042
8052
|
super(message, options);
|
|
8043
8053
|
this.statusCode = 422;
|
|
8054
|
+
this.name = "UnprocessableRequestError";
|
|
8044
8055
|
Object.setPrototypeOf(this, UnprocessableRequestError.prototype);
|
|
8045
8056
|
}
|
|
8046
8057
|
};
|
|
@@ -8058,6 +8069,7 @@ var require_ValidationError = __commonJS({
|
|
|
8058
8069
|
constructor(message = "Validation Error", options = {}) {
|
|
8059
8070
|
super(message, options);
|
|
8060
8071
|
this.statusCode = 400;
|
|
8072
|
+
this.name = "ValidationError";
|
|
8061
8073
|
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
8062
8074
|
}
|
|
8063
8075
|
};
|
|
@@ -11285,6 +11297,9 @@ var require_ticket = __commonJS({
|
|
|
11285
11297
|
enum: ["ticket"],
|
|
11286
11298
|
default: "ticket"
|
|
11287
11299
|
},
|
|
11300
|
+
number: {
|
|
11301
|
+
type: "string"
|
|
11302
|
+
},
|
|
11288
11303
|
conversation: {
|
|
11289
11304
|
type: "array",
|
|
11290
11305
|
default: [],
|
|
@@ -11426,6 +11441,9 @@ var require_ticket = __commonJS({
|
|
|
11426
11441
|
tipAmount: {
|
|
11427
11442
|
type: "string"
|
|
11428
11443
|
},
|
|
11444
|
+
scheduleDate: {
|
|
11445
|
+
$ref: "definitions.json#/definitions/date"
|
|
11446
|
+
},
|
|
11429
11447
|
createdAt: {
|
|
11430
11448
|
$ref: "definitions.json#/definitions/date"
|
|
11431
11449
|
},
|
|
@@ -13437,6 +13455,15 @@ var require_organization = __commonJS({
|
|
|
13437
13455
|
}
|
|
13438
13456
|
}
|
|
13439
13457
|
},
|
|
13458
|
+
tickets: {
|
|
13459
|
+
type: "object",
|
|
13460
|
+
properties: {
|
|
13461
|
+
nextTicketNumber: {
|
|
13462
|
+
type: "string",
|
|
13463
|
+
default: "1"
|
|
13464
|
+
}
|
|
13465
|
+
}
|
|
13466
|
+
},
|
|
13440
13467
|
credentials: {
|
|
13441
13468
|
type: "object",
|
|
13442
13469
|
additionalProperties: true
|