@ikas/storefront 0.2.0-beta.1 → 0.3.0-alpha.1
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/build/__generated__/global-types.d.ts +34 -0
- package/build/api/cart/__generated__/getCart.d.ts +1 -16
- package/build/api/index.d.ts +1 -0
- package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +41 -0
- package/build/api/raffle/__generated__/listRaffle.d.ts +58 -0
- package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +21 -0
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +30 -0
- package/build/api/raffle/index.d.ts +24 -0
- package/build/index.es.js +1371 -406
- package/build/index.js +1382 -405
- package/build/models/data/cart/index.d.ts +0 -2
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/order/line-item/index.d.ts +0 -2
- package/build/models/data/product/index.d.ts +0 -1
- package/build/models/data/product-option-set/index.d.ts +3 -18
- package/build/models/data/raffle/index.d.ts +63 -0
- package/build/models/theme/component/prop/index.d.ts +2 -0
- package/build/models/theme/index.d.ts +2 -0
- package/build/models/theme/page/component/prop-value/raffle-list.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/raffle.d.ts +5 -0
- package/build/models/theme/page/index.d.ts +4 -1
- package/build/models/ui/index.d.ts +2 -0
- package/build/models/ui/raffle-list/index.d.ts +54 -0
- package/build/models/ui/validator/form/raffle-form.d.ts +60 -0
- package/build/models/ui/validator/rules/index.d.ts +4 -0
- package/build/pages/account/raffles.d.ts +6 -0
- package/build/pages/index.d.ts +4 -1
- package/build/pages/raffle/[slug].d.ts +7 -0
- package/build/pages/raffle/index.d.ts +6 -0
- package/build/providers/page-data-init.d.ts +7 -1
- package/build/providers/placeholders.d.ts +2 -1
- package/build/providers/prop-value/custom.d.ts +2 -0
- package/build/providers/prop-value/raffle-list.d.ts +5 -0
- package/build/providers/prop-value/raffle.d.ts +11 -0
- package/build/store/cart.d.ts +2 -4
- package/build/store/customer.d.ts +1 -0
- package/package.json +1 -1
- package/build/models/data/order/line-item/options/index.d.ts +0 -20
- package/build/models/data/order/line-item/options/options-value/index.d.ts +0 -6
- package/build/models/data/product-cart-item-options/index.d.ts +0 -6
|
@@ -268,6 +268,12 @@ export declare enum ProductSearchShowStockOptionEnum {
|
|
|
268
268
|
SHOW_ALL = "SHOW_ALL",
|
|
269
269
|
SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
|
|
270
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* RaffleMetadataTargetTypeEnum
|
|
273
|
+
*/
|
|
274
|
+
export declare enum RaffleMetadataTargetTypeEnum {
|
|
275
|
+
RAFFLE = "RAFFLE"
|
|
276
|
+
}
|
|
271
277
|
/**
|
|
272
278
|
* Shipping Method Enum
|
|
273
279
|
*/
|
|
@@ -340,6 +346,17 @@ export declare enum VariantSelectionTypeEnum {
|
|
|
340
346
|
CHOICE = "CHOICE",
|
|
341
347
|
COLOR = "COLOR"
|
|
342
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* Verification Type Enum
|
|
351
|
+
*/
|
|
352
|
+
export declare enum VerificationTypeEnum {
|
|
353
|
+
EMAIL = "EMAIL",
|
|
354
|
+
MERSIS = "MERSIS"
|
|
355
|
+
}
|
|
356
|
+
export interface AppliedProductInput {
|
|
357
|
+
productId?: string | null;
|
|
358
|
+
variantId: string;
|
|
359
|
+
}
|
|
343
360
|
export interface BlogMetadataTargetTypeEnumFilter {
|
|
344
361
|
eq?: BlogMetadataTargetTypeEnum | null;
|
|
345
362
|
in?: BlogMetadataTargetTypeEnum[] | null;
|
|
@@ -523,6 +540,23 @@ export interface ProductLastViewedInput {
|
|
|
523
540
|
products: ProductItemInput[];
|
|
524
541
|
updatedAt?: any | null;
|
|
525
542
|
}
|
|
543
|
+
export interface RaffleMetadataTargetTypeEnumFilter {
|
|
544
|
+
eq?: RaffleMetadataTargetTypeEnum | null;
|
|
545
|
+
in?: RaffleMetadataTargetTypeEnum[] | null;
|
|
546
|
+
}
|
|
547
|
+
export interface RaffleParticipantsInput {
|
|
548
|
+
appliedProducts: AppliedProductInput[];
|
|
549
|
+
createdAt?: any | null;
|
|
550
|
+
deleted?: boolean | null;
|
|
551
|
+
email: string;
|
|
552
|
+
extraData?: any | null;
|
|
553
|
+
firstName: string;
|
|
554
|
+
id?: string | null;
|
|
555
|
+
lastName: string;
|
|
556
|
+
phone?: string | null;
|
|
557
|
+
raffleId: string;
|
|
558
|
+
updatedAt?: any | null;
|
|
559
|
+
}
|
|
526
560
|
export interface RetrieveInstallmentInfoInput {
|
|
527
561
|
binNumber: string;
|
|
528
562
|
paymentGatewayId: string;
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import { AmountTypeEnum,
|
|
1
|
+
import { AmountTypeEnum, OrderLineItemStatusEnum, CartStatusEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface getCart_getCart_items_discount {
|
|
3
3
|
__typename: "OrderLineDiscount";
|
|
4
4
|
amount: number;
|
|
5
5
|
amountType: AmountTypeEnum;
|
|
6
6
|
reason: string | null;
|
|
7
7
|
}
|
|
8
|
-
export interface getCart_getCart_items_options_values {
|
|
9
|
-
__typename: "OrderLineOptionValue";
|
|
10
|
-
name: string | null;
|
|
11
|
-
price: number | null;
|
|
12
|
-
value: string;
|
|
13
|
-
}
|
|
14
|
-
export interface getCart_getCart_items_options {
|
|
15
|
-
__typename: "OrderLineOption";
|
|
16
|
-
name: string;
|
|
17
|
-
productOptionId: string;
|
|
18
|
-
productOptionsSetId: string;
|
|
19
|
-
type: ProductOptionTypeEnum;
|
|
20
|
-
values: getCart_getCart_items_options_values[];
|
|
21
|
-
}
|
|
22
8
|
export interface getCart_getCart_items_variant_variantValues {
|
|
23
9
|
__typename: "OrderLineVariantVariantValues";
|
|
24
10
|
order: number;
|
|
@@ -46,7 +32,6 @@ export interface getCart_getCart_items {
|
|
|
46
32
|
discountPrice: number | null;
|
|
47
33
|
finalPrice: number | null;
|
|
48
34
|
id: string;
|
|
49
|
-
options: getCart_getCart_items_options[] | null;
|
|
50
35
|
originalOrderLineItemId: string | null;
|
|
51
36
|
price: number;
|
|
52
37
|
quantity: number;
|
package/build/api/index.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ export { IkasContactFormAPI } from "./contact-form/index";
|
|
|
17
17
|
export { IkasStateAPI } from "./state/index";
|
|
18
18
|
export { IkasVariantTypeAPI } from "./variant-type/index";
|
|
19
19
|
export { IkasProductOptionSetAPI } from "./product-option-set/index";
|
|
20
|
+
export { IkasRaffleAPI, ListRaffleParams } from "./raffle/index";
|
|
20
21
|
export { IkasProductBackInStockReminderAPI } from "./back-in-stock-reminder/index";
|
|
21
22
|
export { apollo } from "./apollo";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VerificationTypeEnum, RaffleMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface getRafflesByCustomerId_getRafflesByCustomerId_variants {
|
|
3
|
+
__typename: "RaffleVariantInformation";
|
|
4
|
+
productId: string;
|
|
5
|
+
variantId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface getRafflesByCustomerId_getRafflesByCustomerId_dateRange {
|
|
8
|
+
__typename: "RaffleDateRangeField";
|
|
9
|
+
end: any | null;
|
|
10
|
+
start: any | null;
|
|
11
|
+
}
|
|
12
|
+
export interface getRafflesByCustomerId_getRafflesByCustomerId_metadata {
|
|
13
|
+
__typename: "RaffleMetadata";
|
|
14
|
+
createdAt: any | null;
|
|
15
|
+
deleted: boolean | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
id: string;
|
|
18
|
+
pageTitle: string | null;
|
|
19
|
+
slug: string;
|
|
20
|
+
targetId: string | null;
|
|
21
|
+
targetType: RaffleMetadataTargetTypeEnum | null;
|
|
22
|
+
updatedAt: any | null;
|
|
23
|
+
}
|
|
24
|
+
export interface getRafflesByCustomerId_getRafflesByCustomerId {
|
|
25
|
+
__typename: "Raffle";
|
|
26
|
+
createdAt: any | null;
|
|
27
|
+
variants: getRafflesByCustomerId_getRafflesByCustomerId_variants[];
|
|
28
|
+
verificationType: VerificationTypeEnum;
|
|
29
|
+
dateRange: getRafflesByCustomerId_getRafflesByCustomerId_dateRange | null;
|
|
30
|
+
deleted: boolean | null;
|
|
31
|
+
id: string;
|
|
32
|
+
metadata: getRafflesByCustomerId_getRafflesByCustomerId_metadata;
|
|
33
|
+
name: string;
|
|
34
|
+
participantCount: number | null;
|
|
35
|
+
requiredCustomerAccount: boolean;
|
|
36
|
+
status: boolean;
|
|
37
|
+
updatedAt: any | null;
|
|
38
|
+
}
|
|
39
|
+
export interface getRafflesByCustomerId {
|
|
40
|
+
getRafflesByCustomerId: getRafflesByCustomerId_getRafflesByCustomerId[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DateFilterInput, StringFilterInput, PaginationInput, VerificationTypeEnum, RaffleMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listRaffle_listRaffle_data_variants {
|
|
3
|
+
__typename: "RaffleVariantInformation";
|
|
4
|
+
productId: string;
|
|
5
|
+
variantId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface listRaffle_listRaffle_data_dateRange {
|
|
8
|
+
__typename: "RaffleDateRangeField";
|
|
9
|
+
end: any | null;
|
|
10
|
+
start: any | null;
|
|
11
|
+
}
|
|
12
|
+
export interface listRaffle_listRaffle_data_metadata {
|
|
13
|
+
__typename: "RaffleMetadata";
|
|
14
|
+
createdAt: any | null;
|
|
15
|
+
deleted: boolean | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
id: string;
|
|
18
|
+
pageTitle: string | null;
|
|
19
|
+
slug: string;
|
|
20
|
+
targetId: string | null;
|
|
21
|
+
targetType: RaffleMetadataTargetTypeEnum | null;
|
|
22
|
+
updatedAt: any | null;
|
|
23
|
+
}
|
|
24
|
+
export interface listRaffle_listRaffle_data {
|
|
25
|
+
__typename: "Raffle";
|
|
26
|
+
createdAt: any | null;
|
|
27
|
+
variants: listRaffle_listRaffle_data_variants[];
|
|
28
|
+
verificationType: VerificationTypeEnum;
|
|
29
|
+
dateRange: listRaffle_listRaffle_data_dateRange | null;
|
|
30
|
+
deleted: boolean | null;
|
|
31
|
+
id: string;
|
|
32
|
+
metadata: listRaffle_listRaffle_data_metadata;
|
|
33
|
+
name: string;
|
|
34
|
+
participantCount: number | null;
|
|
35
|
+
requiredCustomerAccount: boolean;
|
|
36
|
+
status: boolean;
|
|
37
|
+
updatedAt: any | null;
|
|
38
|
+
}
|
|
39
|
+
export interface listRaffle_listRaffle {
|
|
40
|
+
__typename: "RafflePaginationResponse";
|
|
41
|
+
count: number;
|
|
42
|
+
hasNext: boolean;
|
|
43
|
+
limit: number;
|
|
44
|
+
page: number;
|
|
45
|
+
data: listRaffle_listRaffle_data[];
|
|
46
|
+
}
|
|
47
|
+
export interface listRaffle {
|
|
48
|
+
listRaffle: listRaffle_listRaffle;
|
|
49
|
+
}
|
|
50
|
+
export interface listRaffleVariables {
|
|
51
|
+
end?: DateFilterInput | null;
|
|
52
|
+
start?: DateFilterInput | null;
|
|
53
|
+
id?: StringFilterInput | null;
|
|
54
|
+
includeDeleted?: boolean | null;
|
|
55
|
+
name?: StringFilterInput | null;
|
|
56
|
+
pagination?: PaginationInput | null;
|
|
57
|
+
search?: string | null;
|
|
58
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StringFilterInput, RaffleMetadataTargetTypeEnumFilter, RaffleMetadataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface listRaffleMetaData_listRaffleMetadata {
|
|
3
|
+
__typename: "RaffleMetadata";
|
|
4
|
+
createdAt: any | null;
|
|
5
|
+
deleted: boolean | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
pageTitle: string | null;
|
|
9
|
+
slug: string;
|
|
10
|
+
targetId: string | null;
|
|
11
|
+
targetType: RaffleMetadataTargetTypeEnum | null;
|
|
12
|
+
updatedAt: any | null;
|
|
13
|
+
}
|
|
14
|
+
export interface listRaffleMetaData {
|
|
15
|
+
listRaffleMetadata: listRaffleMetaData_listRaffleMetadata[];
|
|
16
|
+
}
|
|
17
|
+
export interface listRaffleMetaDataVariables {
|
|
18
|
+
slug?: StringFilterInput | null;
|
|
19
|
+
targetId?: StringFilterInput | null;
|
|
20
|
+
targetType?: RaffleMetadataTargetTypeEnumFilter | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RaffleParticipantsInput } from "../../../__generated__/global-types";
|
|
2
|
+
export interface saveRaffleParticipant_saveRaffleParticipant_appliedProducts {
|
|
3
|
+
__typename: "AppliedProduct";
|
|
4
|
+
productId: string | null;
|
|
5
|
+
variantId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface saveRaffleParticipant_saveRaffleParticipant {
|
|
8
|
+
__typename: "RaffleParticipants";
|
|
9
|
+
applicationDate: any;
|
|
10
|
+
isWinner: boolean | null;
|
|
11
|
+
lastName: string;
|
|
12
|
+
phone: string | null;
|
|
13
|
+
raffleId: string;
|
|
14
|
+
updatedAt: any | null;
|
|
15
|
+
appliedProducts: saveRaffleParticipant_saveRaffleParticipant_appliedProducts[];
|
|
16
|
+
createdAt: any | null;
|
|
17
|
+
customerId: string;
|
|
18
|
+
deleted: boolean | null;
|
|
19
|
+
email: string;
|
|
20
|
+
extraData: any | null;
|
|
21
|
+
firstName: string;
|
|
22
|
+
fullName: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}
|
|
25
|
+
export interface saveRaffleParticipant {
|
|
26
|
+
saveRaffleParticipant: saveRaffleParticipant_saveRaffleParticipant;
|
|
27
|
+
}
|
|
28
|
+
export interface saveRaffleParticipantVariables {
|
|
29
|
+
input: RaffleParticipantsInput;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IkasRaffle, IkasRaffleMetaData, IkasRaffleParticipant } from "../../models/data/raffle/index";
|
|
2
|
+
export declare type ListRaffleParams = {
|
|
3
|
+
start?: number | null;
|
|
4
|
+
end?: number | null;
|
|
5
|
+
includeDeleted?: boolean;
|
|
6
|
+
name?: string | null;
|
|
7
|
+
pagination?: {
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
} | null;
|
|
11
|
+
search?: string | null;
|
|
12
|
+
id?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export declare class IkasRaffleAPI {
|
|
15
|
+
static listRaffles(params: ListRaffleParams): Promise<ListRafflesResponse>;
|
|
16
|
+
static saveRaffleParticipant(participant: IkasRaffleParticipant): Promise<IkasRaffleParticipant | undefined>;
|
|
17
|
+
static listRaffleMetaData(slug?: string, targetId?: string, targetType?: string[]): Promise<IkasRaffleMetaData[]>;
|
|
18
|
+
static getRafflesByCustomerId(): Promise<IkasRaffle[] | undefined>;
|
|
19
|
+
}
|
|
20
|
+
declare type ListRafflesResponse = {
|
|
21
|
+
raffles: IkasRaffle[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
export {};
|