@kanda-libs/ks-component-ts 0.2.373 → 0.2.375
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/index.d.ts +13449 -13449
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/FinanceStatus.ts +2 -0
- package/src/generated/components/schemas/JobOverride.ts +0 -2
- package/src/generated/operations/delayJobSatNote.ts +29 -0
- package/src/generated/operations/index.ts +24 -0
- package/src/generated/operations/lenderReviewJobSatNote.ts +29 -0
- package/src/generated/widget/index.tsx +60095 -60100
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export const FinanceStatus = t.union([
|
|
|
10
10
|
t.literal("sat_note_viewed"),
|
|
11
11
|
t.literal("sat_note_signed"),
|
|
12
12
|
t.literal("sat_note_delayed"),
|
|
13
|
+
t.literal("sat_note_lender_review"),
|
|
13
14
|
t.literal("payout_pending"),
|
|
14
15
|
t.literal("paid"),
|
|
15
16
|
t.literal("finance_cancelled"),
|
|
@@ -25,6 +26,7 @@ export type FinanceStatus =
|
|
|
25
26
|
| "sat_note_viewed"
|
|
26
27
|
| "sat_note_signed"
|
|
27
28
|
| "sat_note_delayed"
|
|
29
|
+
| "sat_note_lender_review"
|
|
28
30
|
| "payout_pending"
|
|
29
31
|
| "paid"
|
|
30
32
|
| "finance_cancelled";
|
|
@@ -4,7 +4,6 @@ import { CustomerOptions } from "./CustomerOptions";
|
|
|
4
4
|
export const JobOverride = t.intersection([
|
|
5
5
|
t.type({
|
|
6
6
|
action: t.union([
|
|
7
|
-
t.literal("mark_job_as_sat_note_delayed"),
|
|
8
7
|
t.literal("mark_job_as_pending"),
|
|
9
8
|
t.literal("mark_job_as_referred"),
|
|
10
9
|
t.literal("mark_job_as_action_customer"),
|
|
@@ -21,7 +20,6 @@ export const JobOverride = t.intersection([
|
|
|
21
20
|
|
|
22
21
|
export interface JobOverride {
|
|
23
22
|
action:
|
|
24
|
-
| "mark_job_as_sat_note_delayed"
|
|
25
23
|
| "mark_job_as_pending"
|
|
26
24
|
| "mark_job_as_referred"
|
|
27
25
|
| "mark_job_as_action_customer"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type DelayJobSatNoteRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const delayJobSatNoteOperation = {
|
|
9
|
+
path: "/api/job/{id}/delay",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Job },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "id",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type DelayJobSatNoteRequestFunction = RequestFunction<
|
|
27
|
+
{ params: DelayJobSatNoteRequestParameters },
|
|
28
|
+
schemas.Job
|
|
29
|
+
>;
|
|
@@ -42,6 +42,10 @@ import {
|
|
|
42
42
|
declineCompanyOperation,
|
|
43
43
|
DeclineCompanyRequestFunction,
|
|
44
44
|
} from "./declineCompany";
|
|
45
|
+
import {
|
|
46
|
+
delayJobSatNoteOperation,
|
|
47
|
+
DelayJobSatNoteRequestFunction,
|
|
48
|
+
} from "./delayJobSatNote";
|
|
45
49
|
import {
|
|
46
50
|
deleteCompanyOperation,
|
|
47
51
|
DeleteCompanyRequestFunction,
|
|
@@ -259,6 +263,10 @@ import {
|
|
|
259
263
|
jobCompanyInfoOperation,
|
|
260
264
|
JobCompanyInfoRequestFunction,
|
|
261
265
|
} from "./jobCompanyInfo";
|
|
266
|
+
import {
|
|
267
|
+
lenderReviewJobSatNoteOperation,
|
|
268
|
+
LenderReviewJobSatNoteRequestFunction,
|
|
269
|
+
} from "./lenderReviewJobSatNote";
|
|
262
270
|
import {
|
|
263
271
|
markPaymentOperation,
|
|
264
272
|
MarkPaymentRequestFunction,
|
|
@@ -507,6 +515,8 @@ export const operations: Operations = {
|
|
|
507
515
|
viewJobSatNote: viewJobSatNoteOperation,
|
|
508
516
|
signJobSateNote: signJobSateNoteOperation,
|
|
509
517
|
approveJobSatNote: approveJobSatNoteOperation,
|
|
518
|
+
lenderReviewJobSatNote: lenderReviewJobSatNoteOperation,
|
|
519
|
+
delayJobSatNote: delayJobSatNoteOperation,
|
|
510
520
|
payoutJob: payoutJobOperation,
|
|
511
521
|
payoutsJob: payoutsJobOperation,
|
|
512
522
|
overrideJob: overrideJobOperation,
|
|
@@ -658,6 +668,8 @@ export interface OperationRequestFunctionMap {
|
|
|
658
668
|
viewJobSatNote: ViewJobSatNoteRequestFunction;
|
|
659
669
|
signJobSateNote: SignJobSateNoteRequestFunction;
|
|
660
670
|
approveJobSatNote: ApproveJobSatNoteRequestFunction;
|
|
671
|
+
lenderReviewJobSatNote: LenderReviewJobSatNoteRequestFunction;
|
|
672
|
+
delayJobSatNote: DelayJobSatNoteRequestFunction;
|
|
661
673
|
payoutJob: PayoutJobRequestFunction;
|
|
662
674
|
payoutsJob: PayoutsJobRequestFunction;
|
|
663
675
|
overrideJob: OverrideJobRequestFunction;
|
|
@@ -928,6 +940,14 @@ export const requestFunctionsBuilder = (
|
|
|
928
940
|
operations.approveJobSatNote,
|
|
929
941
|
requestAdapter
|
|
930
942
|
),
|
|
943
|
+
lenderReviewJobSatNote: requestFunctionBuilder(
|
|
944
|
+
operations.lenderReviewJobSatNote,
|
|
945
|
+
requestAdapter
|
|
946
|
+
),
|
|
947
|
+
delayJobSatNote: requestFunctionBuilder(
|
|
948
|
+
operations.delayJobSatNote,
|
|
949
|
+
requestAdapter
|
|
950
|
+
),
|
|
931
951
|
payoutJob: requestFunctionBuilder(operations.payoutJob, requestAdapter),
|
|
932
952
|
payoutsJob: requestFunctionBuilder(operations.payoutsJob, requestAdapter),
|
|
933
953
|
overrideJob: requestFunctionBuilder(operations.overrideJob, requestAdapter),
|
|
@@ -1134,6 +1154,8 @@ export const jobServiceBuilder = (
|
|
|
1134
1154
|
viewJobSatNote: requestFunctions.viewJobSatNote,
|
|
1135
1155
|
signJobSateNote: requestFunctions.signJobSateNote,
|
|
1136
1156
|
approveJobSatNote: requestFunctions.approveJobSatNote,
|
|
1157
|
+
lenderReviewJobSatNote: requestFunctions.lenderReviewJobSatNote,
|
|
1158
|
+
delayJobSatNote: requestFunctions.delayJobSatNote,
|
|
1137
1159
|
payoutJob: requestFunctions.payoutJob,
|
|
1138
1160
|
payoutsJob: requestFunctions.payoutsJob,
|
|
1139
1161
|
overrideJob: requestFunctions.overrideJob,
|
|
@@ -1469,6 +1491,8 @@ export interface Operations {
|
|
|
1469
1491
|
viewJobSatNote: typeof viewJobSatNoteOperation;
|
|
1470
1492
|
signJobSateNote: typeof signJobSateNoteOperation;
|
|
1471
1493
|
approveJobSatNote: typeof approveJobSatNoteOperation;
|
|
1494
|
+
lenderReviewJobSatNote: typeof lenderReviewJobSatNoteOperation;
|
|
1495
|
+
delayJobSatNote: typeof delayJobSatNoteOperation;
|
|
1472
1496
|
payoutJob: typeof payoutJobOperation;
|
|
1473
1497
|
payoutsJob: typeof payoutsJobOperation;
|
|
1474
1498
|
overrideJob: typeof overrideJobOperation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type LenderReviewJobSatNoteRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const lenderReviewJobSatNoteOperation = {
|
|
9
|
+
path: "/api/job/{id}/lender-review",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Job },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "id",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type LenderReviewJobSatNoteRequestFunction = RequestFunction<
|
|
27
|
+
{ params: LenderReviewJobSatNoteRequestParameters },
|
|
28
|
+
schemas.Job
|
|
29
|
+
>;
|