@kanda-libs/ks-schema 1.0.105 → 1.0.107

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.
@@ -0,0 +1,196 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+ export declare type ResendJobRequestParameters = {
4
+ id: string;
5
+ };
6
+ export declare const resendJobOperation: {
7
+ readonly path: "/api/job/{id}/resend";
8
+ readonly method: "post";
9
+ readonly responses: {
10
+ readonly "200": {
11
+ readonly _tag: "JsonResponse";
12
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
13
+ title: import("io-ts").StringC;
14
+ deposit_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"no_deposit">, import("io-ts").LiteralC<"partial_deposit">, import("io-ts").LiteralC<"fixed_deposit">]>;
15
+ deposit_value: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
16
+ amount: import("io-ts").NumberC;
17
+ }>, import("io-ts").PartialC<{
18
+ currency: import("io-ts").LiteralC<"GBP">;
19
+ }>]>;
20
+ job_items: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
21
+ title: import("io-ts").StringC;
22
+ quantity: import("io-ts").NumberC;
23
+ price: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
24
+ amount: import("io-ts").NumberC;
25
+ }>, import("io-ts").PartialC<{
26
+ currency: import("io-ts").LiteralC<"GBP">;
27
+ }>]>;
28
+ vat: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
29
+ amount: import("io-ts").NumberC;
30
+ }>, import("io-ts").PartialC<{
31
+ currency: import("io-ts").LiteralC<"GBP">;
32
+ }>]>;
33
+ }>, import("io-ts").PartialC<{
34
+ description: import("io-ts").StringC;
35
+ vat_rate: import("io-ts").UnionC<[import("io-ts").LiteralC<"vat_not_set">, import("io-ts").LiteralC<"exempted">, import("io-ts").LiteralC<"0%">, import("io-ts").LiteralC<"5%">, import("io-ts").LiteralC<"20%">, import("io-ts").LiteralC<"custom">]>;
36
+ quote_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
37
+ name: import("io-ts").StringC;
38
+ }>, import("io-ts").PartialC<{
39
+ id: import("io-ts").StringC;
40
+ cid: import("io-ts").StringC;
41
+ oid: import("io-ts").StringC;
42
+ aid: import("io-ts").StringC;
43
+ content: import("io-ts").StringC;
44
+ mimetype: import("io-ts").StringC;
45
+ metadata: import("io-ts").TypeC<{
46
+ liveness: import("io-ts").BooleanC;
47
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
48
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
49
+ }>;
50
+ }>]>;
51
+ style: import("io-ts").UnionC<[import("io-ts").LiteralC<"kanda">, import("io-ts").LiteralC<"custom">]>;
52
+ }>]>>;
53
+ }>, import("io-ts").PartialC<{
54
+ id: import("io-ts").StringC;
55
+ cid: import("io-ts").StringC;
56
+ oid: import("io-ts").StringC;
57
+ aid: import("io-ts").StringC;
58
+ description: import("io-ts").StringC;
59
+ customer: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
60
+ first_name: import("io-ts").StringC;
61
+ last_name: import("io-ts").StringC;
62
+ email: import("io-ts").StringC;
63
+ phone: import("io-ts").StringC;
64
+ }>, import("io-ts").PartialC<{
65
+ address: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
66
+ line_1: import("io-ts").StringC;
67
+ city: import("io-ts").StringC;
68
+ country: import("io-ts").StringC;
69
+ postcode: import("io-ts").StringC;
70
+ }>, import("io-ts").PartialC<{
71
+ building_number: import("io-ts").StringC;
72
+ building_name: import("io-ts").StringC;
73
+ line_2: import("io-ts").StringC;
74
+ county: import("io-ts").StringC;
75
+ months_at_address: import("io-ts").NumberC;
76
+ }>]>;
77
+ }>]>;
78
+ total: import("io-ts").PartialC<{
79
+ amount_vat_inclusive: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
80
+ amount: import("io-ts").NumberC;
81
+ }>, import("io-ts").PartialC<{
82
+ currency: import("io-ts").LiteralC<"GBP">;
83
+ }>]>;
84
+ amount_vat_exclusive: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
85
+ amount: import("io-ts").NumberC;
86
+ }>, import("io-ts").PartialC<{
87
+ currency: import("io-ts").LiteralC<"GBP">;
88
+ }>]>;
89
+ amount_vat: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
90
+ amount: import("io-ts").NumberC;
91
+ }>, import("io-ts").PartialC<{
92
+ currency: import("io-ts").LiteralC<"GBP">;
93
+ }>]>;
94
+ }>;
95
+ notes: import("io-ts").ArrayC<import("io-ts").StringC>;
96
+ archived: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
97
+ status: import("io-ts").UnionC<[import("io-ts").LiteralC<"draft">, import("io-ts").LiteralC<"sent">, import("io-ts").LiteralC<"accepted">, import("io-ts").LiteralC<"declined">, import("io-ts").LiteralC<"finished">]>;
98
+ finance_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"not_applied">, import("io-ts").LiteralC<"under_review">, import("io-ts").LiteralC<"applied_for_finance">, import("io-ts").LiteralC<"finance_not_approved">, import("io-ts").LiteralC<"financed">, import("io-ts").LiteralC<"sat_note_sent">, import("io-ts").LiteralC<"sat_note_viewed">, import("io-ts").LiteralC<"sat_note_signed">, import("io-ts").LiteralC<"payout_pending">, import("io-ts").LiteralC<"paid">]>;
99
+ checkout_options: import("io-ts").ArrayC<import("io-ts").UnionC<[import("io-ts").LiteralC<"apply_for_finance">, import("io-ts").LiteralC<"decline_job">, import("io-ts").LiteralC<"pay_on_completion">]>>;
100
+ finance_options: import("io-ts").ArrayC<import("io-ts").StringC>;
101
+ customer_options: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
102
+ checkout_option: import("io-ts").UnionC<[import("io-ts").LiteralC<"apply_for_finance">, import("io-ts").LiteralC<"decline_job">, import("io-ts").LiteralC<"pay_on_completion">]>;
103
+ finance_option: import("io-ts").StringC;
104
+ }>, import("io-ts").PartialC<{
105
+ deposit_value: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
106
+ amount: import("io-ts").NumberC;
107
+ }>, import("io-ts").PartialC<{
108
+ currency: import("io-ts").LiteralC<"GBP">;
109
+ }>]>;
110
+ }>]>;
111
+ payments: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
112
+ payment_option: import("io-ts").TypeC<{
113
+ payment_method: import("io-ts").UnionC<[import("io-ts").LiteralC<"cash">, import("io-ts").LiteralC<"card">, import("io-ts").LiteralC<"loan">]>;
114
+ amount: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
115
+ amount: import("io-ts").NumberC;
116
+ }>, import("io-ts").PartialC<{
117
+ currency: import("io-ts").LiteralC<"GBP">;
118
+ }>]>;
119
+ }>;
120
+ }>, import("io-ts").PartialC<{
121
+ id: import("io-ts").StringC;
122
+ cid: import("io-ts").StringC;
123
+ oid: import("io-ts").StringC;
124
+ aid: import("io-ts").StringC;
125
+ kid: import("io-ts").StringC;
126
+ kind: import("io-ts").UnionC<[import("io-ts").LiteralC<"job">, import("io-ts").LiteralC<"charge">]>;
127
+ xid: import("io-ts").StringC;
128
+ xref: import("io-ts").StringC;
129
+ status: import("io-ts").UnionC<[import("io-ts").LiteralC<"unpaid">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"paid">, import("io-ts").LiteralC<"disputed">, import("io-ts").LiteralC<"cancelled">, import("io-ts").LiteralC<"refunded">]>;
130
+ metadata: import("io-ts").TypeC<{
131
+ liveness: import("io-ts").BooleanC;
132
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
133
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
134
+ }>;
135
+ }>]>>;
136
+ sat_note_timeline: import("io-ts").PartialC<{
137
+ sent_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
138
+ viewed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
139
+ signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
140
+ }>;
141
+ sat_note: import("io-ts").TypeC<{
142
+ q_pressure: import("io-ts").UnionC<[import("io-ts").LiteralC<"no">, import("io-ts").LiteralC<"somewhat">, import("io-ts").LiteralC<"yes">]>;
143
+ q_easiness: import("io-ts").UnionC<[import("io-ts").LiteralC<"no">, import("io-ts").LiteralC<"somewhat">, import("io-ts").LiteralC<"yes">]>;
144
+ q_availability: import("io-ts").UnionC<[import("io-ts").LiteralC<"The installer told me when quoting me">, import("io-ts").LiteralC<"I saw it advertised by the installer">, import("io-ts").LiteralC<"I found out when the installer sent me a link via Kanda">]>;
145
+ q_application: import("io-ts").UnionC<[import("io-ts").LiteralC<"I completed the application myself">, import("io-ts").LiteralC<"Someone completed the appliation on my behalf">]>;
146
+ q_advice: import("io-ts").UnionC<[import("io-ts").LiteralC<"They just sent me a link to apply">, import("io-ts").LiteralC<"They told me what rates where available">, import("io-ts").LiteralC<"They helped me work out my potential repayments">, import("io-ts").LiteralC<"They completed the application for me">]>;
147
+ signature: import("io-ts").TypeC<{
148
+ signed: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
149
+ fingerprint: import("io-ts").StringC;
150
+ }>;
151
+ certificate: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
152
+ name: import("io-ts").StringC;
153
+ }>, import("io-ts").PartialC<{
154
+ id: import("io-ts").StringC;
155
+ cid: import("io-ts").StringC;
156
+ oid: import("io-ts").StringC;
157
+ aid: import("io-ts").StringC;
158
+ content: import("io-ts").StringC;
159
+ mimetype: import("io-ts").StringC;
160
+ metadata: import("io-ts").TypeC<{
161
+ liveness: import("io-ts").BooleanC;
162
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
163
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
164
+ }>;
165
+ }>]>;
166
+ }>;
167
+ metadata: import("io-ts").TypeC<{
168
+ liveness: import("io-ts").BooleanC;
169
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
170
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
171
+ }>;
172
+ }>]>;
173
+ };
174
+ readonly default: {
175
+ readonly _tag: "JsonResponse";
176
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
177
+ message: import("io-ts").StringC;
178
+ }>, import("io-ts").PartialC<{
179
+ code: import("io-ts").NumberC;
180
+ }>]>;
181
+ };
182
+ };
183
+ readonly parameters: readonly [{
184
+ readonly _tag: "FormParameter";
185
+ readonly explode: false;
186
+ readonly in: "path";
187
+ readonly name: "id";
188
+ }];
189
+ readonly requestDefaultHeaders: {
190
+ readonly Accept: "application/json";
191
+ };
192
+ };
193
+ export declare type ResendJobRequestFunction = RequestFunction<{
194
+ params: ResendJobRequestParameters;
195
+ }, schemas.Job>;
196
+ //# sourceMappingURL=resendJob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resendJob.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/resendJob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBrB,CAAC;AAEX,oBAAY,wBAAwB,GAAG,eAAe,CACpD;IAAE,MAAM,EAAE,0BAA0B,CAAA;CAAE,EACtC,OAAO,CAAC,GAAG,CACZ,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.resendJobOperation = void 0;
27
+ const schemas = __importStar(require("../components/schemas"));
28
+ exports.resendJobOperation = {
29
+ path: "/api/job/{id}/resend",
30
+ method: "post",
31
+ responses: {
32
+ "200": { _tag: "JsonResponse", decoder: schemas.Job },
33
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
34
+ },
35
+ parameters: [
36
+ {
37
+ _tag: "FormParameter",
38
+ explode: false,
39
+ in: "path",
40
+ name: "id",
41
+ },
42
+ ],
43
+ requestDefaultHeaders: { Accept: "application/json" },
44
+ };
@@ -122,7 +122,7 @@ export declare const signCreditOperation: {
122
122
  provider: import("io-ts").LiteralC<"omni">;
123
123
  xid: import("io-ts").StringC;
124
124
  xref: import("io-ts").StringC;
125
- state: import("io-ts").UnionC<[import("io-ts").LiteralC<"accepted">, import("io-ts").LiteralC<"declined">, import("io-ts").LiteralC<"referred">, import("io-ts").LiteralC<"action_lender">, import("io-ts").LiteralC<"action_customer">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"finished">, import("io-ts").LiteralC<"paid_out">]>;
125
+ state: import("io-ts").UnionC<[import("io-ts").LiteralC<"accepted">, import("io-ts").LiteralC<"declined">, import("io-ts").LiteralC<"referred">, import("io-ts").LiteralC<"action_lender">, import("io-ts").LiteralC<"action_customer">, import("io-ts").LiteralC<"pending">, import("io-ts").LiteralC<"finished">, import("io-ts").LiteralC<"paid_out">, import("io-ts").LiteralC<"cancelled">]>;
126
126
  amount: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
127
127
  amount: import("io-ts").NumberC;
128
128
  }>, import("io-ts").PartialC<{