@kanda-libs/ks-schema 1.0.116 → 1.0.117

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.
Files changed (80) hide show
  1. package/dist/components/schemas/Company.d.ts +9 -2
  2. package/dist/components/schemas/Company.d.ts.map +1 -1
  3. package/dist/components/schemas/Company.js +2 -0
  4. package/dist/components/schemas/CompanyInfo.d.ts +8 -0
  5. package/dist/components/schemas/CompanyInfo.d.ts.map +1 -1
  6. package/dist/components/schemas/CompanyInfo.js +2 -0
  7. package/dist/components/schemas/ContactInfo.d.ts +2 -0
  8. package/dist/components/schemas/ContactInfo.d.ts.map +1 -1
  9. package/dist/components/schemas/ContactInfo.js +1 -0
  10. package/dist/components/schemas/ContractAgreement.d.ts +14 -0
  11. package/dist/components/schemas/ContractAgreement.d.ts.map +1 -0
  12. package/dist/components/schemas/ContractAgreement.js +34 -0
  13. package/dist/components/schemas/Entity.d.ts +558 -0
  14. package/dist/components/schemas/Entity.d.ts.map +1 -0
  15. package/dist/components/schemas/Entity.js +41 -0
  16. package/dist/components/schemas/Event.d.ts +550 -8
  17. package/dist/components/schemas/Event.d.ts.map +1 -1
  18. package/dist/components/schemas/Event.js +5 -4
  19. package/dist/components/schemas/Identity.d.ts +30 -0
  20. package/dist/components/schemas/Identity.d.ts.map +1 -0
  21. package/dist/components/schemas/Identity.js +37 -0
  22. package/dist/components/schemas/InfoCompany.d.ts +23 -5
  23. package/dist/components/schemas/InfoCompany.d.ts.map +1 -1
  24. package/dist/components/schemas/InfoCompany.js +8 -10
  25. package/dist/components/schemas/JobCompanyInfo.d.ts +1 -0
  26. package/dist/components/schemas/JobCompanyInfo.d.ts.map +1 -1
  27. package/dist/components/schemas/Subscription.d.ts +0 -24
  28. package/dist/components/schemas/Subscription.d.ts.map +1 -1
  29. package/dist/components/schemas/Subscription.js +0 -2
  30. package/dist/components/schemas/index.d.ts +3 -0
  31. package/dist/components/schemas/index.d.ts.map +1 -1
  32. package/dist/components/schemas/index.js +3 -0
  33. package/dist/operations/approveCompany.d.ts +8 -1
  34. package/dist/operations/approveCompany.d.ts.map +1 -1
  35. package/dist/operations/declineCompany.d.ts +206 -0
  36. package/dist/operations/declineCompany.d.ts.map +1 -0
  37. package/dist/operations/declineCompany.js +50 -0
  38. package/dist/operations/deleteCompany.d.ts +8 -1
  39. package/dist/operations/deleteCompany.d.ts.map +1 -1
  40. package/dist/operations/deleteSubscription.d.ts +0 -22
  41. package/dist/operations/deleteSubscription.d.ts.map +1 -1
  42. package/dist/operations/directorCompany.d.ts +8 -1
  43. package/dist/operations/directorCompany.d.ts.map +1 -1
  44. package/dist/operations/getCompanies.d.ts +8 -1
  45. package/dist/operations/getCompanies.d.ts.map +1 -1
  46. package/dist/operations/getCompany.d.ts +8 -1
  47. package/dist/operations/getCompany.d.ts.map +1 -1
  48. package/dist/operations/getCompanyIdentity.d.ts +121 -0
  49. package/dist/operations/getCompanyIdentity.d.ts.map +1 -0
  50. package/dist/operations/getCompanyIdentity.js +50 -0
  51. package/dist/operations/getSubscription.d.ts +0 -22
  52. package/dist/operations/getSubscription.d.ts.map +1 -1
  53. package/dist/operations/getSubscriptions.d.ts +0 -22
  54. package/dist/operations/getSubscriptions.d.ts.map +1 -1
  55. package/dist/operations/index.d.ts +595 -230
  56. package/dist/operations/index.d.ts.map +1 -1
  57. package/dist/operations/index.js +12 -0
  58. package/dist/operations/infoCompany.d.ts +20 -4
  59. package/dist/operations/infoCompany.d.ts.map +1 -1
  60. package/dist/operations/jobCompanyInfo.d.ts +1 -0
  61. package/dist/operations/jobCompanyInfo.d.ts.map +1 -1
  62. package/dist/operations/pendingSubscription.d.ts +0 -22
  63. package/dist/operations/pendingSubscription.d.ts.map +1 -1
  64. package/dist/operations/postCompany.d.ts +8 -1
  65. package/dist/operations/postCompany.d.ts.map +1 -1
  66. package/dist/operations/postCompanyIdentity.d.ts +126 -0
  67. package/dist/operations/postCompanyIdentity.d.ts.map +1 -0
  68. package/dist/operations/postCompanyIdentity.js +56 -0
  69. package/dist/operations/postSubscription.d.ts +0 -22
  70. package/dist/operations/postSubscription.d.ts.map +1 -1
  71. package/dist/operations/putCompany.d.ts +8 -1
  72. package/dist/operations/putCompany.d.ts.map +1 -1
  73. package/dist/operations/putSubscription.d.ts +0 -22
  74. package/dist/operations/putSubscription.d.ts.map +1 -1
  75. package/dist/schema.json +1 -1
  76. package/dist/widget/index.d.ts +8424 -2438
  77. package/dist/widget/index.d.ts.map +1 -1
  78. package/dist/widget/index.js +12315 -5189
  79. package/package.json +1 -1
  80. package/schema.yaml +236 -22
