@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.
- package/dist/components/schemas/Company.d.ts +9 -2
- package/dist/components/schemas/Company.d.ts.map +1 -1
- package/dist/components/schemas/Company.js +2 -0
- package/dist/components/schemas/CompanyInfo.d.ts +8 -0
- package/dist/components/schemas/CompanyInfo.d.ts.map +1 -1
- package/dist/components/schemas/CompanyInfo.js +2 -0
- package/dist/components/schemas/ContactInfo.d.ts +2 -0
- package/dist/components/schemas/ContactInfo.d.ts.map +1 -1
- package/dist/components/schemas/ContactInfo.js +1 -0
- package/dist/components/schemas/ContractAgreement.d.ts +14 -0
- package/dist/components/schemas/ContractAgreement.d.ts.map +1 -0
- package/dist/components/schemas/ContractAgreement.js +34 -0
- package/dist/components/schemas/Entity.d.ts +558 -0
- package/dist/components/schemas/Entity.d.ts.map +1 -0
- package/dist/components/schemas/Entity.js +41 -0
- package/dist/components/schemas/Event.d.ts +550 -8
- package/dist/components/schemas/Event.d.ts.map +1 -1
- package/dist/components/schemas/Event.js +5 -4
- package/dist/components/schemas/Identity.d.ts +30 -0
- package/dist/components/schemas/Identity.d.ts.map +1 -0
- package/dist/components/schemas/Identity.js +37 -0
- package/dist/components/schemas/InfoCompany.d.ts +23 -5
- package/dist/components/schemas/InfoCompany.d.ts.map +1 -1
- package/dist/components/schemas/InfoCompany.js +8 -10
- package/dist/components/schemas/JobCompanyInfo.d.ts +1 -0
- package/dist/components/schemas/JobCompanyInfo.d.ts.map +1 -1
- package/dist/components/schemas/Subscription.d.ts +0 -24
- package/dist/components/schemas/Subscription.d.ts.map +1 -1
- package/dist/components/schemas/Subscription.js +0 -2
- package/dist/components/schemas/index.d.ts +3 -0
- package/dist/components/schemas/index.d.ts.map +1 -1
- package/dist/components/schemas/index.js +3 -0
- package/dist/operations/approveCompany.d.ts +8 -1
- package/dist/operations/approveCompany.d.ts.map +1 -1
- package/dist/operations/declineCompany.d.ts +206 -0
- package/dist/operations/declineCompany.d.ts.map +1 -0
- package/dist/operations/declineCompany.js +50 -0
- package/dist/operations/deleteCompany.d.ts +8 -1
- package/dist/operations/deleteCompany.d.ts.map +1 -1
- package/dist/operations/deleteSubscription.d.ts +0 -22
- package/dist/operations/deleteSubscription.d.ts.map +1 -1
- package/dist/operations/directorCompany.d.ts +8 -1
- package/dist/operations/directorCompany.d.ts.map +1 -1
- package/dist/operations/getCompanies.d.ts +8 -1
- package/dist/operations/getCompanies.d.ts.map +1 -1
- package/dist/operations/getCompany.d.ts +8 -1
- package/dist/operations/getCompany.d.ts.map +1 -1
- package/dist/operations/getCompanyIdentity.d.ts +121 -0
- package/dist/operations/getCompanyIdentity.d.ts.map +1 -0
- package/dist/operations/getCompanyIdentity.js +50 -0
- package/dist/operations/getSubscription.d.ts +0 -22
- package/dist/operations/getSubscription.d.ts.map +1 -1
- package/dist/operations/getSubscriptions.d.ts +0 -22
- package/dist/operations/getSubscriptions.d.ts.map +1 -1
- package/dist/operations/index.d.ts +595 -230
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +12 -0
- package/dist/operations/infoCompany.d.ts +20 -4
- package/dist/operations/infoCompany.d.ts.map +1 -1
- package/dist/operations/jobCompanyInfo.d.ts +1 -0
- package/dist/operations/jobCompanyInfo.d.ts.map +1 -1
- package/dist/operations/pendingSubscription.d.ts +0 -22
- package/dist/operations/pendingSubscription.d.ts.map +1 -1
- package/dist/operations/postCompany.d.ts +8 -1
- package/dist/operations/postCompany.d.ts.map +1 -1
- package/dist/operations/postCompanyIdentity.d.ts +126 -0
- package/dist/operations/postCompanyIdentity.d.ts.map +1 -0
- package/dist/operations/postCompanyIdentity.js +56 -0
- package/dist/operations/postSubscription.d.ts +0 -22
- package/dist/operations/postSubscription.d.ts.map +1 -1
- package/dist/operations/putCompany.d.ts +8 -1
- package/dist/operations/putCompany.d.ts.map +1 -1
- package/dist/operations/putSubscription.d.ts +0 -22
- package/dist/operations/putSubscription.d.ts.map +1 -1
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +8424 -2438
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +12315 -5189
- package/package.json +1 -1
- package/schema.yaml +236 -22
|
@@ -0,0 +1,37 @@
|
|
|
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.Identity = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const DateFromISOString_1 = require("io-ts-types/DateFromISOString");
|
|
29
|
+
const Address_1 = require("./Address");
|
|
30
|
+
exports.Identity = t.type({
|
|
31
|
+
first_name: t.string,
|
|
32
|
+
last_name: t.string,
|
|
33
|
+
email: t.string,
|
|
34
|
+
mobile: t.string,
|
|
35
|
+
date_of_birth: DateFromISOString_1.DateFromISOString,
|
|
36
|
+
home_address: Address_1.Address,
|
|
37
|
+
});
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { LimitedCompanyInfo } from "./LimitedCompanyInfo";
|
|
3
3
|
import { Metadata } from "./Metadata";
|
|
4
|
+
import { SoleTraderInfo } from "./SoleTraderInfo";
|
|
4
5
|
import { UserType } from "./UserType";
|
|
5
|
-
export declare const InfoCompany: t.
|
|
6
|
+
export declare const InfoCompany: t.PartialC<{
|
|
7
|
+
id: t.StringC;
|
|
8
|
+
sole_trader: t.IntersectionC<[t.TypeC<{
|
|
9
|
+
trading_name: t.StringC;
|
|
10
|
+
trading_address: t.IntersectionC<[t.TypeC<{
|
|
11
|
+
line_1: t.StringC;
|
|
12
|
+
city: t.StringC;
|
|
13
|
+
country: t.StringC;
|
|
14
|
+
postcode: t.StringC;
|
|
15
|
+
}>, t.PartialC<{
|
|
16
|
+
building_number: t.StringC;
|
|
17
|
+
building_name: t.StringC;
|
|
18
|
+
line_2: t.StringC;
|
|
19
|
+
county: t.StringC;
|
|
20
|
+
months_at_address: t.NumberC;
|
|
21
|
+
}>]>;
|
|
22
|
+
}>, t.PartialC<{
|
|
23
|
+
national_insurance_number: t.StringC;
|
|
24
|
+
}>]>;
|
|
6
25
|
limited_company: t.IntersectionC<[t.TypeC<{
|
|
7
26
|
company_name: t.StringC;
|
|
8
27
|
company_address: t.IntersectionC<[t.TypeC<{
|
|
@@ -33,8 +52,6 @@ export declare const InfoCompany: t.IntersectionC<[t.TypeC<{
|
|
|
33
52
|
}>]>;
|
|
34
53
|
vat_number: t.StringC;
|
|
35
54
|
}>]>;
|
|
36
|
-
}>, t.PartialC<{
|
|
37
|
-
id: t.StringC;
|
|
38
55
|
directors: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
39
56
|
role: t.UnionC<[t.LiteralC<"company-admin">, t.LiteralC<"company-manager">, t.LiteralC<"company-staff">]>;
|
|
40
57
|
first_name: t.StringC;
|
|
@@ -65,10 +82,11 @@ export declare const InfoCompany: t.IntersectionC<[t.TypeC<{
|
|
|
65
82
|
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
66
83
|
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
67
84
|
}>;
|
|
68
|
-
}
|
|
85
|
+
}>;
|
|
69
86
|
export interface InfoCompany {
|
|
70
87
|
id?: string;
|
|
71
|
-
|
|
88
|
+
sole_trader?: SoleTraderInfo;
|
|
89
|
+
limited_company?: LimitedCompanyInfo;
|
|
72
90
|
directors?: Array<UserType>;
|
|
73
91
|
metadata?: Metadata;
|
|
74
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoCompany.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/InfoCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"InfoCompany.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/InfoCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,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,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -27,14 +27,12 @@ exports.InfoCompany = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const LimitedCompanyInfo_1 = require("./LimitedCompanyInfo");
|
|
29
29
|
const Metadata_1 = require("./Metadata");
|
|
30
|
+
const SoleTraderInfo_1 = require("./SoleTraderInfo");
|
|
30
31
|
const UserType_1 = require("./UserType");
|
|
31
|
-
exports.InfoCompany = t.
|
|
32
|
-
t.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
t.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
metadata: Metadata_1.Metadata,
|
|
39
|
-
}),
|
|
40
|
-
]);
|
|
32
|
+
exports.InfoCompany = t.partial({
|
|
33
|
+
id: t.string,
|
|
34
|
+
sole_trader: SoleTraderInfo_1.SoleTraderInfo,
|
|
35
|
+
limited_company: LimitedCompanyInfo_1.LimitedCompanyInfo,
|
|
36
|
+
directors: t.array(UserType_1.UserType),
|
|
37
|
+
metadata: Metadata_1.Metadata,
|
|
38
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobCompanyInfo.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/JobCompanyInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"JobCompanyInfo.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/JobCompanyInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
import { Event } from "./Event";
|
|
3
2
|
import { Metadata } from "./Metadata";
|
|
4
3
|
import { Money } from "./Money";
|
|
5
4
|
export declare const Subscription: t.PartialC<{
|
|
@@ -19,28 +18,6 @@ export declare const Subscription: t.PartialC<{
|
|
|
19
18
|
}>, t.PartialC<{
|
|
20
19
|
currency: t.LiteralC<"GBP">;
|
|
21
20
|
}>]>;
|
|
22
|
-
events: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
23
|
-
id: t.StringC;
|
|
24
|
-
cid: t.StringC;
|
|
25
|
-
oid: t.StringC;
|
|
26
|
-
resource: t.StringC;
|
|
27
|
-
action: t.StringC;
|
|
28
|
-
source: t.UnionC<[t.LiteralC<"api">, t.LiteralC<"kanda">, t.LiteralC<"webhook">]>;
|
|
29
|
-
result: t.StringC;
|
|
30
|
-
}>, t.PartialC<{
|
|
31
|
-
aid: t.StringC;
|
|
32
|
-
resource_id: t.StringC;
|
|
33
|
-
error: t.IntersectionC<[t.TypeC<{
|
|
34
|
-
message: t.StringC;
|
|
35
|
-
}>, t.PartialC<{
|
|
36
|
-
code: t.NumberC;
|
|
37
|
-
}>]>;
|
|
38
|
-
metadata: t.TypeC<{
|
|
39
|
-
liveness: t.BooleanC;
|
|
40
|
-
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
41
|
-
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
42
|
-
}>;
|
|
43
|
-
}>]>>;
|
|
44
21
|
xid: t.StringC;
|
|
45
22
|
xref: t.StringC;
|
|
46
23
|
metadata: t.TypeC<{
|
|
@@ -62,7 +39,6 @@ export interface Subscription {
|
|
|
62
39
|
interval?: "monthly" | "yearly";
|
|
63
40
|
day_of_month?: number;
|
|
64
41
|
amount?: Money;
|
|
65
|
-
events?: Array<Event>;
|
|
66
42
|
xid?: string;
|
|
67
43
|
xref?: string;
|
|
68
44
|
metadata?: Metadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Subscription = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const Event_1 = require("./Event");
|
|
29
28
|
const Metadata_1 = require("./Metadata");
|
|
30
29
|
const Money_1 = require("./Money");
|
|
31
30
|
exports.Subscription = t.partial({
|
|
@@ -41,7 +40,6 @@ exports.Subscription = t.partial({
|
|
|
41
40
|
interval: t.union([t.literal("monthly"), t.literal("yearly")]),
|
|
42
41
|
day_of_month: t.number,
|
|
43
42
|
amount: Money_1.Money,
|
|
44
|
-
events: t.array(Event_1.Event),
|
|
45
43
|
xid: t.string,
|
|
46
44
|
xref: t.string,
|
|
47
45
|
metadata: Metadata_1.Metadata,
|
|
@@ -6,6 +6,7 @@ export * from "./CheckoutOption";
|
|
|
6
6
|
export * from "./Company";
|
|
7
7
|
export * from "./CompanyInfo";
|
|
8
8
|
export * from "./ContactInfo";
|
|
9
|
+
export * from "./ContractAgreement";
|
|
9
10
|
export * from "./Credit";
|
|
10
11
|
export * from "./Customer";
|
|
11
12
|
export * from "./CustomerDetails";
|
|
@@ -14,9 +15,11 @@ export * from "./DirectorInfo";
|
|
|
14
15
|
export * from "./Document";
|
|
15
16
|
export * from "./EmployedDetails";
|
|
16
17
|
export * from "./EmploymentDetails";
|
|
18
|
+
export * from "./Entity";
|
|
17
19
|
export * from "./Error";
|
|
18
20
|
export * from "./Event";
|
|
19
21
|
export * from "./FinanceStatus";
|
|
22
|
+
export * from "./Identity";
|
|
20
23
|
export * from "./InfoAuth";
|
|
21
24
|
export * from "./InfoCompany";
|
|
22
25
|
export * from "./InfoGhost";
|
|
@@ -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,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,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,gBAAgB,CAAC;AAC/B,cAAc,YAAY,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,qBAAqB,CAAC;AACpC,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,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,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,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./CheckoutOption"), exports);
|
|
|
22
22
|
__exportStar(require("./Company"), exports);
|
|
23
23
|
__exportStar(require("./CompanyInfo"), exports);
|
|
24
24
|
__exportStar(require("./ContactInfo"), exports);
|
|
25
|
+
__exportStar(require("./ContractAgreement"), exports);
|
|
25
26
|
__exportStar(require("./Credit"), exports);
|
|
26
27
|
__exportStar(require("./Customer"), exports);
|
|
27
28
|
__exportStar(require("./CustomerDetails"), exports);
|
|
@@ -30,9 +31,11 @@ __exportStar(require("./DirectorInfo"), exports);
|
|
|
30
31
|
__exportStar(require("./Document"), exports);
|
|
31
32
|
__exportStar(require("./EmployedDetails"), exports);
|
|
32
33
|
__exportStar(require("./EmploymentDetails"), exports);
|
|
34
|
+
__exportStar(require("./Entity"), exports);
|
|
33
35
|
__exportStar(require("./Error"), exports);
|
|
34
36
|
__exportStar(require("./Event"), exports);
|
|
35
37
|
__exportStar(require("./FinanceStatus"), exports);
|
|
38
|
+
__exportStar(require("./Identity"), exports);
|
|
36
39
|
__exportStar(require("./InfoAuth"), exports);
|
|
37
40
|
__exportStar(require("./InfoCompany"), exports);
|
|
38
41
|
__exportStar(require("./InfoGhost"), exports);
|
|
@@ -66,6 +66,12 @@ export declare const approveCompanyOperation: {
|
|
|
66
66
|
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
67
67
|
}>;
|
|
68
68
|
}>]>;
|
|
69
|
+
contract_agreement: import("io-ts").PartialC<{
|
|
70
|
+
agreed_terms_and_conditions: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
71
|
+
agreed_to_become_iar_of_kanda: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
72
|
+
print_name: import("io-ts").StringC;
|
|
73
|
+
signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
74
|
+
}>;
|
|
69
75
|
}>]>;
|
|
70
76
|
limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
71
77
|
company_name: import("io-ts").StringC;
|
|
@@ -121,7 +127,7 @@ export declare const approveCompanyOperation: {
|
|
|
121
127
|
}>>;
|
|
122
128
|
quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
|
|
123
129
|
skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
|
|
124
|
-
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">]>;
|
|
130
|
+
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<"insurance_uploaded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">, import("io-ts").LiteralC<"declined">]>;
|
|
125
131
|
billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"referred">, 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">]>;
|
|
126
132
|
referral_code: import("io-ts").StringC;
|
|
127
133
|
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
@@ -160,6 +166,7 @@ export declare const approveCompanyOperation: {
|
|
|
160
166
|
county: import("io-ts").StringC;
|
|
161
167
|
months_at_address: import("io-ts").NumberC;
|
|
162
168
|
}>]>;
|
|
169
|
+
trading_name: import("io-ts").StringC;
|
|
163
170
|
}>;
|
|
164
171
|
metadata: import("io-ts").TypeC<{
|
|
165
172
|
liveness: import("io-ts").BooleanC;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
export declare type DeclineCompanyRequestParameters = {
|
|
4
|
+
id: string;
|
|
5
|
+
reason: "failed_checks" | "fraudulent" | "improper_insurance" | "unsupported_trade";
|
|
6
|
+
};
|
|
7
|
+
export declare const declineCompanyOperation: {
|
|
8
|
+
readonly path: "/api/company/{id}/decline";
|
|
9
|
+
readonly method: "post";
|
|
10
|
+
readonly responses: {
|
|
11
|
+
readonly "200": {
|
|
12
|
+
readonly _tag: "JsonResponse";
|
|
13
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
14
|
+
company_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"limited_company">, import("io-ts").LiteralC<"sole_trader">]>;
|
|
15
|
+
}>, import("io-ts").PartialC<{
|
|
16
|
+
id: import("io-ts").StringC;
|
|
17
|
+
cid: import("io-ts").StringC;
|
|
18
|
+
oid: import("io-ts").StringC;
|
|
19
|
+
aid: import("io-ts").StringC;
|
|
20
|
+
emails: import("io-ts").ArrayC<import("io-ts").StringC>;
|
|
21
|
+
users: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
22
|
+
role: import("io-ts").UnionC<[import("io-ts").LiteralC<"company-admin">, import("io-ts").LiteralC<"company-manager">, import("io-ts").LiteralC<"company-staff">]>;
|
|
23
|
+
first_name: import("io-ts").StringC;
|
|
24
|
+
email: import("io-ts").StringC;
|
|
25
|
+
}>, import("io-ts").PartialC<{
|
|
26
|
+
director_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
27
|
+
home_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
28
|
+
line_1: import("io-ts").StringC;
|
|
29
|
+
city: import("io-ts").StringC;
|
|
30
|
+
country: import("io-ts").StringC;
|
|
31
|
+
postcode: import("io-ts").StringC;
|
|
32
|
+
}>, import("io-ts").PartialC<{
|
|
33
|
+
building_number: import("io-ts").StringC;
|
|
34
|
+
building_name: import("io-ts").StringC;
|
|
35
|
+
line_2: import("io-ts").StringC;
|
|
36
|
+
county: import("io-ts").StringC;
|
|
37
|
+
months_at_address: import("io-ts").NumberC;
|
|
38
|
+
}>]>;
|
|
39
|
+
}>, import("io-ts").PartialC<{
|
|
40
|
+
verification_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_verified">, import("io-ts").LiteralC<"verified">]>;
|
|
41
|
+
date_of_birth: import("io-ts").StringC;
|
|
42
|
+
}>]>;
|
|
43
|
+
last_name: import("io-ts").StringC;
|
|
44
|
+
mobile: import("io-ts").StringC;
|
|
45
|
+
}>]>>;
|
|
46
|
+
company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
47
|
+
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">]>;
|
|
48
|
+
warranty_length: import("io-ts").NumberC;
|
|
49
|
+
average_monthly_jobs: import("io-ts").NumberC;
|
|
50
|
+
average_job_value: import("io-ts").NumberC;
|
|
51
|
+
use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
52
|
+
}>, import("io-ts").PartialC<{
|
|
53
|
+
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">]>;
|
|
54
|
+
trade_body_number: import("io-ts").StringC;
|
|
55
|
+
insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
56
|
+
name: import("io-ts").StringC;
|
|
57
|
+
}>, import("io-ts").PartialC<{
|
|
58
|
+
id: import("io-ts").StringC;
|
|
59
|
+
cid: import("io-ts").StringC;
|
|
60
|
+
oid: import("io-ts").StringC;
|
|
61
|
+
aid: import("io-ts").StringC;
|
|
62
|
+
content: import("io-ts").StringC;
|
|
63
|
+
mimetype: import("io-ts").StringC;
|
|
64
|
+
metadata: import("io-ts").TypeC<{
|
|
65
|
+
liveness: import("io-ts").BooleanC;
|
|
66
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
67
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
68
|
+
}>;
|
|
69
|
+
}>]>;
|
|
70
|
+
contract_agreement: import("io-ts").PartialC<{
|
|
71
|
+
agreed_terms_and_conditions: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
72
|
+
agreed_to_become_iar_of_kanda: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
73
|
+
print_name: import("io-ts").StringC;
|
|
74
|
+
signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
75
|
+
}>;
|
|
76
|
+
}>]>;
|
|
77
|
+
limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
78
|
+
company_name: import("io-ts").StringC;
|
|
79
|
+
company_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
80
|
+
line_1: import("io-ts").StringC;
|
|
81
|
+
city: import("io-ts").StringC;
|
|
82
|
+
country: import("io-ts").StringC;
|
|
83
|
+
postcode: import("io-ts").StringC;
|
|
84
|
+
}>, import("io-ts").PartialC<{
|
|
85
|
+
building_number: import("io-ts").StringC;
|
|
86
|
+
building_name: import("io-ts").StringC;
|
|
87
|
+
line_2: import("io-ts").StringC;
|
|
88
|
+
county: import("io-ts").StringC;
|
|
89
|
+
months_at_address: import("io-ts").NumberC;
|
|
90
|
+
}>]>;
|
|
91
|
+
company_number: import("io-ts").StringC;
|
|
92
|
+
}>, import("io-ts").PartialC<{
|
|
93
|
+
trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
94
|
+
line_1: import("io-ts").StringC;
|
|
95
|
+
city: import("io-ts").StringC;
|
|
96
|
+
country: import("io-ts").StringC;
|
|
97
|
+
postcode: import("io-ts").StringC;
|
|
98
|
+
}>, import("io-ts").PartialC<{
|
|
99
|
+
building_number: import("io-ts").StringC;
|
|
100
|
+
building_name: import("io-ts").StringC;
|
|
101
|
+
line_2: import("io-ts").StringC;
|
|
102
|
+
county: import("io-ts").StringC;
|
|
103
|
+
months_at_address: import("io-ts").NumberC;
|
|
104
|
+
}>]>;
|
|
105
|
+
vat_number: import("io-ts").StringC;
|
|
106
|
+
}>]>;
|
|
107
|
+
sole_trader_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
108
|
+
trading_name: import("io-ts").StringC;
|
|
109
|
+
trading_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
110
|
+
line_1: import("io-ts").StringC;
|
|
111
|
+
city: import("io-ts").StringC;
|
|
112
|
+
country: import("io-ts").StringC;
|
|
113
|
+
postcode: import("io-ts").StringC;
|
|
114
|
+
}>, import("io-ts").PartialC<{
|
|
115
|
+
building_number: import("io-ts").StringC;
|
|
116
|
+
building_name: import("io-ts").StringC;
|
|
117
|
+
line_2: import("io-ts").StringC;
|
|
118
|
+
county: import("io-ts").StringC;
|
|
119
|
+
months_at_address: import("io-ts").NumberC;
|
|
120
|
+
}>]>;
|
|
121
|
+
}>, import("io-ts").PartialC<{
|
|
122
|
+
national_insurance_number: import("io-ts").StringC;
|
|
123
|
+
}>]>;
|
|
124
|
+
available_rates: import("io-ts").ArrayC<import("io-ts").TypeC<{
|
|
125
|
+
name: import("io-ts").StringC;
|
|
126
|
+
fee: import("io-ts").NumberC;
|
|
127
|
+
enabled: import("io-ts").BooleanC;
|
|
128
|
+
}>>;
|
|
129
|
+
quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
|
|
130
|
+
skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
|
|
131
|
+
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<"insurance_uploaded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">, import("io-ts").LiteralC<"declined">]>;
|
|
132
|
+
billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"referred">, 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">]>;
|
|
133
|
+
referral_code: import("io-ts").StringC;
|
|
134
|
+
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
135
|
+
name: import("io-ts").StringC;
|
|
136
|
+
}>, import("io-ts").PartialC<{
|
|
137
|
+
id: import("io-ts").StringC;
|
|
138
|
+
cid: import("io-ts").StringC;
|
|
139
|
+
oid: import("io-ts").StringC;
|
|
140
|
+
aid: import("io-ts").StringC;
|
|
141
|
+
content: import("io-ts").StringC;
|
|
142
|
+
mimetype: import("io-ts").StringC;
|
|
143
|
+
metadata: import("io-ts").TypeC<{
|
|
144
|
+
liveness: import("io-ts").BooleanC;
|
|
145
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
146
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
147
|
+
}>;
|
|
148
|
+
}>]>;
|
|
149
|
+
bank_account: import("io-ts").TypeC<{
|
|
150
|
+
account_name: import("io-ts").StringC;
|
|
151
|
+
account_number: import("io-ts").StringC;
|
|
152
|
+
sort_code: import("io-ts").StringC;
|
|
153
|
+
}>;
|
|
154
|
+
contact_info: import("io-ts").PartialC<{
|
|
155
|
+
contact_name: import("io-ts").StringC;
|
|
156
|
+
contact_email: import("io-ts").StringC;
|
|
157
|
+
contact_phone: import("io-ts").StringC;
|
|
158
|
+
contact_address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
159
|
+
line_1: import("io-ts").StringC;
|
|
160
|
+
city: import("io-ts").StringC;
|
|
161
|
+
country: import("io-ts").StringC;
|
|
162
|
+
postcode: import("io-ts").StringC;
|
|
163
|
+
}>, import("io-ts").PartialC<{
|
|
164
|
+
building_number: import("io-ts").StringC;
|
|
165
|
+
building_name: import("io-ts").StringC;
|
|
166
|
+
line_2: import("io-ts").StringC;
|
|
167
|
+
county: import("io-ts").StringC;
|
|
168
|
+
months_at_address: import("io-ts").NumberC;
|
|
169
|
+
}>]>;
|
|
170
|
+
trading_name: import("io-ts").StringC;
|
|
171
|
+
}>;
|
|
172
|
+
metadata: import("io-ts").TypeC<{
|
|
173
|
+
liveness: import("io-ts").BooleanC;
|
|
174
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
175
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
176
|
+
}>;
|
|
177
|
+
}>]>;
|
|
178
|
+
};
|
|
179
|
+
readonly default: {
|
|
180
|
+
readonly _tag: "JsonResponse";
|
|
181
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
182
|
+
message: import("io-ts").StringC;
|
|
183
|
+
}>, import("io-ts").PartialC<{
|
|
184
|
+
code: import("io-ts").NumberC;
|
|
185
|
+
}>]>;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly parameters: readonly [{
|
|
189
|
+
readonly _tag: "FormParameter";
|
|
190
|
+
readonly explode: false;
|
|
191
|
+
readonly in: "path";
|
|
192
|
+
readonly name: "id";
|
|
193
|
+
}, {
|
|
194
|
+
readonly _tag: "FormParameter";
|
|
195
|
+
readonly explode: true;
|
|
196
|
+
readonly in: "query";
|
|
197
|
+
readonly name: "reason";
|
|
198
|
+
}];
|
|
199
|
+
readonly requestDefaultHeaders: {
|
|
200
|
+
readonly Accept: "application/json";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
export declare type DeclineCompanyRequestFunction = RequestFunction<{
|
|
204
|
+
params: DeclineCompanyRequestParameters;
|
|
205
|
+
}, schemas.Company>;
|
|
206
|
+
//# sourceMappingURL=declineCompany.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declineCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/declineCompany.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;IACX,MAAM,EACF,eAAe,GACf,YAAY,GACZ,oBAAoB,GACpB,mBAAmB,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB1B,CAAC;AAEX,oBAAY,6BAA6B,GAAG,eAAe,CACzD;IAAE,MAAM,EAAE,+BAA+B,CAAA;CAAE,EAC3C,OAAO,CAAC,OAAO,CAChB,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.declineCompanyOperation = void 0;
|
|
27
|
+
const schemas = __importStar(require("../components/schemas"));
|
|
28
|
+
exports.declineCompanyOperation = {
|
|
29
|
+
path: "/api/company/{id}/decline",
|
|
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
|
+
_tag: "FormParameter",
|
|
44
|
+
explode: true,
|
|
45
|
+
in: "query",
|
|
46
|
+
name: "reason",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
50
|
+
};
|
|
@@ -66,6 +66,12 @@ export declare const deleteCompanyOperation: {
|
|
|
66
66
|
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
67
67
|
}>;
|
|
68
68
|
}>]>;
|
|
69
|
+
contract_agreement: import("io-ts").PartialC<{
|
|
70
|
+
agreed_terms_and_conditions: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
71
|
+
agreed_to_become_iar_of_kanda: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
|
|
72
|
+
print_name: import("io-ts").StringC;
|
|
73
|
+
signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
74
|
+
}>;
|
|
69
75
|
}>]>;
|
|
70
76
|
limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
71
77
|
company_name: import("io-ts").StringC;
|
|
@@ -121,7 +127,7 @@ export declare const deleteCompanyOperation: {
|
|
|
121
127
|
}>>;
|
|
122
128
|
quote_preference: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_preference">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
|
|
123
129
|
skip_deposit: import("io-ts").UnionC<[import("io-ts").LiteralC<"Yes">, import("io-ts").LiteralC<"No">]>;
|
|
124
|
-
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">]>;
|
|
130
|
+
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<"insurance_uploaded">, import("io-ts").LiteralC<"completed_setup">, import("io-ts").LiteralC<"verified">, import("io-ts").LiteralC<"declined">]>;
|
|
125
131
|
billing: import("io-ts").UnionC<[import("io-ts").LiteralC<"legacy">, import("io-ts").LiteralC<"trial">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"referred">, 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">]>;
|
|
126
132
|
referral_code: import("io-ts").StringC;
|
|
127
133
|
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
@@ -160,6 +166,7 @@ export declare const deleteCompanyOperation: {
|
|
|
160
166
|
county: import("io-ts").StringC;
|
|
161
167
|
months_at_address: import("io-ts").NumberC;
|
|
162
168
|
}>]>;
|
|
169
|
+
trading_name: import("io-ts").StringC;
|
|
163
170
|
}>;
|
|
164
171
|
metadata: import("io-ts").TypeC<{
|
|
165
172
|
liveness: import("io-ts").BooleanC;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/deleteCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,8BAA8B,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"deleteCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/deleteCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,8BAA8B,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBzB,CAAC;AAEX,oBAAY,4BAA4B,GAAG,eAAe,CACxD;IAAE,MAAM,EAAE,8BAA8B,CAAA;CAAE,EAC1C,OAAO,CAAC,OAAO,CAChB,CAAC"}
|
|
@@ -26,28 +26,6 @@ export declare const deleteSubscriptionOperation: {
|
|
|
26
26
|
}>, import("io-ts").PartialC<{
|
|
27
27
|
currency: import("io-ts").LiteralC<"GBP">;
|
|
28
28
|
}>]>;
|
|
29
|
-
events: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
30
|
-
id: import("io-ts").StringC;
|
|
31
|
-
cid: import("io-ts").StringC;
|
|
32
|
-
oid: import("io-ts").StringC;
|
|
33
|
-
resource: import("io-ts").StringC;
|
|
34
|
-
action: import("io-ts").StringC;
|
|
35
|
-
source: import("io-ts").UnionC<[import("io-ts").LiteralC<"api">, import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"webhook">]>;
|
|
36
|
-
result: import("io-ts").StringC;
|
|
37
|
-
}>, import("io-ts").PartialC<{
|
|
38
|
-
aid: import("io-ts").StringC;
|
|
39
|
-
resource_id: import("io-ts").StringC;
|
|
40
|
-
error: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
41
|
-
message: import("io-ts").StringC;
|
|
42
|
-
}>, import("io-ts").PartialC<{
|
|
43
|
-
code: import("io-ts").NumberC;
|
|
44
|
-
}>]>;
|
|
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
29
|
xid: import("io-ts").StringC;
|
|
52
30
|
xref: import("io-ts").StringC;
|
|
53
31
|
metadata: import("io-ts").TypeC<{
|