@kohost/api-client 7.5.0 → 7.6.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.
- package/dist/httpClient.d.ts +2 -2
- package/dist/lib/systemCategories.d.ts +1 -1
- package/dist/lib/systemCategories.js +4 -2
- package/dist/lib/systemCategories.js.map +1 -1
- package/dist/schemas/definitions.d.ts +12 -0
- package/dist/schemas/definitions.js +25 -1
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/issue.d.ts +1 -1
- package/dist/schemas/issue.js +2 -1
- package/dist/schemas/issue.js.map +1 -1
- package/dist/schemas/organization.d.ts +32 -0
- package/dist/schemas/organization.js +21 -0
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/property.d.ts +0 -6
- package/dist/schemas/property.js +0 -6
- package/dist/schemas/property.js.map +1 -1
- package/dist/schemas/user.d.ts +8 -6
- package/dist/schemas/user.js +7 -7
- package/dist/schemas/user.js.map +1 -1
- package/dist/useCases/describeOrgNotificationDefaults.d.ts +27 -0
- package/dist/useCases/describeOrgNotificationDefaults.js +47 -0
- package/dist/useCases/describeOrgNotificationDefaults.js.map +1 -0
- package/dist/useCases/describePushVapidPublicKey.d.ts +27 -0
- package/dist/useCases/describePushVapidPublicKey.js +47 -0
- package/dist/useCases/describePushVapidPublicKey.js.map +1 -0
- package/dist/useCases/index.d.ts +6 -0
- package/dist/useCases/index.js +13 -1
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/listMyPushSubscriptions.d.ts +27 -0
- package/dist/useCases/listMyPushSubscriptions.js +47 -0
- package/dist/useCases/listMyPushSubscriptions.js.map +1 -0
- package/dist/useCases/subscribePushDevice.d.ts +27 -0
- package/dist/useCases/subscribePushDevice.js +47 -0
- package/dist/useCases/subscribePushDevice.js.map +1 -0
- package/dist/useCases/unsubscribePushDevice.d.ts +36 -0
- package/dist/useCases/unsubscribePushDevice.js +47 -0
- package/dist/useCases/unsubscribePushDevice.js.map +1 -0
- package/dist/useCases/updateOrgNotificationDefaults.d.ts +27 -0
- package/dist/useCases/updateOrgNotificationDefaults.js +47 -0
- package/dist/useCases/updateOrgNotificationDefaults.js.map +1 -0
- package/dist/validate.d.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region .generated/useCases/unsubscribePushDevice.ts
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
var UnsubscribePushDeviceCommand = class UnsubscribePushDeviceCommand {
|
|
6
|
+
url;
|
|
7
|
+
data;
|
|
8
|
+
query;
|
|
9
|
+
headers;
|
|
10
|
+
config;
|
|
11
|
+
static params = ["id"];
|
|
12
|
+
static url = "/notifications/push-subscriptions/:id";
|
|
13
|
+
static method = "delete";
|
|
14
|
+
constructor(commandConfig, options = {}) {
|
|
15
|
+
const pathParams = UnsubscribePushDeviceCommand.params;
|
|
16
|
+
let { data, query, headers } = commandConfig ?? {};
|
|
17
|
+
if (typeof data === "undefined") data = null;
|
|
18
|
+
if (typeof query === "undefined") query = null;
|
|
19
|
+
if (typeof headers === "undefined") headers = null;
|
|
20
|
+
let url = UnsubscribePushDeviceCommand.url;
|
|
21
|
+
if (pathParams && data) for (const param of pathParams) {
|
|
22
|
+
const urlParam = ":" + param;
|
|
23
|
+
url = url.replace(urlParam, data[param]);
|
|
24
|
+
}
|
|
25
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
26
|
+
if (missingParams) {
|
|
27
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
28
|
+
throw new Error("Missing parameters: " + missing.join(", "));
|
|
29
|
+
}
|
|
30
|
+
this.url = url;
|
|
31
|
+
this.data = data;
|
|
32
|
+
this.query = query;
|
|
33
|
+
this.headers = headers;
|
|
34
|
+
this.config = {
|
|
35
|
+
method: UnsubscribePushDeviceCommand.method,
|
|
36
|
+
url,
|
|
37
|
+
data,
|
|
38
|
+
params: query,
|
|
39
|
+
headers,
|
|
40
|
+
...options
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { UnsubscribePushDeviceCommand };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=unsubscribePushDevice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsubscribePushDevice.js","names":[],"sources":["../../.generated/useCases/unsubscribePushDevice.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface UnsubscribePushDeviceCommandConfig {\n data?: { id: string; [key: string]: unknown } | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface UnsubscribePushDeviceCommandRequestConfig {\n method: \"delete\";\n url: string;\n data: { id: string; [key: string]: unknown } | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class UnsubscribePushDeviceCommand {\n url: string;\n data: { id: string; [key: string]: unknown } | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: UnsubscribePushDeviceCommandRequestConfig;\n\n static params = [\"id\"] as const;\n static url = \"/notifications/push-subscriptions/:id\";\n static method = \"delete\" as const;\n\n constructor(\n commandConfig: UnsubscribePushDeviceCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = UnsubscribePushDeviceCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = UnsubscribePushDeviceCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: UnsubscribePushDeviceCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,+BAAb,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC,IAAI;CACrB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,6BAA6B;EAEhD,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,6BAA6B;EAE/C,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,6BAA6B;GAChC;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface UpdateOrgNotificationDefaultsCommandConfig {
|
|
2
|
+
data?: Record<string, unknown> | null;
|
|
3
|
+
headers?: Record<string, string> | null;
|
|
4
|
+
query?: Record<string, unknown> | null;
|
|
5
|
+
}
|
|
6
|
+
export interface UpdateOrgNotificationDefaultsCommandRequestConfig {
|
|
7
|
+
method: "put";
|
|
8
|
+
url: string;
|
|
9
|
+
data: Record<string, unknown> | null;
|
|
10
|
+
params: Record<string, unknown> | null;
|
|
11
|
+
headers: Record<string, string> | null;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class UpdateOrgNotificationDefaultsCommand {
|
|
18
|
+
url: string;
|
|
19
|
+
data: Record<string, unknown> | null;
|
|
20
|
+
query: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
config: UpdateOrgNotificationDefaultsCommandRequestConfig;
|
|
23
|
+
static params: readonly [];
|
|
24
|
+
static url: string;
|
|
25
|
+
static method: "put";
|
|
26
|
+
constructor(commandConfig: UpdateOrgNotificationDefaultsCommandConfig, options?: Record<string, unknown>);
|
|
27
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region .generated/useCases/updateOrgNotificationDefaults.ts
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
var UpdateOrgNotificationDefaultsCommand = class UpdateOrgNotificationDefaultsCommand {
|
|
6
|
+
url;
|
|
7
|
+
data;
|
|
8
|
+
query;
|
|
9
|
+
headers;
|
|
10
|
+
config;
|
|
11
|
+
static params = [];
|
|
12
|
+
static url = "/notifications/defaults";
|
|
13
|
+
static method = "put";
|
|
14
|
+
constructor(commandConfig, options = {}) {
|
|
15
|
+
const pathParams = UpdateOrgNotificationDefaultsCommand.params;
|
|
16
|
+
let { data, query, headers } = commandConfig ?? {};
|
|
17
|
+
if (typeof data === "undefined") data = null;
|
|
18
|
+
if (typeof query === "undefined") query = null;
|
|
19
|
+
if (typeof headers === "undefined") headers = null;
|
|
20
|
+
let url = UpdateOrgNotificationDefaultsCommand.url;
|
|
21
|
+
if (pathParams && data) for (const param of pathParams) {
|
|
22
|
+
const urlParam = ":" + param;
|
|
23
|
+
url = url.replace(urlParam, data[param]);
|
|
24
|
+
}
|
|
25
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
26
|
+
if (missingParams) {
|
|
27
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
28
|
+
throw new Error("Missing parameters: " + missing.join(", "));
|
|
29
|
+
}
|
|
30
|
+
this.url = url;
|
|
31
|
+
this.data = data;
|
|
32
|
+
this.query = query;
|
|
33
|
+
this.headers = headers;
|
|
34
|
+
this.config = {
|
|
35
|
+
method: UpdateOrgNotificationDefaultsCommand.method,
|
|
36
|
+
url,
|
|
37
|
+
data,
|
|
38
|
+
params: query,
|
|
39
|
+
headers,
|
|
40
|
+
...options
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { UpdateOrgNotificationDefaultsCommand };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=updateOrgNotificationDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateOrgNotificationDefaults.js","names":[],"sources":["../../.generated/useCases/updateOrgNotificationDefaults.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport interface UpdateOrgNotificationDefaultsCommandConfig {\n data?: Record<string, unknown> | null;\n headers?: Record<string, string> | null;\n query?: Record<string, unknown> | null;\n}\n\nexport interface UpdateOrgNotificationDefaultsCommandRequestConfig {\n method: \"put\";\n url: string;\n data: Record<string, unknown> | null;\n params: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n [key: string]: unknown;\n}\n\n/**\n *\n */\nexport class UpdateOrgNotificationDefaultsCommand {\n url: string;\n data: Record<string, unknown> | null;\n query: Record<string, unknown> | null;\n headers: Record<string, string> | null;\n config: UpdateOrgNotificationDefaultsCommandRequestConfig;\n\n static params = [] as const;\n static url = \"/notifications/defaults\";\n static method = \"put\" as const;\n\n constructor(\n commandConfig: UpdateOrgNotificationDefaultsCommandConfig,\n options: Record<string, unknown> = {},\n ) {\n const pathParams = UpdateOrgNotificationDefaultsCommand.params;\n\n let { data, query, headers } = commandConfig ?? {};\n\n if (typeof data === \"undefined\") data = null;\n if (typeof query === \"undefined\") query = null;\n if (typeof headers === \"undefined\") headers = null;\n\n // Replace path parameters with values from data\n let url: string = UpdateOrgNotificationDefaultsCommand.url;\n\n if (pathParams && data) {\n for (const param of pathParams) {\n const urlParam = \":\" + param;\n url = url.replace(urlParam, (data as Record<string, string>)[param]);\n }\n }\n\n // Make sure all parameters have been replaced\n const missingParams = url.match(/:[a-zA-Z0-9]+/g);\n if (missingParams) {\n const missing = missingParams.map((param) => param.replace(\":\", \"\"));\n throw new Error(\"Missing parameters: \" + missing.join(\", \"));\n }\n\n this.url = url;\n this.data = data;\n this.query = query;\n this.headers = headers;\n\n this.config = {\n method: UpdateOrgNotificationDefaultsCommand.method,\n url: url,\n data: data,\n params: query,\n headers: headers,\n ...options,\n };\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,uCAAb,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;CAEA,OAAO,SAAS,CAAC;CACjB,OAAO,MAAM;CACb,OAAO,SAAS;CAEhB,YACE,eACA,UAAmC,CAAC,GACpC;EACA,MAAM,aAAa,qCAAqC;EAExD,IAAI,EAAE,MAAM,OAAO,YAAY,iBAAiB,CAAC;EAEjD,IAAI,OAAO,SAAS,aAAa,OAAO;EACxC,IAAI,OAAO,UAAU,aAAa,QAAQ;EAC1C,IAAI,OAAO,YAAY,aAAa,UAAU;EAG9C,IAAI,MAAc,qCAAqC;EAEvD,IAAI,cAAc,MAChB,KAAK,MAAM,SAAS,YAAY;GAC9B,MAAM,WAAW,MAAM;GACvB,MAAM,IAAI,QAAQ,UAAW,KAAgC,MAAM;EACrE;EAIF,MAAM,gBAAgB,IAAI,MAAM,gBAAgB;EAChD,IAAI,eAAe;GACjB,MAAM,UAAU,cAAc,KAAK,UAAU,MAAM,QAAQ,KAAK,EAAE,CAAC;GACnE,MAAM,IAAI,MAAM,yBAAyB,QAAQ,KAAK,IAAI,CAAC;EAC7D;EAEA,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,UAAU;EAEf,KAAK,SAAS;GACZ,QAAQ,qCAAqC;GACxC;GACC;GACN,QAAQ;GACC;GACT,GAAG;EACL;CACF;AACF"}
|
package/dist/validate.d.ts
CHANGED
|
@@ -669,14 +669,14 @@ export declare const validateUser: import("ajv").ValidateFunction<{
|
|
|
669
669
|
}>;
|
|
670
670
|
export declare const validateVendor: import("ajv").ValidateFunction<{
|
|
671
671
|
id: any;
|
|
672
|
-
name: any;
|
|
673
672
|
email: any;
|
|
673
|
+
name: any;
|
|
674
674
|
} & {
|
|
675
675
|
id: any;
|
|
676
|
-
} & {
|
|
677
|
-
name: any;
|
|
678
676
|
} & {
|
|
679
677
|
email: any;
|
|
678
|
+
} & {
|
|
679
|
+
name: any;
|
|
680
680
|
}>;
|
|
681
681
|
export declare const validateWindowCovering: import("ajv").ValidateFunction<{
|
|
682
682
|
id: any;
|