@@ -0,0 +1,558 @@
1
+ import * as t from "io-ts";
2
+ import { Company } from "./Company";
3
+ import { Credit } from "./Credit";
4
+ import { Document } from "./Document";
5
+ import { Job } from "./Job";
6
+ import { Payment } from "./Payment";
7
+ import { Subscription } from "./Subscription";
8
+ export declare const Entity: t.PartialC<{
9
+ company: t.IntersectionC<[t.TypeC<{
10
+ company_type: t.UnionC<[t.LiteralC<"limited_company">, t.LiteralC<"sole_trader">]>;
11
+ }>, t.PartialC<{
12
+ id: t.StringC;
13
+ cid: t.StringC;
14
+ oid: t.StringC;
15
+ aid: t.StringC;
16
+ emails: t.ArrayC<t.StringC>;
17
+ users: t.ArrayC<t.IntersectionC<[t.TypeC<{
18
+ role: t.UnionC<[t.LiteralC<"company-admin">, t.LiteralC<"company-manager">, t.LiteralC<"company-staff">]>;
19
+ first_name: t.StringC;
20
+ email: t.StringC;
21
+ }>, t.PartialC<{
22
+ director_info: t.IntersectionC<[t.TypeC<{
23
+ home_address: t.IntersectionC<[t.TypeC<{
24
+ line_1: t.StringC;
25
+ city: t.StringC;
26
+ country: t.StringC;
27
+ postcode: t.StringC;
28
+ }>, t.PartialC<{
29
+ building_number: t.StringC;
30
+ building_name: t.StringC;
31
+ line_2: t.StringC;
32
+ county: t.StringC;
33
+ months_at_address: t.NumberC;
34
+ }>]>;
35
+ }>, t.PartialC<{
36
+ verification_status: t.UnionC<[t.LiteralC<"not_verified">, t.LiteralC<"verified">]>;
37
+ date_of_birth: t.StringC;
38
+ }>]>;
39
+ last_name: t.StringC;
40
+ mobile: t.StringC;
41
+ }>]>>;
42
+ company_info: t.IntersectionC<[t.TypeC<{
43
+ trade_type: t.UnionC<[t.LiteralC<"gas_engineer">, t.LiteralC<"electrician">, t.LiteralC<"ev_charger_installer">, t.LiteralC<"tiler">, t.LiteralC<"kitchen_fitter">, t.LiteralC<"floor_layer">, t.LiteralC<"cctv_and_security_installations">, t.LiteralC<"windows_and_doors">, t.LiteralC<"landscaping">, t.LiteralC<"air_conditioning">, t.LiteralC<"bathrooms">, t.LiteralC<"driveways_and_patios">, t.LiteralC<"garage_doors">, t.LiteralC<"fireplaces">, t.LiteralC<"multi_trade">, t.LiteralC<"other_trade">]>;
44
+ warranty_length: t.NumberC;
45
+ average_monthly_jobs: t.NumberC;
46
+ average_job_value: t.NumberC;
47
+ use_subcontractor: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
48
+ }>, t.PartialC<{
49
+ trade_body: t.UnionC<[t.LiteralC<"none">, t.LiteralC<"niceic">, t.LiteralC<"elecsa">, t.LiteralC<"gas_safe">, t.LiteralC<"napit">, t.LiteralC<"other">]>;
50
+ trade_body_number: t.StringC;
51
+ insurance_document: t.IntersectionC<[t.TypeC<{
52
+ name: t.StringC;
53
+ }>, t.PartialC<{
54
+ id: t.StringC;
55
+ cid: t.StringC;
56
+ oid: t.StringC;
57
+ aid: t.StringC;
58
+ content: t.StringC;
59
+ mimetype: t.StringC;
60
+ metadata: t.TypeC<{
61
+ liveness: t.BooleanC;
62
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
63
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
64
+ }>;
65
+ }>]>;
66
+ contract_agreement: t.PartialC<{
67
+ agreed_terms_and_conditions: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
68
+ agreed_to_become_iar_of_kanda: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
69
+ print_name: t.StringC;
70
+ signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
71
+ }>;
72
+ }>]>;
73
+ limited_company_info: t.IntersectionC<[t.TypeC<{
74
+ company_name: t.StringC;
75
+ company_address: t.IntersectionC<[t.TypeC<{
76
+ line_1: t.StringC;
77
+ city: t.StringC;
78
+ country: t.StringC;
79
+ postcode: t.StringC;
80
+ }>, t.PartialC<{
81
+ building_number: t.StringC;
82
+ building_name: t.StringC;
83
+ line_2: t.StringC;
84
+ county: t.StringC;
85
+ months_at_address: t.NumberC;
86
+ }>]>;
87
+ company_number: t.StringC;
88
+ }>, t.PartialC<{
89
+ trading_address: t.IntersectionC<[t.TypeC<{
90
+ line_1: t.StringC;
91
+ city: t.StringC;
92
+ country: t.StringC;
93
+ postcode: t.StringC;
94
+ }>, t.PartialC<{
95
+ building_number: t.StringC;
96
+ building_name: t.StringC;
97
+ line_2: t.StringC;
98
+ county: t.StringC;
99
+ months_at_address: t.NumberC;
100
+ }>]>;
101
+ vat_number: t.StringC;
102
+ }>]>;
103
+ sole_trader_info: t.IntersectionC<[t.TypeC<{
104
+ trading_name: t.StringC;
105
+ trading_address: t.IntersectionC<[t.TypeC<{
106
+ line_1: t.StringC;
107
+ city: t.StringC;
108
+ country: t.StringC;
109
+ postcode: t.StringC;
110
+ }>, t.PartialC<{
111
+ building_number: t.StringC;
112
+ building_name: t.StringC;
113
+ line_2: t.StringC;
114
+ county: t.StringC;
115
+ months_at_address: t.NumberC;
116
+ }>]>;
117
+ }>, t.PartialC<{
118
+ national_insurance_number: t.StringC;
119
+ }>]>;
120
+ available_rates: t.ArrayC<t.TypeC<{
121
+ name: t.StringC;
122
+ fee: t.NumberC;
123
+ enabled: t.BooleanC;
124
+ }>>;
125
+ quote_preference: t.UnionC<[t.LiteralC<"no_preference">, t.LiteralC<"kanda">, t.LiteralC<"custom">]>;
126
+ skip_deposit: t.UnionC<[t.LiteralC<"Yes">, t.LiteralC<"No">]>;
127
+ lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"subscribed">, t.LiteralC<"director_info_provided">, t.LiteralC<"onboarded">, t.LiteralC<"insurance_uploaded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">, t.LiteralC<"declined">]>;
128
+ billing: t.UnionC<[t.LiteralC<"legacy">, t.LiteralC<"trial">, t.LiteralC<"pending">, t.LiteralC<"referred">, t.LiteralC<"subscribed">, t.LiteralC<"recurring_payment_failed_1">, t.LiteralC<"recurring_payment_failed_2">, t.LiteralC<"recurring_payment_failed_3">, t.LiteralC<"suspended">, t.LiteralC<"cancelled">]>;
129
+ referral_code: t.StringC;
130
+ company_logo: t.IntersectionC<[t.TypeC<{
131
+ name: t.StringC;
132
+ }>, t.PartialC<{
133
+ id: t.StringC;
134
+ cid: t.StringC;
135
+ oid: t.StringC;
136
+ aid: t.StringC;
137
+ content: t.StringC;
138
+ mimetype: t.StringC;
139
+ metadata: t.TypeC<{
140
+ liveness: t.BooleanC;
141
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
142
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
143
+ }>;
144
+ }>]>;
145
+ bank_account: t.TypeC<{
146
+ account_name: t.StringC;
147
+ account_number: t.StringC;
148
+ sort_code: t.StringC;
149
+ }>;
150
+ contact_info: t.PartialC<{
151
+ contact_name: t.StringC;
152
+ contact_email: t.StringC;
153
+ contact_phone: t.StringC;
154
+ contact_address: t.IntersectionC<[t.TypeC<{
155
+ line_1: t.StringC;
156
+ city: t.StringC;
157
+ country: t.StringC;
158
+ postcode: t.StringC;
159
+ }>, t.PartialC<{
160
+ building_number: t.StringC;
161
+ building_name: t.StringC;
162
+ line_2: t.StringC;
163
+ county: t.StringC;
164
+ months_at_address: t.NumberC;
165
+ }>]>;
166
+ trading_name: t.StringC;
167
+ }>;
168
+ metadata: t.TypeC<{
169
+ liveness: t.BooleanC;
170
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
171
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
172
+ }>;
173
+ }>]>;
174
+ credit: t.IntersectionC<[t.TypeC<{
175
+ finance_option: t.StringC;
176
+ bank_account: t.TypeC<{
177
+ account_name: t.StringC;
178
+ account_number: t.StringC;
179
+ sort_code: t.StringC;
180
+ }>;
181
+ customer_details: t.IntersectionC<[t.TypeC<{
182
+ email: t.StringC;
183
+ gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
184
+ title: t.UnionC<[t.LiteralC<"mrs">, t.LiteralC<"mr">, t.LiteralC<"miss">, t.LiteralC<"ms">, t.LiteralC<"dr">]>;
185
+ first_name: t.StringC;
186
+ last_name: t.StringC;
187
+ date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
188
+ marital_status: t.UnionC<[t.LiteralC<"widowed">, t.LiteralC<"other">, t.LiteralC<"married">, t.LiteralC<"divorced">, t.LiteralC<"cohabiting">, t.LiteralC<"to_be_married">, t.LiteralC<"separated">, t.LiteralC<"single">]>;
189
+ number_of_dependants: t.NumberC;
190
+ residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">]>;
191
+ current_address: t.IntersectionC<[t.TypeC<{
192
+ line_1: t.StringC;
193
+ city: t.StringC;
194
+ country: t.StringC;
195
+ postcode: t.StringC;
196
+ }>, t.PartialC<{
197
+ building_number: t.StringC;
198
+ building_name: t.StringC;
199
+ line_2: t.StringC;
200
+ county: t.StringC;
201
+ months_at_address: t.NumberC;
202
+ }>]>;
203
+ }>, t.PartialC<{
204
+ middle_name: t.StringC;
205
+ maiden_name: t.StringC;
206
+ telephone: t.StringC;
207
+ mobile: t.StringC;
208
+ monthly_rent_amount: t.IntersectionC<[t.TypeC<{
209
+ amount: t.NumberC;
210
+ }>, t.PartialC<{
211
+ currency: t.LiteralC<"GBP">;
212
+ }>]>;
213
+ previous_address_one: t.IntersectionC<[t.TypeC<{
214
+ line_1: t.StringC;
215
+ city: t.StringC;
216
+ country: t.StringC;
217
+ postcode: t.StringC;
218
+ }>, t.PartialC<{
219
+ building_number: t.StringC;
220
+ building_name: t.StringC;
221
+ line_2: t.StringC;
222
+ county: t.StringC;
223
+ months_at_address: t.NumberC;
224
+ }>]>;
225
+ previous_address_two: t.IntersectionC<[t.TypeC<{
226
+ line_1: t.StringC;
227
+ city: t.StringC;
228
+ country: t.StringC;
229
+ postcode: t.StringC;
230
+ }>, t.PartialC<{
231
+ building_number: t.StringC;
232
+ building_name: t.StringC;
233
+ line_2: t.StringC;
234
+ county: t.StringC;
235
+ months_at_address: t.NumberC;
236
+ }>]>;
237
+ goods_delivery_address: t.IntersectionC<[t.TypeC<{
238
+ line_1: t.StringC;
239
+ city: t.StringC;
240
+ country: t.StringC;
241
+ postcode: t.StringC;
242
+ }>, t.PartialC<{
243
+ building_number: t.StringC;
244
+ building_name: t.StringC;
245
+ line_2: t.StringC;
246
+ county: t.StringC;
247
+ months_at_address: t.NumberC;
248
+ }>]>;
249
+ }>]>;
250
+ employment_details: t.IntersectionC<[t.TypeC<{
251
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
252
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
253
+ amount: t.NumberC;
254
+ }>, t.PartialC<{
255
+ currency: t.LiteralC<"GBP">;
256
+ }>]>;
257
+ household_annual_income: t.IntersectionC<[t.TypeC<{
258
+ amount: t.NumberC;
259
+ }>, t.PartialC<{
260
+ currency: t.LiteralC<"GBP">;
261
+ }>]>;
262
+ }>, t.PartialC<{
263
+ employed_details: t.TypeC<{
264
+ employer_name: t.StringC;
265
+ main_occupation: t.StringC;
266
+ months_employed: t.NumberC;
267
+ }>;
268
+ self_employed_details: t.TypeC<{
269
+ business_name: t.StringC;
270
+ type_of_business: t.StringC;
271
+ months_self_employed: t.NumberC;
272
+ }>;
273
+ not_employed_details: t.TypeC<{
274
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"other">]>;
275
+ }>;
276
+ }>]>;
277
+ }>, t.PartialC<{
278
+ id: t.StringC;
279
+ cid: t.StringC;
280
+ oid: t.StringC;
281
+ aid: t.StringC;
282
+ kid: t.StringC;
283
+ kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
284
+ provider: t.LiteralC<"omni">;
285
+ xid: t.StringC;
286
+ xref: t.StringC;
287
+ state: t.UnionC<[t.LiteralC<"accepted">, t.LiteralC<"declined">, t.LiteralC<"referred">, t.LiteralC<"action_lender">, t.LiteralC<"action_customer">, t.LiteralC<"pending">, t.LiteralC<"finished">, t.LiteralC<"paid_out">, t.LiteralC<"cancelled">]>;
288
+ amount: t.IntersectionC<[t.TypeC<{
289
+ amount: t.NumberC;
290
+ }>, t.PartialC<{
291
+ currency: t.LiteralC<"GBP">;
292
+ }>]>;
293
+ deposit_value: t.IntersectionC<[t.TypeC<{
294
+ amount: t.NumberC;
295
+ }>, t.PartialC<{
296
+ currency: t.LiteralC<"GBP">;
297
+ }>]>;
298
+ credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
299
+ name: t.StringC;
300
+ }>, t.PartialC<{
301
+ id: t.StringC;
302
+ cid: t.StringC;
303
+ oid: t.StringC;
304
+ aid: t.StringC;
305
+ content: t.StringC;
306
+ mimetype: t.StringC;
307
+ metadata: t.TypeC<{
308
+ liveness: t.BooleanC;
309
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
310
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
311
+ }>;
312
+ }>]>>;
313
+ signature: t.TypeC<{
314
+ signed: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
315
+ fingerprint: t.StringC;
316
+ }>;
317
+ metadata: t.TypeC<{
318
+ liveness: t.BooleanC;
319
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
320
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
321
+ }>;
322
+ }>]>;
323
+ document: t.IntersectionC<[t.TypeC<{
324
+ name: t.StringC;
325
+ }>, t.PartialC<{
326
+ id: t.StringC;
327
+ cid: t.StringC;
328
+ oid: t.StringC;
329
+ aid: t.StringC;
330
+ content: t.StringC;
331
+ mimetype: t.StringC;
332
+ metadata: t.TypeC<{
333
+ liveness: t.BooleanC;
334
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
335
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
336
+ }>;
337
+ }>]>;
338
+ job: t.IntersectionC<[t.TypeC<{
339
+ title: t.StringC;
340
+ deposit_type: t.UnionC<[t.LiteralC<"no_deposit">, t.LiteralC<"partial_deposit">, t.LiteralC<"fixed_deposit">]>;
341
+ deposit_value: t.IntersectionC<[t.TypeC<{
342
+ amount: t.NumberC;
343
+ }>, t.PartialC<{
344
+ currency: t.LiteralC<"GBP">;
345
+ }>]>;
346
+ job_items: t.ArrayC<t.IntersectionC<[t.TypeC<{
347
+ title: t.StringC;
348
+ quantity: t.NumberC;
349
+ price: t.IntersectionC<[t.TypeC<{
350
+ amount: t.NumberC;
351
+ }>, t.PartialC<{
352
+ currency: t.LiteralC<"GBP">;
353
+ }>]>;
354
+ vat: t.IntersectionC<[t.TypeC<{
355
+ amount: t.NumberC;
356
+ }>, t.PartialC<{
357
+ currency: t.LiteralC<"GBP">;
358
+ }>]>;
359
+ }>, t.PartialC<{
360
+ description: t.StringC;
361
+ vat_rate: t.UnionC<[t.LiteralC<"vat_not_set">, t.LiteralC<"exempted">, t.LiteralC<"0%">, t.LiteralC<"5%">, t.LiteralC<"20%">, t.LiteralC<"custom">]>;
362
+ quote_document: t.IntersectionC<[t.TypeC<{
363
+ name: t.StringC;
364
+ }>, t.PartialC<{
365
+ id: t.StringC;
366
+ cid: t.StringC;
367
+ oid: t.StringC;
368
+ aid: t.StringC;
369
+ content: t.StringC;
370
+ mimetype: t.StringC;
371
+ metadata: t.TypeC<{
372
+ liveness: t.BooleanC;
373
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
374
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
375
+ }>;
376
+ }>]>;
377
+ style: t.UnionC<[t.LiteralC<"kanda">, t.LiteralC<"custom">]>;
378
+ }>]>>;
379
+ }>, t.PartialC<{
380
+ id: t.StringC;
381
+ cid: t.StringC;
382
+ oid: t.StringC;
383
+ aid: t.StringC;
384
+ description: t.StringC;
385
+ customer: t.IntersectionC<[t.TypeC<{
386
+ first_name: t.StringC;
387
+ last_name: t.StringC;
388
+ email: t.StringC;
389
+ phone: t.StringC;
390
+ }>, t.PartialC<{
391
+ address: t.IntersectionC<[t.TypeC<{
392
+ line_1: t.StringC;
393
+ city: t.StringC;
394
+ country: t.StringC;
395
+ postcode: t.StringC;
396
+ }>, t.PartialC<{
397
+ building_number: t.StringC;
398
+ building_name: t.StringC;
399
+ line_2: t.StringC;
400
+ county: t.StringC;
401
+ months_at_address: t.NumberC;
402
+ }>]>;
403
+ }>]>;
404
+ total: t.PartialC<{
405
+ amount_vat_inclusive: t.IntersectionC<[t.TypeC<{
406
+ amount: t.NumberC;
407
+ }>, t.PartialC<{
408
+ currency: t.LiteralC<"GBP">;
409
+ }>]>;
410
+ amount_vat_exclusive: t.IntersectionC<[t.TypeC<{
411
+ amount: t.NumberC;
412
+ }>, t.PartialC<{
413
+ currency: t.LiteralC<"GBP">;
414
+ }>]>;
415
+ amount_vat: t.IntersectionC<[t.TypeC<{
416
+ amount: t.NumberC;
417
+ }>, t.PartialC<{
418
+ currency: t.LiteralC<"GBP">;
419
+ }>]>;
420
+ }>;
421
+ notes: t.ArrayC<t.StringC>;
422
+ archived: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
423
+ status: t.UnionC<[t.LiteralC<"draft">, t.LiteralC<"sent">, t.LiteralC<"accepted">, t.LiteralC<"declined">, t.LiteralC<"finished">]>;
424
+ finance_status: t.UnionC<[t.LiteralC<"not_applied">, t.LiteralC<"under_review">, t.LiteralC<"applied_for_finance">, t.LiteralC<"finance_not_approved">, t.LiteralC<"financed">, t.LiteralC<"sat_note_sent">, t.LiteralC<"sat_note_viewed">, t.LiteralC<"sat_note_signed">, t.LiteralC<"payout_pending">, t.LiteralC<"paid">, t.LiteralC<"finance_cancelled">]>;
425
+ checkout_options: t.ArrayC<t.UnionC<[t.LiteralC<"apply_for_finance">, t.LiteralC<"decline_job">, t.LiteralC<"pay_on_completion">]>>;
426
+ finance_options: t.ArrayC<t.StringC>;
427
+ customer_options: t.IntersectionC<[t.TypeC<{
428
+ checkout_option: t.UnionC<[t.LiteralC<"apply_for_finance">, t.LiteralC<"decline_job">, t.LiteralC<"pay_on_completion">]>;
429
+ finance_option: t.StringC;
430
+ }>, t.PartialC<{
431
+ deposit_value: t.IntersectionC<[t.TypeC<{
432
+ amount: t.NumberC;
433
+ }>, t.PartialC<{
434
+ currency: t.LiteralC<"GBP">;
435
+ }>]>;
436
+ }>]>;
437
+ payments: t.ArrayC<t.IntersectionC<[t.TypeC<{
438
+ payment_option: t.TypeC<{
439
+ payment_method: t.UnionC<[t.LiteralC<"cash">, t.LiteralC<"card">, t.LiteralC<"loan">]>;
440
+ amount: t.IntersectionC<[t.TypeC<{
441
+ amount: t.NumberC;
442
+ }>, t.PartialC<{
443
+ currency: t.LiteralC<"GBP">;
444
+ }>]>;
445
+ }>;
446
+ }>, t.PartialC<{
447
+ id: t.StringC;
448
+ cid: t.StringC;
449
+ oid: t.StringC;
450
+ aid: t.StringC;
451
+ kid: t.StringC;
452
+ kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
453
+ xid: t.StringC;
454
+ xref: t.StringC;
455
+ status: t.UnionC<[t.LiteralC<"unpaid">, t.LiteralC<"pending">, t.LiteralC<"paid">, t.LiteralC<"disputed">, t.LiteralC<"cancelled">, t.LiteralC<"refunded">]>;
456
+ metadata: t.TypeC<{
457
+ liveness: t.BooleanC;
458
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
459
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
460
+ }>;
461
+ }>]>>;
462
+ sat_note_timeline: t.PartialC<{
463
+ sent_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
464
+ viewed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
465
+ signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
466
+ }>;
467
+ sat_note: t.TypeC<{
468
+ q_pressure: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
469
+ q_easiness: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
470
+ q_availability: t.UnionC<[t.LiteralC<"The installer told me when quoting me">, t.LiteralC<"I saw it advertised by the installer">, t.LiteralC<"I found out when the installer sent me a link via Kanda">]>;
471
+ q_application: t.UnionC<[t.LiteralC<"I completed the application myself">, t.LiteralC<"Someone completed the appliation on my behalf">]>;
472
+ q_advice: t.UnionC<[t.LiteralC<"They just sent me a link to apply">, t.LiteralC<"They told me what rates where available">, t.LiteralC<"They helped me work out my potential repayments">, t.LiteralC<"They completed the application for me">]>;
473
+ signature: t.TypeC<{
474
+ signed: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
475
+ fingerprint: t.StringC;
476
+ }>;
477
+ certificate: t.IntersectionC<[t.TypeC<{
478
+ name: t.StringC;
479
+ }>, t.PartialC<{
480
+ id: t.StringC;
481
+ cid: t.StringC;
482
+ oid: t.StringC;
483
+ aid: t.StringC;
484
+ content: t.StringC;
485
+ mimetype: t.StringC;
486
+ metadata: t.TypeC<{
487
+ liveness: t.BooleanC;
488
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
489
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
490
+ }>;
491
+ }>]>;
492
+ }>;
493
+ metadata: t.TypeC<{
494
+ liveness: t.BooleanC;
495
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
496
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
497
+ }>;
498
+ }>]>;
499
+ payment: t.IntersectionC<[t.TypeC<{
500
+ payment_option: t.TypeC<{
501
+ payment_method: t.UnionC<[t.LiteralC<"cash">, t.LiteralC<"card">, t.LiteralC<"loan">]>;
502
+ amount: t.IntersectionC<[t.TypeC<{
503
+ amount: t.NumberC;
504
+ }>, t.PartialC<{
505
+ currency: t.LiteralC<"GBP">;
506
+ }>]>;
507
+ }>;
508
+ }>, t.PartialC<{
509
+ id: t.StringC;
510
+ cid: t.StringC;
511
+ oid: t.StringC;
512
+ aid: t.StringC;
513
+ kid: t.StringC;
514
+ kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
515
+ xid: t.StringC;
516
+ xref: t.StringC;
517
+ status: t.UnionC<[t.LiteralC<"unpaid">, t.LiteralC<"pending">, t.LiteralC<"paid">, t.LiteralC<"disputed">, t.LiteralC<"cancelled">, t.LiteralC<"refunded">]>;
518
+ metadata: t.TypeC<{
519
+ liveness: t.BooleanC;
520
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
521
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
522
+ }>;
523
+ }>]>;
524
+ subscription: t.PartialC<{
525
+ id: t.StringC;
526
+ cid: t.StringC;
527
+ oid: t.StringC;
528
+ aid: t.StringC;
529
+ billing: t.StringC;
530
+ billing_status: t.StringC;
531
+ mandate: t.StringC;
532
+ mandate_status: t.StringC;
533
+ authorisation_url: t.StringC;
534
+ interval: t.UnionC<[t.LiteralC<"monthly">, t.LiteralC<"yearly">]>;
535
+ day_of_month: t.NumberC;
536
+ amount: t.IntersectionC<[t.TypeC<{
537
+ amount: t.NumberC;
538
+ }>, t.PartialC<{
539
+ currency: t.LiteralC<"GBP">;
540
+ }>]>;
541
+ xid: t.StringC;
542
+ xref: t.StringC;
543
+ metadata: t.TypeC<{
544
+ liveness: t.BooleanC;
545
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
546
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
547
+ }>;
548
+ }>;
549
+ }>;
550
+ export interface Entity {
551
+ company?: Company;
552
+ credit?: Credit;
553
+ document?: Document;
554
+ job?: Job;
555
+ payment?: Payment;
556
+ subscription?: Subscription;
557
+ }
558
+ //# sourceMappingURL=Entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjB,CAAC;AAEH,MAAM,WAAW,MAAM;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B"}
@@ -0,0 +1,41 @@
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.Entity = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const Company_1 = require("./Company");
29
+ const Credit_1 = require("./Credit");
30
+ const Document_1 = require("./Document");
31
+ const Job_1 = require("./Job");
32
+ const Payment_1 = require("./Payment");
33
+ const Subscription_1 = require("./Subscription");
34
+ exports.Entity = t.partial({
35
+ company: Company_1.Company,
36
+ credit: Credit_1.Credit,
37
+ document: Document_1.Document,
38
+ job: Job_1.Job,
39
+ payment: Payment_1.Payment,
40
+ subscription: Subscription_1.Subscription,
41
+ });