@kohost/api-client 7.25.0 → 7.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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/lib/vendorDocuments.d.ts +23 -0
- package/dist/lib/vendorPrivateDetails.d.ts +35 -0
- package/dist/models/vendorProfile.d.ts +17 -0
- package/dist/schemas/system.d.ts +0 -2
- package/dist/schemas/system.js +0 -2
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/vendorProfile.d.ts +188 -0
- package/dist/useCases/addVendorDocument.d.ts +36 -0
- package/dist/useCases/addVendorProfileDocument.d.ts +36 -0
- package/dist/useCases/createImageUploadEndpoint.d.ts +27 -0
- package/dist/useCases/createVendorProfile.d.ts +27 -0
- package/dist/useCases/deleteVendorProfile.d.ts +36 -0
- package/dist/useCases/describeVendorProfile.d.ts +36 -0
- package/dist/useCases/listVendorDirectory.d.ts +27 -0
- package/dist/useCases/listVendorProfiles.d.ts +27 -0
- package/dist/useCases/openUnsubscribePage.d.ts +36 -0
- package/dist/useCases/removeVendorDocument.d.ts +39 -0
- package/dist/useCases/removeVendorProfileDocument.d.ts +39 -0
- package/dist/useCases/removeWorkItem.d.ts +39 -0
- package/dist/useCases/unsubscribe.d.ts +36 -0
- package/dist/useCases/updateVendorProfile.d.ts +36 -0
- package/dist/useCases/updateWorkItem.d.ts +39 -0
- package/dist/useCases/uploadImage.d.ts +27 -0
- package/package.json +1 -1
- package/dist/__typecheck_regression__.d.ts +0 -1
- package/dist/models/conciergeWorkspaceBill.d.ts +0 -17
- package/dist/schemas/conciergeWorkspaceBill.d.ts +0 -156
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface RemoveVendorDocumentCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
id: string;
|
|
4
|
+
documentId: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
} | null;
|
|
7
|
+
headers?: Record<string, string> | null;
|
|
8
|
+
query?: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
10
|
+
export interface RemoveVendorDocumentCommandRequestConfig {
|
|
11
|
+
method: "delete";
|
|
12
|
+
url: string;
|
|
13
|
+
data: {
|
|
14
|
+
id: string;
|
|
15
|
+
documentId: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
params: Record<string, unknown> | null;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class RemoveVendorDocumentCommand {
|
|
26
|
+
url: string;
|
|
27
|
+
data: {
|
|
28
|
+
id: string;
|
|
29
|
+
documentId: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | null;
|
|
32
|
+
query: Record<string, unknown> | null;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
|
+
config: RemoveVendorDocumentCommandRequestConfig;
|
|
35
|
+
static params: readonly ["id", "documentId"];
|
|
36
|
+
static url: string;
|
|
37
|
+
static method: "delete";
|
|
38
|
+
constructor(commandConfig: RemoveVendorDocumentCommandConfig, options?: Record<string, unknown>);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface RemoveVendorProfileDocumentCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
id: string;
|
|
4
|
+
documentId: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
} | null;
|
|
7
|
+
headers?: Record<string, string> | null;
|
|
8
|
+
query?: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
10
|
+
export interface RemoveVendorProfileDocumentCommandRequestConfig {
|
|
11
|
+
method: "delete";
|
|
12
|
+
url: string;
|
|
13
|
+
data: {
|
|
14
|
+
id: string;
|
|
15
|
+
documentId: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
params: Record<string, unknown> | null;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class RemoveVendorProfileDocumentCommand {
|
|
26
|
+
url: string;
|
|
27
|
+
data: {
|
|
28
|
+
id: string;
|
|
29
|
+
documentId: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | null;
|
|
32
|
+
query: Record<string, unknown> | null;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
|
+
config: RemoveVendorProfileDocumentCommandRequestConfig;
|
|
35
|
+
static params: readonly ["id", "documentId"];
|
|
36
|
+
static url: string;
|
|
37
|
+
static method: "delete";
|
|
38
|
+
constructor(commandConfig: RemoveVendorProfileDocumentCommandConfig, options?: Record<string, unknown>);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface RemoveWorkItemCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
id: string;
|
|
4
|
+
workItemId: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
} | null;
|
|
7
|
+
headers?: Record<string, string> | null;
|
|
8
|
+
query?: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
10
|
+
export interface RemoveWorkItemCommandRequestConfig {
|
|
11
|
+
method: "delete";
|
|
12
|
+
url: string;
|
|
13
|
+
data: {
|
|
14
|
+
id: string;
|
|
15
|
+
workItemId: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
params: Record<string, unknown> | null;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class RemoveWorkItemCommand {
|
|
26
|
+
url: string;
|
|
27
|
+
data: {
|
|
28
|
+
id: string;
|
|
29
|
+
workItemId: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | null;
|
|
32
|
+
query: Record<string, unknown> | null;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
|
+
config: RemoveWorkItemCommandRequestConfig;
|
|
35
|
+
static params: readonly ["id", "workItemId"];
|
|
36
|
+
static url: string;
|
|
37
|
+
static method: "delete";
|
|
38
|
+
constructor(commandConfig: RemoveWorkItemCommandConfig, options?: Record<string, unknown>);
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface UnsubscribeCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
token: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
} | null;
|
|
6
|
+
headers?: Record<string, string> | null;
|
|
7
|
+
query?: Record<string, unknown> | null;
|
|
8
|
+
}
|
|
9
|
+
export interface UnsubscribeCommandRequestConfig {
|
|
10
|
+
method: "post";
|
|
11
|
+
url: string;
|
|
12
|
+
data: {
|
|
13
|
+
token: string;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
} | null;
|
|
16
|
+
params: Record<string, unknown> | null;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class UnsubscribeCommand {
|
|
24
|
+
url: string;
|
|
25
|
+
data: {
|
|
26
|
+
token: string;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
} | null;
|
|
29
|
+
query: Record<string, unknown> | null;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
|
+
config: UnsubscribeCommandRequestConfig;
|
|
32
|
+
static params: readonly ["token"];
|
|
33
|
+
static url: string;
|
|
34
|
+
static method: "post";
|
|
35
|
+
constructor(commandConfig: UnsubscribeCommandConfig, options?: Record<string, unknown>);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface UpdateVendorProfileCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
id: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
} | null;
|
|
6
|
+
headers?: Record<string, string> | null;
|
|
7
|
+
query?: Record<string, unknown> | null;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateVendorProfileCommandRequestConfig {
|
|
10
|
+
method: "put";
|
|
11
|
+
url: string;
|
|
12
|
+
data: {
|
|
13
|
+
id: string;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
} | null;
|
|
16
|
+
params: Record<string, unknown> | null;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class UpdateVendorProfileCommand {
|
|
24
|
+
url: string;
|
|
25
|
+
data: {
|
|
26
|
+
id: string;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
} | null;
|
|
29
|
+
query: Record<string, unknown> | null;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
|
+
config: UpdateVendorProfileCommandRequestConfig;
|
|
32
|
+
static params: readonly ["id"];
|
|
33
|
+
static url: string;
|
|
34
|
+
static method: "put";
|
|
35
|
+
constructor(commandConfig: UpdateVendorProfileCommandConfig, options?: Record<string, unknown>);
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface UpdateWorkItemCommandConfig {
|
|
2
|
+
data?: {
|
|
3
|
+
id: string;
|
|
4
|
+
workItemId: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
} | null;
|
|
7
|
+
headers?: Record<string, string> | null;
|
|
8
|
+
query?: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateWorkItemCommandRequestConfig {
|
|
11
|
+
method: "put";
|
|
12
|
+
url: string;
|
|
13
|
+
data: {
|
|
14
|
+
id: string;
|
|
15
|
+
workItemId: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
params: Record<string, unknown> | null;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class UpdateWorkItemCommand {
|
|
26
|
+
url: string;
|
|
27
|
+
data: {
|
|
28
|
+
id: string;
|
|
29
|
+
workItemId: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | null;
|
|
32
|
+
query: Record<string, unknown> | null;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
|
+
config: UpdateWorkItemCommandRequestConfig;
|
|
35
|
+
static params: readonly ["id", "workItemId"];
|
|
36
|
+
static url: string;
|
|
37
|
+
static method: "put";
|
|
38
|
+
constructor(commandConfig: UpdateWorkItemCommandConfig, options?: Record<string, unknown>);
|
|
39
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface UploadImageCommandConfig {
|
|
2
|
+
data?: Record<string, unknown> | null;
|
|
3
|
+
headers?: Record<string, string> | null;
|
|
4
|
+
query?: Record<string, unknown> | null;
|
|
5
|
+
}
|
|
6
|
+
export interface UploadImageCommandRequestConfig {
|
|
7
|
+
method: "post";
|
|
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 UploadImageCommand {
|
|
18
|
+
url: string;
|
|
19
|
+
data: Record<string, unknown> | null;
|
|
20
|
+
query: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
config: UploadImageCommandRequestConfig;
|
|
23
|
+
static params: readonly [];
|
|
24
|
+
static url: string;
|
|
25
|
+
static method: "post";
|
|
26
|
+
constructor(commandConfig: UploadImageCommandConfig, options?: Record<string, unknown>);
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const mustBeAString: string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Entity } from "./entity.js";
|
|
2
|
-
import { validateConciergeWorkspaceBill as validate } from "../validate.js";
|
|
3
|
-
import { conciergeWorkspaceBillSchema, type ConciergeWorkspaceBillSchema } from "../schemas/conciergeWorkspaceBill.js";
|
|
4
|
-
/**
|
|
5
|
-
* Data type for ConciergeWorkspaceBill constructor - exported for backwards compatibility
|
|
6
|
-
*/
|
|
7
|
-
export type ConciergeWorkspaceBillData = ConciergeWorkspaceBillSchema;
|
|
8
|
-
/**
|
|
9
|
-
* One row of the cross-organization OneBill invoices view: a bill summary with its organization resolved and its total derived.
|
|
10
|
-
*/
|
|
11
|
-
export interface ConciergeWorkspaceBill extends ConciergeWorkspaceBillSchema {
|
|
12
|
-
}
|
|
13
|
-
export declare class ConciergeWorkspaceBill extends Entity {
|
|
14
|
-
schema: typeof conciergeWorkspaceBillSchema;
|
|
15
|
-
validator: typeof validate;
|
|
16
|
-
constructor(data: ConciergeWorkspaceBillSchema);
|
|
17
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import type { FromSchema } from "json-schema-to-ts";
|
|
2
|
-
export declare const conciergeWorkspaceBillSchema: {
|
|
3
|
-
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
4
|
-
readonly $id: "conciergeWorkspaceBill.json";
|
|
5
|
-
readonly title: "ConciergeWorkspaceBill";
|
|
6
|
-
readonly description: string;
|
|
7
|
-
readonly type: "object";
|
|
8
|
-
readonly additionalProperties: false;
|
|
9
|
-
readonly required: readonly ["id", "organizationId", "organizationName", "invoiceNumber", "status", "effectiveDate", "sentAt", "createdAt", "period", "total", "currency", "lineCount"];
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly id: {
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
readonly description: "The bill's ID.";
|
|
14
|
-
};
|
|
15
|
-
readonly organizationId: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
readonly description: "The organization the bill invoices.";
|
|
18
|
-
};
|
|
19
|
-
readonly organizationName: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly description: "The invoiced organization's display name.";
|
|
22
|
-
};
|
|
23
|
-
readonly invoiceNumber: {
|
|
24
|
-
readonly type: readonly ["string", "null"];
|
|
25
|
-
readonly description: string;
|
|
26
|
-
};
|
|
27
|
-
readonly status: {
|
|
28
|
-
readonly type: "string";
|
|
29
|
-
readonly enum: readonly ["draft", "sent", "paid", "void"];
|
|
30
|
-
readonly description: "The bill's lifecycle state.";
|
|
31
|
-
};
|
|
32
|
-
readonly effectiveDate: {
|
|
33
|
-
readonly type: "string";
|
|
34
|
-
readonly format: "date-time";
|
|
35
|
-
readonly description: string;
|
|
36
|
-
};
|
|
37
|
-
readonly sentAt: {
|
|
38
|
-
readonly type: readonly ["string", "null"];
|
|
39
|
-
readonly description: "When the bill was marked sent. Null until sent.";
|
|
40
|
-
};
|
|
41
|
-
readonly createdAt: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
readonly format: "date-time";
|
|
44
|
-
readonly description: "When the bill was created.";
|
|
45
|
-
};
|
|
46
|
-
readonly period: {
|
|
47
|
-
readonly type: readonly ["string", "null"];
|
|
48
|
-
readonly description: 'Display-only month label (e.g. "July 2026").';
|
|
49
|
-
};
|
|
50
|
-
readonly total: {
|
|
51
|
-
readonly type: readonly ["integer", "null"];
|
|
52
|
-
readonly description: string;
|
|
53
|
-
};
|
|
54
|
-
readonly currency: {
|
|
55
|
-
readonly type: "string";
|
|
56
|
-
readonly description: "ISO 4217 currency code.";
|
|
57
|
-
};
|
|
58
|
-
readonly lineCount: {
|
|
59
|
-
readonly type: "integer";
|
|
60
|
-
readonly description: "How many lines the bill carries.";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
export declare const conciergeWorkspaceBillsResponseSchema: {
|
|
65
|
-
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
66
|
-
readonly $id: "conciergeWorkspaceBillsResponse.json";
|
|
67
|
-
readonly title: "ConciergeWorkspaceBillsResponse";
|
|
68
|
-
readonly description: string;
|
|
69
|
-
readonly type: "object";
|
|
70
|
-
readonly additionalProperties: false;
|
|
71
|
-
readonly required: readonly ["bills", "page", "pages", "total"];
|
|
72
|
-
readonly properties: {
|
|
73
|
-
readonly bills: {
|
|
74
|
-
readonly type: "array";
|
|
75
|
-
readonly items: {
|
|
76
|
-
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
77
|
-
readonly $id: "conciergeWorkspaceBill.json";
|
|
78
|
-
readonly title: "ConciergeWorkspaceBill";
|
|
79
|
-
readonly description: string;
|
|
80
|
-
readonly type: "object";
|
|
81
|
-
readonly additionalProperties: false;
|
|
82
|
-
readonly required: readonly ["id", "organizationId", "organizationName", "invoiceNumber", "status", "effectiveDate", "sentAt", "createdAt", "period", "total", "currency", "lineCount"];
|
|
83
|
-
readonly properties: {
|
|
84
|
-
readonly id: {
|
|
85
|
-
readonly type: "string";
|
|
86
|
-
readonly description: "The bill's ID.";
|
|
87
|
-
};
|
|
88
|
-
readonly organizationId: {
|
|
89
|
-
readonly type: "string";
|
|
90
|
-
readonly description: "The organization the bill invoices.";
|
|
91
|
-
};
|
|
92
|
-
readonly organizationName: {
|
|
93
|
-
readonly type: "string";
|
|
94
|
-
readonly description: "The invoiced organization's display name.";
|
|
95
|
-
};
|
|
96
|
-
readonly invoiceNumber: {
|
|
97
|
-
readonly type: readonly ["string", "null"];
|
|
98
|
-
readonly description: string;
|
|
99
|
-
};
|
|
100
|
-
readonly status: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
readonly enum: readonly ["draft", "sent", "paid", "void"];
|
|
103
|
-
readonly description: "The bill's lifecycle state.";
|
|
104
|
-
};
|
|
105
|
-
readonly effectiveDate: {
|
|
106
|
-
readonly type: "string";
|
|
107
|
-
readonly format: "date-time";
|
|
108
|
-
readonly description: string;
|
|
109
|
-
};
|
|
110
|
-
readonly sentAt: {
|
|
111
|
-
readonly type: readonly ["string", "null"];
|
|
112
|
-
readonly description: "When the bill was marked sent. Null until sent.";
|
|
113
|
-
};
|
|
114
|
-
readonly createdAt: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
readonly format: "date-time";
|
|
117
|
-
readonly description: "When the bill was created.";
|
|
118
|
-
};
|
|
119
|
-
readonly period: {
|
|
120
|
-
readonly type: readonly ["string", "null"];
|
|
121
|
-
readonly description: 'Display-only month label (e.g. "July 2026").';
|
|
122
|
-
};
|
|
123
|
-
readonly total: {
|
|
124
|
-
readonly type: readonly ["integer", "null"];
|
|
125
|
-
readonly description: string;
|
|
126
|
-
};
|
|
127
|
-
readonly currency: {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly description: "ISO 4217 currency code.";
|
|
130
|
-
};
|
|
131
|
-
readonly lineCount: {
|
|
132
|
-
readonly type: "integer";
|
|
133
|
-
readonly description: "How many lines the bill carries.";
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
readonly page: {
|
|
139
|
-
readonly type: "integer";
|
|
140
|
-
readonly minimum: 1;
|
|
141
|
-
readonly description: "The 1-based page returned.";
|
|
142
|
-
};
|
|
143
|
-
readonly pages: {
|
|
144
|
-
readonly type: "integer";
|
|
145
|
-
readonly minimum: 0;
|
|
146
|
-
readonly description: "How many pages the filtered set spans.";
|
|
147
|
-
};
|
|
148
|
-
readonly total: {
|
|
149
|
-
readonly type: "integer";
|
|
150
|
-
readonly minimum: 0;
|
|
151
|
-
readonly description: "How many bills match the filter across all pages.";
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
export type ConciergeWorkspaceBillSchema = FromSchema<typeof conciergeWorkspaceBillSchema>;
|
|
156
|
-
export type ConciergeWorkspaceBillsResponseSchema = FromSchema<typeof conciergeWorkspaceBillsResponseSchema>;
|