@kanda-libs/ks-schema 1.0.86 → 1.0.88

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.
Files changed (38) hide show
  1. package/dist/components/schemas/index.d.ts +0 -2
  2. package/dist/components/schemas/index.d.ts.map +1 -1
  3. package/dist/components/schemas/index.js +0 -2
  4. package/dist/operations/approveCompany.d.ts +187 -0
  5. package/dist/operations/approveCompany.d.ts.map +1 -0
  6. package/dist/operations/{viewedNotification.js → approveCompany.js} +4 -4
  7. package/dist/operations/index.d.ts +181 -270
  8. package/dist/operations/index.d.ts.map +1 -1
  9. package/dist/operations/index.js +5 -28
  10. package/dist/schema.json +1 -1
  11. package/dist/widget/index.d.ts +2226 -2347
  12. package/dist/widget/index.d.ts.map +1 -1
  13. package/dist/widget/index.js +4603 -4739
  14. package/package.json +1 -1
  15. package/schema.yaml +30 -229
  16. package/dist/components/schemas/Notification.d.ts +0 -31
  17. package/dist/components/schemas/Notification.d.ts.map +0 -1
  18. package/dist/components/schemas/Notification.js +0 -44
  19. package/dist/components/schemas/NotificationChannel.d.ts +0 -4
  20. package/dist/components/schemas/NotificationChannel.d.ts.map +0 -1
  21. package/dist/components/schemas/NotificationChannel.js +0 -32
  22. package/dist/operations/deleteNotification.d.ts +0 -51
  23. package/dist/operations/deleteNotification.d.ts.map +0 -1
  24. package/dist/operations/deleteNotification.js +0 -44
  25. package/dist/operations/getNotification.d.ts +0 -51
  26. package/dist/operations/getNotification.d.ts.map +0 -1
  27. package/dist/operations/getNotification.js +0 -44
  28. package/dist/operations/getNotifications.d.ts +0 -42
  29. package/dist/operations/getNotifications.d.ts.map +0 -1
  30. package/dist/operations/getNotifications.js +0 -38
  31. package/dist/operations/postNotification.d.ts +0 -47
  32. package/dist/operations/postNotification.d.ts.map +0 -1
  33. package/dist/operations/postNotification.js +0 -43
  34. package/dist/operations/putNotification.d.ts +0 -56
  35. package/dist/operations/putNotification.d.ts.map +0 -1
  36. package/dist/operations/putNotification.js +0 -50
  37. package/dist/operations/viewedNotification.d.ts +0 -51
  38. package/dist/operations/viewedNotification.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-schema",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "Kanda Service OpenAPI Schema",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.yaml CHANGED
@@ -333,6 +333,36 @@ paths:
333
333
  schema:
334
334
  $ref: "#/components/schemas/Error"
335
335
 
336
+ /api/company/{id}/approve:
337
+ post:
338
+ operationId: approveCompany
339
+ summary: >
340
+ kanda staff to approve and verify company users and mark its lifecycle verified
341
+ only allowed when company has already gone through company setup
342
+ tags:
343
+ - Company
344
+ parameters:
345
+ - name: id
346
+ in: path
347
+ description: company id
348
+ required: true
349
+ schema:
350
+ type: string
351
+ minLength: 1
352
+ responses:
353
+ 200:
354
+ description: got approved and verified company
355
+ content:
356
+ application/json:
357
+ schema:
358
+ $ref: "#/components/schemas/Company"
359
+ default:
360
+ description: unexpected error
361
+ content:
362
+ application/json:
363
+ schema:
364
+ $ref: "#/components/schemas/Error"
365
+
336
366
  /api/job:
337
367
  get:
338
368
  operationId: getJobs
@@ -1325,171 +1355,6 @@ paths:
1325
1355
  schema:
1326
1356
  $ref: "#/components/schemas/Error"
1327
1357
 
