@kanda-libs/ks-component-ts 0.3.94 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.3.94",
3
+ "version": "0.3.96",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -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
  };
@@ -138,6 +138,7 @@ export * from "./PaymentOption";
138
138
  export * from "./Pence";
139
139
  export * from "./PreferenceMap";
140
140
  export * from "./PreferenceOption";
141
+ export * from "./Profile";
141
142
  export * from "./PurchaseEvent";
142
143
  export * from "./Quiz";
143
144
  export * from "./Rate";
@@ -174,7 +175,6 @@ export * from "./Training";
174
175
  export * from "./Transaction";
175
176
  export * from "./UpdateDeviceRegistrationRequest";
176
177
  export * from "./UserEvent";
177
- export * from "./UserProfile";
178
178
  export * from "./UserType";
179
179
  export * from "./UTM";
180
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: [],
@@ -20,5 +20,5 @@ export const deleteProfileDeviceRegistrationOperation = {
20
20
 
21
21
  export type DeleteProfileDeviceRegistrationRequestFunction = RequestFunction<
22
22
  { body: schemas.DeleteDeviceRegistrationRequest },
23
- schemas.UserProfile
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
  >;