@kanda-libs/ks-schema 1.0.93 → 1.0.94
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 +2 -0
- package/dist/components/schemas/Company.d.ts.map +1 -1
- package/dist/components/schemas/Company.js +11 -0
- package/dist/components/schemas/Event.d.ts +39 -0
- package/dist/components/schemas/Event.d.ts.map +1 -0
- package/dist/components/schemas/Event.js +50 -0
- package/dist/components/schemas/Subscription.d.ts +70 -0
- package/dist/components/schemas/Subscription.d.ts.map +1 -0
- package/dist/components/schemas/Subscription.js +48 -0
- package/dist/components/schemas/index.d.ts +2 -0
- package/dist/components/schemas/index.d.ts.map +1 -1
- package/dist/components/schemas/index.js +2 -0
- package/dist/operations/approveCompany.d.ts +1 -0
- package/dist/operations/approveCompany.d.ts.map +1 -1
- package/dist/operations/deleteCompany.d.ts +1 -0
- package/dist/operations/deleteCompany.d.ts.map +1 -1
- package/dist/operations/deleteSubscription.d.ts +82 -0
- package/dist/operations/deleteSubscription.d.ts.map +1 -0
- package/dist/operations/deleteSubscription.js +44 -0
- package/dist/operations/getCompanies.d.ts +1 -0
- package/dist/operations/getCompanies.d.ts.map +1 -1
- package/dist/operations/getCompany.d.ts +1 -0
- package/dist/operations/getCompany.d.ts.map +1 -1
- package/dist/operations/getSubscription.d.ts +82 -0
- package/dist/operations/getSubscription.d.ts.map +1 -0
- package/dist/operations/getSubscription.js +44 -0
- package/dist/operations/getSubscriptions.d.ts +73 -0
- package/dist/operations/getSubscriptions.d.ts.map +1 -0
- package/dist/operations/getSubscriptions.js +38 -0
- package/dist/operations/index.d.ts +386 -0
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +24 -1
- package/dist/operations/postCompany.d.ts +1 -0
- package/dist/operations/postCompany.d.ts.map +1 -1
- package/dist/operations/postSubscription.d.ts +78 -0
- package/dist/operations/postSubscription.d.ts.map +1 -0
- package/dist/operations/postSubscription.js +43 -0
- package/dist/operations/providerWebhook.d.ts +1 -1
- package/dist/operations/providerWebhook.d.ts.map +1 -1
- package/dist/operations/putCompany.d.ts +1 -0
- package/dist/operations/putCompany.d.ts.map +1 -1
- package/dist/operations/putSubscription.d.ts +87 -0
- package/dist/operations/putSubscription.d.ts.map +1 -0
- package/dist/operations/putSubscription.js +50 -0
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +2692 -2252
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +5499 -5030
- package/package.json +1 -1
- package/schema.yaml +293 -2
|
@@ -120,6 +120,7 @@ export declare const Company: t.IntersectionC<[t.TypeC<{
|
|
|
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
122
|
lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
|
|
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">]>;
|
|
123
124
|
company_logo: t.IntersectionC<[t.TypeC<{
|
|
124
125
|
name: t.StringC;
|
|
125
126
|
}>, t.PartialC<{
|
|
@@ -178,6 +179,7 @@ export interface Company {
|
|
|
178
179
|
quote_preference?: "no_preference" | "kanda" | "custom";
|
|
179
180
|
skip_deposit?: "Yes" | "No";
|
|
180
181
|
lifecycle?: "registered" | "onboarded" | "completed_setup" | "verified";
|
|
182
|
+
billing?: "legacy" | "trial" | "pending" | "subscribed" | "recurring_payment_failed_1" | "recurring_payment_failed_2" | "recurring_payment_failed_3" | "suspended" | "cancelled";
|
|
181
183
|
company_logo?: Document;
|
|
182
184
|
bank_account?: BankAccount;
|
|
183
185
|
contact_info?: ContactInfo;
|
|
@@ -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
|
|
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"}
|
|
@@ -64,6 +64,17 @@ exports.Company = t.intersection([
|
|
|
64
64
|
t.literal("completed_setup"),
|
|
65
65
|
t.literal("verified"),
|
|
66
66
|
]),
|
|
67
|
+
billing: t.union([
|
|
68
|
+
t.literal("legacy"),
|
|
69
|
+
t.literal("trial"),
|
|
70
|
+
t.literal("pending"),
|
|
71
|
+
t.literal("subscribed"),
|
|
72
|
+
t.literal("recurring_payment_failed_1"),
|
|
73
|
+
t.literal("recurring_payment_failed_2"),
|
|
74
|
+
t.literal("recurring_payment_failed_3"),
|
|
75
|
+
t.literal("suspended"),
|
|
76
|
+
t.literal("cancelled"),
|
|
77
|
+
]),
|
|
67
78
|
company_logo: Document_1.Document,
|
|
68
79
|
bank_account: BankAccount_1.BankAccount,
|
|
69
80
|
contact_info: ContactInfo_1.ContactInfo,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Error } from "./Error";
|
|
3
|
+
import { Metadata } from "./Metadata";
|
|
4
|
+
export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
5
|
+
id: t.StringC;
|
|
6
|
+
cid: t.StringC;
|
|
7
|
+
oid: t.StringC;
|
|
8
|
+
resource: t.StringC;
|
|
9
|
+
action: t.StringC;
|
|
10
|
+
source: t.UnionC<[t.LiteralC<"api">, t.LiteralC<"kanda">, t.LiteralC<"webhook">]>;
|
|
11
|
+
result: t.StringC;
|
|
12
|
+
}>, t.PartialC<{
|
|
13
|
+
aid: t.StringC;
|
|
14
|
+
resource_id: t.StringC;
|
|
15
|
+
error: t.IntersectionC<[t.TypeC<{
|
|
16
|
+
message: t.StringC;
|
|
17
|
+
}>, t.PartialC<{
|
|
18
|
+
code: t.NumberC;
|
|
19
|
+
}>]>;
|
|
20
|
+
metadata: t.TypeC<{
|
|
21
|
+
liveness: t.BooleanC;
|
|
22
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
23
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
24
|
+
}>;
|
|
25
|
+
}>]>;
|
|
26
|
+
export interface Event {
|
|
27
|
+
id: string;
|
|
28
|
+
cid: string;
|
|
29
|
+
oid: string;
|
|
30
|
+
aid?: string;
|
|
31
|
+
resource: string;
|
|
32
|
+
resource_id?: string;
|
|
33
|
+
action: string;
|
|
34
|
+
source: "api" | "kanda" | "webhook";
|
|
35
|
+
result: string;
|
|
36
|
+
error?: Error;
|
|
37
|
+
metadata?: Metadata;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=Event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;IAoBhB,CAAC;AAEH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -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.Event = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const Error_1 = require("./Error");
|
|
29
|
+
const Metadata_1 = require("./Metadata");
|
|
30
|
+
exports.Event = t.intersection([
|
|
31
|
+
t.type({
|
|
32
|
+
id: t.string,
|
|
33
|
+
cid: t.string,
|
|
34
|
+
oid: t.string,
|
|
35
|
+
resource: t.string,
|
|
36
|
+
action: t.string,
|
|
37
|
+
source: t.union([
|
|
38
|
+
t.literal("api"),
|
|
39
|
+
t.literal("kanda"),
|
|
40
|
+
t.literal("webhook"),
|
|
41
|
+
]),
|
|
42
|
+
result: t.string,
|
|
43
|
+
}),
|
|
44
|
+
t.partial({
|
|
45
|
+
aid: t.string,
|
|
46
|
+
resource_id: t.string,
|
|
47
|
+
error: Error_1.Error,
|
|
48
|
+
metadata: Metadata_1.Metadata,
|
|
49
|
+
}),
|
|
50
|
+
]);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Event } from "./Event";
|
|
3
|
+
import { Metadata } from "./Metadata";
|
|
4
|
+
import { Money } from "./Money";
|
|
5
|
+
export declare const Subscription: t.PartialC<{
|
|
6
|
+
id: t.StringC;
|
|
7
|
+
cid: t.StringC;
|
|
8
|
+
oid: t.StringC;
|
|
9
|
+
aid: t.StringC;
|
|
10
|
+
billing: t.StringC;
|
|
11
|
+
billing_status: t.StringC;
|
|
12
|
+
mandate: t.StringC;
|
|
13
|
+
mandate_status: t.StringC;
|
|
14
|
+
authorisation_url: t.StringC;
|
|
15
|
+
interval: t.UnionC<[t.LiteralC<"monthly">, t.LiteralC<"yearly">]>;
|
|
16
|
+
day_of_month: t.NumberC;
|
|
17
|
+
amount: t.IntersectionC<[t.TypeC<{
|
|
18
|
+
amount: t.NumberC;
|
|
19
|
+
}>, t.PartialC<{
|
|
20
|
+
currency: t.LiteralC<"GBP">;
|
|
21
|
+
}>]>;
|
|
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
|
+
xid: t.StringC;
|
|
45
|
+
xref: t.StringC;
|
|
46
|
+
metadata: t.TypeC<{
|
|
47
|
+
liveness: t.BooleanC;
|
|
48
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
49
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
50
|
+
}>;
|
|
51
|
+
}>;
|
|
52
|
+
export interface Subscription {
|
|
53
|
+
id?: string;
|
|
54
|
+
cid?: string;
|
|
55
|
+
oid?: string;
|
|
56
|
+
aid?: string;
|
|
57
|
+
billing?: string;
|
|
58
|
+
billing_status?: string;
|
|
59
|
+
mandate?: string;
|
|
60
|
+
mandate_status?: string;
|
|
61
|
+
authorisation_url?: string;
|
|
62
|
+
interval?: "monthly" | "yearly";
|
|
63
|
+
day_of_month?: number;
|
|
64
|
+
amount?: Money;
|
|
65
|
+
events?: Array<Event>;
|
|
66
|
+
xid?: string;
|
|
67
|
+
xref?: string;
|
|
68
|
+
metadata?: Metadata;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=Subscription.d.ts.map
|
|
@@ -0,0 +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,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBvB,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,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.Subscription = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const Event_1 = require("./Event");
|
|
29
|
+
const Metadata_1 = require("./Metadata");
|
|
30
|
+
const Money_1 = require("./Money");
|
|
31
|
+
exports.Subscription = t.partial({
|
|
32
|
+
id: t.string,
|
|
33
|
+
cid: t.string,
|
|
34
|
+
oid: t.string,
|
|
35
|
+
aid: t.string,
|
|
36
|
+
billing: t.string,
|
|
37
|
+
billing_status: t.string,
|
|
38
|
+
mandate: t.string,
|
|
39
|
+
mandate_status: t.string,
|
|
40
|
+
authorisation_url: t.string,
|
|
41
|
+
interval: t.union([t.literal("monthly"), t.literal("yearly")]),
|
|
42
|
+
day_of_month: t.number,
|
|
43
|
+
amount: Money_1.Money,
|
|
44
|
+
events: t.array(Event_1.Event),
|
|
45
|
+
xid: t.string,
|
|
46
|
+
xref: t.string,
|
|
47
|
+
metadata: Metadata_1.Metadata,
|
|
48
|
+
});
|
|
@@ -15,6 +15,7 @@ export * from "./Document";
|
|
|
15
15
|
export * from "./EmployedDetails";
|
|
16
16
|
export * from "./EmploymentDetails";
|
|
17
17
|
export * from "./Error";
|
|
18
|
+
export * from "./Event";
|
|
18
19
|
export * from "./FinanceStatus";
|
|
19
20
|
export * from "./InfoAuth";
|
|
20
21
|
export * from "./InfoCompany";
|
|
@@ -37,5 +38,6 @@ export * from "./SelfEmployedDetails";
|
|
|
37
38
|
export * from "./Signature";
|
|
38
39
|
export * from "./SignDocument";
|
|
39
40
|
export * from "./SoleTraderInfo";
|
|
41
|
+
export * from "./Subscription";
|
|
40
42
|
export * from "./UserType";
|
|
41
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
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,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./Document"), exports);
|
|
|
31
31
|
__exportStar(require("./EmployedDetails"), exports);
|
|
32
32
|
__exportStar(require("./EmploymentDetails"), exports);
|
|
33
33
|
__exportStar(require("./Error"), exports);
|
|
34
|
+
__exportStar(require("./Event"), exports);
|
|
34
35
|
__exportStar(require("./FinanceStatus"), exports);
|
|
35
36
|
__exportStar(require("./InfoAuth"), exports);
|
|
36
37
|
__exportStar(require("./InfoCompany"), exports);
|
|
@@ -53,4 +54,5 @@ __exportStar(require("./SelfEmployedDetails"), exports);
|
|
|
53
54
|
__exportStar(require("./Signature"), exports);
|
|
54
55
|
__exportStar(require("./SignDocument"), exports);
|
|
55
56
|
__exportStar(require("./SoleTraderInfo"), exports);
|
|
57
|
+
__exportStar(require("./Subscription"), exports);
|
|
56
58
|
__exportStar(require("./UserType"), exports);
|
|
@@ -121,6 +121,7 @@ export declare const approveCompanyOperation: {
|
|
|
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
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">]>;
|
|
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">]>;
|
|
124
125
|
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
125
126
|
name: import("io-ts").StringC;
|
|
126
127
|
}>, import("io-ts").PartialC<{
|
|
@@ -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"}
|
|
@@ -121,6 +121,7 @@ export declare const deleteCompanyOperation: {
|
|
|
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
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">]>;
|
|
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">]>;
|
|
124
125
|
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
125
126
|
name: import("io-ts").StringC;
|
|
126
127
|
}>, import("io-ts").PartialC<{
|
|
@@ -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"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
export declare type DeleteSubscriptionRequestParameters = {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const deleteSubscriptionOperation: {
|
|
7
|
+
readonly path: "/api/subscription/{id}";
|
|
8
|
+
readonly method: "delete";
|
|
9
|
+
readonly responses: {
|
|
10
|
+
readonly "200": {
|
|
11
|
+
readonly _tag: "JsonResponse";
|
|
12
|
+
readonly decoder: import("io-ts").PartialC<{
|
|
13
|
+
id: import("io-ts").StringC;
|
|
14
|
+
cid: import("io-ts").StringC;
|
|
15
|
+
oid: import("io-ts").StringC;
|
|
16
|
+
aid: import("io-ts").StringC;
|
|
17
|
+
billing: import("io-ts").StringC;
|
|
18
|
+
billing_status: import("io-ts").StringC;
|
|
19
|
+
mandate: import("io-ts").StringC;
|
|
20
|
+
mandate_status: import("io-ts").StringC;
|
|
21
|
+
authorisation_url: import("io-ts").StringC;
|
|
22
|
+
interval: import("io-ts").UnionC<[import("io-ts").LiteralC<"monthly">, import("io-ts").LiteralC<"yearly">]>;
|
|
23
|
+
day_of_month: import("io-ts").NumberC;
|
|
24
|
+
amount: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
25
|
+
amount: import("io-ts").NumberC;
|
|
26
|
+
}>, import("io-ts").PartialC<{
|
|
27
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
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
|
+
xid: import("io-ts").StringC;
|
|
52
|
+
xref: import("io-ts").StringC;
|
|
53
|
+
metadata: import("io-ts").TypeC<{
|
|
54
|
+
liveness: import("io-ts").BooleanC;
|
|
55
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
56
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
57
|
+
}>;
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
readonly default: {
|
|
61
|
+
readonly _tag: "JsonResponse";
|
|
62
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
63
|
+
message: import("io-ts").StringC;
|
|
64
|
+
}>, import("io-ts").PartialC<{
|
|
65
|
+
code: import("io-ts").NumberC;
|
|
66
|
+
}>]>;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly parameters: readonly [{
|
|
70
|
+
readonly _tag: "FormParameter";
|
|
71
|
+
readonly explode: false;
|
|
72
|
+
readonly in: "path";
|
|
73
|
+
readonly name: "id";
|
|
74
|
+
}];
|
|
75
|
+
readonly requestDefaultHeaders: {
|
|
76
|
+
readonly Accept: "application/json";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare type DeleteSubscriptionRequestFunction = RequestFunction<{
|
|
80
|
+
params: DeleteSubscriptionRequestParameters;
|
|
81
|
+
}, schemas.Subscription>;
|
|
82
|
+
//# sourceMappingURL=deleteSubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSubscription.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/deleteSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB9B,CAAC;AAEX,oBAAY,iCAAiC,GAAG,eAAe,CAC7D;IAAE,MAAM,EAAE,mCAAmC,CAAA;CAAE,EAC/C,OAAO,CAAC,YAAY,CACrB,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.deleteSubscriptionOperation = void 0;
|
|
27
|
+
const schemas = __importStar(require("../components/schemas"));
|
|
28
|
+
exports.deleteSubscriptionOperation = {
|
|
29
|
+
path: "/api/subscription/{id}",
|
|
30
|
+
method: "delete",
|
|
31
|
+
responses: {
|
|
32
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Subscription },
|
|
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
|
+
};
|
|
@@ -119,6 +119,7 @@ export declare const getCompaniesOperation: {
|
|
|
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
121
|
lifecycle: t.UnionC<[t.LiteralC<"registered">, t.LiteralC<"onboarded">, t.LiteralC<"completed_setup">, t.LiteralC<"verified">]>;
|
|
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">]>;
|
|
122
123
|
company_logo: t.IntersectionC<[t.TypeC<{
|
|
123
124
|
name: t.StringC;
|
|
124
125
|
}>, t.PartialC<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCompanies.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getCompanies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"getCompanies.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getCompanies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASxB,CAAC;AAEX,oBAAY,2BAA2B,GAAG,eAAe,CACvD,SAAS,EACT,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CACvB,CAAC"}
|
|
@@ -121,6 +121,7 @@ export declare const getCompanyOperation: {
|
|
|
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
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">]>;
|
|
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">]>;
|
|
124
125
|
company_logo: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
125
126
|
name: import("io-ts").StringC;
|
|
126
127
|
}>, import("io-ts").PartialC<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"getCompany.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getCompany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBtB,CAAC;AAEX,oBAAY,yBAAyB,GAAG,eAAe,CACrD;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,EACvC,OAAO,CAAC,OAAO,CAChB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
export declare type GetSubscriptionRequestParameters = {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getSubscriptionOperation: {
|
|
7
|
+
readonly path: "/api/subscription/{id}";
|
|
8
|
+
readonly method: "get";
|
|
9
|
+
readonly responses: {
|
|
10
|
+
readonly "200": {
|
|
11
|
+
readonly _tag: "JsonResponse";
|
|
12
|
+
readonly decoder: import("io-ts").PartialC<{
|
|
13
|
+
id: import("io-ts").StringC;
|
|
14
|
+
cid: import("io-ts").StringC;
|
|
15
|
+
oid: import("io-ts").StringC;
|
|
16
|
+
aid: import("io-ts").StringC;
|
|
17
|
+
billing: import("io-ts").StringC;
|
|
18
|
+
billing_status: import("io-ts").StringC;
|
|
19
|
+
mandate: import("io-ts").StringC;
|
|
20
|
+
mandate_status: import("io-ts").StringC;
|
|
21
|
+
authorisation_url: import("io-ts").StringC;
|
|
22
|
+
interval: import("io-ts").UnionC<[import("io-ts").LiteralC<"monthly">, import("io-ts").LiteralC<"yearly">]>;
|
|
23
|
+
day_of_month: import("io-ts").NumberC;
|
|
24
|
+
amount: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
25
|
+
amount: import("io-ts").NumberC;
|
|
26
|
+
}>, import("io-ts").PartialC<{
|
|
27
|
+
currency: import("io-ts").LiteralC<"GBP">;
|
|
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
|
+
xid: import("io-ts").StringC;
|
|
52
|
+
xref: import("io-ts").StringC;
|
|
53
|
+
metadata: import("io-ts").TypeC<{
|
|
54
|
+
liveness: import("io-ts").BooleanC;
|
|
55
|
+
created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
56
|
+
updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
|
|
57
|
+
}>;
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
readonly default: {
|
|
61
|
+
readonly _tag: "JsonResponse";
|
|
62
|
+
readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
|
|
63
|
+
message: import("io-ts").StringC;
|
|
64
|
+
}>, import("io-ts").PartialC<{
|
|
65
|
+
code: import("io-ts").NumberC;
|
|
66
|
+
}>]>;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly parameters: readonly [{
|
|
70
|
+
readonly _tag: "FormParameter";
|
|
71
|
+
readonly explode: false;
|
|
72
|
+
readonly in: "path";
|
|
73
|
+
readonly name: "id";
|
|
74
|
+
}];
|
|
75
|
+
readonly requestDefaultHeaders: {
|
|
76
|
+
readonly Accept: "application/json";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare type GetSubscriptionRequestFunction = RequestFunction<{
|
|
80
|
+
params: GetSubscriptionRequestParameters;
|
|
81
|
+
}, schemas.Subscription>;
|
|
82
|
+
//# sourceMappingURL=getSubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSubscription.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getSubscription.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,YAAY,CACrB,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.getSubscriptionOperation = void 0;
|
|
27
|
+
const schemas = __importStar(require("../components/schemas"));
|
|
28
|
+
exports.getSubscriptionOperation = {
|
|
29
|
+
path: "/api/subscription/{id}",
|
|
30
|
+
method: "get",
|
|
31
|
+
responses: {
|
|
32
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Subscription },
|
|
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
|
+
};
|