@kiriminaja/types 0.1.13 → 0.1.15

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 (2) hide show
  1. package/dist/index.d.ts +12 -9
  2. package/package.json +2 -3
package/dist/index.d.ts CHANGED
@@ -4,6 +4,15 @@ export interface IBank {
4
4
  account_name: string;
5
5
  account_number: string;
6
6
  }
7
+ export type OnSuccessType = "default" | "url" | "random_whatsapp";
8
+ export type GuaranteeType = {
9
+ icon?: string;
10
+ label: string;
11
+ };
12
+ export type PaymentMethod = {
13
+ label: string;
14
+ value: string;
15
+ };
7
16
  export interface IDetail {
8
17
  config: {
9
18
  color: string;
@@ -17,7 +26,7 @@ export interface IDetail {
17
26
  icon: string;
18
27
  };
19
28
  on_success?: {
20
- type?: "default" | "url" | "random_whatsapp";
29
+ type?: OnSuccessType;
21
30
  props?: {
22
31
  url?: string;
23
32
  wa_phones?: string[];
@@ -31,10 +40,7 @@ export interface IDetail {
31
40
  };
32
41
  guarantee: {
33
42
  show: boolean;
34
- items: {
35
- icon: string;
36
- label: string;
37
- }[];
43
+ items: GuaranteeType[];
38
44
  };
39
45
  show_image?: boolean;
40
46
  show_description?: boolean;
@@ -72,10 +78,7 @@ export interface IDetail {
72
78
  name: string;
73
79
  insurance: boolean;
74
80
  };
75
- payment_methods: {
76
- label: string;
77
- value: string;
78
- }[];
81
+ payment_methods: PaymentMethod[];
79
82
  force_insurance?: boolean;
80
83
  form_status?: string;
81
84
  mini_cart?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiriminaja/types",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -21,8 +21,7 @@
21
21
  },
22
22
  "sideEffects": false,
23
23
  "devDependencies": {
24
- "typescript": "^5.9.2",
25
- "rimraf": "^6.0.1"
24
+ "@typescript/native-preview": "^7.0.0-dev.20251001.1"
26
25
  },
27
26
  "publishConfig": {
28
27
  "access": "public"