@compassdigital/sdk.typescript 4.344.0 → 4.346.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 +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +65 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +16 -16
- package/lib/interface/discount.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/consumer.ts +72 -0
- package/src/interface/discount.ts +16 -16
|
@@ -2076,6 +2076,68 @@ export interface PutConsumerUserResponse {
|
|
|
2076
2076
|
ssoId?: string;
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
+
export interface PatchConsumerUserRequest {
|
|
2080
|
+
id?: string;
|
|
2081
|
+
email?: string;
|
|
2082
|
+
name?: {
|
|
2083
|
+
first?: string;
|
|
2084
|
+
last?: string;
|
|
2085
|
+
};
|
|
2086
|
+
date?: {
|
|
2087
|
+
created?: string;
|
|
2088
|
+
modified?: string;
|
|
2089
|
+
};
|
|
2090
|
+
birthday?: string;
|
|
2091
|
+
password?: string;
|
|
2092
|
+
phone?: number;
|
|
2093
|
+
phone_country_code?: string;
|
|
2094
|
+
realm?: string;
|
|
2095
|
+
gender?: Record<string, any>;
|
|
2096
|
+
meta?: ConsumerUserMeta;
|
|
2097
|
+
is?: {
|
|
2098
|
+
disabled?: boolean;
|
|
2099
|
+
locked_out?: boolean;
|
|
2100
|
+
verified?: boolean;
|
|
2101
|
+
phone_verified?: boolean;
|
|
2102
|
+
deleted?: boolean;
|
|
2103
|
+
placeholder?: boolean;
|
|
2104
|
+
};
|
|
2105
|
+
permissions?: ConsumerScopes;
|
|
2106
|
+
location_group?: string;
|
|
2107
|
+
ssoId?: string;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
export interface PatchConsumerUserResponse {
|
|
2111
|
+
id?: string;
|
|
2112
|
+
email?: string;
|
|
2113
|
+
name?: {
|
|
2114
|
+
first?: string;
|
|
2115
|
+
last?: string;
|
|
2116
|
+
};
|
|
2117
|
+
date?: {
|
|
2118
|
+
created?: string;
|
|
2119
|
+
modified?: string;
|
|
2120
|
+
};
|
|
2121
|
+
birthday?: string;
|
|
2122
|
+
password?: string;
|
|
2123
|
+
phone?: number;
|
|
2124
|
+
phone_country_code?: string;
|
|
2125
|
+
realm?: string;
|
|
2126
|
+
gender?: Record<string, any>;
|
|
2127
|
+
meta?: ConsumerUserMeta;
|
|
2128
|
+
is?: {
|
|
2129
|
+
disabled?: boolean;
|
|
2130
|
+
locked_out?: boolean;
|
|
2131
|
+
verified?: boolean;
|
|
2132
|
+
phone_verified?: boolean;
|
|
2133
|
+
deleted?: boolean;
|
|
2134
|
+
placeholder?: boolean;
|
|
2135
|
+
};
|
|
2136
|
+
permissions?: ConsumerScopes;
|
|
2137
|
+
location_group?: string;
|
|
2138
|
+
ssoId?: string;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2079
2141
|
export interface GetConsumerUserResponse {
|
|
2080
2142
|
// The ID of the user
|
|
2081
2143
|
id: string;
|
|
@@ -3212,6 +3274,16 @@ export type PutConsumerUserBody = PutConsumerUserRequest;
|
|
|
3212
3274
|
|
|
3213
3275
|
export type PutConsumerUserResponse$0 = PutConsumerUserResponse;
|
|
3214
3276
|
|
|
3277
|
+
// PATCH /consumer/user/{id} - Update user
|
|
3278
|
+
|
|
3279
|
+
export interface PatchConsumerUserPath {
|
|
3280
|
+
id: string;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
export type PatchConsumerUserBody = PatchConsumerUserRequest;
|
|
3284
|
+
|
|
3285
|
+
export type PatchConsumerUserResponse$0 = PatchConsumerUserResponse;
|
|
3286
|
+
|
|
3215
3287
|
// GET /consumer/user/{id} - Get user
|
|
3216
3288
|
|
|
3217
3289
|
export interface GetConsumerUserPath {
|
|
@@ -77,7 +77,7 @@ export interface GetDiscountResponseDTO {
|
|
|
77
77
|
// user id of most recent update
|
|
78
78
|
updatedBy: string;
|
|
79
79
|
// What the discount applies to
|
|
80
|
-
appliesTo
|
|
80
|
+
appliesTo: 'order' | 'items';
|
|
81
81
|
sites?: string[];
|
|
82
82
|
brands?: string[];
|
|
83
83
|
createdAt: string;
|
|
@@ -87,7 +87,7 @@ export interface GetDiscountResponseDTO {
|
|
|
87
87
|
is?: DiscountIs;
|
|
88
88
|
meta?: DiscountMeta;
|
|
89
89
|
schedule?: DiscountSchedule;
|
|
90
|
-
channelConfig
|
|
90
|
+
channelConfig: DiscountChannelConfig;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export interface ErrorDisplayMessage {
|
|
@@ -124,7 +124,7 @@ export interface DiscountDTO {
|
|
|
124
124
|
// user id of most recent update
|
|
125
125
|
updatedBy: string;
|
|
126
126
|
// What the discount applies to
|
|
127
|
-
appliesTo
|
|
127
|
+
appliesTo: 'order' | 'items';
|
|
128
128
|
createdAt: string;
|
|
129
129
|
updatedAt: string;
|
|
130
130
|
name: string;
|
|
@@ -132,7 +132,7 @@ export interface DiscountDTO {
|
|
|
132
132
|
is?: DiscountIs;
|
|
133
133
|
meta?: DiscountMeta;
|
|
134
134
|
schedule?: DiscountSchedule;
|
|
135
|
-
channelConfig
|
|
135
|
+
channelConfig: DiscountChannelConfig;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export interface GetDiscountsResponseDTO {
|
|
@@ -147,7 +147,7 @@ export interface DiscountWithEntities {
|
|
|
147
147
|
// user id of most recent update
|
|
148
148
|
updatedBy: string;
|
|
149
149
|
// What the discount applies to
|
|
150
|
-
appliesTo
|
|
150
|
+
appliesTo: 'order' | 'items';
|
|
151
151
|
createdAt: string;
|
|
152
152
|
updatedAt: string;
|
|
153
153
|
name: string;
|
|
@@ -155,7 +155,7 @@ export interface DiscountWithEntities {
|
|
|
155
155
|
is?: DiscountIs;
|
|
156
156
|
meta?: DiscountMeta;
|
|
157
157
|
schedule?: DiscountSchedule;
|
|
158
|
-
channelConfig
|
|
158
|
+
channelConfig: DiscountChannelConfig;
|
|
159
159
|
sites?: string[];
|
|
160
160
|
brands?: string[];
|
|
161
161
|
}
|
|
@@ -171,13 +171,13 @@ export interface DiscountTaxonomy {
|
|
|
171
171
|
|
|
172
172
|
export interface PostDiscountRequestDTO {
|
|
173
173
|
// What the discount applies to
|
|
174
|
-
appliesTo
|
|
174
|
+
appliesTo: 'order' | 'items';
|
|
175
175
|
createdBy: string;
|
|
176
176
|
name: string;
|
|
177
177
|
is?: DiscountIs;
|
|
178
178
|
meta?: DiscountMeta;
|
|
179
179
|
schedule?: DiscountSchedule;
|
|
180
|
-
channelConfig
|
|
180
|
+
channelConfig: DiscountChannelConfig;
|
|
181
181
|
taxonomy?: DiscountTaxonomy;
|
|
182
182
|
status?: DiscountStatus;
|
|
183
183
|
}
|
|
@@ -190,7 +190,7 @@ export interface PostDiscountResponseDTO {
|
|
|
190
190
|
// user id of most recent update
|
|
191
191
|
updatedBy: string;
|
|
192
192
|
// What the discount applies to
|
|
193
|
-
appliesTo
|
|
193
|
+
appliesTo: 'order' | 'items';
|
|
194
194
|
createdAt: string;
|
|
195
195
|
updatedAt: string;
|
|
196
196
|
name: string;
|
|
@@ -198,12 +198,12 @@ export interface PostDiscountResponseDTO {
|
|
|
198
198
|
is?: DiscountIs;
|
|
199
199
|
meta?: DiscountMeta;
|
|
200
200
|
schedule?: DiscountSchedule;
|
|
201
|
-
channelConfig
|
|
201
|
+
channelConfig: DiscountChannelConfig;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export interface PutDiscountRequestDTO {
|
|
205
205
|
// What the discount applies to
|
|
206
|
-
appliesTo
|
|
206
|
+
appliesTo: 'order' | 'items';
|
|
207
207
|
updatedBy: string;
|
|
208
208
|
taxonomy?: DiscountTaxonomy;
|
|
209
209
|
status?: DiscountStatus;
|
|
@@ -211,7 +211,7 @@ export interface PutDiscountRequestDTO {
|
|
|
211
211
|
is?: DiscountIs;
|
|
212
212
|
meta?: DiscountMeta;
|
|
213
213
|
schedule?: DiscountSchedule;
|
|
214
|
-
channelConfig
|
|
214
|
+
channelConfig: DiscountChannelConfig;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export interface PutDiscountResponseDTO {
|
|
@@ -222,7 +222,7 @@ export interface PutDiscountResponseDTO {
|
|
|
222
222
|
// user id of most recent update
|
|
223
223
|
updatedBy: string;
|
|
224
224
|
// What the discount applies to
|
|
225
|
-
appliesTo
|
|
225
|
+
appliesTo: 'order' | 'items';
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
name: string;
|
|
@@ -230,7 +230,7 @@ export interface PutDiscountResponseDTO {
|
|
|
230
230
|
is?: DiscountIs;
|
|
231
231
|
meta?: DiscountMeta;
|
|
232
232
|
schedule?: DiscountSchedule;
|
|
233
|
-
channelConfig
|
|
233
|
+
channelConfig: DiscountChannelConfig;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
export interface PutDiscountPublishRequestDTO {
|
|
@@ -281,7 +281,7 @@ export interface PatchDiscountResponseDTO {
|
|
|
281
281
|
// user id of most recent update
|
|
282
282
|
updatedBy: string;
|
|
283
283
|
// What the discount applies to
|
|
284
|
-
appliesTo
|
|
284
|
+
appliesTo: 'order' | 'items';
|
|
285
285
|
createdAt: string;
|
|
286
286
|
updatedAt: string;
|
|
287
287
|
name: string;
|
|
@@ -289,7 +289,7 @@ export interface PatchDiscountResponseDTO {
|
|
|
289
289
|
is?: DiscountIs;
|
|
290
290
|
meta?: DiscountMeta;
|
|
291
291
|
schedule?: DiscountSchedule;
|
|
292
|
-
channelConfig
|
|
292
|
+
channelConfig: DiscountChannelConfig;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
export interface RewardWindowDTO {
|