@kanda-libs/ks-schema 1.0.97 → 1.0.99

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.
@@ -119,7 +119,7 @@ export declare const Company: t.IntersectionC<[t.TypeC<{
119
119
  }>>;
120
120
  quote_preference: t.UnionC<[t.LiteralC<"no_preference">, t.LiteralC<"kanda">, t.LiteralC<"custom">]>;
121
121
  skip_deposit: t.UnionC<[t.LiteralC<"Yes">, t.LiteralC<"No">]>;
122
- lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
122
+ lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"subscribed">, t.LiteralC<"director_info_provided">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
123
123
  billing: t.UnionC<[t.LiteralC<"legacy">, t.LiteralC<"trial">, t.LiteralC<"pending">, 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">]>;
124
124
  company_logo: t.IntersectionC<[t.TypeC<{
125
125
  name: t.StringC;
@@ -178,7 +178,7 @@ export interface Company {
178
178
  available_rates?: Array<AvailableRate>;
179
179
  quote_preference?: "no_preference" | "kanda" | "custom";
180
180
  skip_deposit?: "Yes" | "No";
181
- lifecycle?: "registered" | "onboarded" | "completed_setup" | "verified";
181
+ lifecycle?: "registered" | "subscribed" | "director_info_provided" | "onboarded" | "completed_setup" | "verified";
182
182
  billing?: "legacy" | "trial" | "pending" | "subscribed" | "recurring_payment_failed_1" | "recurring_payment_failed_2" | "recurring_payment_failed_3" | "suspended" | "cancelled";
183
183
  company_logo?: Document;
184
184
  bank_account?: BankAccount;
@@ -1 +1 @@
1
- {"version":3,"file":"Company.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Company.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8ClB,CAAC;AAEH,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAChD,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxD,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,iBAAiB,GAAG,UAAU,CAAC;IACxE,OAAO,CAAC,EACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,YAAY,GACZ,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,WAAW,GACX,WAAW,CAAC;IAChB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
1
+ {"version":3,"file":"Company.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Company.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgDlB,CAAC;AAEH,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAChD,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxD,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EACN,YAAY,GACZ,YAAY,GACZ,wBAAwB,GACxB,WAAW,GACX,iBAAiB,GACjB,UAAU,CAAC;IACf,OAAO,CAAC,EACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,YAAY,GACZ,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,WAAW,GACX,WAAW,CAAC;IAChB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
@@ -60,6 +60,8 @@ exports.Company = t.intersection([
60
60
  skip_deposit: t.union([t.literal("Yes"), t.literal("No")]),
61
61
  lifecycle: t.union([
62
62
  t.literal("registered"),
63
+ t.literal("subscribed"),
64
+ t.literal("director_info_provided"),
63
65
  t.literal("onboarded"),
64
66
  t.literal("completed_setup"),
65
67
  t.literal("verified"),
@@ -120,7 +120,7 @@ export declare const approveCompanyOperation: {
120
120
  }>>;
121
121
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
122
122
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
123
- 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">]>;
123
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
124
124
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
125
125
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
126
126
  name: import("io-ts").StringC;
@@ -120,7 +120,7 @@ export declare const deleteCompanyOperation: {
120
120
  }>>;
121
121
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
122
122
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
123
- 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">]>;
123
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
124
124
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
125
125
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
126
126
  name: import("io-ts").StringC;
@@ -0,0 +1,191 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+ export declare type DirectorCompanyRequestParameters = {
4
+ id: string;
5
+ };
6
+ export declare const directorCompanyOperation: {
7
+ readonly path: "/api/company/{id}/director";
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
+ aid: import("io-ts").StringC;
19
+ emails: import("io-ts").ArrayC<import("io-ts").StringC>;
20
+ users: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
21
+ role: import("io-ts").UnionC<[import("io-ts").LiteralC<"company-admin">, import("io-ts").LiteralC<"company-manager">, import("io-ts").LiteralC<"company-staff">]>;
22
+ first_name: import("io-ts").StringC;
23
+ email: import("io-ts").StringC;
24
+ }>, import("io-ts").PartialC<{
25
+ director_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
26
+ home_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
27
+ line_1: import("io-ts").StringC;
28
+ city: import("io-ts").StringC;
29
+ country: import("io-ts").StringC;
30
+ postcode: import("io-ts").StringC;
31
+ }>, import("io-ts").PartialC<{
32
+ building_number: import("io-ts").StringC;
33
+ building_name: import("io-ts").StringC;
34
+ line_2: import("io-ts").StringC;
35
+ county: import("io-ts").StringC;
36
+ months_at_address: import("io-ts").NumberC;
37
+ }>]>;
38
+ }>, import("io-ts").PartialC<{
39
+ verification_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_verified">, import("io-ts").LiteralC<"verified">]>;
40
+ }>]>;
41
+ last_name: import("io-ts").StringC;
42
+ mobile: import("io-ts").StringC;
43
+ }>]>>;
44
+ company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
45
+ 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">]>;
46
+ warranty_length: import("io-ts").NumberC;
47
+ average_monthly_jobs: import("io-ts").NumberC;
48
+ average_job_value: import("io-ts").NumberC;
49
+ use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
50
+ }>, import("io-ts").PartialC<{
51
+ 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">]>;
52
+ trade_body_number: import("io-ts").StringC;
53
+ insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
54
+ name: import("io-ts").StringC;
55
+ }>, import("io-ts").PartialC<{
56
+ id: import("io-ts").StringC;
57
+ cid: import("io-ts").StringC;
58
+ oid: import("io-ts").StringC;
59
+ aid: import("io-ts").StringC;
60
+ content: import("io-ts").StringC;
61
+ mimetype: import("io-ts").StringC;
62
+ metadata: import("io-ts").TypeC<{
63
+ liveness: import("io-ts").BooleanC;
64
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
65
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
66
+ }>;
67
+ }>]>;
68
+ }>]>;
69
+ limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
70
+ company_name: import("io-ts").StringC;
71
+ company_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
72
+ line_1: import("io-ts").StringC;
73
+ city: import("io-ts").StringC;
74
+ country: import("io-ts").StringC;
75
+ postcode: import("io-ts").StringC;
76
+ }>, import("io-ts").PartialC<{
77
+ building_number: import("io-ts").StringC;
78
+ building_name: import("io-ts").StringC;
79
+ line_2: import("io-ts").StringC;
80
+ county: import("io-ts").StringC;
81
+ months_at_address: import("io-ts").NumberC;
82
+ }>]>;
83
+ company_number: import("io-ts").StringC;
84
+ }>, import("io-ts").PartialC<{
85
+ trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
86
+ line_1: import("io-ts").StringC;
87
+ city: import("io-ts").StringC;
88
+ country: import("io-ts").StringC;
89
+ postcode: import("io-ts").StringC;
90
+ }>, import("io-ts").PartialC<{
91
+ building_number: import("io-ts").StringC;
92
+ building_name: import("io-ts").StringC;
93
+ line_2: import("io-ts").StringC;
94
+ county: import("io-ts").StringC;
95
+ months_at_address: import("io-ts").NumberC;
96
+ }>]>;
97
+ vat_number: import("io-ts").StringC;
98
+ }>]>;
99
+ sole_trader_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
100
+ trading_name: import("io-ts").StringC;
101
+ trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
102
+ line_1: import("io-ts").StringC;
103
+ city: import("io-ts").StringC;
104
+ country: import("io-ts").StringC;
105
+ postcode: import("io-ts").StringC;
106
+ }>, import("io-ts").PartialC<{
107
+ building_number: import("io-ts").StringC;
108
+ building_name: import("io-ts").StringC;
109
+ line_2: import("io-ts").StringC;
110
+ county: import("io-ts").StringC;
111
+ months_at_address: import("io-ts").NumberC;
112
+ }>]>;
113
+ }>, import("io-ts").PartialC<{
114
+ national_insurance_number: import("io-ts").StringC;
115
+ }>]>;
116
+ available_rates: import("io-ts").ArrayC<import("io-ts").TypeC<{
117
+ name: import("io-ts").StringC;
118
+ fee: import("io-ts").NumberC;
119
+ enabled: import("io-ts").BooleanC;
120
+ }>>;
121
+ quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
122
+ skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
123
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
124
+ billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
125
+ company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
126
+ name: import("io-ts").StringC;
127
+ }>, import("io-ts").PartialC<{
128
+ id: import("io-ts").StringC;
129
+ cid: import("io-ts").StringC;
130
+ oid: import("io-ts").StringC;
131
+ aid: import("io-ts").StringC;
132
+ content: import("io-ts").StringC;
133
+ mimetype: import("io-ts").StringC;
134
+ metadata: import("io-ts").TypeC<{
135
+ liveness: import("io-ts").BooleanC;
136
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
137
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
138
+ }>;
139
+ }>]>;
140
+ bank_account: import("io-ts").TypeC<{
141
+ account_name: import("io-ts").StringC;
142
+ account_number: import("io-ts").StringC;
143
+ sort_code: import("io-ts").StringC;
144
+ }>;
145
+ contact_info: import("io-ts").PartialC<{
146
+ contact_name: import("io-ts").StringC;
147
+ contact_email: import("io-ts").StringC;
148
+ contact_phone: import("io-ts").StringC;
149
+ contact_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
150
+ line_1: import("io-ts").StringC;
151
+ city: import("io-ts").StringC;
152
+ country: import("io-ts").StringC;
153
+ postcode: import("io-ts").StringC;
154
+ }>, import("io-ts").PartialC<{
155
+ building_number: import("io-ts").StringC;
156
+ building_name: import("io-ts").StringC;
157
+ line_2: import("io-ts").StringC;
158
+ county: import("io-ts").StringC;
159
+ months_at_address: import("io-ts").NumberC;
160
+ }>]>;
161
+ }>;
162
+ metadata: import("io-ts").TypeC<{
163
+ liveness: import("io-ts").BooleanC;
164
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
165
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
166
+ }>;
167
+ }>]>;
168
+ };
169
+ readonly default: {
170
+ readonly _tag: "JsonResponse";
171
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
172
+ message: import("io-ts").StringC;
173
+ }>, import("io-ts").PartialC<{
174
+ code: import("io-ts").NumberC;
175
+ }>]>;
176
+ };
177
+ };
178
+ readonly parameters: readonly [{
179
+ readonly _tag: "FormParameter";
180
+ readonly explode: false;
181
+ readonly in: "path";
182
+ readonly name: "id";
183
+ }];
184
+ readonly requestDefaultHeaders: {
185
+ readonly Accept: "application/json";
186
+ };
187
+ };
188
+ export declare type DirectorCompanyRequestFunction = RequestFunction<{
189
+ params: DirectorCompanyRequestParameters;
190
+ }, schemas.Company>;
191
+ //# sourceMappingURL=directorCompany.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directorCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/directorCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,gCAAgC,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEX,oBAAY,8BAA8B,GAAG,eAAe,CAC1D;IAAE,MAAM,EAAE,gCAAgC,CAAA;CAAE,EAC5C,OAAO,CAAC,OAAO,CAChB,CAAC"}
@@ -0,0 +1,44 @@
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.directorCompanyOperation = void 0;
27
+ const schemas = __importStar(require("../components/schemas"));
28
+ exports.directorCompanyOperation = {
29
+ path: "/api/company/{id}/director",
30
+ method: "post",
31
+ responses: {
32
+ "200": { _tag: "JsonResponse", decoder: schemas.Company },
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: { Accept: "application/json" },
44
+ };
@@ -118,7 +118,7 @@ export declare const getCompaniesOperation: {
118
118
  }>>;
119
119
  quote_preference: t.UnionC<[t.LiteralC<"no_preference">, t.LiteralC<"kanda">, t.LiteralC<"custom">]>;
120
120
  skip_deposit: t.UnionC<[t.LiteralC<"Yes">, t.LiteralC<"No">]>;
121
- lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
121
+ lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"subscribed">, t.LiteralC<"director_info_provided">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
122
122
  billing: t.UnionC<[t.LiteralC<"legacy">, t.LiteralC<"trial">, t.LiteralC<"pending">, 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">]>;
123
123
  company_logo: t.IntersectionC<[t.TypeC<{
124
124
  name: t.StringC;
@@ -120,7 +120,7 @@ export declare const getCompanyOperation: {
120
120
  }>>;
121
121
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
122
122
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
123
- 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">]>;
123
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
124
124
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
125
125
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
126
126
  name: import("io-ts").StringC;
@@ -12,6 +12,7 @@ import { DeleteDocumentRequestFunction } from "./deleteDocument";
12
12
  import { DeleteJobRequestFunction } from "./deleteJob";
13
13
  import { DeletePaymentRequestFunction } from "./deletePayment";
14
14
  import { DeleteSubscriptionRequestFunction } from "./deleteSubscription";
15
+ import { DirectorCompanyRequestFunction } from "./directorCompany";
15
16
  import { GetCompaniesRequestFunction } from "./getCompanies";
16
17
  import { GetCompanyRequestFunction } from "./getCompany";
17
18
  import { GetCreditRequestFunction } from "./getCredit";
@@ -578,7 +579,7 @@ export declare const operations: {
578
579
  }>>;
579
580
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
580
581
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
581
- 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">]>;
582
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
582
583
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
583
584
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
584
585
  name: import("io-ts").StringC;
@@ -755,7 +756,7 @@ export declare const operations: {
755
756
  }>>;
756
757
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
757
758
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
758
- 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">]>;
759
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
759
760
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
760
761
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
761
762
  name: import("io-ts").StringC;
@@ -936,7 +937,7 @@ export declare const operations: {
936
937
  }>>;
937
938
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
938
939
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
939
- 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">]>;
940
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
940
941
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
941
942
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
942
943
  name: import("io-ts").StringC;
@@ -1118,7 +1119,7 @@ export declare const operations: {
1118
1119
  }>>;
1119
1120
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
1120
1121
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
1121
- 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">]>;
1122
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
1122
1123
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
1123
1124
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1124
1125
  name: import("io-ts").StringC;
@@ -1304,7 +1305,189 @@ export declare const operations: {
1304
1305
  }>>;
1305
1306
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
1306
1307
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
1307
- 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">]>;
1308
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
1309
+ billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
1310
+ company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1311
+ name: import("io-ts").StringC;
1312
+ }>, import("io-ts").PartialC<{
1313
+ id: import("io-ts").StringC;
1314
+ cid: import("io-ts").StringC;
1315
+ oid: import("io-ts").StringC;
1316
+ aid: import("io-ts").StringC;
1317
+ content: import("io-ts").StringC;
1318
+ mimetype: import("io-ts").StringC;
1319
+ metadata: import("io-ts").TypeC<{
1320
+ liveness: import("io-ts").BooleanC;
1321
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1322
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1323
+ }>;
1324
+ }>]>;
1325
+ bank_account: import("io-ts").TypeC<{
1326
+ account_name: import("io-ts").StringC;
1327
+ account_number: import("io-ts").StringC;
1328
+ sort_code: import("io-ts").StringC;
1329
+ }>;
1330
+ contact_info: import("io-ts").PartialC<{
1331
+ contact_name: import("io-ts").StringC;
1332
+ contact_email: import("io-ts").StringC;
1333
+ contact_phone: import("io-ts").StringC;
1334
+ contact_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1335
+ line_1: import("io-ts").StringC;
1336
+ city: import("io-ts").StringC;
1337
+ country: import("io-ts").StringC;
1338
+ postcode: import("io-ts").StringC;
1339
+ }>, import("io-ts").PartialC<{
1340
+ building_number: import("io-ts").StringC;
1341
+ building_name: import("io-ts").StringC;
1342
+ line_2: import("io-ts").StringC;
1343
+ county: import("io-ts").StringC;
1344
+ months_at_address: import("io-ts").NumberC;
1345
+ }>]>;
1346
+ }>;
1347
+ metadata: import("io-ts").TypeC<{
1348
+ liveness: import("io-ts").BooleanC;
1349
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1350
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1351
+ }>;
1352
+ }>]>;
1353
+ };
1354
+ readonly default: {
1355
+ readonly _tag: "JsonResponse";
1356
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1357
+ message: import("io-ts").StringC;
1358
+ }>, import("io-ts").PartialC<{
1359
+ code: import("io-ts").NumberC;
1360
+ }>]>;
1361
+ };
1362
+ };
1363
+ readonly parameters: readonly [{
1364
+ readonly _tag: "FormParameter";
1365
+ readonly explode: false;
1366
+ readonly in: "path";
1367
+ readonly name: "id";
1368
+ }];
1369
+ readonly requestDefaultHeaders: {
1370
+ readonly Accept: "application/json";
1371
+ };
1372
+ };
1373
+ readonly directorCompany: {
1374
+ readonly path: "/api/company/{id}/director";
1375
+ readonly method: "post";
1376
+ readonly responses: {
1377
+ readonly "200": {
1378
+ readonly _tag: "JsonResponse";
1379
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1380
+ company_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"limited_company">, import("io-ts").LiteralC<"sole_trader">]>;
1381
+ }>, import("io-ts").PartialC<{
1382
+ id: import("io-ts").StringC;
1383
+ cid: import("io-ts").StringC;
1384
+ oid: import("io-ts").StringC;
1385
+ aid: import("io-ts").StringC;
1386
+ emails: import("io-ts").ArrayC<import("io-ts").StringC>;
1387
+ users: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1388
+ role: import("io-ts").UnionC<[import("io-ts").LiteralC<"company-admin">, import("io-ts").LiteralC<"company-manager">, import("io-ts").LiteralC<"company-staff">]>;
1389
+ first_name: import("io-ts").StringC;
1390
+ email: import("io-ts").StringC;
1391
+ }>, import("io-ts").PartialC<{
1392
+ director_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1393
+ home_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1394
+ line_1: import("io-ts").StringC;
1395
+ city: import("io-ts").StringC;
1396
+ country: import("io-ts").StringC;
1397
+ postcode: import("io-ts").StringC;
1398
+ }>, import("io-ts").PartialC<{
1399
+ building_number: import("io-ts").StringC;
1400
+ building_name: import("io-ts").StringC;
1401
+ line_2: import("io-ts").StringC;
1402
+ county: import("io-ts").StringC;
1403
+ months_at_address: import("io-ts").NumberC;
1404
+ }>]>;
1405
+ }>, import("io-ts").PartialC<{
1406
+ verification_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_verified">, import("io-ts").LiteralC<"verified">]>;
1407
+ }>]>;
1408
+ last_name: import("io-ts").StringC;
1409
+ mobile: import("io-ts").StringC;
1410
+ }>]>>;
1411
+ company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1412
+ 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">]>;
1413
+ warranty_length: import("io-ts").NumberC;
1414
+ average_monthly_jobs: import("io-ts").NumberC;
1415
+ average_job_value: import("io-ts").NumberC;
1416
+ use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
1417
+ }>, import("io-ts").PartialC<{
1418
+ 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">]>;
1419
+ trade_body_number: import("io-ts").StringC;
1420
+ insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1421
+ name: import("io-ts").StringC;
1422
+ }>, import("io-ts").PartialC<{
1423
+ id: import("io-ts").StringC;
1424
+ cid: import("io-ts").StringC;
1425
+ oid: import("io-ts").StringC;
1426
+ aid: import("io-ts").StringC;
1427
+ content: import("io-ts").StringC;
1428
+ mimetype: import("io-ts").StringC;
1429
+ metadata: import("io-ts").TypeC<{
1430
+ liveness: import("io-ts").BooleanC;
1431
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1432
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
1433
+ }>;
1434
+ }>]>;
1435
+ }>]>;
1436
+ limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1437
+ company_name: import("io-ts").StringC;
1438
+ company_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1439
+ line_1: import("io-ts").StringC;
1440
+ city: import("io-ts").StringC;
1441
+ country: import("io-ts").StringC;
1442
+ postcode: import("io-ts").StringC;
1443
+ }>, import("io-ts").PartialC<{
1444
+ building_number: import("io-ts").StringC;
1445
+ building_name: import("io-ts").StringC;
1446
+ line_2: import("io-ts").StringC;
1447
+ county: import("io-ts").StringC;
1448
+ months_at_address: import("io-ts").NumberC;
1449
+ }>]>;
1450
+ company_number: import("io-ts").StringC;
1451
+ }>, import("io-ts").PartialC<{
1452
+ trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1453
+ line_1: import("io-ts").StringC;
1454
+ city: import("io-ts").StringC;
1455
+ country: import("io-ts").StringC;
1456
+ postcode: import("io-ts").StringC;
1457
+ }>, import("io-ts").PartialC<{
1458
+ building_number: import("io-ts").StringC;
1459
+ building_name: import("io-ts").StringC;
1460
+ line_2: import("io-ts").StringC;
1461
+ county: import("io-ts").StringC;
1462
+ months_at_address: import("io-ts").NumberC;
1463
+ }>]>;
1464
+ vat_number: import("io-ts").StringC;
1465
+ }>]>;
1466
+ sole_trader_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1467
+ trading_name: import("io-ts").StringC;
1468
+ trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1469
+ line_1: import("io-ts").StringC;
1470
+ city: import("io-ts").StringC;
1471
+ country: import("io-ts").StringC;
1472
+ postcode: import("io-ts").StringC;
1473
+ }>, import("io-ts").PartialC<{
1474
+ building_number: import("io-ts").StringC;
1475
+ building_name: import("io-ts").StringC;
1476
+ line_2: import("io-ts").StringC;
1477
+ county: import("io-ts").StringC;
1478
+ months_at_address: import("io-ts").NumberC;
1479
+ }>]>;
1480
+ }>, import("io-ts").PartialC<{
1481
+ national_insurance_number: import("io-ts").StringC;
1482
+ }>]>;
1483
+ available_rates: import("io-ts").ArrayC<import("io-ts").TypeC<{
1484
+ name: import("io-ts").StringC;
1485
+ fee: import("io-ts").NumberC;
1486
+ enabled: import("io-ts").BooleanC;
1487
+ }>>;
1488
+ quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
1489
+ skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
1490
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
1308
1491
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
1309
1492
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1310
1493
  name: import("io-ts").StringC;
