@soma-vertical-web/multi-lib 0.0.30 → 0.0.31
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/data/api/checkout/address/index.d.ts +1 -1
- package/data/api/checkout/order-form/attachments/index.d.ts +1 -1
- package/data/api/checkout/order-form/index.d.ts +1 -0
- package/data/api/checkout/order-form/items/index.d.ts +23 -0
- package/data/api/checkout/order-form/items/update/index.d.ts +0 -18
- package/data/helpers/cart/index.d.ts +1 -1
- package/index.js +14 -14
- package/index.mjs +1 -1
- package/index2.js +1 -1
- package/index2.mjs +294 -259
- package/package.json +1 -1
- package/types/constants.d.ts +0 -8
- package/types/data/api/checkout/index.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchFunctionsProps } from '../../../../types/data/api';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
-
|
|
3
|
+
declare const schemaAddress: yup.ObjectSchema<{
|
|
4
4
|
country: string;
|
|
5
5
|
postalCode: string | null | undefined;
|
|
6
6
|
}, yup.AnyObject, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchFunctionsProps } from '../../../../../types/data/api';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
-
|
|
3
|
+
declare const schemaAttachments: yup.ObjectSchema<{
|
|
4
4
|
orderFormId: string | null | undefined;
|
|
5
5
|
sellerCode: string | null | undefined;
|
|
6
6
|
sellerName: string | null | undefined;
|
|
@@ -3,6 +3,7 @@ export * from './attachments/marketing-data';
|
|
|
3
3
|
export * from './attachments/open-text-field';
|
|
4
4
|
export * from './coupon';
|
|
5
5
|
export * from './custom-data';
|
|
6
|
+
export * from './items';
|
|
6
7
|
export * from './items/remove-all';
|
|
7
8
|
export * from './items/update';
|
|
8
9
|
export * from './messages/remove-all';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FetchFunctionsProps } from '../../../../../types/data/api';
|
|
2
|
+
|
|
3
|
+
import * as yup from 'yup';
|
|
4
|
+
declare const schemaItems: yup.ObjectSchema<{
|
|
5
|
+
orderFormId: string;
|
|
6
|
+
orderItems: {
|
|
7
|
+
quantity?: number | null | undefined;
|
|
8
|
+
price?: number | undefined;
|
|
9
|
+
index?: number | null | undefined;
|
|
10
|
+
attachments?: {
|
|
11
|
+
name: string;
|
|
12
|
+
content: {} | null;
|
|
13
|
+
}[] | null | undefined;
|
|
14
|
+
seller: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
}, yup.AnyObject, {
|
|
18
|
+
orderFormId: undefined;
|
|
19
|
+
orderItems: "";
|
|
20
|
+
}, "">;
|
|
21
|
+
type SchemaType = yup.InferType<typeof schemaItems>;
|
|
22
|
+
export declare function postOrderFormItems({ apiUrl, body, fetchOptions, }: FetchFunctionsProps<SchemaType>): Promise<any>;
|
|
23
|
+
export {};
|
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
import { FetchFunctionsProps } from '../../../../../../types/data/api';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
-
export declare const schemaItem: yup.ObjectSchema<{
|
|
4
|
-
attachments: {
|
|
5
|
-
name: string;
|
|
6
|
-
content: {} | null;
|
|
7
|
-
}[] | null | undefined;
|
|
8
|
-
id: string;
|
|
9
|
-
index: number | null | undefined;
|
|
10
|
-
quantity: number | null | undefined;
|
|
11
|
-
seller: string;
|
|
12
|
-
price: number | undefined;
|
|
13
|
-
}, yup.AnyObject, {
|
|
14
|
-
attachments: "";
|
|
15
|
-
id: undefined;
|
|
16
|
-
index: undefined;
|
|
17
|
-
quantity: undefined;
|
|
18
|
-
seller: undefined;
|
|
19
|
-
price: undefined;
|
|
20
|
-
}, "">;
|
|
21
3
|
declare const schemaItems: yup.ObjectSchema<{
|
|
22
4
|
orderFormId: string | null | undefined;
|
|
23
5
|
orderItems: {
|
|
@@ -173,7 +173,7 @@ export declare const wishlistArray: (productNode: CartItem, wishlist: CartItem[]
|
|
|
173
173
|
}>;
|
|
174
174
|
};
|
|
175
175
|
}[];
|
|
176
|
-
export declare const getRemoveId: (productId: string, items?: CartItemStore[] | boolean) => Promise<
|
|
176
|
+
export declare const getRemoveId: (productId: string, items?: CartItemStore[] | boolean) => Promise<boolean> | Promise<string>;
|
|
177
177
|
export declare const getValue: <K extends keyof OptionalOrderForm>(order: OptionalOrderForm, key?: K) => Promise<boolean> | Promise<Awaited<OptionalOrderForm[K]>>;
|
|
178
178
|
export declare const updateOrderFormPromise: (callback: () => Promise<OptionalOrderForm | boolean>) => Promise<false | OptionalOrderForm>;
|
|
179
179
|
export declare const getQuantity: (quantity: number, index: number) => number;
|