1328
- /api/notification:
1329
- get:
1330
- operationId: getNotifications
1331
- summary: get all notifications
1332
- tags:
1333
- - Notification
1334
- responses:
1335
- 200:
1336
- description: got all notifications
1337
- content:
1338
- application/json:
1339
- schema:
1340
- type: array
1341
- items:
1342
- $ref: "#/components/schemas/Notification"
1343
- default:
1344
- description: unexpected error
1345
- content:
1346
- application/json:
1347
- schema:
1348
- $ref: "#/components/schemas/Error"
1349
-
1350
- post:
1351
- operationId: postNotification
1352
- summary: post new notification
1353
- tags:
1354
- - Notification
1355
- requestBody:
1356
- description: post new notification
1357
- required: true
1358
- content:
1359
- application/json:
1360
- schema:
1361
- $ref: "#/components/schemas/Notification"
1362
- responses:
1363
- 200:
1364
- description: posted new notification
1365
- content:
1366
- application/json:
1367
- schema:
1368
- $ref: "#/components/schemas/Notification"
1369
- default:
1370
- description: unexpected error
1371
- content:
1372
- application/json:
1373
- schema:
1374
- $ref: "#/components/schemas/Error"
1375
-
1376
- /api/notification/{id}:
1377
- get:
1378
- operationId: getNotification
1379
- summary: get existing notification
1380
- tags:
1381
- - Notification
1382
- parameters:
1383
- - name: id
1384
- in: path
1385
- description: notification id
1386
- required: true
1387
- schema:
1388
- type: string
1389
- minLength: 1
1390
- responses:
1391
- 200:
1392
- description: got existing notification
1393
- content:
1394
- application/json:
1395
- schema:
1396
- $ref: "#/components/schemas/Notification"
1397
- default:
1398
- description: unexpected error
1399
- content:
1400
- application/json:
1401
- schema:
1402
- $ref: "#/components/schemas/Error"
1403
-
1404
- put:
1405
- operationId: putNotification
1406
- summary: put existing notification
1407
- tags:
1408
- - Notification
1409
- parameters:
1410
- - name: id
1411
- in: path
1412
- description: notification id
1413
- required: true
1414
- schema:
1415
- type: string
1416
- minLength: 1
1417
- requestBody:
1418
- description: put existing notification
1419
- required: true
1420
- content:
1421
- application/json:
1422
- schema:
1423
- $ref: "#/components/schemas/Notification"
1424
- responses:
1425
- 200:
1426
- description: put existing notification
1427
- content:
1428
- application/json:
1429
- schema:
1430
- $ref: "#/components/schemas/Notification"
1431
- default:
1432
- description: unexpected error
1433
- content:
1434
- application/json:
1435
- schema:
1436
- $ref: "#/components/schemas/Error"
1437
-
1438
- delete:
1439
- operationId: deleteNotification
1440
- summary: delete existing notification
1441
- tags:
1442
- - Notification
1443
- parameters:
1444
- - name: id
1445
- in: path
1446
- description: notification id
1447
- required: true
1448
- schema:
1449
- type: string
1450
- minLength: 1
1451
- responses:
1452
- 200:
1453
- description: deleted existing notification
1454
- content:
1455
- application/json:
1456
- schema:
1457
- $ref: "#/components/schemas/Notification"
1458
- default:
1459
- description: unexpected error
1460
- content:
1461
- application/json:
1462
- schema:
1463
- $ref: "#/components/schemas/Error"
1464
-
1465
- /api/notification/{id}/viewed:
1466
- post:
1467
- operationId: viewedNotification
1468
- summary: viewed existing notification
1469
- tags:
1470
- - Notification
1471
- parameters:
1472
- - name: id
1473
- in: path
1474
- description: notification id
1475
- required: true
1476
- schema:
1477
- type: string
1478
- minLength: 1
1479
- responses:
1480
- 200:
1481
- description: put existing notification
1482
- content:
1483
- application/json:
1484
- schema:
1485
- $ref: "#/components/schemas/Notification"
1486
- default:
1487
- description: unexpected error
1488
- content:
1489
- application/json:
1490
- schema:
1491
- $ref: "#/components/schemas/Error"
1492
-
1493
1358
  /api/webhook/{provider}:
1494
1359
  post:
1495
1360
  operationId: providerWebhook
@@ -2938,70 +2803,6 @@ components:
2938
2803
  type: string
2939
2804
  title: fingerprint reference such as IP
2940
2805
 
