@compassdigital/sdk.typescript 4.894.0 → 4.896.0
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/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/user.d.ts +4 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -1
- package/src/interface/centricos.ts +14 -12
- package/src/interface/consumer.ts +11 -0
- package/src/interface/user.ts +9 -1
|
@@ -800,13 +800,13 @@ export const DiscountMetaType = {
|
|
|
800
800
|
export type DiscountMetaType = (typeof DiscountMetaType)[keyof typeof DiscountMetaType];
|
|
801
801
|
|
|
802
802
|
export interface CentricVoucherifyMetaDataDiscount {
|
|
803
|
-
//
|
|
803
|
+
// @deprecated
|
|
804
804
|
type: DiscountMetaType;
|
|
805
|
-
//
|
|
805
|
+
// @deprecated
|
|
806
806
|
amountOff?: number;
|
|
807
|
-
//
|
|
807
|
+
// @deprecated
|
|
808
808
|
fixedPrice?: number;
|
|
809
|
-
//
|
|
809
|
+
// @deprecated
|
|
810
810
|
percentOff?: number;
|
|
811
811
|
}
|
|
812
812
|
|
|
@@ -849,7 +849,7 @@ export interface PutCentricDiscountRequestDiscount {
|
|
|
849
849
|
// item level config of the discount
|
|
850
850
|
itemLevelConfig?: CentricDiscountItemLevelConfig;
|
|
851
851
|
is?: CentricDiscountIs;
|
|
852
|
-
//
|
|
852
|
+
// @deprecated
|
|
853
853
|
meta?: CentricVoucherifyMetaDataDiscount;
|
|
854
854
|
// discount schedule
|
|
855
855
|
schedule?: CentricDiscountSchedule;
|
|
@@ -947,7 +947,7 @@ export interface DiscountResponseDTO {
|
|
|
947
947
|
type: DiscountType;
|
|
948
948
|
// item level config of the discount
|
|
949
949
|
itemLevelConfig?: CentricDiscountItemLevelConfig;
|
|
950
|
-
//
|
|
950
|
+
// @deprecated
|
|
951
951
|
meta?: CentricVoucherifyMetaDataDiscount;
|
|
952
952
|
id: string;
|
|
953
953
|
createdAt: string;
|
|
@@ -966,17 +966,17 @@ export interface PutCentricDiscountResponseDTO {
|
|
|
966
966
|
}
|
|
967
967
|
|
|
968
968
|
export interface CentricVoucherifyMetaData {
|
|
969
|
-
//
|
|
969
|
+
// @deprecated
|
|
970
970
|
discount?: CentricVoucherifyMetaDataDiscount;
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
export interface CentricMetaProvider {
|
|
974
|
-
//
|
|
974
|
+
// @deprecated
|
|
975
975
|
voucherify?: CentricVoucherifyMetaData;
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
export interface CentricDiscountMeta {
|
|
979
|
-
//
|
|
979
|
+
// @deprecated
|
|
980
980
|
provider: CentricMetaProvider;
|
|
981
981
|
}
|
|
982
982
|
|
|
@@ -997,7 +997,7 @@ export interface PutCentricDiscountPublishResponseDTO {
|
|
|
997
997
|
type: DiscountType;
|
|
998
998
|
// item level config of the discount
|
|
999
999
|
itemLevelConfig?: CentricDiscountItemLevelConfig;
|
|
1000
|
-
//
|
|
1000
|
+
// @deprecated
|
|
1001
1001
|
meta?: CentricDiscountMeta;
|
|
1002
1002
|
// List of sites where discount is published
|
|
1003
1003
|
sites?: CentricDiscountEntityBase[];
|
|
@@ -1018,7 +1018,7 @@ export interface PutDiscountVoucherifyRequestDiscount {
|
|
|
1018
1018
|
// item level config of the discount
|
|
1019
1019
|
itemLevelConfig?: CentricDiscountItemLevelConfig;
|
|
1020
1020
|
is?: CentricDiscountIs;
|
|
1021
|
-
//
|
|
1021
|
+
// @deprecated
|
|
1022
1022
|
meta?: CentricVoucherifyMetaDataDiscount;
|
|
1023
1023
|
// discount schedule
|
|
1024
1024
|
schedule?: CentricDiscountSchedule;
|
|
@@ -1064,7 +1064,7 @@ export interface PutDiscountVoucherifyPublishResponseDTO {
|
|
|
1064
1064
|
type: DiscountType;
|
|
1065
1065
|
// item level config of the discount
|
|
1066
1066
|
itemLevelConfig?: CentricDiscountItemLevelConfig;
|
|
1067
|
-
//
|
|
1067
|
+
// @deprecated
|
|
1068
1068
|
meta?: CentricDiscountMeta;
|
|
1069
1069
|
// List of sites where discount is published
|
|
1070
1070
|
sites?: CentricDiscountEntityBase[];
|
|
@@ -1104,6 +1104,7 @@ export interface DiscountDTO {
|
|
|
1104
1104
|
createdAt: string;
|
|
1105
1105
|
updatedAt: string;
|
|
1106
1106
|
is?: CentricDiscountIs;
|
|
1107
|
+
// @deprecated
|
|
1107
1108
|
meta?: Record<string, any>;
|
|
1108
1109
|
schedule?: Record<string, any>;
|
|
1109
1110
|
}
|
|
@@ -1138,6 +1139,7 @@ export interface GetDiscountsDiscountResponseDTO {
|
|
|
1138
1139
|
createdAt: string;
|
|
1139
1140
|
updatedAt: string;
|
|
1140
1141
|
is?: CentricDiscountIs;
|
|
1142
|
+
// @deprecated
|
|
1141
1143
|
meta?: Record<string, any>;
|
|
1142
1144
|
schedule?: Record<string, any>;
|
|
1143
1145
|
}
|
|
@@ -589,23 +589,32 @@ export interface ConsumerDiscountIs {
|
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
export interface ConsumerVoucherifyMetaDataDiscount {
|
|
592
|
+
// @deprecated
|
|
592
593
|
type: 'AMOUNT_OFF' | 'PERCENT_OFF' | 'FIXED_PRICE' | 'FREE';
|
|
594
|
+
// @deprecated
|
|
593
595
|
amountOff?: number;
|
|
596
|
+
// @deprecated
|
|
594
597
|
percentOff?: number;
|
|
598
|
+
// @deprecated
|
|
595
599
|
fixedPrice?: number;
|
|
596
600
|
}
|
|
597
601
|
|
|
598
602
|
export interface ConsumerVoucherifyMetaData {
|
|
603
|
+
// @deprecated
|
|
599
604
|
id?: string;
|
|
605
|
+
// @deprecated
|
|
600
606
|
code?: string;
|
|
607
|
+
// @deprecated
|
|
601
608
|
discount?: ConsumerVoucherifyMetaDataDiscount;
|
|
602
609
|
}
|
|
603
610
|
|
|
604
611
|
export interface ConsumerMetaProvider {
|
|
612
|
+
// @deprecated
|
|
605
613
|
voucherify?: ConsumerVoucherifyMetaData;
|
|
606
614
|
}
|
|
607
615
|
|
|
608
616
|
export interface ConsumerDiscountMeta {
|
|
617
|
+
// @deprecated
|
|
609
618
|
provider: ConsumerMetaProvider;
|
|
610
619
|
}
|
|
611
620
|
|
|
@@ -618,6 +627,7 @@ export interface ConsumerStackedDiscount {
|
|
|
618
627
|
name: string;
|
|
619
628
|
status?: ConsumerDiscountStatus;
|
|
620
629
|
is?: ConsumerDiscountIs;
|
|
630
|
+
// @deprecated
|
|
621
631
|
meta?: ConsumerDiscountMeta;
|
|
622
632
|
applied_amount: number;
|
|
623
633
|
}
|
|
@@ -1510,6 +1520,7 @@ export interface ConsumerDiscountDTO {
|
|
|
1510
1520
|
name: string;
|
|
1511
1521
|
status: ConsumerDiscountStatus;
|
|
1512
1522
|
is?: ConsumerDiscountIs;
|
|
1523
|
+
// @deprecated
|
|
1513
1524
|
meta?: ConsumerDiscountMeta;
|
|
1514
1525
|
channelConfig: ConsumerDiscountChannelConfig;
|
|
1515
1526
|
}
|
package/src/interface/user.ts
CHANGED
|
@@ -504,9 +504,17 @@ export interface DeleteUserPath {
|
|
|
504
504
|
id: string;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
+
export interface DeleteUserQuery {
|
|
508
|
+
// Why the user is being deleted, carried on UserSoftDeletedEvent. Defaults to deleted.
|
|
509
|
+
trigger?: 'deleted' | 'inactive_7y' | 'backfill';
|
|
510
|
+
}
|
|
511
|
+
|
|
507
512
|
export type DeleteUserResponse = success;
|
|
508
513
|
|
|
509
|
-
export interface DeleteUserRequest
|
|
514
|
+
export interface DeleteUserRequest
|
|
515
|
+
extends BaseRequest,
|
|
516
|
+
RequestQuery<DeleteUserQuery>,
|
|
517
|
+
DeleteUserPath {}
|
|
510
518
|
|
|
511
519
|
// POST /user/device/auth - Endpoint for generating/retrieving KDS device token
|
|
512
520
|
|