@kanda-libs/ks-component-ts 0.2.375 → 0.2.376

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.2.375",
3
+ "version": "0.2.376",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -4,6 +4,7 @@ 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"),
7
8
  t.literal("mark_job_as_pending"),
8
9
  t.literal("mark_job_as_referred"),
9
10
  t.literal("mark_job_as_action_customer"),
@@ -20,6 +21,7 @@ export const JobOverride = t.intersection([
20
21
 
21
22
  export interface JobOverride {
22
23
  action:
24
+ | "mark_job_as_sat_note_delayed"
23
25
  | "mark_job_as_pending"
24
26
  | "mark_job_as_referred"
25
27
  | "mark_job_as_action_customer"
@@ -6,7 +6,10 @@ export const WorkType = t.union([
6
6
  t.literal("artificial_grass"),
7
7
  t.literal("bathrooms_supply_and_fitted"),
8
8
  t.literal("bathrooms_supply_only"),
9
+ t.literal("bedrooms_furnitue_custom"),
10
+ t.literal("blinds_awnings_shutters"),
9
11
  t.literal("boiler_swap"),
12
+ t.literal("carpentry"),
10
13
  t.literal("cctv"),
11
14
  t.literal("central_heating_system"),
12
15
  t.literal("conservatory"),
@@ -30,6 +33,7 @@ export const WorkType = t.union([
30
33
  t.literal("kitchens_supply_only"),
31
34
  t.literal("landscaping"),
32
35
  t.literal("loft_boarding"),
36
+ t.literal("loft_conversion"),
33
37
  t.literal("painting_and_decorating"),
34
38
  t.literal("patios"),
35
39
  t.literal("plastering"),
@@ -54,7 +58,10 @@ export type WorkType =
54
58
  | "artificial_grass"
55
59
  | "bathrooms_supply_and_fitted"
56
60
  | "bathrooms_supply_only"
61
+ | "bedrooms_furnitue_custom"
62
+ | "blinds_awnings_shutters"
57
63
  | "boiler_swap"
64
+ | "carpentry"
58
65
  | "cctv"
59
66
  | "central_heating_system"
60
67
  | "conservatory"
@@ -78,6 +85,7 @@ export type WorkType =
78
85
  | "kitchens_supply_only"
79
86
  | "landscaping"
80
87
  | "loft_boarding"
88
+ | "loft_conversion"
81
89
  | "painting_and_decorating"
82
90
  | "patios"
83
91
  | "plastering"
@@ -0,0 +1,30 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type ConsentMigrateCreditRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const consentMigrateCreditOperation = {
9
+ path: "/api/credit/{id}/consent-migrate",
10
+ method: "get",
11
+ responses: {
12
+ "200": { _tag: "JsonResponse", decoder: schemas.Credit },
13
+ "303": { _tag: "EmptyResponse" },
14
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
15
+ },
16
+ parameters: [
17
+ {
18
+ _tag: "FormParameter",
19
+ explode: false,
20
+ in: "path",
21
+ name: "id",
22
+ },
23
+ ],
24
+ requestDefaultHeaders: { Accept: "application/json" },
25
+ } as const;
26
+
27
+ export type ConsentMigrateCreditRequestFunction = RequestFunction<
28
+ { params: ConsentMigrateCreditRequestParameters },
29
+ schemas.Credit
30
+ >;
@@ -38,6 +38,10 @@ import {
38
38
  connectTradesLeadOperation,
39
39
  ConnectTradesLeadRequestFunction,
40
40
  } from "./connectTradesLead";
41
+ import {
42
+ consentMigrateCreditOperation,
43
+ ConsentMigrateCreditRequestFunction,
44
+ } from "./consentMigrateCredit";
41
45
  import {
42
46
  declineCompanyOperation,
43
47
  DeclineCompanyRequestFunction,
@@ -276,6 +280,10 @@ import {
276
280
  MatchTradesLeadRequestFunction,
277
281
  } from "./matchTradesLead";
278
282
  import { meOperation, MeRequestFunction } from "./me";
283
+ import {
284
+ migrateCreditOperation,
285
+ MigrateCreditRequestFunction,
286
+ } from "./migrateCredit";
279
287
  import {
280
288
  overrideJobOperation,
281
289
  OverrideJobRequestFunction,
@@ -537,6 +545,8 @@ export const operations: Operations = {
537
545
  applyCredit: applyCreditOperation,
538
546
  checkCredit: checkCreditOperation,
539
547
  signCredit: signCreditOperation,
548
+ migrateCredit: migrateCreditOperation,
549
+ consentMigrateCredit: consentMigrateCreditOperation,
540
550
  getDocuments: getDocumentsOperation,
541
551
  postDocument: postDocumentOperation,
542
552
  getDocument: getDocumentOperation,
@@ -690,6 +700,8 @@ export interface OperationRequestFunctionMap {
690
700
  applyCredit: ApplyCreditRequestFunction;
691
701
  checkCredit: CheckCreditRequestFunction;
692
702
  signCredit: SignCreditRequestFunction;
703
+ migrateCredit: MigrateCreditRequestFunction;
704
+ consentMigrateCredit: ConsentMigrateCreditRequestFunction;
693
705
  getDocuments: GetDocumentsRequestFunction;
694
706
  postDocument: PostDocumentRequestFunction;
695
707
  getDocument: GetDocumentRequestFunction;
@@ -977,6 +989,14 @@ export const requestFunctionsBuilder = (
977
989
  applyCredit: requestFunctionBuilder(operations.applyCredit, requestAdapter),
978
990
  checkCredit: requestFunctionBuilder(operations.checkCredit, requestAdapter),
979
991
  signCredit: requestFunctionBuilder(operations.signCredit, requestAdapter),
992
+ migrateCredit: requestFunctionBuilder(
993
+ operations.migrateCredit,
994
+ requestAdapter
995
+ ),
996
+ consentMigrateCredit: requestFunctionBuilder(
997
+ operations.consentMigrateCredit,
998
+ requestAdapter
999
+ ),
980
1000
  getDocuments: requestFunctionBuilder(operations.getDocuments, requestAdapter),
981
1001
  postDocument: requestFunctionBuilder(operations.postDocument, requestAdapter),
982
1002
  getDocument: requestFunctionBuilder(operations.getDocument, requestAdapter),
@@ -1176,6 +1196,8 @@ export const creditServiceBuilder = (
1176
1196
  applyCredit: requestFunctions.applyCredit,
1177
1197
  checkCredit: requestFunctions.checkCredit,
1178
1198
  signCredit: requestFunctions.signCredit,
1199
+ migrateCredit: requestFunctions.migrateCredit,
1200
+ consentMigrateCredit: requestFunctions.consentMigrateCredit,
1179
1201
  });
1180
1202
 
1181
1203
  export const infoAuthServiceBuilder = (
@@ -1513,6 +1535,8 @@ export interface Operations {
1513
1535
  applyCredit: typeof applyCreditOperation;
1514
1536
  checkCredit: typeof checkCreditOperation;
1515
1537
  signCredit: typeof signCreditOperation;
1538
+ migrateCredit: typeof migrateCreditOperation;
1539
+ consentMigrateCredit: typeof consentMigrateCreditOperation;
1516
1540
  getDocuments: typeof getDocumentsOperation;
1517
1541
  postDocument: typeof postDocumentOperation;
1518
1542
  getDocument: typeof getDocumentOperation;
@@ -0,0 +1,29 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type MigrateCreditRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const migrateCreditOperation = {
9
+ path: "/api/credit/{id}/migrate",
10
+ method: "post",
11
+ responses: {
12
+ "200": { _tag: "JsonResponse", decoder: schemas.Credit },
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 MigrateCreditRequestFunction = RequestFunction<
27
+ { params: MigrateCreditRequestParameters },
28
+ schemas.Credit
29
+ >;