@kanda-libs/ks-component-ts 0.3.93 → 0.3.95

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.93",
3
+ "version": "0.3.95",
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 DeleteDeviceRegistrationRequest = t.type({
4
+ id: t.string,
5
+ });
6
+
7
+ export interface DeleteDeviceRegistrationRequest {
8
+ id: string;
9
+ }
@@ -2,13 +2,13 @@ import * as t from "io-ts";
2
2
  import { BaseId } from "./BaseId";
3
3
  import { DeviceRegistration } from "./DeviceRegistration";
4
4
 
5
- export const UserProfile = t.intersection([
5
+ export const Profile = t.intersection([
6
6
  BaseId,
7
7
  t.type({
8
8
  device_registrations: t.array(DeviceRegistration),
9
9
  }),
10
10
  ]);
11
11
 
12
- export type UserProfile = BaseId & {
12
+ export type Profile = BaseId & {
13
13
  device_registrations: Array<DeviceRegistration>;
14
14
  };
@@ -41,6 +41,7 @@ export const SatNote = t.intersection([
41
41
  t.literal("Yes I understand"),
42
42
  t.literal("No I do not understand"),
43
43
  ]),
44
+ remark: t.string,
44
45
  }),
45
46
  ]);
46
47
 
@@ -65,4 +66,5 @@ export interface SatNote {
65
66
  q_saving?: "Yes I understand" | "No I do not understand";
66
67
  signature: Signature;
67
68
  certificate: Document;
69
+ remark?: string;
68
70
  }
@@ -38,6 +38,7 @@ export * from "./Credit";
38
38
  export * from "./Customer";
39
39
  export * from "./CustomerDetails";
40
40
  export * from "./CustomerOptions";
41
+ export * from "./DeleteDeviceRegistrationRequest";
41
42
  export * from "./DeviceRegistration";
42
43
  export * from "./DirectorInfo";
43
44
  export * from "./DirectorVerification";
@@ -137,6 +138,7 @@ export * from "./PaymentOption";
137
138
  export * from "./Pence";
138
139
  export * from "./PreferenceMap";
139
140
  export * from "./PreferenceOption";
141
+ export * from "./Profile";
140
142
  export * from "./PurchaseEvent";
141
143
  export * from "./Quiz";
142
144
  export * from "./Rate";
@@ -173,7 +175,6 @@ export * from "./Training";
173
175
  export * from "./Transaction";
174
176
  export * from "./UpdateDeviceRegistrationRequest";
175
177
  export * from "./UserEvent";
176
- export * from "./UserProfile";
177
178
  export * from "./UserType";
178
179
  export * from "./UTM";
179
180
  export * from "./VatNumber";
@@ -5,7 +5,7 @@ export const deleteProfileDeviceRegistrationOperation = {
5
5
  path: "/api/info/profile-device-registration",
6
6
  method: "delete",
7
7
  responses: {
8
- "200": { _tag: "JsonResponse", decoder: schemas.UserProfile },
8
+ "200": { _tag: "JsonResponse", decoder: schemas.Profile },
9
9
  default: { _tag: "JsonResponse", decoder: schemas.Error },
10
10
  },
11
11
  parameters: [],
@@ -19,6 +19,6 @@ export const deleteProfileDeviceRegistrationOperation = {
19
19
  } as const;
20
20
 
21
21
  export type DeleteProfileDeviceRegistrationRequestFunction = RequestFunction<
22
- { body: string },
23
- schemas.UserProfile
22
+ { body: schemas.DeleteDeviceRegistrationRequest },
23
+ schemas.Profile
24
24
  >;
@@ -5,7 +5,7 @@ export const getUserProfileOperation = {
5
5
  path: "/api/info/profile",
6
6
  method: "get",
7
7
  responses: {
8
- "200": { _tag: "JsonResponse", decoder: schemas.UserProfile },
8
+ "200": { _tag: "JsonResponse", decoder: schemas.Profile },
9
9
  default: { _tag: "JsonResponse", decoder: schemas.Error },
10
10
  },
11
11
  parameters: [],
@@ -14,5 +14,5 @@ export const getUserProfileOperation = {
14
14
 
15
15
  export type GetUserProfileRequestFunction = RequestFunction<
16
16
  undefined,
17
- schemas.UserProfile
17
+ schemas.Profile
18
18
  >;
@@ -5,7 +5,7 @@ export const postProfileDeviceRegistrationOperation = {
5
5
  path: "/api/info/profile-device-registration",
6
6
  method: "post",
7
7
  responses: {
8
- "200": { _tag: "JsonResponse", decoder: schemas.UserProfile },
8
+ "200": { _tag: "JsonResponse", decoder: schemas.Profile },
9
9
  default: { _tag: "JsonResponse", decoder: schemas.Error },
10
10
  },
11
11
  parameters: [],
@@ -20,5 +20,5 @@ export const postProfileDeviceRegistrationOperation = {
20
20
 
21
21
  export type PostProfileDeviceRegistrationRequestFunction = RequestFunction<
22
22
  { body: schemas.NewDeviceRegistrationRequest },
23
- schemas.UserProfile
23
+ schemas.Profile
24
24
  >;
@@ -5,7 +5,7 @@ export const putProfileDeviceRegistrationOperation = {
5
5
  path: "/api/info/profile-device-registration",
6
6
  method: "put",
7
7
  responses: {
8
- "200": { _tag: "JsonResponse", decoder: schemas.UserProfile },
8
+ "200": { _tag: "JsonResponse", decoder: schemas.Profile },
9
9
  default: { _tag: "JsonResponse", decoder: schemas.Error },
10
10
  },
11
11
  parameters: [],
@@ -20,5 +20,5 @@ export const putProfileDeviceRegistrationOperation = {
20
20
 
21
21
  export type PutProfileDeviceRegistrationRequestFunction = RequestFunction<
22
22
  { body: schemas.UpdateDeviceRegistrationRequest },
23
- schemas.UserProfile
23
+ schemas.Profile
24
24
  >;