@kanda-libs/ks-component-ts 0.2.324 → 0.2.325

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.2.324",
3
+ "version": "0.2.325",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,6 +1,7 @@
1
1
  import * as t from "io-ts";
2
2
  import { Customer } from "./Customer";
3
3
  import { JobItem } from "./JobItem";
4
+ import { Metadata } from "./Metadata";
4
5
  import { Money } from "./Money";
5
6
  import { RedirectURLs } from "./RedirectURLs";
6
7
  import { WorkType } from "./WorkType";
@@ -19,12 +20,27 @@ export const InfoCheckoutRedirect = t.intersection([
19
20
  job_items: t.array(JobItem),
20
21
  }),
21
22
  t.partial({
23
+ id: t.string,
24
+ cid: t.string,
25
+ oid: t.string,
26
+ aid: t.string,
27
+ eid: t.string,
28
+ bid: t.string,
29
+ tid: t.string,
22
30
  enabled_rates: t.array(t.string),
23
31
  redirect_urls: RedirectURLs,
32
+ metadata: Metadata,
24
33
  }),
25
34
  ]);
26
35
 
27
36
  export interface InfoCheckoutRedirect {
37
+ id?: string;
38
+ cid?: string;
39
+ oid?: string;
40
+ aid?: string;
41
+ eid?: string;
42
+ bid?: string;
43
+ tid?: string;
28
44
  reference: string;
29
45
  work_type: WorkType;
30
46
  enabled_rates?: Array<string>;
@@ -33,4 +49,5 @@ export interface InfoCheckoutRedirect {
33
49
  customer: Customer;
34
50
  job_items: Array<JobItem>;
35
51
  redirect_urls?: RedirectURLs;
52
+ metadata?: Metadata;
36
53
  }
@@ -1,4 +1,5 @@
1
1
  import * as t from "io-ts";
2
+ import { Metadata } from "./Metadata";
2
3
  import { Pence } from "./Pence";
3
4
  import { RedirectURLs } from "./RedirectURLs";
4
5
  import { WorkType } from "./WorkType";
@@ -12,6 +13,13 @@ export const InfoLegacyRedirect = t.intersection([
12
13
  enterprise_id: t.string,
13
14
  }),
14
15
  t.partial({
16
+ id: t.string,
17
+ cid: t.string,
18
+ oid: t.string,
19
+ aid: t.string,
20
+ eid: t.string,
21
+ bid: t.string,
22
+ tid: t.string,
15
23
  first_name: t.string,
16
24
  last_name: t.string,
17
25
  mobile: t.string,
@@ -19,10 +27,18 @@ export const InfoLegacyRedirect = t.intersection([
19
27
  redirect_urls: RedirectURLs,
20
28
  enabled_rates: t.array(t.string),
21
29
  work_type: WorkType,
30
+ metadata: Metadata,
22
31
  }),
23
32
  ]);
24
33
 
25
34
  export interface InfoLegacyRedirect {
35
+ id?: string;
36
+ cid?: string;
37
+ oid?: string;
38
+ aid?: string;
39
+ eid?: string;
40
+ bid?: string;
41
+ tid?: string;
26
42
  reference: string;
27
43
  price: Pence;
28
44
  email: string;
@@ -35,4 +51,5 @@ export interface InfoLegacyRedirect {
35
51
  redirect_urls?: RedirectURLs;
36
52
  enabled_rates?: Array<string>;
37
53
  work_type?: WorkType;
54
+ metadata?: Metadata;
38
55
  }
@@ -5,7 +5,7 @@ export const infoCheckoutRedirectOperation = {
5
5
  path: "/api/info/checkout-redirect",
6
6
  method: "put",
7
7
  responses: {
8
- "200": { _tag: "JsonResponse", decoder: schemas.InfoLegacyRedirect },
8
+ "200": { _tag: "JsonResponse", decoder: schemas.InfoCheckoutRedirect },
9
9
  default: { _tag: "JsonResponse", decoder: schemas.Error },
10
10
  },
11
11
  parameters: [],
@@ -20,5 +20,5 @@ export const infoCheckoutRedirectOperation = {
20
20
 
21
21
  export type InfoCheckoutRedirectRequestFunction = RequestFunction<
22
22
  { body: schemas.InfoCheckoutRedirect },
23
- schemas.InfoLegacyRedirect
23
+ schemas.InfoCheckoutRedirect
24
24
  >;