@kanda-libs/ks-schema 1.0.94 → 1.0.96

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.subscriptionServiceBuilder = exports.taskServiceBuilder = exports.webhookServiceBuilder = exports.documentServiceBuilder = exports.creditServiceBuilder = exports.paymentServiceBuilder = exports.jobServiceBuilder = exports.companyServiceBuilder = exports.infoIPServiceBuilder = exports.infoAuthServiceBuilder = exports.infoCustomerServiceBuilder = exports.infoCompanyServiceBuilder = exports.authUserServiceBuilder = exports.requestFunctionsBuilder = exports.operations = void 0;
3
+ exports.taskServiceBuilder = exports.webhookServiceBuilder = exports.subscriptionServiceBuilder = exports.documentServiceBuilder = exports.creditServiceBuilder = exports.paymentServiceBuilder = exports.jobServiceBuilder = exports.companyServiceBuilder = exports.infoIPServiceBuilder = exports.infoAuthServiceBuilder = exports.infoCustomerServiceBuilder = exports.infoCompanyServiceBuilder = exports.authUserServiceBuilder = exports.requestFunctionsBuilder = exports.operations = void 0;
4
4
  const runtime_1 = require("@openapi-io-ts/runtime");
5
5
  const applyCredit_1 = require("./applyCredit");
6
6
  const applyJob_1 = require("./applyJob");
@@ -42,6 +42,7 @@ const postCompany_1 = require("./postCompany");
42
42
  const postCredit_1 = require("./postCredit");
43
43
  const postDocument_1 = require("./postDocument");
44
44
  const postJob_1 = require("./postJob");
45
+ const postMe_1 = require("./postMe");
45
46
  const postPayment_1 = require("./postPayment");
46
47
  const postSubscription_1 = require("./postSubscription");
47
48
  const providerWebhook_1 = require("./providerWebhook");
@@ -60,6 +61,7 @@ const signJobSateNote_1 = require("./signJobSateNote");
60
61
  const viewJobSatNote_1 = require("./viewJobSatNote");
