@kiriminaja/types 0.1.16 → 0.1.18

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/dist/index.d.ts CHANGED
@@ -4,13 +4,6 @@ export interface IBank {
4
4
  account_name: string;
5
5
  account_number: string;
6
6
  }
7
- export type SectionTitleProps = {
8
- recipient?: string;
9
- benefit?: string;
10
- shipment?: string;
11
- payment?: string;
12
- };
13
- export declare const SECTION_TITLE_DEFAULT: SectionTitleProps;
14
7
  export type OnSuccessType = "default" | "url" | "random_whatsapp";
15
8
  export type GuaranteeType = {
16
9
  icon?: string;
@@ -118,3 +111,4 @@ export interface IDetail {
118
111
  yt_url?: string;
119
112
  };
120
113
  }
114
+ export * from './oms';
package/dist/oms.d.ts ADDED
@@ -0,0 +1,287 @@
1
+ export type OmsAddressProvinceT = {
2
+ id?: number | null;
3
+ name: string | null;
4
+ };
5
+ export type OmsAddressCityT = {
6
+ id?: number | null;
7
+ type: string | null;
8
+ name: string | null;
9
+ province: OmsAddressProvinceT;
10
+ };
11
+ export type OmsAddressDistrictT = {
12
+ id?: number | null;
13
+ name: string | null;
14
+ postal_code?: string | null;
15
+ city: OmsAddressCityT;
16
+ city_id?: number;
17
+ };
18
+ export type OmsAddressSubdistrictT = {
19
+ id?: number | null;
20
+ postal_code?: string | null;
21
+ name: string | null;
22
+ district_id?: number;
23
+ district: OmsAddressDistrictT;
24
+ };
25
+ export type OmsAddressDetailT = {
26
+ id?: number;
27
+ label: string;
28
+ name: string;
29
+ shipper_name: string;
30
+ address: string;
31
+ phone: string;
32
+ provinsi_id: number;
33
+ kabupaten_id: number | null;
34
+ kecamatan_id: number | null;
35
+ kelurahan_id: number | null;
36
+ kodepos?: string | null;
37
+ latitude?: number | null;
38
+ longitude?: number | null;
39
+ primary: number;
40
+ is_primary: boolean;
41
+ created_at: string | null;
42
+ updated_at: string | null;
43
+ deleted_at: string | null;
44
+ is_visible: number;
45
+ subdistrict: OmsAddressSubdistrictT;
46
+ };
47
+ export type OmsProductImage = {
48
+ id: number;
49
+ sort_order?: number;
50
+ url?: string;
51
+ file?: File;
52
+ };
53
+ export type OmsProductInformationT = {
54
+ name?: string;
55
+ slug?: string;
56
+ sku?: string;
57
+ category_id?: number;
58
+ product_type_id?: number;
59
+ description?: string;
60
+ insurance?: boolean;
61
+ images?: OmsProductImage[];
62
+ video?: string;
63
+ };
64
+ export type OmsProductWarehouseT = {
65
+ warehouse?: OmsAddressDetailT;
66
+ };
67
+ export type OmsProductDimensionT = {
68
+ weight?: number;
69
+ length?: number;
70
+ width?: number;
71
+ height?: number;
72
+ };
73
+ export type OmsProductVariantT = {
74
+ has_variant?: boolean;
75
+ variant_types?: {
76
+ id?: number;
77
+ existing_id?: number;
78
+ name?: string;
79
+ attributes?: {
80
+ id?: number;
81
+ existing_id?: number;
82
+ name?: string;
83
+ }[];
84
+ }[];
85
+ };
86
+ export type OmsProductVariantCombinationT = {
87
+ id?: number;
88
+ existing_id?: number;
89
+ attributes?: {
90
+ variant_type?: string;
91
+ variant_attribute?: string;
92
+ }[];
93
+ stock: {
94
+ total_quantity?: number;
95
+ };
96
+ sku?: string;
97
+ cogs?: number;
98
+ sell_price?: number;
99
+ publish_price?: number;
100
+ };
101
+ export type OmsProductStockT = {
102
+ stock_type: 'static' | 'tracking';
103
+ stock_status?: 'ready' | 'soldout';
104
+ stock: {
105
+ total_quantity?: number;
106
+ };
107
+ };
108
+ export type OmsProductPriceT = {
109
+ cogs?: number;
110
+ sell_price?: number;
111
+ publish_price?: number;
112
+ };
113
+ export type OmsProductResponsiblePersonT = {
114
+ entity_type?: string;
115
+ entity_id?: number;
116
+ };
117
+ export type OmsProductTypeT = {
118
+ id?: number;
119
+ name?: string;
120
+ insurance?: boolean;
121
+ is_fragile?: boolean;
122
+ };
123
+ export type OmsProductCategoryT = {
124
+ id?: number;
125
+ name?: string;
126
+ package_type_id?: number;
127
+ product_type_id?: number;
128
+ package_type_name?: string;
129
+ };
130
+ export type OmsProductCatalogSettingResourceT = {
131
+ key?: string;
132
+ value?: string;
133
+ };
134
+ export type OmsProductCatalogDetailT = OmsProductInformationT & OmsProductWarehouseT & {
135
+ id?: number;
136
+ weight?: number;
137
+ responsible_person?: OmsProductResponsiblePersonT;
138
+ category?: OmsProductCategoryT;
139
+ medias?: {
140
+ images?: OmsProductImage[];
141
+ videos?: {
142
+ url?: string;
143
+ }[];
144
+ };
145
+ dimension?: OmsProductDimensionT;
146
+ stock_type?: number;
147
+ stock_status?: number;
148
+ stock?: {
149
+ total_quantity?: number;
150
+ };
151
+ pricing?: OmsProductPriceT;
152
+ variant_types?: OmsProductVariantT['variant_types'];
153
+ variants?: OmsProductVariantCombinationT[];
154
+ };
155
+ export type OmsGuaranteeBadgeT = {
156
+ id?: number;
157
+ label?: string;
158
+ code?: string;
159
+ url?: string;
160
+ };
161
+ export type OmsInputOptionConfigurationT = {
162
+ label?: string;
163
+ name?: string;
164
+ type?: 'text';
165
+ value?: string;
166
+ };
167
+ export type OmsBuilderTemplateInputOptionT = {
168
+ id?: number;
169
+ label?: string;
170
+ type?: 'text' | 'address' | 'long_text' | 'phone_number' | 'date';
171
+ is_default?: boolean;
172
+ required?: boolean;
173
+ is_active?: boolean;
174
+ configuration?: OmsInputOptionConfigurationT[];
175
+ };
176
+ export type OmsCourierGroupServiceT = {
177
+ label?: string;
178
+ code?: string;
179
+ cod_supported?: boolean;
180
+ };
181
+ export type OmsCourierGroupT = {
182
+ id?: number;
183
+ code?: string;
184
+ name?: string;
185
+ image_url?: string;
186
+ services?: OmsCourierGroupServiceT[];
187
+ };
188
+ export type OmsVariableT = {
189
+ name?: string;
190
+ variable?: string;
191
+ };
192
+ export type OmsBankT = {
193
+ id?: number;
194
+ bank_id?: number;
195
+ bank_name?: string;
196
+ bank_account_name?: string;
197
+ bank_account_number?: string;
198
+ bank_image_url?: string;
199
+ };
200
+ export type OmsBuilderTemplateImageT = {
201
+ id?: number;
202
+ url?: string;
203
+ file?: File;
204
+ };
205
+ export type OmsBuilderTemplateHeaderT = {
206
+ image?: OmsBuilderTemplateImageT;
207
+ title?: {
208
+ value?: string;
209
+ is_active?: boolean;
210
+ };
211
+ sub_title?: {
212
+ value?: string;
213
+ is_active?: boolean;
214
+ };
215
+ };
216
+ export type OmsBuilderTemplateTestimonialT = {
217
+ images?: OmsBuilderTemplateImageT[];
218
+ is_active?: boolean;
219
+ };
220
+ export type OmsBuilderTemplateDisplayModeT = {
221
+ background_color?: string;
222
+ component_color?: string;
223
+ };
224
+ export type OmsBuilderTemplateGuaranteeBadgeT = {
225
+ values?: OmsGuaranteeBadgeT[];
226
+ is_active?: boolean;
227
+ };
228
+ export type OmsBuilderTemplateProductDisplayT = {
229
+ image?: boolean;
230
+ video?: boolean;
231
+ description?: boolean;
232
+ };
233
+ export type OmsBuilderTemplateProductVariationT = {
234
+ view_type?: 'modern' | 'radio' | 'dropdown';
235
+ multiple_variant?: boolean;
236
+ multiple_variant_cart?: boolean;
237
+ hide_empty_variant?: boolean;
238
+ };
239
+ export type OmsBuilderTemplatePaymentOptionT = {
240
+ cod?: boolean;
241
+ non_cod?: boolean;
242
+ unique_code?: boolean;
243
+ tax?: boolean;
244
+ banks?: OmsBankT[];
245
+ };
246
+ export type OmsBuilderTemplateSuccessConfigurationT = {
247
+ page?: {
248
+ title_cod?: {
249
+ is_active?: boolean;
250
+ content?: string;
251
+ };
252
+ sub_title_cod?: {
253
+ is_active?: boolean;
254
+ content?: string;
255
+ };
256
+ title_non_cod?: {
257
+ is_active?: boolean;
258
+ content?: string;
259
+ };
260
+ sub_title_non_cod?: {
261
+ is_active?: boolean;
262
+ content?: string;
263
+ };
264
+ };
265
+ redirect_web?: {
266
+ url?: string;
267
+ };
268
+ redirect_whatsapp?: {
269
+ phone?: string;
270
+ content_cod?: string;
271
+ content_non_cod?: string;
272
+ };
273
+ };
274
+ export type OmsBuilderTemplateT = {
275
+ name?: string;
276
+ header?: OmsBuilderTemplateHeaderT;
277
+ testimonial?: OmsBuilderTemplateTestimonialT;
278
+ display_mode?: OmsBuilderTemplateDisplayModeT;
279
+ guarantee_badges?: OmsBuilderTemplateGuaranteeBadgeT;
280
+ product_display?: OmsBuilderTemplateProductDisplayT;
281
+ product_variation?: OmsBuilderTemplateProductVariationT;
282
+ input_fields?: OmsBuilderTemplateInputOptionT[];
283
+ payment_option?: OmsBuilderTemplatePaymentOptionT;
284
+ couriers?: OmsCourierGroupT[];
285
+ voucher?: boolean;
286
+ success_configuration?: OmsBuilderTemplateSuccessConfigurationT;
287
+ };
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@kiriminaja/types",
3
- "version": "0.1.16",
4
- "license": "MIT",
5
- "files": [
6
- "dist"
7
- ],
8
- "scripts": {
9
- "build": "tsc -p tsconfig.json",
10
- "clean": "rimraf dist",
11
- "prepublishOnly": "npm run build"
12
- },
13
- "types": "./dist/index.d.ts",
14
- "exports": {
15
- ".": {
16
- "types": "./dist/index.d.ts"
17
- },
18
- "./checkout": {
19
- "types": "./dist/checkout.d.ts"
20
- }
21
- },
22
- "sideEffects": false,
23
- "devDependencies": {
24
- "@typescript/native-preview": "^7.0.0-dev.20251001.1"
25
- },
26
- "publishConfig": {
27
- "access": "public"
28
- }
29
- }
1
+ {
2
+ "name": "@kiriminaja/types",
3
+ "version": "0.1.18",
4
+ "license": "MIT",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "scripts": {
9
+ "build": "tsc -p tsconfig.json",
10
+ "clean": "rimraf dist",
11
+ "prepublishOnly": "npm run build"
12
+ },
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "./checkout": {
19
+ "types": "./dist/checkout.d.ts"
20
+ }
21
+ },
22
+ "sideEffects": false,
23
+ "devDependencies": {
24
+ "@typescript/native-preview": "^7.0.0-dev.20251001.1"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ }
29
+ }