@kanda-libs/ks-schema 1.0.151 → 1.0.152
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/JobOverride.d.ts +8 -0
- package/dist/components/schemas/JobOverride.d.ts.map +1 -0
- package/dist/components/schemas/JobOverride.js +35 -0
- package/dist/components/schemas/index.d.ts +1 -0
- package/dist/components/schemas/index.d.ts.map +1 -1
- package/dist/components/schemas/index.js +1 -0
- package/dist/operations/index.d.ts +212 -0
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +4 -0
- package/dist/operations/overrideJob.d.ts +219 -0
- package/dist/operations/overrideJob.d.ts.map +1 -0
- package/dist/operations/overrideJob.js +50 -0
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +7142 -7134
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +15888 -15871
- package/package.json +1 -1
- package/schema.yaml +51 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
export declare type OverrideJobRequestParameters = {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const overrideJobOperation: {
|
|
7
|
+
readonly path: "/api/job/{id}/override";
|
|
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
|
+
title: import("io-ts").StringC;
|
|
14
|
+
deposit_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_deposit">, import("io-ts").LiteralC<"partial_deposit">, import("io-ts").LiteralC<"fixed_deposit">]>;
|
|
15
|
+
deposit_value: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
16
|
+
amount: import("io-ts").NumberC;
|
|
17
|
+
}>, import("io-ts").PartialC<{
|
|
18
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
19
|
+
}>]>;
|
|
20
|
+
job_items: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
21
|
+
title: import("io-ts").StringC;
|
|
22
|
+
quantity: import("io-ts").NumberC;
|
|
23
|
+
price: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
24
|
+
amount: import("io-ts").NumberC;
|
|
25
|
+
}>, import("io-ts").PartialC<{
|
|
26
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
27
|
+
}>]>;
|
|
28
|
+
vat: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
29
|
+
amount: import("io-ts").NumberC;
|
|
30
|
+
}>, import("io-ts").PartialC<{
|
|
31
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
32
|
+
}>]>;
|
|
33
|
+
}>, import("io-ts").PartialC<{
|
|
34
|
+
description: import("io-ts").StringC;
|
|
35
|
+
vat_rate: import("io-ts").UnionC<[import("io-ts").LiteralC<"vat_not_set">, import("io-ts").LiteralC<"exempted">, import("io-ts").LiteralC<"0%">, import("io-ts").LiteralC<"5%">, import("io-ts").LiteralC<"20%">, import("io-ts").LiteralC<"custom">]>;
|
|
36
|
+
quote_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
37
|
+
name: import("io-ts").StringC;
|
|
38
|
+
}>, import("io-ts").PartialC<{
|
|
39
|
+
id: import("io-ts").StringC;
|
|
40
|
+
cid: import("io-ts").StringC;
|
|
41
|
+
oid: import("io-ts").StringC;
|
|
42
|
+
aid: import("io-ts").StringC;
|
|
43
|
+
content: import("io-ts").StringC;
|
|
44
|
+
mimetype: import("io-ts").StringC;
|
|
45
|
+
metadata: import("io-ts").TypeC<{
|
|
46
|
+
liveness: import("io-ts").BooleanC;
|
|
47
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
48
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
49
|
+
}>;
|
|
50
|
+
}>]>;
|
|
51
|
+
style: import("io-ts").UnionC<[import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
|
|
52
|
+
}>]>>;
|
|
53
|
+
}>, import("io-ts").PartialC<{
|
|
54
|
+
id: import("io-ts").StringC;
|
|
55
|
+
cid: import("io-ts").StringC;
|
|
56
|
+
oid: import("io-ts").StringC;
|
|
57
|
+
aid: import("io-ts").StringC;
|
|
58
|
+
description: import("io-ts").StringC;
|
|
59
|
+
customer: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
60
|
+
first_name: import("io-ts").StringC;
|
|
61
|
+
last_name: import("io-ts").StringC;
|
|
62
|
+
email: import("io-ts").StringC;
|
|
63
|
+
phone: import("io-ts").StringC;
|
|
64
|
+
}>, import("io-ts").PartialC<{
|
|
65
|
+
address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
66
|
+
line_1: import("io-ts").StringC;
|
|
67
|
+
city: import("io-ts").StringC;
|
|
68
|
+
country: import("io-ts").StringC;
|
|
69
|
+
postcode: import("io-ts").StringC;
|
|
70
|
+
}>, import("io-ts").PartialC<{
|
|
71
|
+
building_number: import("io-ts").StringC;
|
|
72
|
+
building_name: import("io-ts").StringC;
|
|
73
|
+
line_2: import("io-ts").StringC;
|
|
74
|
+
county: import("io-ts").StringC;
|
|
75
|
+
months_at_address: import("io-ts").NumberC;
|
|
76
|
+
}>]>;
|
|
77
|
+
}>]>;
|
|
78
|
+
total: import("io-ts").PartialC<{
|
|
79
|
+
amount_vat_inclusive: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
80
|
+
amount: import("io-ts").NumberC;
|
|
81
|
+
}>, import("io-ts").PartialC<{
|
|
82
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
83
|
+
}>]>;
|
|
84
|
+
amount_vat_exclusive: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
85
|
+
amount: import("io-ts").NumberC;
|
|
86
|
+
}>, import("io-ts").PartialC<{
|
|
87
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
88
|
+
}>]>;
|
|
89
|
+
amount_vat: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
90
|
+
amount: import("io-ts").NumberC;
|
|
91
|
+
}>, import("io-ts").PartialC<{
|
|
92
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
93
|
+
}>]>;
|
|
94
|
+
}>;
|
|
95
|
+
notes: import("io-ts").ArrayC<import("io-ts").StringC>;
|
|
96
|
+
archived: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
97
|
+
status: import("io-ts").UnionC<[import("io-ts").LiteralC<"draft">, import("io-ts").LiteralC<"sent">, import("io-ts").LiteralC<"accepted">, import("io-ts").LiteralC<"declined">, import("io-ts").LiteralC<"finished">]>;
|
|
98
|
+
finance_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_applied">, import("io-ts").LiteralC<"under_review">, import("io-ts").LiteralC<"applied_for_finance">, import("io-ts").LiteralC<"finance_not_approved">, import("io-ts").LiteralC<"financed">, import("io-ts").LiteralC<"sat_note_sent">, import("io-ts").LiteralC<"sat_note_viewed">, import("io-ts").LiteralC<"sat_note_signed">, import("io-ts").LiteralC<"payout_pending">, import("io-ts").LiteralC<"paid">, import("io-ts").LiteralC<"finance_cancelled">]>;
|
|
99
|
+
checkout_options: import("io-ts").ArrayC<import("io-ts").UnionC<[import("io-ts").LiteralC<"apply_for_finance">, import("io-ts").LiteralC<"decline_job">, import("io-ts").LiteralC<"pay_on_completion">]>>;
|
|
100
|
+
finance_options: import("io-ts").ArrayC<import("io-ts").StringC>;
|
|
101
|
+
customer_options: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
102
|
+
checkout_option: import("io-ts").UnionC<[import("io-ts").LiteralC<"apply_for_finance">, import("io-ts").LiteralC<"decline_job">, import("io-ts").LiteralC<"pay_on_completion">]>;
|
|
103
|
+
finance_option: import("io-ts").StringC;
|
|
104
|
+
}>, import("io-ts").PartialC<{
|
|
105
|
+
deposit_value: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
106
|
+
amount: import("io-ts").NumberC;
|
|
107
|
+
}>, import("io-ts").PartialC<{
|
|
108
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
109
|
+
}>]>;
|
|
110
|
+
}>]>;
|
|
111
|
+
payments: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
112
|
+
payment_option: import("io-ts").TypeC<{
|
|
113
|
+
payment_method: import("io-ts").UnionC<[import("io-ts").LiteralC<"cash">, import("io-ts").LiteralC<"card">, import("io-ts").LiteralC<"loan">]>;
|
|
114
|
+
amount: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
115
|
+
amount: import("io-ts").NumberC;
|
|
116
|
+
}>, import("io-ts").PartialC<{
|
|
117
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
118
|
+
}>]>;
|
|
119
|
+
}>;
|
|
120
|
+
}>, import("io-ts").PartialC<{
|
|
121
|
+
id: import("io-ts").StringC;
|
|
122
|
+
cid: import("io-ts").StringC;
|
|
123
|
+
oid: import("io-ts").StringC;
|
|
124
|
+
aid: import("io-ts").StringC;
|
|
125
|
+
kid: import("io-ts").StringC;
|
|
126
|
+
kind: import("io-ts").UnionC<[import("io-ts").LiteralC<"job">, import("io-ts").LiteralC<"charge">]>;
|
|
127
|
+
xid: import("io-ts").StringC;
|
|
128
|
+
xref: import("io-ts").StringC;
|
|
129
|
+
status: import("io-ts").UnionC<[import("io-ts").LiteralC<"unpaid">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"paid">, import("io-ts").LiteralC<"disputed">, import("io-ts").LiteralC<"cancelled">, import("io-ts").LiteralC<"refunded">]>;
|
|
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
|
+
sat_note_timeline: import("io-ts").PartialC<{
|
|
137
|
+
sent_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
138
|
+
viewed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
139
|
+
signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
140
|
+
}>;
|
|
141
|
+
sat_note: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
142
|
+
q_pressure: import("io-ts").UnionC<[import("io-ts").LiteralC<"no">, import("io-ts").LiteralC<"somewhat">, import("io-ts").LiteralC<"yes">]>;
|
|
143
|
+
q_easiness: import("io-ts").UnionC<[import("io-ts").LiteralC<"no">, import("io-ts").LiteralC<"somewhat">, import("io-ts").LiteralC<"yes">]>;
|
|
144
|
+
q_availability: import("io-ts").UnionC<[import("io-ts").LiteralC<"The installer told me when quoting me">, import("io-ts").LiteralC<"I saw it advertised by the installer">, import("io-ts").LiteralC<"I found out when the installer sent me a link via Kanda">]>;
|
|
145
|
+
q_application: import("io-ts").UnionC<[import("io-ts").LiteralC<"I completed the application myself">, import("io-ts").LiteralC<"Someone completed the appliation on my behalf">]>;
|
|
146
|
+
q_advice: import("io-ts").UnionC<[import("io-ts").LiteralC<"They just sent me a link to apply">, import("io-ts").LiteralC<"They told me what rates where available">, import("io-ts").LiteralC<"They helped me work out my potential repayments">, import("io-ts").LiteralC<"They completed the application for me">]>;
|
|
147
|
+
signature: import("io-ts").TypeC<{
|
|
148
|
+
signed: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
149
|
+
fingerprint: import("io-ts").StringC;
|
|
150
|
+
}>;
|
|
151
|
+
certificate: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
152
|
+
name: import("io-ts").StringC;
|
|
153
|
+
}>, import("io-ts").PartialC<{
|
|
154
|
+
id: import("io-ts").StringC;
|
|
155
|
+
cid: import("io-ts").StringC;
|
|
156
|
+
oid: import("io-ts").StringC;
|
|
157
|
+
aid: import("io-ts").StringC;
|
|
158
|
+
content: import("io-ts").StringC;
|
|
159
|
+
mimetype: import("io-ts").StringC;
|
|
160
|
+
metadata: import("io-ts").TypeC<{
|
|
161
|
+
liveness: import("io-ts").BooleanC;
|
|
162
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
163
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
164
|
+
}>;
|
|
165
|
+
}>]>;
|
|
166
|
+
}>, import("io-ts").PartialC<{
|
|
167
|
+
q_saving: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes I understand">, import("io-ts").LiteralC<"No I don't understand">]>;
|
|
168
|
+
}>]>;
|
|
169
|
+
job_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"standard">, import("io-ts").LiteralC<"solar">]>;
|
|
170
|
+
job_documents: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
171
|
+
name: import("io-ts").StringC;
|
|
172
|
+
}>, import("io-ts").PartialC<{
|
|
173
|
+
id: import("io-ts").StringC;
|
|
174
|
+
cid: import("io-ts").StringC;
|
|
175
|
+
oid: import("io-ts").StringC;
|
|
176
|
+
aid: import("io-ts").StringC;
|
|
177
|
+
content: import("io-ts").StringC;
|
|
178
|
+
mimetype: import("io-ts").StringC;
|
|
179
|
+
metadata: import("io-ts").TypeC<{
|
|
180
|
+
liveness: import("io-ts").BooleanC;
|
|
181
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
182
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
183
|
+
}>;
|
|
184
|
+
}>]>>;
|
|
185
|
+
metadata: import("io-ts").TypeC<{
|
|
186
|
+
liveness: import("io-ts").BooleanC;
|
|
187
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
188
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
189
|
+
}>;
|
|
190
|
+
}>]>;
|
|
191
|
+
};
|
|
192
|
+
readonly default: {
|
|
193
|
+
readonly _tag: "JsonResponse";
|
|
194
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
195
|
+
message: import("io-ts").StringC;
|
|
196
|
+
}>, import("io-ts").PartialC<{
|
|
197
|
+
code: import("io-ts").NumberC;
|
|
198
|
+
}>]>;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly parameters: readonly [{
|
|
202
|
+
readonly _tag: "FormParameter";
|
|
203
|
+
readonly explode: false;
|
|
204
|
+
readonly in: "path";
|
|
205
|
+
readonly name: "id";
|
|
206
|
+
}];
|
|
207
|
+
readonly requestDefaultHeaders: {
|
|
208
|
+
readonly "Content-Type": "application/json";
|
|
209
|
+
readonly Accept: "application/json";
|
|
210
|
+
};
|
|
211
|
+
readonly body: {
|
|
212
|
+
readonly _tag: "JsonBody";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
export declare type OverrideJobRequestFunction = RequestFunction<{
|
|
216
|
+
params: OverrideJobRequestParameters;
|
|
217
|
+
body: schemas.JobOverride;
|
|
218
|
+
}, schemas.Job>;
|
|
219
|
+
//# sourceMappingURL=overrideJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrideJob.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/overrideJob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBvB,CAAC;AAEX,oBAAY,0BAA0B,GAAG,eAAe,CACtD;IAAE,MAAM,EAAE,4BAA4B,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAA;CAAE,EACnE,OAAO,CAAC,GAAG,CACZ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.overrideJobOperation = void 0;
|
|
27
|
+
const schemas = __importStar(require("../components/schemas"));
|
|
28
|
+
exports.overrideJobOperation = {
|
|
29
|
+
path: "/api/job/{id}/override",
|
|
30
|
+
method: "post",
|
|
31
|
+
responses: {
|
|
32
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Job },
|
|
33
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
34
|
+
},
|
|
35
|
+
parameters: [
|
|
36
|
+
{
|
|
37
|
+
_tag: "FormParameter",
|
|
38
|
+
explode: false,
|
|
39
|
+
in: "path",
|
|
40
|
+
name: "id",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
requestDefaultHeaders: {
|
|
44
|
+
"Content-Type": "application/json",
|
|
45
|
+
Accept: "application/json",
|
|
46
|
+
},
|
|
47
|
+
body: {
|
|
48
|
+
_tag: "JsonBody",
|
|
49
|
+
},
|
|
50
|
+
};
|