61
62
  exports.operations = {
62
63
  me: me_1.meOperation,
64
+ postMe: postMe_1.postMeOperation,
63
65
  putMe: putMe_1.putMeOperation,
64
66
  infoCompany: infoCompany_1.infoCompanyOperation,
65
67
  infoCustomer: infoCustomer_1.infoCustomerOperation,
@@ -108,16 +110,17 @@ exports.operations = {
108
110
  getDocument: getDocument_1.getDocumentOperation,
109
111
  putDocument: putDocument_1.putDocumentOperation,
110
112
  deleteDocument: deleteDocument_1.deleteDocumentOperation,
111
- providerWebhook: providerWebhook_1.providerWebhookOperation,
112
- runner: runner_1.runnerOperation,
113
113
  getSubscriptions: getSubscriptions_1.getSubscriptionsOperation,
114
114
  postSubscription: postSubscription_1.postSubscriptionOperation,
115
115
  getSubscription: getSubscription_1.getSubscriptionOperation,
116
116
  putSubscription: putSubscription_1.putSubscriptionOperation,
117
117
  deleteSubscription: deleteSubscription_1.deleteSubscriptionOperation,
118
+ providerWebhook: providerWebhook_1.providerWebhookOperation,
119
+ runner: runner_1.runnerOperation,
118
120
  };
119
121
  const requestFunctionsBuilder = (requestAdapter) => ({
120
122
  me: (0, runtime_1.requestFunctionBuilder)(exports.operations.me, requestAdapter),
123
+ postMe: (0, runtime_1.requestFunctionBuilder)(exports.operations.postMe, requestAdapter),
121
124
  putMe: (0, runtime_1.requestFunctionBuilder)(exports.operations.putMe, requestAdapter),
122
125
  infoCompany: (0, runtime_1.requestFunctionBuilder)(exports.operations.infoCompany, requestAdapter),
123
126
  infoCustomer: (0, runtime_1.requestFunctionBuilder)(exports.operations.infoCustomer, requestAdapter),
@@ -166,17 +169,18 @@ const requestFunctionsBuilder = (requestAdapter) => ({
166
169
  getDocument: (0, runtime_1.requestFunctionBuilder)(exports.operations.getDocument, requestAdapter),
167
170
  putDocument: (0, runtime_1.requestFunctionBuilder)(exports.operations.putDocument, requestAdapter),
168
171
  deleteDocument: (0, runtime_1.requestFunctionBuilder)(exports.operations.deleteDocument, requestAdapter),
169
- providerWebhook: (0, runtime_1.requestFunctionBuilder)(exports.operations.providerWebhook, requestAdapter),
170
- runner: (0, runtime_1.requestFunctionBuilder)(exports.operations.runner, requestAdapter),
171
172
  getSubscriptions: (0, runtime_1.requestFunctionBuilder)(exports.operations.getSubscriptions, requestAdapter),
172
173
  postSubscription: (0, runtime_1.requestFunctionBuilder)(exports.operations.postSubscription, requestAdapter),
173
174
  getSubscription: (0, runtime_1.requestFunctionBuilder)(exports.operations.getSubscription, requestAdapter),
174
175
  putSubscription: (0, runtime_1.requestFunctionBuilder)(exports.operations.putSubscription, requestAdapter),
175
176
  deleteSubscription: (0, runtime_1.requestFunctionBuilder)(exports.operations.deleteSubscription, requestAdapter),
177
+ providerWebhook: (0, runtime_1.requestFunctionBuilder)(exports.operations.providerWebhook, requestAdapter),
178
+ runner: (0, runtime_1.requestFunctionBuilder)(exports.operations.runner, requestAdapter),
176
179
  });
177
180
  exports.requestFunctionsBuilder = requestFunctionsBuilder;
178
181
  const authUserServiceBuilder = (requestFunctions) => ({
179
182
  me: requestFunctions.me,
183
+ postMe: requestFunctions.postMe,
180
184
  putMe: requestFunctions.putMe,
181
185
  });
182
186
  exports.authUserServiceBuilder = authUserServiceBuilder;
@@ -254,14 +258,6 @@ const documentServiceBuilder = (requestFunctions) => ({
254
258
  deleteDocument: requestFunctions.deleteDocument,
255
259
  });
256
260
  exports.documentServiceBuilder = documentServiceBuilder;
257
- const webhookServiceBuilder = (requestFunctions) => ({
258
- providerWebhook: requestFunctions.providerWebhook,
259
- });
260
- exports.webhookServiceBuilder = webhookServiceBuilder;
261
- const taskServiceBuilder = (requestFunctions) => ({
262
- runner: requestFunctions.runner,
263
- });
264
- exports.taskServiceBuilder = taskServiceBuilder;
265
261
  const subscriptionServiceBuilder = (requestFunctions) => ({
266
262
  getSubscriptions: requestFunctions.getSubscriptions,
267
263
  postSubscription: requestFunctions.postSubscription,
@@ -270,3 +266,11 @@ const subscriptionServiceBuilder = (requestFunctions) => ({
270
266
  deleteSubscription: requestFunctions.deleteSubscription,
271
267
  });
272
268
  exports.subscriptionServiceBuilder = subscriptionServiceBuilder;
269
+ const webhookServiceBuilder = (requestFunctions) => ({
270
+ providerWebhook: requestFunctions.providerWebhook,
271
+ });
272
+ exports.webhookServiceBuilder = webhookServiceBuilder;
273
+ const taskServiceBuilder = (requestFunctions) => ({
274
+ runner: requestFunctions.runner,
275
+ });
276
+ exports.taskServiceBuilder = taskServiceBuilder;
@@ -44,6 +44,9 @@ export declare const postCompanyOperation: {
44
44
  average_monthly_jobs: import("io-ts").NumberC;
45
45
  average_job_value: import("io-ts").NumberC;
46
46
  use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
47
+ }>, import("io-ts").PartialC<{
48
+ trade_body: import("io-ts").UnionC<[import("io-ts").LiteralC<"none">, import("io-ts").LiteralC<"niceic">, import("io-ts").LiteralC<"elecsa">, import("io-ts").LiteralC<"gas_safe">, import("io-ts").LiteralC<"napit">, import("io-ts").LiteralC<"other">]>;
49
+ trade_body_number: import("io-ts").StringC;
47
50
  insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
48
51
  name: import("io-ts").StringC;
49
52
  }>, import("io-ts").PartialC<{
@@ -59,9 +62,6 @@ export declare const postCompanyOperation: {
59
62
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
60
63
  }>;
61
64
  }>]>;
62
- }>, import("io-ts").PartialC<{
63
- trade_body: import("io-ts").UnionC<[import("io-ts").LiteralC<"none">, import("io-ts").LiteralC<"niceic">, import("io-ts").LiteralC<"elecsa">, import("io-ts").LiteralC<"gas_safe">, import("io-ts").LiteralC<"napit">, import("io-ts").LiteralC<"other">]>;
64
- trade_body_number: import("io-ts").StringC;
65
65
  }>]>;
66
66
  limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
67
67
  company_name: import("io-ts").StringC;
@@ -0,0 +1,47 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+ export declare const postMeOperation: {
4
+ readonly path: "/api/me";
5
+ readonly method: "post";
6
+ readonly responses: {
7
+ readonly "200": {
8
+ readonly _tag: "JsonResponse";
9
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
10
+ id: import("io-ts").StringC;
11
+ token: import("io-ts").StringC;
12
+ name: import("io-ts").StringC;
13
+ email: import("io-ts").StringC;
14
+ provider: import("io-ts").StringC;
15
+ subject: import("io-ts").StringC;
16
+ audience: import("io-ts").StringC;
17
+ issuer: import("io-ts").StringC;
18
+ verified: import("io-ts").BooleanC;
19
+ }>, import("io-ts").PartialC<{
20
+ role: import("io-ts").StringC;
21
+ phone: import("io-ts").StringC;
22
+ photoURL: import("io-ts").StringC;
23
+ disabled: import("io-ts").BooleanC;
24
+ }>]>;
25
+ };
26
+ readonly default: {
27
+ readonly _tag: "JsonResponse";
28
+ readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
29
+ message: import("io-ts").StringC;
30
+ }>, import("io-ts").PartialC<{
31
+ code: import("io-ts").NumberC;
32
+ }>]>;
33
+ };
34
+ };
35
+ readonly parameters: readonly [];
36
+ readonly requestDefaultHeaders: {
37
+ readonly "Content-Type": "application/json";
38
+ readonly Accept: "application/json";
39
+ };
40
+ readonly body: {
41
+ readonly _tag: "JsonBody";
42
+ };
43
+ };
44
+ export declare type PostMeRequestFunction = RequestFunction<{
45
+ body: schemas.InfoMe;
46
+ }, schemas.AuthUser>;
47
+ //# sourceMappingURL=postMe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postMe.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/postMe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAelB,CAAC;AAEX,oBAAY,qBAAqB,GAAG,eAAe,CACjD;IAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAA;CAAE,EACxB,OAAO,CAAC,QAAQ,CACjB,CAAC"}
@@ -0,0 +1,43 @@
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.postMeOperation = void 0;
27
+ const schemas = __importStar(require("../components/schemas"));
28
+ exports.postMeOperation = {
29
+ path: "/api/me",
30
+ method: "post",
31
+ responses: {
32
+ "200": { _tag: "JsonResponse", decoder: schemas.AuthUser },
33
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
34
+ },
35
+ parameters: [],
36
+ requestDefaultHeaders: {
37
+ "Content-Type": "application/json",
38
+ Accept: "application/json",
39
+ },
40
+ body: {
41
+ _tag: "JsonBody",
42
+ },
43
+ };
@@ -47,6 +47,9 @@ export declare const putCompanyOperation: {
47
47
  average_monthly_jobs: import("io-ts").NumberC;
48
48
  average_job_value: import("io-ts").NumberC;
49
49
  use_subcontractor: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
50
+ }>, import("io-ts").PartialC<{
51
+ trade_body: import("io-ts").UnionC<[import("io-ts").LiteralC<"none">, import("io-ts").LiteralC<"niceic">, import("io-ts").LiteralC<"elecsa">, import("io-ts").LiteralC<"gas_safe">, import("io-ts").LiteralC<"napit">, import("io-ts").LiteralC<"other">]>;
52
+ trade_body_number: import("io-ts").StringC;
50
53
  insurance_document: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
51
54
  name: import("io-ts").StringC;
52
55
  }>, import("io-ts").PartialC<{
@@ -62,9 +65,6 @@ export declare const putCompanyOperation: {
62
65
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
63
66
  }>;
64
67
  }>]>;
65
- }>, import("io-ts").PartialC<{
66
- trade_body: import("io-ts").UnionC<[import("io-ts").LiteralC<"none">, import("io-ts").LiteralC<"niceic">, import("io-ts").LiteralC<"elecsa">, import("io-ts").LiteralC<"gas_safe">, import("io-ts").LiteralC<"napit">, import("io-ts").LiteralC<"other">]>;
67
- trade_body_number: import("io-ts").StringC;
68
68
  }>]>;
69
69
  limited_company_info: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
70
70
  company_name: import("io-ts").StringC;