@kanda-libs/ks-schema 1.0.86 → 1.0.88
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/components/schemas/index.d.ts +0 -2
- package/dist/components/schemas/index.d.ts.map +1 -1
- package/dist/components/schemas/index.js +0 -2
- package/dist/operations/approveCompany.d.ts +187 -0
- package/dist/operations/approveCompany.d.ts.map +1 -0
- package/dist/operations/{viewedNotification.js → approveCompany.js} +4 -4
- package/dist/operations/index.d.ts +181 -270
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +5 -28
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +2226 -2347
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +4603 -4739
- package/package.json +1 -1
- package/schema.yaml +30 -229
- package/dist/components/schemas/Notification.d.ts +0 -31
- package/dist/components/schemas/Notification.d.ts.map +0 -1
- package/dist/components/schemas/Notification.js +0 -44
- package/dist/components/schemas/NotificationChannel.d.ts +0 -4
- package/dist/components/schemas/NotificationChannel.d.ts.map +0 -1
- package/dist/components/schemas/NotificationChannel.js +0 -32
- package/dist/operations/deleteNotification.d.ts +0 -51
- package/dist/operations/deleteNotification.d.ts.map +0 -1
- package/dist/operations/deleteNotification.js +0 -44
- package/dist/operations/getNotification.d.ts +0 -51
- package/dist/operations/getNotification.d.ts.map +0 -1
- package/dist/operations/getNotification.js +0 -44
- package/dist/operations/getNotifications.d.ts +0 -42
- package/dist/operations/getNotifications.d.ts.map +0 -1
- package/dist/operations/getNotifications.js +0 -38
- package/dist/operations/postNotification.d.ts +0 -47
- package/dist/operations/postNotification.d.ts.map +0 -1
- package/dist/operations/postNotification.js +0 -43
- package/dist/operations/putNotification.d.ts +0 -56
- package/dist/operations/putNotification.d.ts.map +0 -1
- package/dist/operations/putNotification.js +0 -50
- package/dist/operations/viewedNotification.d.ts +0 -51
- package/dist/operations/viewedNotification.d.ts.map +0 -1
|
@@ -28,8 +28,6 @@ export * from "./Metadata";
|
|
|
28
28
|
export * from "./Money";
|
|
29
29
|
export * from "./MoneyTotal";
|
|
30
30
|
export * from "./NotEmployedDetails";
|
|
31
|
-
export * from "./Notification";
|
|
32
|
-
export * from "./NotificationChannel";
|
|
33
31
|
export * from "./Payment";
|
|
34
32
|
export * from "./PaymentOption";
|
|
35
33
|
export * from "./Pence";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
@@ -44,8 +44,6 @@ __exportStar(require("./Metadata"), exports);
|
|
|
44
44
|
__exportStar(require("./Money"), exports);
|
|
45
45
|
__exportStar(require("./MoneyTotal"), exports);
|
|
46
46
|
__exportStar(require("./NotEmployedDetails"), exports);
|
|
47
|
-
__exportStar(require("./Notification"), exports);
|
|
48
|
-
__exportStar(require("./NotificationChannel"), exports);
|
|
49
47
|
__exportStar(require("./Payment"), exports);
|
|
50
48
|
__exportStar(require("./PaymentOption"), exports);
|
|
51
49
|
__exportStar(require("./Pence"), exports);
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
export declare type ApproveCompanyRequestParameters = {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const approveCompanyOperation: {
|
|
7
|
+
readonly path: "/api/company/{id}/approve";
|
|
8
|
+
readonly method: "post";
|
|
9
|
+
readonly responses: {
|
|
10
|
+
readonly "200": {
|
|
11
|
+
readonly _tag: "JsonResponse";
|
|
12
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
13
|
+
company_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"limited_company">, import("io-ts").LiteralC<"sole_trader">]>;
|
|
14
|
+
}>, import("io-ts").PartialC<{
|
|
15
|
+
id: import("io-ts").StringC;
|
|
16
|
+
cid: import("io-ts").StringC;
|
|
17
|
+
oid: import("io-ts").StringC;
|
|
18
|
+
emails: import("io-ts").ArrayC<import("io-ts").StringC>;
|
|
19
|
+
users: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
20
|
+
role: import("io-ts").UnionC<[import("io-ts").LiteralC<"company-admin">, import("io-ts").LiteralC<"company-manager">, import("io-ts").LiteralC<"company-staff">]>;
|
|
21
|
+
first_name: import("io-ts").StringC;
|
|
22
|
+
email: import("io-ts").StringC;
|
|
23
|
+
}>, import("io-ts").PartialC<{
|
|
24
|
+
director_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
25
|
+
home_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
26
|
+
line_1: import("io-ts").StringC;
|
|
27
|
+
city: import("io-ts").StringC;
|
|
28
|
+
country: import("io-ts").StringC;
|
|
29
|
+
postcode: import("io-ts").StringC;
|
|
30
|
+
}>, import("io-ts").PartialC<{
|
|
31
|
+
building_number: import("io-ts").StringC;
|
|
32
|
+
building_name: import("io-ts").StringC;
|
|
33
|
+
line_2: import("io-ts").StringC;
|
|
34
|
+
county: import("io-ts").StringC;
|
|
35
|
+
months_at_address: import("io-ts").NumberC;
|
|
36
|
+
}>]>;
|
|
37
|
+
}>, import("io-ts").PartialC<{
|
|
38
|
+
verification_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_verified">, import("io-ts").LiteralC<"verified">]>;
|
|
39
|
+
}>]>;
|
|
40
|
+
last_name: import("io-ts").StringC;
|
|
41
|
+
mobile: import("io-ts").StringC;
|
|
42
|
+
}>]>>;
|
|
43
|
+
company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
44
|
+
trade_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"gas_engineer">, import("io-ts").LiteralC<"electrician">, import("io-ts").LiteralC<"ev_charger_installer">, import("io-ts").LiteralC<"tiler">, import("io-ts").LiteralC<"kitchen_fitter">, import("io-ts").LiteralC<"floor_layer">, import("io-ts").LiteralC<"cctv_and_security_installations">, import("io-ts").LiteralC<"windows_and_doors">, import("io-ts").LiteralC<"landscaping">, import("io-ts").LiteralC<"air_conditioning">, import("io-ts").LiteralC<"bathrooms">, import("io-ts").LiteralC<"driveways_and_patios">, import("io-ts").LiteralC<"garage_doors">, import("io-ts").LiteralC<"fireplaces">, import("io-ts").LiteralC<"multi_trade">, import("io-ts").LiteralC<"other_trade">]>;
|
|
45
|
+
warranty_length: import("io-ts").NumberC;
|
|
46
|
+
average_monthly_jobs: import("io-ts").NumberC;
|
|
47
|
+
average_job_value: import("io-ts").NumberC;
|
|
48
|
+
use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
49
|
+
insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
50
|
+
name: import("io-ts").StringC;
|
|
51
|
+
}>, import("io-ts").PartialC<{
|
|
52
|
+
id: import("io-ts").StringC;
|
|
53
|
+
cid: import("io-ts").StringC;
|
|
54
|
+
oid: import("io-ts").StringC;
|
|
55
|
+
content: import("io-ts").StringC;
|
|
56
|
+
mimetype: import("io-ts").StringC;
|
|
57
|
+
metadata: import("io-ts").TypeC<{
|
|
58
|
+
liveness: import("io-ts").BooleanC;
|
|
59
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
60
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
61
|
+
}>;
|
|
62
|
+
}>]>;
|
|
63
|
+
}>, import("io-ts").PartialC<{
|
|
64
|
+
trade_body: import("io-ts").UnionC<[import("io-ts").LiteralC<"none">, import("io-ts").LiteralC<"niceic">, import("io-ts").LiteralC<"elecsa">, import("io-ts").LiteralC<"gas_safe">, import("io-ts").LiteralC<"napit">, import("io-ts").LiteralC<"other">]>;
|
|
65
|
+
trade_body_number: import("io-ts").StringC;
|
|
66
|
+
}>]>;
|
|
67
|
+
limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
68
|
+
company_name: import("io-ts").StringC;
|
|
69
|
+
company_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
70
|
+
line_1: import("io-ts").StringC;
|
|
71
|
+
city: import("io-ts").StringC;
|
|
72
|
+
country: import("io-ts").StringC;
|
|
73
|
+
postcode: import("io-ts").StringC;
|
|
74
|
+
}>, import("io-ts").PartialC<{
|
|
75
|
+
building_number: import("io-ts").StringC;
|
|
76
|
+
building_name: import("io-ts").StringC;
|
|
77
|
+
line_2: import("io-ts").StringC;
|
|
78
|
+
county: import("io-ts").StringC;
|
|
79
|
+
months_at_address: import("io-ts").NumberC;
|
|
80
|
+
}>]>;
|
|
81
|
+
company_number: import("io-ts").StringC;
|
|
82
|
+
}>, import("io-ts").PartialC<{
|
|
83
|
+
trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
84
|
+
line_1: import("io-ts").StringC;
|
|
85
|
+
city: import("io-ts").StringC;
|
|
86
|
+
country: import("io-ts").StringC;
|
|
87
|
+
postcode: import("io-ts").StringC;
|
|
88
|
+
}>, import("io-ts").PartialC<{
|
|
89
|
+
building_number: import("io-ts").StringC;
|
|
90
|
+
building_name: import("io-ts").StringC;
|
|
91
|
+
line_2: import("io-ts").StringC;
|
|
92
|
+
county: import("io-ts").StringC;
|
|
93
|
+
months_at_address: import("io-ts").NumberC;
|
|
94
|
+
}>]>;
|
|
95
|
+
vat_number: import("io-ts").StringC;
|
|
96
|
+
}>]>;
|
|
97
|
+
sole_trader_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
98
|
+
trading_name: import("io-ts").StringC;
|
|
99
|
+
trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
100
|
+
line_1: import("io-ts").StringC;
|
|
101
|
+
city: import("io-ts").StringC;
|
|
102
|
+
country: import("io-ts").StringC;
|
|
103
|
+
postcode: import("io-ts").StringC;
|
|
104
|
+
}>, import("io-ts").PartialC<{
|
|
105
|
+
building_number: import("io-ts").StringC;
|
|
106
|
+
building_name: import("io-ts").StringC;
|
|
107
|
+
line_2: import("io-ts").StringC;
|
|
108
|
+
county: import("io-ts").StringC;
|
|
109
|
+
months_at_address: import("io-ts").NumberC;
|
|
110
|
+
}>]>;
|
|
111
|
+
}>, import("io-ts").PartialC<{
|
|
112
|
+
national_insurance_number: import("io-ts").StringC;
|
|
113
|
+
}>]>;
|
|
114
|
+
available_rates: import("io-ts").ArrayC<import("io-ts").TypeC<{
|
|
115
|
+
name: import("io-ts").StringC;
|
|
116
|
+
fee: import("io-ts").NumberC;
|
|
117
|
+
enabled: import("io-ts").BooleanC;
|
|
118
|
+
}>>;
|
|
119
|
+
quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
|
|
120
|
+
skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
|
|
121
|
+
lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
|
|
122
|
+
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
123
|
+
name: import("io-ts").StringC;
|
|
124
|
+
}>, import("io-ts").PartialC<{
|
|
125
|
+
id: import("io-ts").StringC;
|
|
126
|
+
cid: import("io-ts").StringC;
|
|
127
|
+
oid: import("io-ts").StringC;
|
|
128
|
+
content: import("io-ts").StringC;
|
|
129
|
+
mimetype: import("io-ts").StringC;
|
|
130
|
+
metadata: import("io-ts").TypeC<{
|
|
131
|
+
liveness: import("io-ts").BooleanC;
|
|
132
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
133
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
134
|
+
}>;
|
|
135
|
+
}>]>;
|
|
136
|
+
bank_account: import("io-ts").TypeC<{
|
|
137
|
+
account_name: import("io-ts").StringC;
|
|
138
|
+
account_number: import("io-ts").StringC;
|
|
139
|
+
sort_code: import("io-ts").StringC;
|
|
140
|
+
}>;
|
|
141
|
+
contact_info: import("io-ts").PartialC<{
|
|
142
|
+
contact_name: import("io-ts").StringC;
|
|
143
|
+
contact_email: import("io-ts").StringC;
|
|
144
|
+
contact_phone: import("io-ts").StringC;
|
|
145
|
+
contact_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
146
|
+
line_1: import("io-ts").StringC;
|
|
147
|
+
city: import("io-ts").StringC;
|
|
148
|
+
country: import("io-ts").StringC;
|
|
149
|
+
postcode: import("io-ts").StringC;
|
|
150
|
+
}>, import("io-ts").PartialC<{
|
|
151
|
+
building_number: import("io-ts").StringC;
|
|
152
|
+
building_name: import("io-ts").StringC;
|
|
153
|
+
line_2: import("io-ts").StringC;
|
|
154
|
+
county: import("io-ts").StringC;
|
|
155
|
+
months_at_address: import("io-ts").NumberC;
|
|
156
|
+
}>]>;
|
|
157
|
+
}>;
|
|
158
|
+
metadata: import("io-ts").TypeC<{
|
|
159
|
+
liveness: import("io-ts").BooleanC;
|
|
160
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
161
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
162
|
+
}>;
|
|
163
|
+
}>]>;
|
|
164
|
+
};
|
|
165
|
+
readonly default: {
|
|
166
|
+
readonly _tag: "JsonResponse";
|
|
167
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
168
|
+
message: import("io-ts").StringC;
|
|
169
|
+
}>, import("io-ts").PartialC<{
|
|
170
|
+
code: import("io-ts").NumberC;
|
|
171
|
+
}>]>;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly parameters: readonly [{
|
|
175
|
+
readonly _tag: "FormParameter";
|
|
176
|
+
readonly explode: false;
|
|
177
|
+
readonly in: "path";
|
|
178
|
+
readonly name: "id";
|
|
179
|
+
}];
|
|
180
|
+
readonly requestDefaultHeaders: {
|
|
181
|
+
readonly Accept: "application/json";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
export declare type ApproveCompanyRequestFunction = RequestFunction<{
|
|
185
|
+
params: ApproveCompanyRequestParameters;
|
|
186
|
+
}, schemas.Company>;
|
|
187
|
+
//# sourceMappingURL=approveCompany.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approveCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/approveCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB1B,CAAC;AAEX,oBAAY,6BAA6B,GAAG,eAAe,CACzD;IAAE,MAAM,EAAE,+BAA+B,CAAA;CAAE,EAC3C,OAAO,CAAC,OAAO,CAChB,CAAC"}
|
|
@@ -23,13 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.approveCompanyOperation = void 0;
|
|
27
27
|
const schemas = __importStar(require("../components/schemas"));
|
|
28
|
-
exports.
|
|
29
|
-
path: "/api/
|
|
28
|
+
exports.approveCompanyOperation = {
|
|
29
|
+
path: "/api/company/{id}/approve",
|
|
30
30
|
method: "post",
|
|
31
31
|
responses: {
|
|
32
|
-
"200": { _tag: "JsonResponse", decoder: schemas.
|
|
32
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Company },
|
|
33
33
|
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
34
34
|
},
|
|
35
35
|
parameters: [
|