@kanda-libs/ks-component-ts 0.3.65 → 0.3.67

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.3.65",
3
+ "version": "0.3.67",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -0,0 +1,25 @@
1
+ import type { RequestFunction } from "@kanda-libs/openapi-io-ts-runtime";
2
+ import * as t from "io-ts";
3
+ import * as parameters from "../components/parameters";
4
+ import * as schemas from "../components/schemas";
5
+
6
+ export type GetEnrolmentsRequestParameters = {
7
+ format?: "reduced" | "full";
8
+ q?: string;
9
+ };
10
+
11
+ export const getEnrolmentsOperation = {
12
+ path: "/api/enrolment",
13
+ method: "get",
14
+ responses: {
15
+ "200": { _tag: "JsonResponse", decoder: t.array(schemas.Enrolment) },
16
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
17
+ },
18
+ parameters: [parameters.format, parameters.q],
19
+ requestDefaultHeaders: { Accept: "application/json" },
20
+ } as const;
21
+
22
+ export type GetEnrolmentsRequestFunction = RequestFunction<
23
+ { params: GetEnrolmentsRequestParameters },
24
+ Array<schemas.Enrolment>
25
+ >;
@@ -154,6 +154,10 @@ import {
154
154
  getEnrolmentOperation,
155
155
  GetEnrolmentRequestFunction,
156
156
  } from "./getEnrolment";
157
+ import {
158
+ getEnrolmentsOperation,
159
+ GetEnrolmentsRequestFunction,
160
+ } from "./getEnrolments";
157
161
  import {
158
162
  getEnterpriseOperation,
159
163
  GetEnterpriseRequestFunction,
@@ -785,6 +789,7 @@ export const operations: Operations = {
785
789
  getAudits: getAuditsOperation,
786
790
  postAudit: postAuditOperation,
787
791
  getAudit: getAuditOperation,
792
+ getEnrolments: getEnrolmentsOperation,
788
793
  getEnrolment: getEnrolmentOperation,
789
794
  putEnrolment: putEnrolmentOperation,
790
795
  providerCheckWebhook: providerCheckWebhookOperation,
@@ -982,6 +987,7 @@ export interface OperationRequestFunctionMap {
982
987
  getAudits: GetAuditsRequestFunction;
983
988
  postAudit: PostAuditRequestFunction;
984
989
  getAudit: GetAuditRequestFunction;
990
+ getEnrolments: GetEnrolmentsRequestFunction;
985
991
  getEnrolment: GetEnrolmentRequestFunction;
986
992
  putEnrolment: PutEnrolmentRequestFunction;
987
993
  providerCheckWebhook: ProviderCheckWebhookRequestFunction;
@@ -1457,6 +1463,10 @@ export const requestFunctionsBuilder = (
1457
1463
  getAudits: requestFunctionBuilder(operations.getAudits, requestAdapter),
1458
1464
  postAudit: requestFunctionBuilder(operations.postAudit, requestAdapter),
1459
1465
  getAudit: requestFunctionBuilder(operations.getAudit, requestAdapter),
1466
+ getEnrolments: requestFunctionBuilder(
1467
+ operations.getEnrolments,
1468
+ requestAdapter
1469
+ ),
1460
1470
  getEnrolment: requestFunctionBuilder(operations.getEnrolment, requestAdapter),
1461
1471
  putEnrolment: requestFunctionBuilder(operations.putEnrolment, requestAdapter),
1462
1472
  providerCheckWebhook: requestFunctionBuilder(
@@ -1875,6 +1885,7 @@ export const auditServiceBuilder = (
1875
1885
  export const enrolmentServiceBuilder = (
1876
1886
  requestFunctions: OperationRequestFunctionMap
1877
1887
  ) => ({
1888
+ getEnrolments: requestFunctions.getEnrolments,
1878
1889
  getEnrolment: requestFunctions.getEnrolment,
1879
1890
  putEnrolment: requestFunctions.putEnrolment,
1880
1891
  });
@@ -2092,6 +2103,7 @@ export interface Operations {
2092
2103
  getAudits: typeof getAuditsOperation;
2093
2104
  postAudit: typeof postAuditOperation;
2094
2105
  getAudit: typeof getAuditOperation;
2106
+ getEnrolments: typeof getEnrolmentsOperation;
2095
2107
  getEnrolment: typeof getEnrolmentOperation;
2096
2108
  putEnrolment: typeof putEnrolmentOperation;
2097
2109
  providerCheckWebhook: typeof providerCheckWebhookOperation;
@@ -5,6 +5,7 @@ import * as schemas from "../components/schemas";
5
5
  export type InfoWorkTypeRequestParameters = {
6
6
  work_type?: string;
7
7
  job_id?: string;
8
+ ignore_rate_filter?: string;
8
9
  };
9
10
 
10
11
  export const infoWorkTypeOperation = {
@@ -27,6 +28,12 @@ export const infoWorkTypeOperation = {
27
28
  in: "query",
28
29
  name: "job_id",
29
30
  },
31
+ {
32
+ _tag: "FormParameter",
33
+ explode: true,
34
+ in: "query",
35
+ name: "ignore_rate_filter",
36
+ },
30
37
  ],
31
38
  requestDefaultHeaders: { Accept: "application/json" },
32
39
  } as const;