@@ -1486,7 +1669,7 @@ export declare const operations: {
1486
1669
  }>>;
1487
1670
  quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
1488
1671
  skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
1489
- 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">]>;
1672
+ lifecycle: import("io-ts").UnionC<[import("io-ts").LiteralC<"registered">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"director_info_provided">, import("io-ts").LiteralC<"onboarded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">]>;
1490
1673
  billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"subscribed">, import("io-ts").LiteralC<"recurring_payment_failed_1">, import("io-ts").LiteralC<"recurring_payment_failed_2">, import("io-ts").LiteralC<"recurring_payment_failed_3">, import("io-ts").LiteralC<"suspended">, import("io-ts").LiteralC<"cancelled">]>;
1491
1674
  company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
1492
1675
  name: import("io-ts").StringC;
@@ -6769,6 +6952,7 @@ export interface OperationRequestFunctionMap {
6769
6952
  getCompany: GetCompanyRequestFunction;
6770
6953
  putCompany: PutCompanyRequestFunction;
6771
6954
  deleteCompany: DeleteCompanyRequestFunction;
6955
+ directorCompany: DirectorCompanyRequestFunction;
6772
6956
  approveCompany: ApproveCompanyRequestFunction;
6773
6957
  getJobs: GetJobsRequestFunction;
6774
6958
  postJob: PostJobRequestFunction;
@@ -6842,6 +7026,7 @@ export declare const companyServiceBuilder: (requestFunctions: OperationRequestF
6842
7026
  getCompany: GetCompanyRequestFunction;
6843
7027
  putCompany: PutCompanyRequestFunction;
6844
7028
  deleteCompany: DeleteCompanyRequestFunction;
7029
+ directorCompany: DirectorCompanyRequestFunction;
6845
7030
  approveCompany: ApproveCompanyRequestFunction;
6846
7031
  };
6847
7032
  export declare const jobServiceBuilder: (requestFunctions: OperationRequestFunctionMap) => {