2941
- Notification:
2942
- type: object
2943
- title: notification
2944
- required:
2945
- - notification_channel
2946
- - content
2947
- properties:
2948
- id:
2949
- type: string
2950
- title: notification id
2951
- readOnly: true
2952
- cid:
2953
- type: string
2954
- title: company id
2955
- readOnly: true
2956
- oid:
2957
- type: string
2958
- title: owner id
2959
- readOnly: true
2960
- notification_channel:
2961
- type: array
2962
- title: notification channels
2963
- items:
2964
- $ref: "#/components/schemas/NotificationChannel"
2965
- minLength: 1
2966
- readOnly: true
2967
- content:
2968
- type: string
2969
- title: notification content
2970
- minLength: 1
2971
- readOnly: true
2972
- action:
2973
- type: string
2974
- format: uri
2975
- title: action link for resource to be fetched
2976
- readOnly: true
2977
- redirect:
2978
- type: string
2979
- format: uri
2980
- title: redirect link for frontend to land on
2981
- readOnly: true
2982
- views:
2983
- type: array
2984
- items:
2985
- type: string
2986
- format: email
2987
- title: emails for users who has viewed this notification
2988
- readOnly: true
2989
- metadata:
2990
- type: object
2991
- $ref: "#/components/schemas/Metadata"
2992
- title: metadata
2993
- readOnly: true
2994
-
2995
- NotificationChannel:
2996
- type: string
2997
- title: notification channel
2998
- enum:
2999
- - web
3000
- - sms
3001
- - email
3002
- default: web
3003
- readOnly: true
3004
-
3005
2806
  Error:
3006
2807
  type: object
3007
2808
  required:
