@kanda-libs/ks-component-ts 0.2.389 → 0.2.391

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.389",
3
+ "version": "0.2.391",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -0,0 +1,9 @@
1
+ import * as t from "io-ts";
2
+
3
+ export const JobPayouts = t.type({
4
+ csv: t.string,
5
+ });
6
+
7
+ export interface JobPayouts {
8
+ csv: string;
9
+ }
@@ -65,6 +65,7 @@ export * from "./JobCompanyInfo";
65
65
  export * from "./JobCreditState";
66
66
  export * from "./JobItem";
67
67
  export * from "./JobOverride";
68
+ export * from "./JobPayouts";
68
69
  export * from "./LatLng";
69
70
  export * from "./Lead";
70
71
  export * from "./LeadApplicant";
@@ -0,0 +1,24 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export const exportJobPayoutsOperation = {
5
+ path: "/api/job/all/export-payouts",
6
+ method: "post",
7
+ responses: {
8
+ "200": { _tag: "JsonResponse", decoder: schemas.JobPayouts },
9
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
10
+ },
11
+ parameters: [],
12
+ requestDefaultHeaders: {
13
+ "Content-Type": "application/json",
14
+ Accept: "application/json",
15
+ },
16
+ body: {
17
+ _tag: "JsonBody",
18
+ },
19
+ } as const;
20
+
21
+ export type ExportJobPayoutsRequestFunction = RequestFunction<
22
+ { body: Array<string> },
23
+ schemas.JobPayouts
24
+ >;
@@ -101,6 +101,10 @@ import {
101
101
  directorCompanyOperation,
102
102
  DirectorCompanyRequestFunction,
103
103
  } from "./directorCompany";
104
+ import {
105
+ exportJobPayoutsOperation,
106
+ ExportJobPayoutsRequestFunction,
107
+ } from "./exportJobPayouts";
104
108
  import {
105
109
  getCompaniesOperation,
106
110
  GetCompaniesRequestFunction,
@@ -534,6 +538,7 @@ export const operations: Operations = {
534
538
  overrideJob: overrideJobOperation,
535
539
  jobCheckoutLink: jobCheckoutLinkOperation,
536
540
  jobCompanyInfo: jobCompanyInfoOperation,
541
+ exportJobPayouts: exportJobPayoutsOperation,
537
542
  getPayments: getPaymentsOperation,
538
543
  postPayment: postPaymentOperation,
539
544
  getPayment: getPaymentOperation,
@@ -690,6 +695,7 @@ export interface OperationRequestFunctionMap {
690
695
  overrideJob: OverrideJobRequestFunction;
691
696
  jobCheckoutLink: JobCheckoutLinkRequestFunction;
692
697
  jobCompanyInfo: JobCompanyInfoRequestFunction;
698
+ exportJobPayouts: ExportJobPayoutsRequestFunction;
693
699
  getPayments: GetPaymentsRequestFunction;
694
700
  postPayment: PostPaymentRequestFunction;
695
701
  getPayment: GetPaymentRequestFunction;
@@ -977,6 +983,10 @@ export const requestFunctionsBuilder = (
977
983
  operations.jobCompanyInfo,
978
984
  requestAdapter
979
985
  ),
986
+ exportJobPayouts: requestFunctionBuilder(
987
+ operations.exportJobPayouts,
988
+ requestAdapter
989
+ ),
980
990
  getPayments: requestFunctionBuilder(operations.getPayments, requestAdapter),
981
991
  postPayment: requestFunctionBuilder(operations.postPayment, requestAdapter),
982
992
  getPayment: requestFunctionBuilder(operations.getPayment, requestAdapter),
@@ -1188,6 +1198,7 @@ export const jobServiceBuilder = (
1188
1198
  overrideJob: requestFunctions.overrideJob,
1189
1199
  jobCheckoutLink: requestFunctions.jobCheckoutLink,
1190
1200
  jobCompanyInfo: requestFunctions.jobCompanyInfo,
1201
+ exportJobPayouts: requestFunctions.exportJobPayouts,
1191
1202
  });
1192
1203
 
1193
1204
  export const creditServiceBuilder = (
@@ -1533,6 +1544,7 @@ export interface Operations {
1533
1544
  overrideJob: typeof overrideJobOperation;
1534
1545
  jobCheckoutLink: typeof jobCheckoutLinkOperation;
1535
1546
  jobCompanyInfo: typeof jobCompanyInfoOperation;
1547
+ exportJobPayouts: typeof exportJobPayoutsOperation;
1536
1548
  getPayments: typeof getPaymentsOperation;
1537
1549
  postPayment: typeof postPaymentOperation;
1538
1550
  getPayment: typeof getPaymentOperation;