@@ -1,31 +0,0 @@
1
- import * as t from "io-ts";
2
- import { Metadata } from "./Metadata";
3
- import { NotificationChannel } from "./NotificationChannel";
4
- export declare const Notification: t.IntersectionC<[t.TypeC<{
5
- notification_channel: t.ArrayC<t.UnionC<[t.LiteralC<"web">, t.LiteralC<"sms">, t.LiteralC<"email">]>>;
6
- content: t.StringC;
7
- }>, t.PartialC<{
8
- id: t.StringC;
9
- cid: t.StringC;
10
- oid: t.StringC;
11
- action: t.StringC;
12
- redirect: t.StringC;
13
- views: t.ArrayC<t.StringC>;
14
- metadata: t.TypeC<{
15
- liveness: t.BooleanC;
16
- created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
17
- updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
18
- }>;
19
- }>]>;
20
- export interface Notification {
21
- id?: string;
22
- cid?: string;
23
- oid?: string;
24
- notification_channel: Array<NotificationChannel>;
25
- content: string;
26
- action?: string;
27
- redirect?: string;
28
- views?: Array<string>;
29
- metadata?: Metadata;
30
- }
31
- //# sourceMappingURL=Notification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;IAcvB,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
@@ -1,44 +0,0 @@
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.Notification = void 0;
27
- const t = __importStar(require("io-ts"));
28
- const Metadata_1 = require("./Metadata");
29
- const NotificationChannel_1 = require("./NotificationChannel");
30
- exports.Notification = t.intersection([
31
- t.type({
32
- notification_channel: t.array(NotificationChannel_1.NotificationChannel),
33
- content: t.string,
34
- }),
35
- t.partial({
36
- id: t.string,
37
- cid: t.string,
38
- oid: t.string,
39
- action: t.string,
40
- redirect: t.string,
41
- views: t.array(t.string),
42
- metadata: Metadata_1.Metadata,
43
- }),
44
- ]);
@@ -1,4 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const NotificationChannel: t.UnionC<[t.LiteralC<"web">, t.LiteralC<"sms">, t.LiteralC<"email">]>;
3
- export declare type NotificationChannel = "web" | "sms" | "email";
4
- //# sourceMappingURL=NotificationChannel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotificationChannel.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/NotificationChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,mBAAmB,uEAI9B,CAAC;AAEH,oBAAY,mBAAmB,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC"}
@@ -1,32 +0,0 @@
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.NotificationChannel = void 0;
27
- const t = __importStar(require("io-ts"));
28
- exports.NotificationChannel = t.union([
29
- t.literal("web"),
30
- t.literal("sms"),
31
- t.literal("email"),
32
- ]);
@@ -1,51 +0,0 @@
1
- import type { RequestFunction } from "@openapi-io-ts/runtime";
2
- import * as schemas from "../components/schemas";
3
- export declare type DeleteNotificationRequestParameters = {
4
- id: string;
5
- };
6
- export declare const deleteNotificationOperation: {
7
- readonly path: "/api/notification/{id}";
8
- readonly method: "delete";
9
- readonly responses: {
10
- readonly "200": {
11
- readonly _tag: "JsonResponse";
12
- readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
13
- notification_channel: import("io-ts").ArrayC<import("io-ts").UnionC<[import("io-ts").LiteralC<"web">, import("io-ts").LiteralC<"sms">, import("io-ts").LiteralC<"email">]>>;
14
- content: import("io-ts").StringC;
15
- }>, import("io-ts").PartialC<{
16
- id: import("io-ts").StringC;
17
- cid: import("io-ts").StringC;
18
- oid: import("io-ts").StringC;
19
- action: import("io-ts").StringC;
20
- redirect: import("io-ts").StringC;
21
- views: import("io-ts").ArrayC<import("io-ts").StringC>;
22
- metadata: import("io-ts").TypeC<{
23
- liveness: import("io-ts").BooleanC;
24
- created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
25
- updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
26
- }>;
27
- }>]>;
28
- };
29
- readonly default: {
30
- readonly _tag: "JsonResponse";
31
- readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
32
- message: import("io-ts").StringC;
33
- }>, import("io-ts").PartialC<{
34
- code: import("io-ts").NumberC;
35
- }>]>;
36
- };
37
- };
38
- readonly parameters: readonly [{
39
- readonly _tag: "FormParameter";
40
- readonly explode: false;
41
- readonly in: "path";
42
- readonly name: "id";
43
- }];
44
- readonly requestDefaultHeaders: {
45
- readonly Accept: "application/json";
46
- };
47
- };
48
- export declare type DeleteNotificationRequestFunction = RequestFunction<{
49
- params: DeleteNotificationRequestParameters;
50
- }, schemas.Notification>;
51
- //# sourceMappingURL=deleteNotification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteNotification.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/deleteNotification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB9B,CAAC;AAEX,oBAAY,iCAAiC,GAAG,eAAe,CAC7D;IAAE,MAAM,EAAE,mCAAmC,CAAA;CAAE,EAC/C,OAAO,CAAC,YAAY,CACrB,CAAC"}
@@ -1,44 +0,0 @@
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.deleteNotificationOperation = void 0;
27
- const schemas = __importStar(require("../components/schemas"));
28
- exports.deleteNotificationOperation = {
29
- path: "/api/notification/{id}",
30
- method: "delete",
31
- responses: {
32
- "200": { _tag: "JsonResponse", decoder: schemas.Notification },
33
- default: { _tag: "JsonResponse", decoder: schemas.Error },
34
- },
35
- parameters: [
36
- {
37
- _tag: "FormParameter",
38
- explode: false,
39
- in: "path",
40
- name: "id",
41
- },
42
- ],
43
- requestDefaultHeaders: { Accept: "application/json" },
44
- };
@@ -1,51 +0,0 @@
1
- import type { RequestFunction } from "@openapi-io-ts/runtime";
2
- import * as schemas from "../components/schemas";
3
- export declare type GetNotificationRequestParameters = {
4
- id: string;
5
- };
6
- export declare const getNotificationOperation: {
7
- readonly path: "/api/notification/{id}";
8
- readonly method: "get";
9
- readonly responses: {
10
- readonly "200": {
11
- readonly _tag: "JsonResponse";
12
- readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
13
- notification_channel: import("io-ts").ArrayC<import("io-ts").UnionC<[import("io-ts").LiteralC<"web">, import("io-ts").LiteralC<"sms">, import("io-ts").LiteralC<"email">]>>;
14
- content: import("io-ts").StringC;
15
- }>, import("io-ts").PartialC<{
16
- id: import("io-ts").StringC;
17
- cid: import("io-ts").StringC;
18
- oid: import("io-ts").StringC;
19
- action: import("io-ts").StringC;
20
- redirect: import("io-ts").StringC;
21
- views: import("io-ts").ArrayC<import("io-ts").StringC>;
22
- metadata: import("io-ts").TypeC<{
23
- liveness: import("io-ts").BooleanC;
24
- created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
25
- updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
26
- }>;
27
- }>]>;
28
- };
29
- readonly default: {
30
- readonly _tag: "JsonResponse";
31
- readonly decoder: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
32
- message: import("io-ts").StringC;
33
- }>, import("io-ts").PartialC<{
34
- code: import("io-ts").NumberC;
35
- }>]>;
36
- };
37
- };
38
- readonly parameters: readonly [{
39
- readonly _tag: "FormParameter";
40
- readonly explode: false;
41
- readonly in: "path";
42
- readonly name: "id";
43
- }];
44
- readonly requestDefaultHeaders: {
45
- readonly Accept: "application/json";
46
- };
47
- };
48
- export declare type GetNotificationRequestFunction = RequestFunction<{
49
- params: GetNotificationRequestParameters;
50
- }, schemas.Notification>;
51
- //# sourceMappingURL=getNotification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNotification.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getNotification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,gCAAgC,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3B,CAAC;AAEX,oBAAY,8BAA8B,GAAG,eAAe,CAC1D;IAAE,MAAM,EAAE,gCAAgC,CAAA;CAAE,EAC5C,OAAO,CAAC,YAAY,CACrB,CAAC"}
@@ -1,44 +0,0 @@
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.getNotificationOperation = void 0;
27
- const schemas = __importStar(require("../components/schemas"));
28
- exports.getNotificationOperation = {
29
- path: "/api/notification/{id}",
30
- method: "get",
31
- responses: {
32
- "200": { _tag: "JsonResponse", decoder: schemas.Notification },
33
- default: { _tag: "JsonResponse", decoder: schemas.Error },
34
- },
35
- parameters: [
36
- {
37
- _tag: "FormParameter",
38
- explode: false,
39
- in: "path",
40
- name: "id",
41
- },
42
- ],
43
- requestDefaultHeaders: { Accept: "application/json" },
44
- };
@@ -1,42 +0,0 @@
1
- import type { RequestFunction } from "@openapi-io-ts/runtime";
2
- import * as t from "io-ts";
3
- import * as schemas from "../components/schemas";
4
- export declare const getNotificationsOperation: {
5
- readonly path: "/api/notification";
6
- readonly method: "get";
7
- readonly responses: {
8
- readonly "200": {
9
- readonly _tag: "JsonResponse";
10
- readonly decoder: t.ArrayC<t.IntersectionC<[t.TypeC<{
11
- notification_channel: t.ArrayC<t.UnionC<[t.LiteralC<"web">, t.LiteralC<"sms">, t.LiteralC<"email">]>>;
12
- content: t.StringC;
13
- }>, t.PartialC<{
14
- id: t.StringC;
15
- cid: t.StringC;
16
- oid: t.StringC;
17
- action: t.StringC;
18
- redirect: t.StringC;
19
- views: t.ArrayC<t.StringC>;
20
- metadata: t.TypeC<{
21
- liveness: t.BooleanC;
22
- created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
23
- updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
24
- }>;
25
- }>]>>;
26
- };
27
- readonly default: {
28
- readonly _tag: "JsonResponse";
29
- readonly decoder: t.IntersectionC<[t.TypeC<{
30
- message: t.StringC;
31
- }>, t.PartialC<{
32
- code: t.NumberC;
33
- }>]>;
34
- };
35
- };
36
- readonly parameters: readonly [];
37
- readonly requestDefaultHeaders: {
38
- readonly Accept: "application/json";
39
- };
40
- };
41
- export declare type GetNotificationsRequestFunction = RequestFunction<undefined, Array<schemas.Notification>>;
42
- //# sourceMappingURL=getNotifications.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNotifications.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/getNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC;AAEX,oBAAY,+BAA+B,GAAG,eAAe,CAC3D,SAAS,EACT,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAC5B,CAAC"}