@infrab4a/connect 4.23.2 → 4.24.0-beta.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/index.cjs.js +1595 -1597
- package/index.esm.js +1592 -1597
- package/package.json +1 -1
- package/src/domain/catalog/models/category.d.ts +48 -6
- package/src/domain/catalog/models/filter.d.ts +2 -2
- package/src/domain/catalog/models/index.d.ts +1 -1
- package/src/domain/catalog/models/kit-product.d.ts +5 -4
- package/src/domain/catalog/models/product-base.d.ts +12 -8
- package/src/domain/catalog/models/product-errors.d.ts +2 -1
- package/src/domain/catalog/models/{product-reviews.d.ts → product-review.d.ts} +2 -2
- package/src/domain/catalog/models/product.d.ts +4 -7
- package/src/domain/catalog/models/types/index.d.ts +0 -1
- package/src/domain/catalog/models/types/product-evaluation.type.d.ts +1 -1
- package/src/domain/catalog/models/variant.d.ts +3 -16
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +5 -5
- package/src/domain/catalog/repositories/product.repository.d.ts +1 -1
- package/src/infra/elasticsearch/indexes/products-index.d.ts +5 -5
- package/src/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +0 -2
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +10 -10
- package/src/utils/circular-dependencies.d.ts +7 -0
- package/src/utils/index.d.ts +1 -0
- package/src/domain/catalog/models/category-base.d.ts +0 -47
- package/src/domain/catalog/models/category-for-product.d.ts +0 -5
- package/src/domain/catalog/models/product-for-category.d.ts +0 -7
- package/src/domain/catalog/models/product-for-kit.d.ts +0 -7
- package/src/domain/catalog/models/types/product-review.type.d.ts +0 -17
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import {
|
|
2
|
+
import { __values, __spreadArray, __read, __extends, __decorate, __metadata, __rest } from 'tslib';
|
|
3
3
|
import { plainToInstance, instanceToPlain, Type } from 'class-transformer';
|
|
4
4
|
import { parseISO, format, startOfDay, endOfDay, subDays, addDays } from 'date-fns';
|
|
5
5
|
export { add, addBusinessDays, addDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
@@ -97,1708 +97,1708 @@ class PaymentProviderFactory {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
constructor(args) {
|
|
110
|
-
Object.assign(this, args);
|
|
111
|
-
}
|
|
112
|
-
static toInstance(data) {
|
|
113
|
-
return plainToInstance(this, data || {});
|
|
114
|
-
}
|
|
115
|
-
static isModel(value) {
|
|
116
|
-
return value instanceof this;
|
|
117
|
-
}
|
|
118
|
-
toPlain() {
|
|
119
|
-
return instanceToPlain(this);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var GenderDestination;
|
|
124
|
-
(function (GenderDestination) {
|
|
125
|
-
GenderDestination["FEMALE"] = "female";
|
|
126
|
-
GenderDestination["MALE"] = "male";
|
|
127
|
-
GenderDestination["UNISEX"] = "unisex";
|
|
128
|
-
})(GenderDestination || (GenderDestination = {}));
|
|
129
|
-
|
|
130
|
-
var ProductLabelEnum;
|
|
131
|
-
(function (ProductLabelEnum) {
|
|
132
|
-
ProductLabelEnum["ON_SALE"] = "on-sale";
|
|
133
|
-
ProductLabelEnum["OUTLET"] = "outlet";
|
|
134
|
-
ProductLabelEnum["LAST_UNITS"] = "last-units";
|
|
135
|
-
ProductLabelEnum["GLAMSTAR"] = "glamstar";
|
|
136
|
-
})(ProductLabelEnum || (ProductLabelEnum = {}));
|
|
137
|
-
|
|
138
|
-
var Shops;
|
|
139
|
-
(function (Shops) {
|
|
140
|
-
Shops["MENSMARKET"] = "mensmarket";
|
|
141
|
-
Shops["GLAMSHOP"] = "Glamshop";
|
|
142
|
-
Shops["GLAMPOINTS"] = "Glampoints";
|
|
143
|
-
Shops["ALL"] = "ALL";
|
|
144
|
-
})(Shops || (Shops = {}));
|
|
145
|
-
|
|
146
|
-
var WishlistLogType;
|
|
147
|
-
(function (WishlistLogType) {
|
|
148
|
-
WishlistLogType["CREATE"] = "create";
|
|
149
|
-
WishlistLogType["UPDATE"] = "update";
|
|
150
|
-
WishlistLogType["DELETE"] = "delete";
|
|
151
|
-
WishlistLogType["ADD_PRODUCT"] = "add_product";
|
|
152
|
-
WishlistLogType["REMOVE_PRODUCT"] = "remove_product";
|
|
153
|
-
})(WishlistLogType || (WishlistLogType = {}));
|
|
154
|
-
|
|
155
|
-
class CategoryBase extends BaseModel {
|
|
156
|
-
static get identifiersFields() {
|
|
157
|
-
return ['id'];
|
|
158
|
-
}
|
|
159
|
-
get glamImages() {
|
|
160
|
-
return this.images && this.images[Shops.GLAMSHOP]
|
|
161
|
-
? this.images[Shops.GLAMSHOP]
|
|
162
|
-
: {
|
|
163
|
-
brandBanner: null,
|
|
164
|
-
brandBannerMobile: null,
|
|
165
|
-
image: null,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
get mensImages() {
|
|
169
|
-
return this.images && this.images[Shops.MENSMARKET]
|
|
170
|
-
? this.images[Shops.MENSMARKET]
|
|
171
|
-
: {
|
|
172
|
-
brandBanner: null,
|
|
173
|
-
brandBannerMobile: null,
|
|
174
|
-
image: null,
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
get glamMetadata() {
|
|
178
|
-
return this.metadatas.find((metadata) => metadata.shop === Shops.GLAMSHOP);
|
|
179
|
-
}
|
|
180
|
-
get mensMetadata() {
|
|
181
|
-
return this.metadatas.find((metadata) => metadata.shop === Shops.MENSMARKET);
|
|
182
|
-
}
|
|
183
|
-
getMostRelevantByShop(shop) {
|
|
184
|
-
return this.mostRelevants && this.mostRelevants[shop] ? this.mostRelevants[shop] : [];
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
__decorate([
|
|
188
|
-
Type(() => CategoryBase),
|
|
189
|
-
__metadata("design:type", CategoryBase)
|
|
190
|
-
], CategoryBase.prototype, "parent", void 0);
|
|
191
|
-
|
|
192
|
-
class Filter extends BaseModel {
|
|
193
|
-
static get identifiersFields() {
|
|
194
|
-
return ['id'];
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
__decorate([
|
|
198
|
-
Type(() => CategoryBase),
|
|
199
|
-
__metadata("design:type", Array)
|
|
200
|
-
], Filter.prototype, "categories", void 0);
|
|
201
|
-
|
|
202
|
-
class CategoryForProduct extends CategoryBase {
|
|
203
|
-
static get identifiersFields() {
|
|
204
|
-
return ['id'];
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
class ProductBase extends BaseModel {
|
|
209
|
-
get evaluation() {
|
|
210
|
-
return {
|
|
211
|
-
reviews: this.reviews,
|
|
212
|
-
count: this.reviewsTotal,
|
|
213
|
-
rating: this.rate,
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
set evaluation(evaluation) {
|
|
217
|
-
if (!evaluation) {
|
|
218
|
-
this.reviews = null;
|
|
219
|
-
this.reviewsTotal = null;
|
|
220
|
-
this.rate = null;
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
this.reviews = evaluation.reviews || this.reviews;
|
|
224
|
-
this.reviewsTotal = evaluation.count || this.reviewsTotal;
|
|
225
|
-
this.rate = evaluation.rating || this.rate;
|
|
226
|
-
}
|
|
227
|
-
static get identifiersFields() {
|
|
228
|
-
return ['id'];
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
class ProductForKit extends ProductBase {
|
|
233
|
-
static get identifiersFields() {
|
|
234
|
-
return ['id'];
|
|
235
|
-
}
|
|
100
|
+
/**
|
|
101
|
+
* Este arquivo define funções para resolver dependências circulares
|
|
102
|
+
* em ambiente ESM, onde não podemos usar require()
|
|
103
|
+
*/
|
|
104
|
+
// Armazenamento global para classes registradas
|
|
105
|
+
const registry = new Map();
|
|
106
|
+
// Registrar uma classe na resolução de dependências circulares
|
|
107
|
+
function registerClass(name, classConstructor) {
|
|
108
|
+
registry.set(name, classConstructor);
|
|
236
109
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
], ProductForKit.prototype, "category", void 0);
|
|
241
|
-
|
|
242
|
-
class KitProduct extends BaseModel {
|
|
243
|
-
static get identifiersFields() {
|
|
244
|
-
return ['productId', 'kitProductId'];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
__decorate([
|
|
248
|
-
Type(() => ProductForKit),
|
|
249
|
-
__metadata("design:type", ProductForKit)
|
|
250
|
-
], KitProduct.prototype, "kit", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
Type(() => ProductForKit),
|
|
253
|
-
__metadata("design:type", ProductForKit)
|
|
254
|
-
], KitProduct.prototype, "product", void 0);
|
|
255
|
-
|
|
256
|
-
class ProductForCategory extends ProductBase {
|
|
257
|
-
static get identifiersFields() {
|
|
258
|
-
return ['id'];
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
__decorate([
|
|
262
|
-
Type(() => KitProduct),
|
|
263
|
-
__metadata("design:type", Array)
|
|
264
|
-
], ProductForCategory.prototype, "kitProducts", void 0);
|
|
265
|
-
|
|
266
|
-
class Category extends CategoryBase {
|
|
267
|
-
static get identifiersFields() {
|
|
268
|
-
return ['id'];
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
__decorate([
|
|
272
|
-
Type(() => ProductForCategory),
|
|
273
|
-
__metadata("design:type", Array)
|
|
274
|
-
], Category.prototype, "childrenProducts", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
Type(() => Filter),
|
|
277
|
-
__metadata("design:type", Array)
|
|
278
|
-
], Category.prototype, "filters", void 0);
|
|
279
|
-
|
|
280
|
-
class CategoryCollectionChildren extends BaseModel {
|
|
281
|
-
static get identifiersFields() {
|
|
282
|
-
return ['collectionId', 'categoryId'];
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
__decorate([
|
|
286
|
-
Type(() => CategoryCollectionChildren),
|
|
287
|
-
__metadata("design:type", CategoryCollectionChildren)
|
|
288
|
-
], CategoryCollectionChildren.prototype, "parent", void 0);
|
|
289
|
-
|
|
290
|
-
class CategoryFilter extends BaseModel {
|
|
291
|
-
static get identifiersFields() {
|
|
292
|
-
return ['id'];
|
|
293
|
-
}
|
|
110
|
+
// Obter uma classe registrada
|
|
111
|
+
function getClass(name) {
|
|
112
|
+
return registry.get(name);
|
|
294
113
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
], CategoryFilter.prototype, "category", void 0);
|
|
303
|
-
|
|
304
|
-
class CategoryProduct extends BaseModel {
|
|
305
|
-
static get identifiersFields() {
|
|
306
|
-
return ['categoryId', 'productId'];
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
class FilterOption extends BaseModel {
|
|
311
|
-
static get identifiersFields() {
|
|
312
|
-
return ['id'];
|
|
313
|
-
}
|
|
114
|
+
// Função de resolução para class-transformer
|
|
115
|
+
function resolveClass(name) {
|
|
116
|
+
return () => {
|
|
117
|
+
// Forçamos o retorno de uma função que retorna a classe
|
|
118
|
+
// ao invés da classe diretamente para evitar problemas com o decorator
|
|
119
|
+
return getClass(name);
|
|
120
|
+
};
|
|
314
121
|
}
|
|
315
122
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
return ['id'];
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
__decorate([
|
|
322
|
-
Type(() => CategoryForProduct),
|
|
323
|
-
__metadata("design:type", CategoryForProduct)
|
|
324
|
-
], Product.prototype, "category", void 0);
|
|
325
|
-
__decorate([
|
|
326
|
-
Type(() => KitProduct),
|
|
327
|
-
__metadata("design:type", Array)
|
|
328
|
-
], Product.prototype, "kitProducts", void 0);
|
|
329
|
-
|
|
330
|
-
class Variant extends BaseModel {
|
|
331
|
-
static get identifiersFields() {
|
|
332
|
-
return ['id', 'productId'];
|
|
333
|
-
}
|
|
123
|
+
function isFunction(value) {
|
|
124
|
+
return typeof value === 'function';
|
|
334
125
|
}
|
|
335
126
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
Type((type) => (+type.object.product.productId ? Variant : Product)),
|
|
346
|
-
__metadata("design:type", Object)
|
|
347
|
-
], ProductErrors.prototype, "product", void 0);
|
|
348
|
-
|
|
349
|
-
class ProductReviews extends BaseModel {
|
|
350
|
-
static get identifiersFields() {
|
|
351
|
-
return ['id'];
|
|
352
|
-
}
|
|
127
|
+
function createErrorClass(createImpl) {
|
|
128
|
+
var _super = function (instance) {
|
|
129
|
+
Error.call(instance);
|
|
130
|
+
instance.stack = new Error().stack;
|
|
131
|
+
};
|
|
132
|
+
var ctorFunc = createImpl(_super);
|
|
133
|
+
ctorFunc.prototype = Object.create(Error.prototype);
|
|
134
|
+
ctorFunc.prototype.constructor = ctorFunc;
|
|
135
|
+
return ctorFunc;
|
|
353
136
|
}
|
|
354
137
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
138
|
+
var UnsubscriptionError = createErrorClass(function (_super) {
|
|
139
|
+
return function UnsubscriptionErrorImpl(errors) {
|
|
140
|
+
_super(this);
|
|
141
|
+
this.message = errors
|
|
142
|
+
? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ')
|
|
143
|
+
: '';
|
|
144
|
+
this.name = 'UnsubscriptionError';
|
|
145
|
+
this.errors = errors;
|
|
146
|
+
};
|
|
147
|
+
});
|
|
360
148
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
149
|
+
function arrRemove(arr, item) {
|
|
150
|
+
if (arr) {
|
|
151
|
+
var index = arr.indexOf(item);
|
|
152
|
+
0 <= index && arr.splice(index, 1);
|
|
153
|
+
}
|
|
365
154
|
}
|
|
366
155
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
156
|
+
var Subscription$1 = (function () {
|
|
157
|
+
function Subscription(initialTeardown) {
|
|
158
|
+
this.initialTeardown = initialTeardown;
|
|
159
|
+
this.closed = false;
|
|
160
|
+
this._parentage = null;
|
|
161
|
+
this._finalizers = null;
|
|
162
|
+
}
|
|
163
|
+
Subscription.prototype.unsubscribe = function () {
|
|
164
|
+
var e_1, _a, e_2, _b;
|
|
165
|
+
var errors;
|
|
166
|
+
if (!this.closed) {
|
|
167
|
+
this.closed = true;
|
|
168
|
+
var _parentage = this._parentage;
|
|
169
|
+
if (_parentage) {
|
|
170
|
+
this._parentage = null;
|
|
171
|
+
if (Array.isArray(_parentage)) {
|
|
172
|
+
try {
|
|
173
|
+
for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
|
174
|
+
var parent_1 = _parentage_1_1.value;
|
|
175
|
+
parent_1.remove(this);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
179
|
+
finally {
|
|
180
|
+
try {
|
|
181
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);
|
|
182
|
+
}
|
|
183
|
+
finally { if (e_1) throw e_1.error; }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
_parentage.remove(this);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var initialFinalizer = this.initialTeardown;
|
|
191
|
+
if (isFunction(initialFinalizer)) {
|
|
192
|
+
try {
|
|
193
|
+
initialFinalizer();
|
|
194
|
+
}
|
|
195
|
+
catch (e) {
|
|
196
|
+
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
var _finalizers = this._finalizers;
|
|
200
|
+
if (_finalizers) {
|
|
201
|
+
this._finalizers = null;
|
|
202
|
+
try {
|
|
203
|
+
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
204
|
+
var finalizer = _finalizers_1_1.value;
|
|
205
|
+
try {
|
|
206
|
+
execFinalizer(finalizer);
|
|
207
|
+
}
|
|
208
|
+
catch (err) {
|
|
209
|
+
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
210
|
+
if (err instanceof UnsubscriptionError) {
|
|
211
|
+
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
errors.push(err);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
220
|
+
finally {
|
|
221
|
+
try {
|
|
222
|
+
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);
|
|
223
|
+
}
|
|
224
|
+
finally { if (e_2) throw e_2.error; }
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (errors) {
|
|
228
|
+
throw new UnsubscriptionError(errors);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
Subscription.prototype.add = function (teardown) {
|
|
233
|
+
var _a;
|
|
234
|
+
if (teardown && teardown !== this) {
|
|
235
|
+
if (this.closed) {
|
|
236
|
+
execFinalizer(teardown);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
if (teardown instanceof Subscription) {
|
|
240
|
+
if (teardown.closed || teardown._hasParent(this)) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
teardown._addParent(this);
|
|
244
|
+
}
|
|
245
|
+
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
Subscription.prototype._hasParent = function (parent) {
|
|
250
|
+
var _parentage = this._parentage;
|
|
251
|
+
return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
|
|
252
|
+
};
|
|
253
|
+
Subscription.prototype._addParent = function (parent) {
|
|
254
|
+
var _parentage = this._parentage;
|
|
255
|
+
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
256
|
+
};
|
|
257
|
+
Subscription.prototype._removeParent = function (parent) {
|
|
258
|
+
var _parentage = this._parentage;
|
|
259
|
+
if (_parentage === parent) {
|
|
260
|
+
this._parentage = null;
|
|
261
|
+
}
|
|
262
|
+
else if (Array.isArray(_parentage)) {
|
|
263
|
+
arrRemove(_parentage, parent);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
Subscription.prototype.remove = function (teardown) {
|
|
267
|
+
var _finalizers = this._finalizers;
|
|
268
|
+
_finalizers && arrRemove(_finalizers, teardown);
|
|
269
|
+
if (teardown instanceof Subscription) {
|
|
270
|
+
teardown._removeParent(this);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
Subscription.EMPTY = (function () {
|
|
274
|
+
var empty = new Subscription();
|
|
275
|
+
empty.closed = true;
|
|
276
|
+
return empty;
|
|
277
|
+
})();
|
|
278
|
+
return Subscription;
|
|
279
|
+
}());
|
|
280
|
+
var EMPTY_SUBSCRIPTION = Subscription$1.EMPTY;
|
|
281
|
+
function isSubscription(value) {
|
|
282
|
+
return (value instanceof Subscription$1 ||
|
|
283
|
+
(value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
|
|
284
|
+
}
|
|
285
|
+
function execFinalizer(finalizer) {
|
|
286
|
+
if (isFunction(finalizer)) {
|
|
287
|
+
finalizer();
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
finalizer.unsubscribe();
|
|
291
|
+
}
|
|
292
|
+
}
|
|
376
293
|
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
Where["NOTIN"] = "not in";
|
|
385
|
-
Where["LT"] = "<";
|
|
386
|
-
Where["LTE"] = "<=";
|
|
387
|
-
Where["LIKE"] = "like";
|
|
388
|
-
Where["NOTLIKE"] = "not like";
|
|
389
|
-
Where["ISNULL"] = "is null";
|
|
390
|
-
Where["ISNOTNULL"] = "is not null";
|
|
391
|
-
Where["IREGEX"] = "iregex";
|
|
392
|
-
})(Where || (Where = {}));
|
|
294
|
+
var config = {
|
|
295
|
+
onUnhandledError: null,
|
|
296
|
+
onStoppedNotification: null,
|
|
297
|
+
Promise: undefined,
|
|
298
|
+
useDeprecatedSynchronousErrorHandling: false,
|
|
299
|
+
useDeprecatedNextContext: false,
|
|
300
|
+
};
|
|
393
301
|
|
|
394
|
-
var
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
302
|
+
var timeoutProvider = {
|
|
303
|
+
setTimeout: function (handler, timeout) {
|
|
304
|
+
var args = [];
|
|
305
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
306
|
+
args[_i - 2] = arguments[_i];
|
|
307
|
+
}
|
|
308
|
+
var delegate = timeoutProvider.delegate;
|
|
309
|
+
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
310
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
311
|
+
}
|
|
312
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
313
|
+
},
|
|
314
|
+
clearTimeout: function (handle) {
|
|
315
|
+
var delegate = timeoutProvider.delegate;
|
|
316
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
317
|
+
},
|
|
318
|
+
delegate: undefined,
|
|
319
|
+
};
|
|
402
320
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
321
|
+
function reportUnhandledError(err) {
|
|
322
|
+
timeoutProvider.setTimeout(function () {
|
|
323
|
+
{
|
|
324
|
+
throw err;
|
|
325
|
+
}
|
|
326
|
+
});
|
|
407
327
|
}
|
|
408
328
|
|
|
409
|
-
|
|
410
|
-
static get identifiersFields() {
|
|
411
|
-
return ['id'];
|
|
412
|
-
}
|
|
413
|
-
}
|
|
329
|
+
function noop() { }
|
|
414
330
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
331
|
+
var context = null;
|
|
332
|
+
function errorContext(cb) {
|
|
333
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
334
|
+
var isRoot = !context;
|
|
335
|
+
if (isRoot) {
|
|
336
|
+
context = { errorThrown: false, error: null };
|
|
337
|
+
}
|
|
338
|
+
cb();
|
|
339
|
+
if (isRoot) {
|
|
340
|
+
var _a = context, errorThrown = _a.errorThrown, error = _a.error;
|
|
341
|
+
context = null;
|
|
342
|
+
if (errorThrown) {
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
cb();
|
|
349
|
+
}
|
|
424
350
|
}
|
|
425
351
|
|
|
426
|
-
var
|
|
427
|
-
(
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
(
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
(
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
352
|
+
var Subscriber = (function (_super) {
|
|
353
|
+
__extends(Subscriber, _super);
|
|
354
|
+
function Subscriber(destination) {
|
|
355
|
+
var _this = _super.call(this) || this;
|
|
356
|
+
_this.isStopped = false;
|
|
357
|
+
if (destination) {
|
|
358
|
+
_this.destination = destination;
|
|
359
|
+
if (isSubscription(destination)) {
|
|
360
|
+
destination.add(_this);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
_this.destination = EMPTY_OBSERVER;
|
|
365
|
+
}
|
|
366
|
+
return _this;
|
|
367
|
+
}
|
|
368
|
+
Subscriber.create = function (next, error, complete) {
|
|
369
|
+
return new SafeSubscriber(next, error, complete);
|
|
370
|
+
};
|
|
371
|
+
Subscriber.prototype.next = function (value) {
|
|
372
|
+
if (this.isStopped) ;
|
|
373
|
+
else {
|
|
374
|
+
this._next(value);
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
Subscriber.prototype.error = function (err) {
|
|
378
|
+
if (this.isStopped) ;
|
|
379
|
+
else {
|
|
380
|
+
this.isStopped = true;
|
|
381
|
+
this._error(err);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
Subscriber.prototype.complete = function () {
|
|
385
|
+
if (this.isStopped) ;
|
|
386
|
+
else {
|
|
387
|
+
this.isStopped = true;
|
|
388
|
+
this._complete();
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
Subscriber.prototype.unsubscribe = function () {
|
|
392
|
+
if (!this.closed) {
|
|
393
|
+
this.isStopped = true;
|
|
394
|
+
_super.prototype.unsubscribe.call(this);
|
|
395
|
+
this.destination = null;
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
Subscriber.prototype._next = function (value) {
|
|
399
|
+
this.destination.next(value);
|
|
400
|
+
};
|
|
401
|
+
Subscriber.prototype._error = function (err) {
|
|
402
|
+
try {
|
|
403
|
+
this.destination.error(err);
|
|
404
|
+
}
|
|
405
|
+
finally {
|
|
406
|
+
this.unsubscribe();
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
Subscriber.prototype._complete = function () {
|
|
410
|
+
try {
|
|
411
|
+
this.destination.complete();
|
|
412
|
+
}
|
|
413
|
+
finally {
|
|
414
|
+
this.unsubscribe();
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
return Subscriber;
|
|
418
|
+
}(Subscription$1));
|
|
419
|
+
var _bind = Function.prototype.bind;
|
|
420
|
+
function bind(fn, thisArg) {
|
|
421
|
+
return _bind.call(fn, thisArg);
|
|
422
|
+
}
|
|
423
|
+
var ConsumerObserver = (function () {
|
|
424
|
+
function ConsumerObserver(partialObserver) {
|
|
425
|
+
this.partialObserver = partialObserver;
|
|
426
|
+
}
|
|
427
|
+
ConsumerObserver.prototype.next = function (value) {
|
|
428
|
+
var partialObserver = this.partialObserver;
|
|
429
|
+
if (partialObserver.next) {
|
|
430
|
+
try {
|
|
431
|
+
partialObserver.next(value);
|
|
432
|
+
}
|
|
433
|
+
catch (error) {
|
|
434
|
+
handleUnhandledError(error);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
ConsumerObserver.prototype.error = function (err) {
|
|
439
|
+
var partialObserver = this.partialObserver;
|
|
440
|
+
if (partialObserver.error) {
|
|
441
|
+
try {
|
|
442
|
+
partialObserver.error(err);
|
|
443
|
+
}
|
|
444
|
+
catch (error) {
|
|
445
|
+
handleUnhandledError(error);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
handleUnhandledError(err);
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
ConsumerObserver.prototype.complete = function () {
|
|
453
|
+
var partialObserver = this.partialObserver;
|
|
454
|
+
if (partialObserver.complete) {
|
|
455
|
+
try {
|
|
456
|
+
partialObserver.complete();
|
|
457
|
+
}
|
|
458
|
+
catch (error) {
|
|
459
|
+
handleUnhandledError(error);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
return ConsumerObserver;
|
|
464
|
+
}());
|
|
465
|
+
var SafeSubscriber = (function (_super) {
|
|
466
|
+
__extends(SafeSubscriber, _super);
|
|
467
|
+
function SafeSubscriber(observerOrNext, error, complete) {
|
|
468
|
+
var _this = _super.call(this) || this;
|
|
469
|
+
var partialObserver;
|
|
470
|
+
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
471
|
+
partialObserver = {
|
|
472
|
+
next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
|
|
473
|
+
error: error !== null && error !== void 0 ? error : undefined,
|
|
474
|
+
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
var context_1;
|
|
479
|
+
if (_this && config.useDeprecatedNextContext) {
|
|
480
|
+
context_1 = Object.create(observerOrNext);
|
|
481
|
+
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
482
|
+
partialObserver = {
|
|
483
|
+
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
484
|
+
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
485
|
+
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
partialObserver = observerOrNext;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
_this.destination = new ConsumerObserver(partialObserver);
|
|
493
|
+
return _this;
|
|
494
|
+
}
|
|
495
|
+
return SafeSubscriber;
|
|
496
|
+
}(Subscriber));
|
|
497
|
+
function handleUnhandledError(error) {
|
|
498
|
+
{
|
|
499
|
+
reportUnhandledError(error);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
function defaultErrorHandler(err) {
|
|
503
|
+
throw err;
|
|
504
|
+
}
|
|
505
|
+
var EMPTY_OBSERVER = {
|
|
506
|
+
closed: true,
|
|
507
|
+
next: noop,
|
|
508
|
+
error: defaultErrorHandler,
|
|
509
|
+
complete: noop,
|
|
510
|
+
};
|
|
495
511
|
|
|
496
|
-
var
|
|
497
|
-
(function (BodyTattoos) {
|
|
498
|
-
BodyTattoos["NONE"] = "Nenhuma";
|
|
499
|
-
BodyTattoos["HAS_DOESNT_CARE"] = "Tenho mas n\u00E3o cuido";
|
|
500
|
-
BodyTattoos["HAS_CARE_LOT"] = "Tenho e cuido bastante";
|
|
501
|
-
})(BodyTattoos || (BodyTattoos = {}));
|
|
512
|
+
var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();
|
|
502
513
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
FaceSkinOilinesses["OILY"] = "Oleaosa";
|
|
507
|
-
FaceSkinOilinesses["MIXED"] = "Mista";
|
|
508
|
-
FaceSkinOilinesses["NORMAL"] = "Normal";
|
|
509
|
-
FaceSkinOilinesses["DONT_KNOW"] = "Eu n\u00E3o sei como dizer";
|
|
510
|
-
})(FaceSkinOilinesses || (FaceSkinOilinesses = {}));
|
|
514
|
+
function identity(x) {
|
|
515
|
+
return x;
|
|
516
|
+
}
|
|
511
517
|
|
|
512
|
-
|
|
513
|
-
(
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
518
|
+
function pipeFromArray(fns) {
|
|
519
|
+
if (fns.length === 0) {
|
|
520
|
+
return identity;
|
|
521
|
+
}
|
|
522
|
+
if (fns.length === 1) {
|
|
523
|
+
return fns[0];
|
|
524
|
+
}
|
|
525
|
+
return function piped(input) {
|
|
526
|
+
return fns.reduce(function (prev, fn) { return fn(prev); }, input);
|
|
527
|
+
};
|
|
528
|
+
}
|
|
523
529
|
|
|
524
|
-
var
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
})
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
})
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
(function (ProductSpents) {
|
|
611
|
-
ProductSpents["UNTIL_50"] = "At\u00E9 R$50";
|
|
612
|
-
ProductSpents["SINCE_51_TO_100"] = "De R$51 a R$100";
|
|
613
|
-
ProductSpents["SINCE_101_TO_200"] = "De R$101 a R$200";
|
|
614
|
-
ProductSpents["SINCE_201_TO_300"] = "De R$201 a R$300";
|
|
615
|
-
ProductSpents["GRAN_THAN_300"] = "Mais de R$300";
|
|
616
|
-
ProductSpents["NOW_ANSWER"] = "Prefiro nao responder";
|
|
617
|
-
})(ProductSpents || (ProductSpents = {}));
|
|
618
|
-
|
|
619
|
-
var UserType;
|
|
620
|
-
(function (UserType) {
|
|
621
|
-
UserType["B2C"] = "Cliente Transacional";
|
|
622
|
-
UserType["GlamGirl"] = "Glamgirl";
|
|
623
|
-
UserType["MensBoy"] = "Mensboy";
|
|
624
|
-
UserType["B2B"] = "Company";
|
|
625
|
-
UserType["Collaborator"] = "Funcion\u00E1rio";
|
|
626
|
-
UserType["Influencer"] = "Influencer";
|
|
627
|
-
})(UserType || (UserType = {}));
|
|
628
|
-
|
|
629
|
-
class Lead extends BaseModel {
|
|
630
|
-
static get identifiersFields() {
|
|
631
|
-
return ['id'];
|
|
632
|
-
}
|
|
530
|
+
var Observable = (function () {
|
|
531
|
+
function Observable(subscribe) {
|
|
532
|
+
if (subscribe) {
|
|
533
|
+
this._subscribe = subscribe;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
Observable.prototype.lift = function (operator) {
|
|
537
|
+
var observable = new Observable();
|
|
538
|
+
observable.source = this;
|
|
539
|
+
observable.operator = operator;
|
|
540
|
+
return observable;
|
|
541
|
+
};
|
|
542
|
+
Observable.prototype.subscribe = function (observerOrNext, error, complete) {
|
|
543
|
+
var _this = this;
|
|
544
|
+
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
545
|
+
errorContext(function () {
|
|
546
|
+
var _a = _this, operator = _a.operator, source = _a.source;
|
|
547
|
+
subscriber.add(operator
|
|
548
|
+
?
|
|
549
|
+
operator.call(subscriber, source)
|
|
550
|
+
: source
|
|
551
|
+
?
|
|
552
|
+
_this._subscribe(subscriber)
|
|
553
|
+
:
|
|
554
|
+
_this._trySubscribe(subscriber));
|
|
555
|
+
});
|
|
556
|
+
return subscriber;
|
|
557
|
+
};
|
|
558
|
+
Observable.prototype._trySubscribe = function (sink) {
|
|
559
|
+
try {
|
|
560
|
+
return this._subscribe(sink);
|
|
561
|
+
}
|
|
562
|
+
catch (err) {
|
|
563
|
+
sink.error(err);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
Observable.prototype.forEach = function (next, promiseCtor) {
|
|
567
|
+
var _this = this;
|
|
568
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
569
|
+
return new promiseCtor(function (resolve, reject) {
|
|
570
|
+
var subscriber = new SafeSubscriber({
|
|
571
|
+
next: function (value) {
|
|
572
|
+
try {
|
|
573
|
+
next(value);
|
|
574
|
+
}
|
|
575
|
+
catch (err) {
|
|
576
|
+
reject(err);
|
|
577
|
+
subscriber.unsubscribe();
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
error: reject,
|
|
581
|
+
complete: resolve,
|
|
582
|
+
});
|
|
583
|
+
_this.subscribe(subscriber);
|
|
584
|
+
});
|
|
585
|
+
};
|
|
586
|
+
Observable.prototype._subscribe = function (subscriber) {
|
|
587
|
+
var _a;
|
|
588
|
+
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
|
|
589
|
+
};
|
|
590
|
+
Observable.prototype[observable] = function () {
|
|
591
|
+
return this;
|
|
592
|
+
};
|
|
593
|
+
Observable.prototype.pipe = function () {
|
|
594
|
+
var operations = [];
|
|
595
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
596
|
+
operations[_i] = arguments[_i];
|
|
597
|
+
}
|
|
598
|
+
return pipeFromArray(operations)(this);
|
|
599
|
+
};
|
|
600
|
+
Observable.prototype.toPromise = function (promiseCtor) {
|
|
601
|
+
var _this = this;
|
|
602
|
+
promiseCtor = getPromiseCtor(promiseCtor);
|
|
603
|
+
return new promiseCtor(function (resolve, reject) {
|
|
604
|
+
var value;
|
|
605
|
+
_this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });
|
|
606
|
+
});
|
|
607
|
+
};
|
|
608
|
+
Observable.create = function (subscribe) {
|
|
609
|
+
return new Observable(subscribe);
|
|
610
|
+
};
|
|
611
|
+
return Observable;
|
|
612
|
+
}());
|
|
613
|
+
function getPromiseCtor(promiseCtor) {
|
|
614
|
+
var _a;
|
|
615
|
+
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
633
616
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
static get identifiersFields() {
|
|
637
|
-
return ['id', 'subscriptionId'];
|
|
638
|
-
}
|
|
617
|
+
function isObserver(value) {
|
|
618
|
+
return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
|
|
639
619
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
(function (BillingStatus) {
|
|
643
|
-
BillingStatus["PAYED"] = "PAGO";
|
|
644
|
-
})(BillingStatus || (BillingStatus = {}));
|
|
645
|
-
|
|
646
|
-
var EditionStatus;
|
|
647
|
-
(function (EditionStatus) {
|
|
648
|
-
EditionStatus["ALLOCATION_WAITING"] = "Aguardando aloca\u00E7\u00E3o";
|
|
649
|
-
EditionStatus["SHIPPED"] = "Enviado";
|
|
650
|
-
})(EditionStatus || (EditionStatus = {}));
|
|
651
|
-
|
|
652
|
-
var PaymentType;
|
|
653
|
-
(function (PaymentType) {
|
|
654
|
-
PaymentType["AQUISITION"] = "Aquisi\u00E7\u00E3o";
|
|
655
|
-
PaymentType["RENEWAL"] = "Renova\u00E7\u00E3o";
|
|
656
|
-
PaymentType["FREIGHT"] = "mudan\u00E7a de endere\u00E7o, Frete";
|
|
657
|
-
})(PaymentType || (PaymentType = {}));
|
|
658
|
-
|
|
659
|
-
var Plans;
|
|
660
|
-
(function (Plans) {
|
|
661
|
-
Plans["SELECT"] = "SELECT";
|
|
662
|
-
Plans["PRIME"] = "PRIME";
|
|
663
|
-
Plans["SELECT_MENSAL"] = "SELECT_MENSAL";
|
|
664
|
-
Plans["PRIME_MENSAL"] = "PRIME_MENSAL";
|
|
665
|
-
})(Plans || (Plans = {}));
|
|
666
|
-
|
|
667
|
-
var Status;
|
|
668
|
-
(function (Status) {
|
|
669
|
-
Status["ACTIVE"] = "active";
|
|
670
|
-
Status["CANCELLED"] = "Cancelado";
|
|
671
|
-
})(Status || (Status = {}));
|
|
672
|
-
|
|
673
|
-
class PaymentTransaction extends BaseModel {
|
|
620
|
+
function isSubscriber(value) {
|
|
621
|
+
return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
|
|
674
622
|
}
|
|
675
623
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
__metadata("design:type", PaymentTransaction)
|
|
684
|
-
], Payment.prototype, "transaction", void 0);
|
|
624
|
+
var ObjectUnsubscribedError = createErrorClass(function (_super) {
|
|
625
|
+
return function ObjectUnsubscribedErrorImpl() {
|
|
626
|
+
_super(this);
|
|
627
|
+
this.name = 'ObjectUnsubscribedError';
|
|
628
|
+
this.message = 'object unsubscribed';
|
|
629
|
+
};
|
|
630
|
+
});
|
|
685
631
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Error.call(instance);
|
|
703
|
-
instance.stack = new Error().stack;
|
|
632
|
+
var Subject = (function (_super) {
|
|
633
|
+
__extends(Subject, _super);
|
|
634
|
+
function Subject() {
|
|
635
|
+
var _this = _super.call(this) || this;
|
|
636
|
+
_this.closed = false;
|
|
637
|
+
_this.currentObservers = null;
|
|
638
|
+
_this.observers = [];
|
|
639
|
+
_this.isStopped = false;
|
|
640
|
+
_this.hasError = false;
|
|
641
|
+
_this.thrownError = null;
|
|
642
|
+
return _this;
|
|
643
|
+
}
|
|
644
|
+
Subject.prototype.lift = function (operator) {
|
|
645
|
+
var subject = new AnonymousSubject(this, this);
|
|
646
|
+
subject.operator = operator;
|
|
647
|
+
return subject;
|
|
704
648
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
var UnsubscriptionError = createErrorClass(function (_super) {
|
|
712
|
-
return function UnsubscriptionErrorImpl(errors) {
|
|
713
|
-
_super(this);
|
|
714
|
-
this.message = errors
|
|
715
|
-
? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ')
|
|
716
|
-
: '';
|
|
717
|
-
this.name = 'UnsubscriptionError';
|
|
718
|
-
this.errors = errors;
|
|
649
|
+
Subject.prototype._throwIfClosed = function () {
|
|
650
|
+
if (this.closed) {
|
|
651
|
+
throw new ObjectUnsubscribedError();
|
|
652
|
+
}
|
|
719
653
|
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
function
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
var Subscription$1 = (function () {
|
|
730
|
-
function Subscription(initialTeardown) {
|
|
731
|
-
this.initialTeardown = initialTeardown;
|
|
732
|
-
this.closed = false;
|
|
733
|
-
this._parentage = null;
|
|
734
|
-
this._finalizers = null;
|
|
735
|
-
}
|
|
736
|
-
Subscription.prototype.unsubscribe = function () {
|
|
737
|
-
var e_1, _a, e_2, _b;
|
|
738
|
-
var errors;
|
|
739
|
-
if (!this.closed) {
|
|
740
|
-
this.closed = true;
|
|
741
|
-
var _parentage = this._parentage;
|
|
742
|
-
if (_parentage) {
|
|
743
|
-
this._parentage = null;
|
|
744
|
-
if (Array.isArray(_parentage)) {
|
|
745
|
-
try {
|
|
746
|
-
for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
|
747
|
-
var parent_1 = _parentage_1_1.value;
|
|
748
|
-
parent_1.remove(this);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
752
|
-
finally {
|
|
753
|
-
try {
|
|
754
|
-
if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);
|
|
755
|
-
}
|
|
756
|
-
finally { if (e_1) throw e_1.error; }
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
_parentage.remove(this);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
var initialFinalizer = this.initialTeardown;
|
|
764
|
-
if (isFunction(initialFinalizer)) {
|
|
765
|
-
try {
|
|
766
|
-
initialFinalizer();
|
|
767
|
-
}
|
|
768
|
-
catch (e) {
|
|
769
|
-
errors = e instanceof UnsubscriptionError ? e.errors : [e];
|
|
654
|
+
Subject.prototype.next = function (value) {
|
|
655
|
+
var _this = this;
|
|
656
|
+
errorContext(function () {
|
|
657
|
+
var e_1, _a;
|
|
658
|
+
_this._throwIfClosed();
|
|
659
|
+
if (!_this.isStopped) {
|
|
660
|
+
if (!_this.currentObservers) {
|
|
661
|
+
_this.currentObservers = Array.from(_this.observers);
|
|
770
662
|
}
|
|
771
|
-
}
|
|
772
|
-
var _finalizers = this._finalizers;
|
|
773
|
-
if (_finalizers) {
|
|
774
|
-
this._finalizers = null;
|
|
775
663
|
try {
|
|
776
|
-
for (var
|
|
777
|
-
var
|
|
778
|
-
|
|
779
|
-
execFinalizer(finalizer);
|
|
780
|
-
}
|
|
781
|
-
catch (err) {
|
|
782
|
-
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
783
|
-
if (err instanceof UnsubscriptionError) {
|
|
784
|
-
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
|
785
|
-
}
|
|
786
|
-
else {
|
|
787
|
-
errors.push(err);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
664
|
+
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
665
|
+
var observer = _c.value;
|
|
666
|
+
observer.next(value);
|
|
790
667
|
}
|
|
791
668
|
}
|
|
792
|
-
catch (
|
|
669
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
793
670
|
finally {
|
|
794
671
|
try {
|
|
795
|
-
if (
|
|
672
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
796
673
|
}
|
|
797
|
-
finally { if (
|
|
674
|
+
finally { if (e_1) throw e_1.error; }
|
|
798
675
|
}
|
|
799
676
|
}
|
|
800
|
-
|
|
801
|
-
throw new UnsubscriptionError(errors);
|
|
802
|
-
}
|
|
803
|
-
}
|
|
677
|
+
});
|
|
804
678
|
};
|
|
805
|
-
|
|
806
|
-
var
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
679
|
+
Subject.prototype.error = function (err) {
|
|
680
|
+
var _this = this;
|
|
681
|
+
errorContext(function () {
|
|
682
|
+
_this._throwIfClosed();
|
|
683
|
+
if (!_this.isStopped) {
|
|
684
|
+
_this.hasError = _this.isStopped = true;
|
|
685
|
+
_this.thrownError = err;
|
|
686
|
+
var observers = _this.observers;
|
|
687
|
+
while (observers.length) {
|
|
688
|
+
observers.shift().error(err);
|
|
689
|
+
}
|
|
810
690
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
Subject.prototype.complete = function () {
|
|
694
|
+
var _this = this;
|
|
695
|
+
errorContext(function () {
|
|
696
|
+
_this._throwIfClosed();
|
|
697
|
+
if (!_this.isStopped) {
|
|
698
|
+
_this.isStopped = true;
|
|
699
|
+
var observers = _this.observers;
|
|
700
|
+
while (observers.length) {
|
|
701
|
+
observers.shift().complete();
|
|
817
702
|
}
|
|
818
|
-
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
819
703
|
}
|
|
820
|
-
}
|
|
704
|
+
});
|
|
821
705
|
};
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
706
|
+
Subject.prototype.unsubscribe = function () {
|
|
707
|
+
this.isStopped = this.closed = true;
|
|
708
|
+
this.observers = this.currentObservers = null;
|
|
825
709
|
};
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
710
|
+
Object.defineProperty(Subject.prototype, "observed", {
|
|
711
|
+
get: function () {
|
|
712
|
+
var _a;
|
|
713
|
+
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
714
|
+
},
|
|
715
|
+
enumerable: false,
|
|
716
|
+
configurable: true
|
|
717
|
+
});
|
|
718
|
+
Subject.prototype._trySubscribe = function (subscriber) {
|
|
719
|
+
this._throwIfClosed();
|
|
720
|
+
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
829
721
|
};
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
722
|
+
Subject.prototype._subscribe = function (subscriber) {
|
|
723
|
+
this._throwIfClosed();
|
|
724
|
+
this._checkFinalizedStatuses(subscriber);
|
|
725
|
+
return this._innerSubscribe(subscriber);
|
|
726
|
+
};
|
|
727
|
+
Subject.prototype._innerSubscribe = function (subscriber) {
|
|
728
|
+
var _this = this;
|
|
729
|
+
var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
730
|
+
if (hasError || isStopped) {
|
|
731
|
+
return EMPTY_SUBSCRIPTION;
|
|
837
732
|
}
|
|
733
|
+
this.currentObservers = null;
|
|
734
|
+
observers.push(subscriber);
|
|
735
|
+
return new Subscription$1(function () {
|
|
736
|
+
_this.currentObservers = null;
|
|
737
|
+
arrRemove(observers, subscriber);
|
|
738
|
+
});
|
|
838
739
|
};
|
|
839
|
-
|
|
840
|
-
var
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
740
|
+
Subject.prototype._checkFinalizedStatuses = function (subscriber) {
|
|
741
|
+
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
742
|
+
if (hasError) {
|
|
743
|
+
subscriber.error(thrownError);
|
|
744
|
+
}
|
|
745
|
+
else if (isStopped) {
|
|
746
|
+
subscriber.complete();
|
|
844
747
|
}
|
|
845
748
|
};
|
|
846
|
-
|
|
847
|
-
var
|
|
848
|
-
|
|
849
|
-
return
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
function
|
|
859
|
-
if (isFunction(finalizer)) {
|
|
860
|
-
finalizer();
|
|
861
|
-
}
|
|
862
|
-
else {
|
|
863
|
-
finalizer.unsubscribe();
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
var config = {
|
|
868
|
-
onUnhandledError: null,
|
|
869
|
-
onStoppedNotification: null,
|
|
870
|
-
Promise: undefined,
|
|
871
|
-
useDeprecatedSynchronousErrorHandling: false,
|
|
872
|
-
useDeprecatedNextContext: false,
|
|
873
|
-
};
|
|
874
|
-
|
|
875
|
-
var timeoutProvider = {
|
|
876
|
-
setTimeout: function (handler, timeout) {
|
|
877
|
-
var args = [];
|
|
878
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
879
|
-
args[_i - 2] = arguments[_i];
|
|
880
|
-
}
|
|
881
|
-
var delegate = timeoutProvider.delegate;
|
|
882
|
-
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
883
|
-
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
884
|
-
}
|
|
885
|
-
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
886
|
-
},
|
|
887
|
-
clearTimeout: function (handle) {
|
|
888
|
-
var delegate = timeoutProvider.delegate;
|
|
889
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
890
|
-
},
|
|
891
|
-
delegate: undefined,
|
|
892
|
-
};
|
|
893
|
-
|
|
894
|
-
function reportUnhandledError(err) {
|
|
895
|
-
timeoutProvider.setTimeout(function () {
|
|
896
|
-
{
|
|
897
|
-
throw err;
|
|
898
|
-
}
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
function noop() { }
|
|
903
|
-
|
|
904
|
-
var context = null;
|
|
905
|
-
function errorContext(cb) {
|
|
906
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
907
|
-
var isRoot = !context;
|
|
908
|
-
if (isRoot) {
|
|
909
|
-
context = { errorThrown: false, error: null };
|
|
910
|
-
}
|
|
911
|
-
cb();
|
|
912
|
-
if (isRoot) {
|
|
913
|
-
var _a = context, errorThrown = _a.errorThrown, error = _a.error;
|
|
914
|
-
context = null;
|
|
915
|
-
if (errorThrown) {
|
|
916
|
-
throw error;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
cb();
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
var Subscriber = (function (_super) {
|
|
926
|
-
__extends(Subscriber, _super);
|
|
927
|
-
function Subscriber(destination) {
|
|
749
|
+
Subject.prototype.asObservable = function () {
|
|
750
|
+
var observable = new Observable();
|
|
751
|
+
observable.source = this;
|
|
752
|
+
return observable;
|
|
753
|
+
};
|
|
754
|
+
Subject.create = function (destination, source) {
|
|
755
|
+
return new AnonymousSubject(destination, source);
|
|
756
|
+
};
|
|
757
|
+
return Subject;
|
|
758
|
+
}(Observable));
|
|
759
|
+
var AnonymousSubject = (function (_super) {
|
|
760
|
+
__extends(AnonymousSubject, _super);
|
|
761
|
+
function AnonymousSubject(destination, source) {
|
|
928
762
|
var _this = _super.call(this) || this;
|
|
929
|
-
_this.
|
|
930
|
-
|
|
931
|
-
_this.destination = destination;
|
|
932
|
-
if (isSubscription(destination)) {
|
|
933
|
-
destination.add(_this);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
else {
|
|
937
|
-
_this.destination = EMPTY_OBSERVER;
|
|
938
|
-
}
|
|
763
|
+
_this.destination = destination;
|
|
764
|
+
_this.source = source;
|
|
939
765
|
return _this;
|
|
940
766
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
Subscriber.prototype.next = function (value) {
|
|
945
|
-
if (this.isStopped) ;
|
|
946
|
-
else {
|
|
947
|
-
this._next(value);
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
Subscriber.prototype.error = function (err) {
|
|
951
|
-
if (this.isStopped) ;
|
|
952
|
-
else {
|
|
953
|
-
this.isStopped = true;
|
|
954
|
-
this._error(err);
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
Subscriber.prototype.complete = function () {
|
|
958
|
-
if (this.isStopped) ;
|
|
959
|
-
else {
|
|
960
|
-
this.isStopped = true;
|
|
961
|
-
this._complete();
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
Subscriber.prototype.unsubscribe = function () {
|
|
965
|
-
if (!this.closed) {
|
|
966
|
-
this.isStopped = true;
|
|
967
|
-
_super.prototype.unsubscribe.call(this);
|
|
968
|
-
this.destination = null;
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
Subscriber.prototype._next = function (value) {
|
|
972
|
-
this.destination.next(value);
|
|
973
|
-
};
|
|
974
|
-
Subscriber.prototype._error = function (err) {
|
|
975
|
-
try {
|
|
976
|
-
this.destination.error(err);
|
|
977
|
-
}
|
|
978
|
-
finally {
|
|
979
|
-
this.unsubscribe();
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
Subscriber.prototype._complete = function () {
|
|
983
|
-
try {
|
|
984
|
-
this.destination.complete();
|
|
985
|
-
}
|
|
986
|
-
finally {
|
|
987
|
-
this.unsubscribe();
|
|
988
|
-
}
|
|
767
|
+
AnonymousSubject.prototype.next = function (value) {
|
|
768
|
+
var _a, _b;
|
|
769
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
|
989
770
|
};
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
function bind(fn, thisArg) {
|
|
994
|
-
return _bind.call(fn, thisArg);
|
|
995
|
-
}
|
|
996
|
-
var ConsumerObserver = (function () {
|
|
997
|
-
function ConsumerObserver(partialObserver) {
|
|
998
|
-
this.partialObserver = partialObserver;
|
|
999
|
-
}
|
|
1000
|
-
ConsumerObserver.prototype.next = function (value) {
|
|
1001
|
-
var partialObserver = this.partialObserver;
|
|
1002
|
-
if (partialObserver.next) {
|
|
1003
|
-
try {
|
|
1004
|
-
partialObserver.next(value);
|
|
1005
|
-
}
|
|
1006
|
-
catch (error) {
|
|
1007
|
-
handleUnhandledError(error);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
771
|
+
AnonymousSubject.prototype.error = function (err) {
|
|
772
|
+
var _a, _b;
|
|
773
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
1010
774
|
};
|
|
1011
|
-
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
try {
|
|
1015
|
-
partialObserver.error(err);
|
|
1016
|
-
}
|
|
1017
|
-
catch (error) {
|
|
1018
|
-
handleUnhandledError(error);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
else {
|
|
1022
|
-
handleUnhandledError(err);
|
|
1023
|
-
}
|
|
775
|
+
AnonymousSubject.prototype.complete = function () {
|
|
776
|
+
var _a, _b;
|
|
777
|
+
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
1024
778
|
};
|
|
1025
|
-
|
|
1026
|
-
var
|
|
1027
|
-
|
|
1028
|
-
try {
|
|
1029
|
-
partialObserver.complete();
|
|
1030
|
-
}
|
|
1031
|
-
catch (error) {
|
|
1032
|
-
handleUnhandledError(error);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
779
|
+
AnonymousSubject.prototype._subscribe = function (subscriber) {
|
|
780
|
+
var _a, _b;
|
|
781
|
+
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
1035
782
|
};
|
|
1036
|
-
return
|
|
1037
|
-
}());
|
|
1038
|
-
var SafeSubscriber = (function (_super) {
|
|
1039
|
-
__extends(SafeSubscriber, _super);
|
|
1040
|
-
function SafeSubscriber(observerOrNext, error, complete) {
|
|
1041
|
-
var _this = _super.call(this) || this;
|
|
1042
|
-
var partialObserver;
|
|
1043
|
-
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
1044
|
-
partialObserver = {
|
|
1045
|
-
next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
|
|
1046
|
-
error: error !== null && error !== void 0 ? error : undefined,
|
|
1047
|
-
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
else {
|
|
1051
|
-
var context_1;
|
|
1052
|
-
if (_this && config.useDeprecatedNextContext) {
|
|
1053
|
-
context_1 = Object.create(observerOrNext);
|
|
1054
|
-
context_1.unsubscribe = function () { return _this.unsubscribe(); };
|
|
1055
|
-
partialObserver = {
|
|
1056
|
-
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
1057
|
-
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
1058
|
-
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
|
|
1059
|
-
};
|
|
1060
|
-
}
|
|
1061
|
-
else {
|
|
1062
|
-
partialObserver = observerOrNext;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
_this.destination = new ConsumerObserver(partialObserver);
|
|
1066
|
-
return _this;
|
|
1067
|
-
}
|
|
1068
|
-
return SafeSubscriber;
|
|
1069
|
-
}(Subscriber));
|
|
1070
|
-
function handleUnhandledError(error) {
|
|
1071
|
-
{
|
|
1072
|
-
reportUnhandledError(error);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
function defaultErrorHandler(err) {
|
|
1076
|
-
throw err;
|
|
1077
|
-
}
|
|
1078
|
-
var EMPTY_OBSERVER = {
|
|
1079
|
-
closed: true,
|
|
1080
|
-
next: noop,
|
|
1081
|
-
error: defaultErrorHandler,
|
|
1082
|
-
complete: noop,
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();
|
|
1086
|
-
|
|
1087
|
-
function identity(x) {
|
|
1088
|
-
return x;
|
|
1089
|
-
}
|
|
783
|
+
return AnonymousSubject;
|
|
784
|
+
}(Subject));
|
|
1090
785
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
return function piped(input) {
|
|
1099
|
-
return fns.reduce(function (prev, fn) { return fn(prev); }, input);
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
786
|
+
var DebugNamespaces;
|
|
787
|
+
(function (DebugNamespaces) {
|
|
788
|
+
DebugNamespaces["ROOT"] = "connect";
|
|
789
|
+
DebugNamespaces["TRACE"] = "trace";
|
|
790
|
+
DebugNamespaces["ERROR"] = "error";
|
|
791
|
+
})(DebugNamespaces || (DebugNamespaces = {}));
|
|
792
|
+
const Logger = debug(DebugNamespaces.ROOT);
|
|
1102
793
|
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
return
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
return
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1203
|
-
})
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
return
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
};
|
|
1266
|
-
Subject.prototype.complete = function () {
|
|
1267
|
-
var _this = this;
|
|
1268
|
-
errorContext(function () {
|
|
1269
|
-
_this._throwIfClosed();
|
|
1270
|
-
if (!_this.isStopped) {
|
|
1271
|
-
_this.isStopped = true;
|
|
1272
|
-
var observers = _this.observers;
|
|
1273
|
-
while (observers.length) {
|
|
1274
|
-
observers.shift().complete();
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
|
-
};
|
|
1279
|
-
Subject.prototype.unsubscribe = function () {
|
|
1280
|
-
this.isStopped = this.closed = true;
|
|
1281
|
-
this.observers = this.currentObservers = null;
|
|
1282
|
-
};
|
|
1283
|
-
Object.defineProperty(Subject.prototype, "observed", {
|
|
1284
|
-
get: function () {
|
|
1285
|
-
var _a;
|
|
1286
|
-
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
1287
|
-
},
|
|
1288
|
-
enumerable: false,
|
|
1289
|
-
configurable: true
|
|
1290
|
-
});
|
|
1291
|
-
Subject.prototype._trySubscribe = function (subscriber) {
|
|
1292
|
-
this._throwIfClosed();
|
|
1293
|
-
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
1294
|
-
};
|
|
1295
|
-
Subject.prototype._subscribe = function (subscriber) {
|
|
1296
|
-
this._throwIfClosed();
|
|
1297
|
-
this._checkFinalizedStatuses(subscriber);
|
|
1298
|
-
return this._innerSubscribe(subscriber);
|
|
1299
|
-
};
|
|
1300
|
-
Subject.prototype._innerSubscribe = function (subscriber) {
|
|
1301
|
-
var _this = this;
|
|
1302
|
-
var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
1303
|
-
if (hasError || isStopped) {
|
|
1304
|
-
return EMPTY_SUBSCRIPTION;
|
|
1305
|
-
}
|
|
1306
|
-
this.currentObservers = null;
|
|
1307
|
-
observers.push(subscriber);
|
|
1308
|
-
return new Subscription$1(function () {
|
|
1309
|
-
_this.currentObservers = null;
|
|
1310
|
-
arrRemove(observers, subscriber);
|
|
1311
|
-
});
|
|
1312
|
-
};
|
|
1313
|
-
Subject.prototype._checkFinalizedStatuses = function (subscriber) {
|
|
1314
|
-
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
1315
|
-
if (hasError) {
|
|
1316
|
-
subscriber.error(thrownError);
|
|
1317
|
-
}
|
|
1318
|
-
else if (isStopped) {
|
|
1319
|
-
subscriber.complete();
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
|
-
Subject.prototype.asObservable = function () {
|
|
1323
|
-
var observable = new Observable();
|
|
1324
|
-
observable.source = this;
|
|
1325
|
-
return observable;
|
|
1326
|
-
};
|
|
1327
|
-
Subject.create = function (destination, source) {
|
|
1328
|
-
return new AnonymousSubject(destination, source);
|
|
1329
|
-
};
|
|
1330
|
-
return Subject;
|
|
1331
|
-
}(Observable));
|
|
1332
|
-
var AnonymousSubject = (function (_super) {
|
|
1333
|
-
__extends(AnonymousSubject, _super);
|
|
1334
|
-
function AnonymousSubject(destination, source) {
|
|
1335
|
-
var _this = _super.call(this) || this;
|
|
1336
|
-
_this.destination = destination;
|
|
1337
|
-
_this.source = source;
|
|
1338
|
-
return _this;
|
|
1339
|
-
}
|
|
1340
|
-
AnonymousSubject.prototype.next = function (value) {
|
|
1341
|
-
var _a, _b;
|
|
1342
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
|
1343
|
-
};
|
|
1344
|
-
AnonymousSubject.prototype.error = function (err) {
|
|
1345
|
-
var _a, _b;
|
|
1346
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
1347
|
-
};
|
|
1348
|
-
AnonymousSubject.prototype.complete = function () {
|
|
1349
|
-
var _a, _b;
|
|
1350
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
1351
|
-
};
|
|
1352
|
-
AnonymousSubject.prototype._subscribe = function (subscriber) {
|
|
1353
|
-
var _a, _b;
|
|
1354
|
-
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
1355
|
-
};
|
|
1356
|
-
return AnonymousSubject;
|
|
1357
|
-
}(Subject));
|
|
794
|
+
class ReflectHelper {
|
|
795
|
+
static get items() {
|
|
796
|
+
return this._items;
|
|
797
|
+
}
|
|
798
|
+
static get keys() {
|
|
799
|
+
return Object.keys(ReflectHelper.items);
|
|
800
|
+
}
|
|
801
|
+
static has(key, target, property) {
|
|
802
|
+
return (!isNil(key) &&
|
|
803
|
+
!isNil(ReflectHelper.items[key]) &&
|
|
804
|
+
(isNil(target) ||
|
|
805
|
+
(!isNil(ReflectHelper.items[key][target]) &&
|
|
806
|
+
(isNil(property) || !isNil(ReflectHelper.items[key][target][String(property)])))));
|
|
807
|
+
}
|
|
808
|
+
static get({ key, target, property, own = true }) {
|
|
809
|
+
try {
|
|
810
|
+
if (own) {
|
|
811
|
+
return Reflect.getOwnMetadata(key, target, property) || null;
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
return Reflect.getMetadata(key, target, property) || null;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
catch (_err) {
|
|
818
|
+
return null;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
static first({ key, target, property, own = true }) {
|
|
822
|
+
const values = ReflectHelper.get({ key, target, property, own });
|
|
823
|
+
return isArray(values) ? first(values) : values;
|
|
824
|
+
}
|
|
825
|
+
static last({ key, target, property, own = true }) {
|
|
826
|
+
const values = ReflectHelper.get({ key, target, property, own });
|
|
827
|
+
return isArray(values) ? last(values) : values;
|
|
828
|
+
}
|
|
829
|
+
static set({ key, target, property, value, propertyDescriptor }) {
|
|
830
|
+
Reflect.defineMetadata(key, value, target, property);
|
|
831
|
+
ReflectHelper.put({ key, target, property, value, propertyDescriptor });
|
|
832
|
+
}
|
|
833
|
+
static add({ key, target, property, value, propertyDescriptor }) {
|
|
834
|
+
let values = ReflectHelper.get({ key, target, property }) || new Array();
|
|
835
|
+
if (!Array.isArray(values))
|
|
836
|
+
values = [values];
|
|
837
|
+
values.push(value);
|
|
838
|
+
ReflectHelper.set({ key, target, property, value: values, propertyDescriptor });
|
|
839
|
+
}
|
|
840
|
+
static all({ key }) {
|
|
841
|
+
const items = ReflectHelper.items[key] || {};
|
|
842
|
+
return flatten(Object.keys(items).map((item) => flatten(this.allFrom(key, items[item]))));
|
|
843
|
+
}
|
|
844
|
+
static allFrom(key, target) {
|
|
845
|
+
return Object.keys(target)
|
|
846
|
+
.filter((property) => property !== 'object')
|
|
847
|
+
.map((property) => this.allValuesFrom(key, target, property));
|
|
848
|
+
}
|
|
849
|
+
static allValuesFrom(key, target, property) {
|
|
850
|
+
const values = target[property];
|
|
851
|
+
let value = values.value;
|
|
852
|
+
const propertyDescriptor = values.propertyDescriptor;
|
|
853
|
+
if (!isArray(value))
|
|
854
|
+
value = [value];
|
|
855
|
+
return flatten(value.map((val) => {
|
|
856
|
+
return {
|
|
857
|
+
key,
|
|
858
|
+
target: target.object,
|
|
859
|
+
property,
|
|
860
|
+
value: val,
|
|
861
|
+
propertyDescriptor,
|
|
862
|
+
};
|
|
863
|
+
}));
|
|
864
|
+
}
|
|
865
|
+
static delete({ key, target, property }) {
|
|
866
|
+
Reflect.deleteMetadata(key, target, property);
|
|
867
|
+
return ReflectHelper.remove(key, target, property);
|
|
868
|
+
}
|
|
869
|
+
static clear(key) {
|
|
870
|
+
if (!key) {
|
|
871
|
+
ReflectHelper.keys.forEach((storedKey) => {
|
|
872
|
+
ReflectHelper.clear(storedKey);
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
else {
|
|
876
|
+
if (ReflectHelper.keys.includes(key)) {
|
|
877
|
+
Object.values(ReflectHelper.items[key]).forEach((target) => {
|
|
878
|
+
if (ReflectHelper.has(key, target)) {
|
|
879
|
+
Object.values(ReflectHelper.items[key][target.toString()]).forEach((property) => {
|
|
880
|
+
ReflectHelper.delete({
|
|
881
|
+
key,
|
|
882
|
+
target: target.object,
|
|
883
|
+
property: String(property),
|
|
884
|
+
});
|
|
885
|
+
ReflectHelper.remove(key, target, String(property));
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
ReflectHelper.delete({ key, target: target.object });
|
|
889
|
+
ReflectHelper.remove(key, target);
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
static getType({ target, propertyKey }) {
|
|
895
|
+
return Reflect.getMetadata('design:type', target, propertyKey);
|
|
896
|
+
}
|
|
897
|
+
static getReturntype({ target, propertyKey }) {
|
|
898
|
+
return Reflect.getMetadata('design:returntype', target, propertyKey);
|
|
899
|
+
}
|
|
900
|
+
static getAllMethods(target) {
|
|
901
|
+
const props = [];
|
|
902
|
+
let obj = target;
|
|
903
|
+
do {
|
|
904
|
+
props.push(...Object.getOwnPropertyNames(obj));
|
|
905
|
+
} while ((obj = Object.getPrototypeOf(obj)));
|
|
906
|
+
return props.sort().filter((e, i, arr) => {
|
|
907
|
+
if ([
|
|
908
|
+
'__defineGetter__',
|
|
909
|
+
'__defineSetter__',
|
|
910
|
+
'__lookupGetter__',
|
|
911
|
+
'__lookupSetter__',
|
|
912
|
+
'constructor',
|
|
913
|
+
'hasOwnProperty',
|
|
914
|
+
'isPrototypeOf',
|
|
915
|
+
'propertyIsEnumerable',
|
|
916
|
+
'toLocaleString',
|
|
917
|
+
'toString',
|
|
918
|
+
'valueOf',
|
|
919
|
+
].includes(e))
|
|
920
|
+
return false;
|
|
921
|
+
if (e != arr[i + 1] && typeof target[e] === 'function')
|
|
922
|
+
return true;
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
static put({ key, target, property, value, propertyDescriptor }) {
|
|
926
|
+
const index = target.constructor.name;
|
|
927
|
+
ReflectHelper.items[key] = ReflectHelper.items[key] || {};
|
|
928
|
+
ReflectHelper.items[key][index] = ReflectHelper.items[key][index] || {};
|
|
929
|
+
ReflectHelper.items[key][index].object = target;
|
|
930
|
+
if (isNil(property)) {
|
|
931
|
+
ReflectHelper.items[key][index].value = {
|
|
932
|
+
value,
|
|
933
|
+
propertyDescriptor,
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
ReflectHelper.items[key][index][String(property)] = ReflectHelper.items[key][index][String(property)] || {};
|
|
938
|
+
ReflectHelper.items[key][index][String(property)] = {
|
|
939
|
+
value,
|
|
940
|
+
propertyDescriptor,
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
static remove(key, target, property) {
|
|
945
|
+
if (ReflectHelper.has(key, target, property))
|
|
946
|
+
return delete ReflectHelper.items[key][target][String(property)];
|
|
947
|
+
else if (ReflectHelper.has(key, target))
|
|
948
|
+
return delete ReflectHelper.items[key][target];
|
|
949
|
+
else if (ReflectHelper.has(key))
|
|
950
|
+
return delete ReflectHelper.items[key];
|
|
951
|
+
else
|
|
952
|
+
return false;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
ReflectHelper._items = {};
|
|
1358
956
|
|
|
1359
|
-
|
|
1360
|
-
(
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
957
|
+
class DebugDecoratorHelper {
|
|
958
|
+
static set(target, options) {
|
|
959
|
+
ReflectHelper.add({
|
|
960
|
+
key: DebugDecoratorHelper.DebugNamingMetadataKey,
|
|
961
|
+
target,
|
|
962
|
+
value: options,
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
static get(target) {
|
|
966
|
+
return ReflectHelper.first({
|
|
967
|
+
key: DebugDecoratorHelper.DebugNamingMetadataKey,
|
|
968
|
+
target,
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
DebugDecoratorHelper.DebugNamingMetadataKey = 'model:naming:decorator';
|
|
1366
973
|
|
|
1367
|
-
class
|
|
1368
|
-
static get
|
|
1369
|
-
|
|
974
|
+
class ClassNameHelper {
|
|
975
|
+
static get(clazz) {
|
|
976
|
+
if (!clazz)
|
|
977
|
+
return null;
|
|
978
|
+
const prototype = Object.getPrototypeOf(clazz);
|
|
979
|
+
const names = compact([
|
|
980
|
+
get(clazz, 'constructor.name'),
|
|
981
|
+
get(prototype, 'constructor.name'),
|
|
982
|
+
get(prototype, '__proto__.constructor.name'),
|
|
983
|
+
]);
|
|
984
|
+
return names.find((name) => name !== 'class_1');
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
const isDebuggable = (object) => {
|
|
989
|
+
return 'debug' in object;
|
|
990
|
+
};
|
|
991
|
+
class DebugHelper {
|
|
992
|
+
static namespacesFor(target) {
|
|
993
|
+
if (isNil(target))
|
|
994
|
+
return [];
|
|
995
|
+
const decorator = DebugDecoratorHelper.get(Object.getPrototypeOf(target));
|
|
996
|
+
const namespaces = get(decorator, 'namespaces', []);
|
|
997
|
+
const name = get(decorator, 'name', ClassNameHelper.get(target));
|
|
998
|
+
return [...namespaces, name];
|
|
999
|
+
}
|
|
1000
|
+
static as(...namespaces) {
|
|
1001
|
+
return new DebugHelper(...namespaces);
|
|
1002
|
+
}
|
|
1003
|
+
static for(target, ...namespaces) {
|
|
1004
|
+
const targetNamespaces = this.namespacesFor(target);
|
|
1005
|
+
return new DebugHelper(...targetNamespaces, ...namespaces);
|
|
1006
|
+
}
|
|
1007
|
+
static from(target, ...namespaces) {
|
|
1008
|
+
if (this.isDebuggable(target)) {
|
|
1009
|
+
const debug = target.debug;
|
|
1010
|
+
if (namespaces)
|
|
1011
|
+
debug.push(...namespaces);
|
|
1012
|
+
return debug;
|
|
1013
|
+
}
|
|
1014
|
+
return DebugHelper.for(target, ...namespaces);
|
|
1015
|
+
}
|
|
1016
|
+
static clonedFrom(target, ...namespaces) {
|
|
1017
|
+
if (this.isDebuggable(target)) {
|
|
1018
|
+
namespaces.push(...target.debug.entries);
|
|
1019
|
+
}
|
|
1020
|
+
else if (!isNil(target)) {
|
|
1021
|
+
namespaces.push(...this.namespacesFor(target));
|
|
1022
|
+
}
|
|
1023
|
+
return DebugHelper.for(target, ...namespaces);
|
|
1024
|
+
}
|
|
1025
|
+
static clone(target, ...namespaces) {
|
|
1026
|
+
let original;
|
|
1027
|
+
if (this.isDebuggable(target)) {
|
|
1028
|
+
original = target.debug;
|
|
1029
|
+
namespaces.push(...original.entries);
|
|
1030
|
+
}
|
|
1031
|
+
return {
|
|
1032
|
+
original,
|
|
1033
|
+
debug: DebugHelper.for(target, ...namespaces),
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
static replace(target, attrs) {
|
|
1037
|
+
if (this.isDebuggable(target))
|
|
1038
|
+
target.debug = attrs.with;
|
|
1039
|
+
}
|
|
1040
|
+
static mock(target, ...namespaces) {
|
|
1041
|
+
const { original, debug } = DebugHelper.clone(target, ...namespaces);
|
|
1042
|
+
DebugHelper.replace(target, { with: debug });
|
|
1043
|
+
return { original, debug };
|
|
1044
|
+
}
|
|
1045
|
+
constructor(...namespace) {
|
|
1046
|
+
this.namespaces = new Set();
|
|
1047
|
+
this.push(...namespace);
|
|
1048
|
+
}
|
|
1049
|
+
get entries() {
|
|
1050
|
+
return Array.from(get(this, 'namespaces', []));
|
|
1051
|
+
}
|
|
1052
|
+
get namespace() {
|
|
1053
|
+
return compact(flatten(this.entries)).join(':');
|
|
1054
|
+
}
|
|
1055
|
+
log(message, ...args) {
|
|
1056
|
+
this.logger(JSON.stringify(message), ...args.map((element) => JSON.stringify(element)));
|
|
1057
|
+
DebugHelper.logs$.next({ namespace: this.namespace, message, args });
|
|
1058
|
+
return this;
|
|
1059
|
+
}
|
|
1060
|
+
trace(message, ...args) {
|
|
1061
|
+
this.logger.extend(DebugNamespaces.TRACE)(message, ...args);
|
|
1062
|
+
DebugHelper.traces$.next({ namespace: this.namespace, message, args });
|
|
1063
|
+
return this;
|
|
1064
|
+
}
|
|
1065
|
+
error(error, ...args) {
|
|
1066
|
+
this.logger.extend(DebugNamespaces.ERROR)(JSON.stringify(error), ...args.map((element) => JSON.stringify(element)));
|
|
1067
|
+
DebugHelper.errors$.next({ namespace: this.namespace, error, args });
|
|
1068
|
+
return this;
|
|
1069
|
+
}
|
|
1070
|
+
build() {
|
|
1071
|
+
this.logger = Logger;
|
|
1072
|
+
this.tracer = Logger;
|
|
1073
|
+
this.err = Logger;
|
|
1074
|
+
this.entries.forEach((namespace) => {
|
|
1075
|
+
this.logger = this.logger.extend(namespace);
|
|
1076
|
+
this.tracer = this.tracer.extend(namespace);
|
|
1077
|
+
this.err = this.err.extend(namespace);
|
|
1078
|
+
});
|
|
1079
|
+
return this;
|
|
1370
1080
|
}
|
|
1371
|
-
|
|
1372
|
-
return
|
|
1081
|
+
with(...namespace) {
|
|
1082
|
+
return new DebugHelper(...this.entries, ...namespace);
|
|
1373
1083
|
}
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
(isNil(property) || !isNil(ReflectHelper.items[key][target][String(property)])))));
|
|
1084
|
+
push(...namespace) {
|
|
1085
|
+
if (namespace) {
|
|
1086
|
+
namespace.filter((item) => Boolean(item)).forEach((item) => this.namespaces.add(item));
|
|
1087
|
+
}
|
|
1088
|
+
return this.build();
|
|
1380
1089
|
}
|
|
1381
|
-
|
|
1090
|
+
unshift(...namespace) {
|
|
1091
|
+
if (namespace) {
|
|
1092
|
+
return this.reset(...namespace, ...this.entries);
|
|
1093
|
+
}
|
|
1094
|
+
return this;
|
|
1095
|
+
}
|
|
1096
|
+
reset(...namespace) {
|
|
1097
|
+
this.namespaces = new Set(flatten(compact(namespace)));
|
|
1098
|
+
return this.build();
|
|
1099
|
+
}
|
|
1100
|
+
startWith(...namespace) {
|
|
1101
|
+
const current = this.namespaces;
|
|
1102
|
+
this.namespaces = new Set(flatten([compact(namespace), ...current]));
|
|
1103
|
+
return this.build();
|
|
1104
|
+
}
|
|
1105
|
+
shift() {
|
|
1106
|
+
const list = this.entries;
|
|
1107
|
+
list.shift();
|
|
1108
|
+
return this.reset(...list);
|
|
1109
|
+
}
|
|
1110
|
+
pop() {
|
|
1111
|
+
const list = this.entries;
|
|
1112
|
+
list.pop();
|
|
1113
|
+
return this.reset(...list);
|
|
1114
|
+
}
|
|
1115
|
+
clear() {
|
|
1116
|
+
return this.reset();
|
|
1117
|
+
}
|
|
1118
|
+
remove(...namespace) {
|
|
1119
|
+
if (namespace) {
|
|
1120
|
+
namespace.filter((item) => Boolean(item)).forEach((item) => this.namespaces.delete(item));
|
|
1121
|
+
}
|
|
1122
|
+
return this.build();
|
|
1123
|
+
}
|
|
1124
|
+
puts(...args) {
|
|
1125
|
+
return [`[${this.namespace}]`, ...args].join(' ');
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
DebugHelper.logs$ = new Subject();
|
|
1129
|
+
DebugHelper.traces$ = new Subject();
|
|
1130
|
+
DebugHelper.errors$ = new Subject();
|
|
1131
|
+
DebugHelper.isDebuggable = isDebuggable;
|
|
1132
|
+
|
|
1133
|
+
function Debug(opts) {
|
|
1134
|
+
return function (target) {
|
|
1135
|
+
DebugDecoratorHelper.set(target.prototype, opts);
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
const ASYNC_IDENTIFIER = 'async';
|
|
1140
|
+
function Log(options = {}) {
|
|
1141
|
+
return Trace(Object.assign({ level: 'log' }, options));
|
|
1142
|
+
}
|
|
1143
|
+
function Trace(options = {}) {
|
|
1144
|
+
return function (target, propertyKey, propertyDescriptor) {
|
|
1145
|
+
const method = propertyDescriptor.value;
|
|
1146
|
+
const isPromise = method.toString().includes(ASYNC_IDENTIFIER);
|
|
1147
|
+
const args = {
|
|
1148
|
+
options,
|
|
1149
|
+
method,
|
|
1150
|
+
target,
|
|
1151
|
+
propertyKey,
|
|
1152
|
+
propertyDescriptor,
|
|
1153
|
+
};
|
|
1154
|
+
propertyDescriptor.value = isPromise ? promiseTracer(args) : functionTracer(args);
|
|
1155
|
+
return propertyDescriptor;
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
const traceCall = function ({ target, propertyKey, propertyDescriptor, args }) {
|
|
1159
|
+
if (!target.debug)
|
|
1160
|
+
target.debug = DebugHelper.for(target, propertyKey);
|
|
1161
|
+
return target.debug.push(propertyKey).trace('called', { target, propertyKey, propertyDescriptor, args });
|
|
1162
|
+
};
|
|
1163
|
+
const promiseTracer = function ({ options, method, propertyKey, propertyDescriptor }) {
|
|
1164
|
+
return function (...args) {
|
|
1165
|
+
return new Promise((resolve, reject) => {
|
|
1166
|
+
const debug = traceCall({ target: this, propertyDescriptor, propertyKey, args });
|
|
1167
|
+
return method
|
|
1168
|
+
.apply(this, args)
|
|
1169
|
+
.then((result) => {
|
|
1170
|
+
if (options.callbackFn) {
|
|
1171
|
+
options.callbackFn({ target: this, result, args, namespace: [propertyKey] });
|
|
1172
|
+
}
|
|
1173
|
+
if (get(options, 'level', '') === 'log') {
|
|
1174
|
+
debug.log({ req: args, res: result === undefined ? 'void' : result });
|
|
1175
|
+
}
|
|
1176
|
+
return resolve(result);
|
|
1177
|
+
})
|
|
1178
|
+
.catch((error) => {
|
|
1179
|
+
debug.error({ req: args, res: error, stack: error.stack });
|
|
1180
|
+
return reject(error);
|
|
1181
|
+
});
|
|
1182
|
+
});
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
const functionTracer = function ({ options, target, method, propertyKey, propertyDescriptor, }) {
|
|
1186
|
+
return function (...args) {
|
|
1187
|
+
const debug = traceCall({ target: this || target, propertyDescriptor, propertyKey, args });
|
|
1188
|
+
let result;
|
|
1382
1189
|
try {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1190
|
+
result = method.apply(this, args);
|
|
1191
|
+
if (options.callbackFn)
|
|
1192
|
+
options.callbackFn({ target: this, result, args, namespace: [propertyKey] });
|
|
1193
|
+
if (get(options, 'level', '') === 'log') {
|
|
1194
|
+
debug.log({ req: args, res: result === undefined ? 'void' : result });
|
|
1388
1195
|
}
|
|
1196
|
+
return result;
|
|
1389
1197
|
}
|
|
1390
|
-
catch (
|
|
1391
|
-
|
|
1198
|
+
catch (error) {
|
|
1199
|
+
if (error instanceof Error)
|
|
1200
|
+
debug.error({ req: args, res: error, stack: error.stack });
|
|
1201
|
+
throw error;
|
|
1392
1202
|
}
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
function is(value) {
|
|
1207
|
+
return value;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
const isUUID = (value) => isString(value) && /[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/.test(value);
|
|
1211
|
+
|
|
1212
|
+
class Base {
|
|
1213
|
+
constructor(...args) {
|
|
1214
|
+
Object.assign(this, ...args);
|
|
1393
1215
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
const parseDateTime = (value) => {
|
|
1219
|
+
if (!isString(value))
|
|
1220
|
+
return value;
|
|
1221
|
+
if (!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/.test(value) &&
|
|
1222
|
+
!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T\d{2}:\d{2}:\d{2}/.test(value))
|
|
1223
|
+
return value;
|
|
1224
|
+
const date = parseISO(value);
|
|
1225
|
+
if (isNaN(date.getTime()))
|
|
1226
|
+
return value;
|
|
1227
|
+
return date;
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
class BaseModel {
|
|
1231
|
+
get identifier() {
|
|
1232
|
+
const fields = this.constructor.identifiersFields.filter((field) => field !== 'identifier');
|
|
1233
|
+
const data = this;
|
|
1234
|
+
return fields.reduce((object, field) => (Object.assign(Object.assign({}, object), { [field]: data[field] })), {});
|
|
1397
1235
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
return isArray(values) ? last(values) : values;
|
|
1236
|
+
get identifiersFields() {
|
|
1237
|
+
return this.constructor.identifiersFields;
|
|
1401
1238
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
ReflectHelper.put({ key, target, property, value, propertyDescriptor });
|
|
1239
|
+
constructor(args) {
|
|
1240
|
+
Object.assign(this, args);
|
|
1405
1241
|
}
|
|
1406
|
-
static
|
|
1407
|
-
|
|
1408
|
-
if (!Array.isArray(values))
|
|
1409
|
-
values = [values];
|
|
1410
|
-
values.push(value);
|
|
1411
|
-
ReflectHelper.set({ key, target, property, value: values, propertyDescriptor });
|
|
1242
|
+
static toInstance(data) {
|
|
1243
|
+
return plainToInstance(this, data || {});
|
|
1412
1244
|
}
|
|
1413
|
-
static
|
|
1414
|
-
|
|
1415
|
-
return flatten(Object.keys(items).map((item) => flatten(this.allFrom(key, items[item]))));
|
|
1245
|
+
static isModel(value) {
|
|
1246
|
+
return value instanceof this;
|
|
1416
1247
|
}
|
|
1417
|
-
|
|
1418
|
-
return
|
|
1419
|
-
.filter((property) => property !== 'object')
|
|
1420
|
-
.map((property) => this.allValuesFrom(key, target, property));
|
|
1248
|
+
toPlain() {
|
|
1249
|
+
return instanceToPlain(this);
|
|
1421
1250
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
var GenderDestination;
|
|
1254
|
+
(function (GenderDestination) {
|
|
1255
|
+
GenderDestination["FEMALE"] = "female";
|
|
1256
|
+
GenderDestination["MALE"] = "male";
|
|
1257
|
+
GenderDestination["UNISEX"] = "unisex";
|
|
1258
|
+
})(GenderDestination || (GenderDestination = {}));
|
|
1259
|
+
|
|
1260
|
+
var ProductLabelEnum;
|
|
1261
|
+
(function (ProductLabelEnum) {
|
|
1262
|
+
ProductLabelEnum["ON_SALE"] = "on-sale";
|
|
1263
|
+
ProductLabelEnum["OUTLET"] = "outlet";
|
|
1264
|
+
ProductLabelEnum["LAST_UNITS"] = "last-units";
|
|
1265
|
+
ProductLabelEnum["GLAMSTAR"] = "glamstar";
|
|
1266
|
+
})(ProductLabelEnum || (ProductLabelEnum = {}));
|
|
1267
|
+
|
|
1268
|
+
var Shops;
|
|
1269
|
+
(function (Shops) {
|
|
1270
|
+
Shops["MENSMARKET"] = "mensmarket";
|
|
1271
|
+
Shops["GLAMSHOP"] = "Glamshop";
|
|
1272
|
+
Shops["GLAMPOINTS"] = "Glampoints";
|
|
1273
|
+
Shops["ALL"] = "ALL";
|
|
1274
|
+
})(Shops || (Shops = {}));
|
|
1275
|
+
|
|
1276
|
+
var WishlistLogType;
|
|
1277
|
+
(function (WishlistLogType) {
|
|
1278
|
+
WishlistLogType["CREATE"] = "create";
|
|
1279
|
+
WishlistLogType["UPDATE"] = "update";
|
|
1280
|
+
WishlistLogType["DELETE"] = "delete";
|
|
1281
|
+
WishlistLogType["ADD_PRODUCT"] = "add_product";
|
|
1282
|
+
WishlistLogType["REMOVE_PRODUCT"] = "remove_product";
|
|
1283
|
+
})(WishlistLogType || (WishlistLogType = {}));
|
|
1284
|
+
|
|
1285
|
+
class Category extends BaseModel {
|
|
1286
|
+
static get identifiersFields() {
|
|
1287
|
+
return ['id'];
|
|
1288
|
+
}
|
|
1289
|
+
get glamImages() {
|
|
1290
|
+
return this.images && this.images[Shops.GLAMSHOP]
|
|
1291
|
+
? this.images[Shops.GLAMSHOP]
|
|
1292
|
+
: {
|
|
1293
|
+
brandBanner: null,
|
|
1294
|
+
brandBannerMobile: null,
|
|
1295
|
+
image: null,
|
|
1435
1296
|
};
|
|
1436
|
-
}));
|
|
1437
|
-
}
|
|
1438
|
-
static delete({ key, target, property }) {
|
|
1439
|
-
Reflect.deleteMetadata(key, target, property);
|
|
1440
|
-
return ReflectHelper.remove(key, target, property);
|
|
1441
|
-
}
|
|
1442
|
-
static clear(key) {
|
|
1443
|
-
if (!key) {
|
|
1444
|
-
ReflectHelper.keys.forEach((storedKey) => {
|
|
1445
|
-
ReflectHelper.clear(storedKey);
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
else {
|
|
1449
|
-
if (ReflectHelper.keys.includes(key)) {
|
|
1450
|
-
Object.values(ReflectHelper.items[key]).forEach((target) => {
|
|
1451
|
-
if (ReflectHelper.has(key, target)) {
|
|
1452
|
-
Object.values(ReflectHelper.items[key][target.toString()]).forEach((property) => {
|
|
1453
|
-
ReflectHelper.delete({
|
|
1454
|
-
key,
|
|
1455
|
-
target: target.object,
|
|
1456
|
-
property: String(property),
|
|
1457
|
-
});
|
|
1458
|
-
ReflectHelper.remove(key, target, String(property));
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
ReflectHelper.delete({ key, target: target.object });
|
|
1462
|
-
ReflectHelper.remove(key, target);
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
1297
|
}
|
|
1467
|
-
|
|
1468
|
-
return
|
|
1298
|
+
get mensImages() {
|
|
1299
|
+
return this.images && this.images[Shops.MENSMARKET]
|
|
1300
|
+
? this.images[Shops.MENSMARKET]
|
|
1301
|
+
: {
|
|
1302
|
+
brandBanner: null,
|
|
1303
|
+
brandBannerMobile: null,
|
|
1304
|
+
image: null,
|
|
1305
|
+
};
|
|
1469
1306
|
}
|
|
1470
|
-
|
|
1471
|
-
return
|
|
1307
|
+
get glamMetadata() {
|
|
1308
|
+
return this.metadatas.find((metadata) => metadata.shop === Shops.GLAMSHOP);
|
|
1472
1309
|
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
let obj = target;
|
|
1476
|
-
do {
|
|
1477
|
-
props.push(...Object.getOwnPropertyNames(obj));
|
|
1478
|
-
} while ((obj = Object.getPrototypeOf(obj)));
|
|
1479
|
-
return props.sort().filter((e, i, arr) => {
|
|
1480
|
-
if ([
|
|
1481
|
-
'__defineGetter__',
|
|
1482
|
-
'__defineSetter__',
|
|
1483
|
-
'__lookupGetter__',
|
|
1484
|
-
'__lookupSetter__',
|
|
1485
|
-
'constructor',
|
|
1486
|
-
'hasOwnProperty',
|
|
1487
|
-
'isPrototypeOf',
|
|
1488
|
-
'propertyIsEnumerable',
|
|
1489
|
-
'toLocaleString',
|
|
1490
|
-
'toString',
|
|
1491
|
-
'valueOf',
|
|
1492
|
-
].includes(e))
|
|
1493
|
-
return false;
|
|
1494
|
-
if (e != arr[i + 1] && typeof target[e] === 'function')
|
|
1495
|
-
return true;
|
|
1496
|
-
});
|
|
1310
|
+
get mensMetadata() {
|
|
1311
|
+
return this.metadatas.find((metadata) => metadata.shop === Shops.MENSMARKET);
|
|
1497
1312
|
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
ReflectHelper.items[key] = ReflectHelper.items[key] || {};
|
|
1501
|
-
ReflectHelper.items[key][index] = ReflectHelper.items[key][index] || {};
|
|
1502
|
-
ReflectHelper.items[key][index].object = target;
|
|
1503
|
-
if (isNil(property)) {
|
|
1504
|
-
ReflectHelper.items[key][index].value = {
|
|
1505
|
-
value,
|
|
1506
|
-
propertyDescriptor,
|
|
1507
|
-
};
|
|
1508
|
-
}
|
|
1509
|
-
else {
|
|
1510
|
-
ReflectHelper.items[key][index][String(property)] = ReflectHelper.items[key][index][String(property)] || {};
|
|
1511
|
-
ReflectHelper.items[key][index][String(property)] = {
|
|
1512
|
-
value,
|
|
1513
|
-
propertyDescriptor,
|
|
1514
|
-
};
|
|
1515
|
-
}
|
|
1313
|
+
getMostRelevantByShop(shop) {
|
|
1314
|
+
return this.mostRelevants && this.mostRelevants[shop] ? this.mostRelevants[shop] : [];
|
|
1516
1315
|
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1316
|
+
}
|
|
1317
|
+
__decorate([
|
|
1318
|
+
Type(() => Category),
|
|
1319
|
+
__metadata("design:type", Category)
|
|
1320
|
+
], Category.prototype, "parent", void 0);
|
|
1321
|
+
__decorate([
|
|
1322
|
+
Type(resolveClass('Product')),
|
|
1323
|
+
__metadata("design:type", Array)
|
|
1324
|
+
], Category.prototype, "childrenProducts", void 0);
|
|
1325
|
+
__decorate([
|
|
1326
|
+
Type(resolveClass('Filter')),
|
|
1327
|
+
__metadata("design:type", Array)
|
|
1328
|
+
], Category.prototype, "filters", void 0);
|
|
1329
|
+
registerClass('Category', Category);
|
|
1330
|
+
|
|
1331
|
+
class CategoryCollectionChildren extends BaseModel {
|
|
1332
|
+
static get identifiersFields() {
|
|
1333
|
+
return ['collectionId', 'categoryId'];
|
|
1526
1334
|
}
|
|
1527
1335
|
}
|
|
1528
|
-
|
|
1336
|
+
__decorate([
|
|
1337
|
+
Type(() => CategoryCollectionChildren),
|
|
1338
|
+
__metadata("design:type", CategoryCollectionChildren)
|
|
1339
|
+
], CategoryCollectionChildren.prototype, "parent", void 0);
|
|
1529
1340
|
|
|
1530
|
-
class
|
|
1531
|
-
static
|
|
1532
|
-
|
|
1533
|
-
key: DebugDecoratorHelper.DebugNamingMetadataKey,
|
|
1534
|
-
target,
|
|
1535
|
-
value: options,
|
|
1536
|
-
});
|
|
1341
|
+
class Filter extends BaseModel {
|
|
1342
|
+
static get identifiersFields() {
|
|
1343
|
+
return ['id'];
|
|
1537
1344
|
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1345
|
+
}
|
|
1346
|
+
__decorate([
|
|
1347
|
+
Type(() => Category),
|
|
1348
|
+
__metadata("design:type", Array)
|
|
1349
|
+
], Filter.prototype, "categories", void 0);
|
|
1350
|
+
registerClass('Filter', Filter);
|
|
1351
|
+
|
|
1352
|
+
class CategoryFilter extends BaseModel {
|
|
1353
|
+
static get identifiersFields() {
|
|
1354
|
+
return ['id'];
|
|
1543
1355
|
}
|
|
1544
1356
|
}
|
|
1545
|
-
|
|
1357
|
+
__decorate([
|
|
1358
|
+
Type(() => Filter),
|
|
1359
|
+
__metadata("design:type", Filter)
|
|
1360
|
+
], CategoryFilter.prototype, "filter", void 0);
|
|
1361
|
+
__decorate([
|
|
1362
|
+
Type(() => Category),
|
|
1363
|
+
__metadata("design:type", Category)
|
|
1364
|
+
], CategoryFilter.prototype, "category", void 0);
|
|
1546
1365
|
|
|
1547
|
-
class
|
|
1548
|
-
static get(
|
|
1549
|
-
|
|
1550
|
-
return null;
|
|
1551
|
-
const prototype = Object.getPrototypeOf(clazz);
|
|
1552
|
-
const names = compact([
|
|
1553
|
-
get(clazz, 'constructor.name'),
|
|
1554
|
-
get(prototype, 'constructor.name'),
|
|
1555
|
-
get(prototype, '__proto__.constructor.name'),
|
|
1556
|
-
]);
|
|
1557
|
-
return names.find((name) => name !== 'class_1');
|
|
1366
|
+
class CategoryProduct extends BaseModel {
|
|
1367
|
+
static get identifiersFields() {
|
|
1368
|
+
return ['categoryId', 'productId'];
|
|
1558
1369
|
}
|
|
1559
1370
|
}
|
|
1560
1371
|
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
class DebugHelper {
|
|
1565
|
-
static namespacesFor(target) {
|
|
1566
|
-
if (isNil(target))
|
|
1567
|
-
return [];
|
|
1568
|
-
const decorator = DebugDecoratorHelper.get(Object.getPrototypeOf(target));
|
|
1569
|
-
const namespaces = get(decorator, 'namespaces', []);
|
|
1570
|
-
const name = get(decorator, 'name', ClassNameHelper.get(target));
|
|
1571
|
-
return [...namespaces, name];
|
|
1572
|
-
}
|
|
1573
|
-
static as(...namespaces) {
|
|
1574
|
-
return new DebugHelper(...namespaces);
|
|
1575
|
-
}
|
|
1576
|
-
static for(target, ...namespaces) {
|
|
1577
|
-
const targetNamespaces = this.namespacesFor(target);
|
|
1578
|
-
return new DebugHelper(...targetNamespaces, ...namespaces);
|
|
1372
|
+
class FilterOption extends BaseModel {
|
|
1373
|
+
static get identifiersFields() {
|
|
1374
|
+
return ['id'];
|
|
1579
1375
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
return debug;
|
|
1586
|
-
}
|
|
1587
|
-
return DebugHelper.for(target, ...namespaces);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
class KitProduct extends BaseModel {
|
|
1379
|
+
static get identifiersFields() {
|
|
1380
|
+
return ['productId', 'kitProductId'];
|
|
1588
1381
|
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1382
|
+
}
|
|
1383
|
+
__decorate([
|
|
1384
|
+
Type(resolveClass('Product')),
|
|
1385
|
+
__metadata("design:type", Function)
|
|
1386
|
+
], KitProduct.prototype, "kit", void 0);
|
|
1387
|
+
__decorate([
|
|
1388
|
+
Type(resolveClass('Product')),
|
|
1389
|
+
__metadata("design:type", Function)
|
|
1390
|
+
], KitProduct.prototype, "product", void 0);
|
|
1391
|
+
registerClass('KitProduct', KitProduct);
|
|
1392
|
+
|
|
1393
|
+
class ProductReview extends BaseModel {
|
|
1394
|
+
static get identifiersFields() {
|
|
1395
|
+
return ['id'];
|
|
1597
1396
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
namespaces.push(...original.entries);
|
|
1603
|
-
}
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
class ProductBase extends BaseModel {
|
|
1400
|
+
get evaluation() {
|
|
1604
1401
|
return {
|
|
1605
|
-
|
|
1606
|
-
|
|
1402
|
+
reviews: this.reviews,
|
|
1403
|
+
count: this.reviewsTotal,
|
|
1404
|
+
rating: this.rate,
|
|
1607
1405
|
};
|
|
1608
1406
|
}
|
|
1609
|
-
|
|
1610
|
-
if (
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
this.namespaces = new Set();
|
|
1620
|
-
this.push(...namespace);
|
|
1621
|
-
}
|
|
1622
|
-
get entries() {
|
|
1623
|
-
return Array.from(get(this, 'namespaces', []));
|
|
1624
|
-
}
|
|
1625
|
-
get namespace() {
|
|
1626
|
-
return compact(flatten(this.entries)).join(':');
|
|
1627
|
-
}
|
|
1628
|
-
log(message, ...args) {
|
|
1629
|
-
this.logger(JSON.stringify(message), ...args.map((element) => JSON.stringify(element)));
|
|
1630
|
-
DebugHelper.logs$.next({ namespace: this.namespace, message, args });
|
|
1631
|
-
return this;
|
|
1632
|
-
}
|
|
1633
|
-
trace(message, ...args) {
|
|
1634
|
-
this.logger.extend(DebugNamespaces.TRACE)(message, ...args);
|
|
1635
|
-
DebugHelper.traces$.next({ namespace: this.namespace, message, args });
|
|
1636
|
-
return this;
|
|
1637
|
-
}
|
|
1638
|
-
error(error, ...args) {
|
|
1639
|
-
this.logger.extend(DebugNamespaces.ERROR)(JSON.stringify(error), ...args.map((element) => JSON.stringify(element)));
|
|
1640
|
-
DebugHelper.errors$.next({ namespace: this.namespace, error, args });
|
|
1641
|
-
return this;
|
|
1407
|
+
set evaluation(evaluation) {
|
|
1408
|
+
if (!evaluation) {
|
|
1409
|
+
this.reviews = null;
|
|
1410
|
+
this.reviewsTotal = null;
|
|
1411
|
+
this.rate = null;
|
|
1412
|
+
return;
|
|
1413
|
+
}
|
|
1414
|
+
this.reviews = evaluation.reviews || this.reviews;
|
|
1415
|
+
this.reviewsTotal = evaluation.count || this.reviewsTotal;
|
|
1416
|
+
this.rate = evaluation.rating || this.rate;
|
|
1642
1417
|
}
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
this.tracer = Logger;
|
|
1646
|
-
this.err = Logger;
|
|
1647
|
-
this.entries.forEach((namespace) => {
|
|
1648
|
-
this.logger = this.logger.extend(namespace);
|
|
1649
|
-
this.tracer = this.tracer.extend(namespace);
|
|
1650
|
-
this.err = this.err.extend(namespace);
|
|
1651
|
-
});
|
|
1652
|
-
return this;
|
|
1418
|
+
static get identifiersFields() {
|
|
1419
|
+
return ['id'];
|
|
1653
1420
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1421
|
+
}
|
|
1422
|
+
__decorate([
|
|
1423
|
+
Type(() => Category),
|
|
1424
|
+
__metadata("design:type", Category)
|
|
1425
|
+
], ProductBase.prototype, "category", void 0);
|
|
1426
|
+
__decorate([
|
|
1427
|
+
Type(() => KitProduct),
|
|
1428
|
+
__metadata("design:type", Array)
|
|
1429
|
+
], ProductBase.prototype, "kitProducts", void 0);
|
|
1430
|
+
__decorate([
|
|
1431
|
+
Type(() => ProductReview),
|
|
1432
|
+
__metadata("design:type", Array)
|
|
1433
|
+
], ProductBase.prototype, "reviews", void 0);
|
|
1434
|
+
|
|
1435
|
+
class Variant extends ProductBase {
|
|
1436
|
+
static get identifiersFields() {
|
|
1437
|
+
return ['id', 'productId'];
|
|
1656
1438
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
class Product extends ProductBase {
|
|
1442
|
+
}
|
|
1443
|
+
__decorate([
|
|
1444
|
+
Type(() => Variant),
|
|
1445
|
+
__metadata("design:type", Array)
|
|
1446
|
+
], Product.prototype, "variants", void 0);
|
|
1447
|
+
registerClass('Product', Product);
|
|
1448
|
+
|
|
1449
|
+
class ProductErrors extends BaseModel {
|
|
1450
|
+
static get identifiersFields() {
|
|
1451
|
+
return ['productId', 'source', 'error'];
|
|
1662
1452
|
}
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
return this.reset(...namespace, ...this.entries);
|
|
1666
|
-
}
|
|
1667
|
-
return this;
|
|
1453
|
+
getProductId() {
|
|
1454
|
+
return this.product instanceof Product ? this.product.id.toString() : this.product.productId.toString();
|
|
1668
1455
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1456
|
+
}
|
|
1457
|
+
__decorate([
|
|
1458
|
+
Type((type) => (+type.object.product.productId ? Variant : Product)),
|
|
1459
|
+
__metadata("design:type", Object)
|
|
1460
|
+
], ProductErrors.prototype, "product", void 0);
|
|
1461
|
+
|
|
1462
|
+
class ProductStockNotification extends BaseModel {
|
|
1463
|
+
static get identifiersFields() {
|
|
1464
|
+
return ['id'];
|
|
1672
1465
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
class Wishlist extends Category {
|
|
1469
|
+
static get identifiersFields() {
|
|
1470
|
+
return ['id'];
|
|
1677
1471
|
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
class Buy2Win extends BaseModel {
|
|
1475
|
+
static get identifiersFields() {
|
|
1476
|
+
return ['id'];
|
|
1682
1477
|
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1478
|
+
}
|
|
1479
|
+
__decorate([
|
|
1480
|
+
Type(() => Category),
|
|
1481
|
+
__metadata("design:type", Array)
|
|
1482
|
+
], Buy2Win.prototype, "categories", void 0);
|
|
1483
|
+
|
|
1484
|
+
var Where;
|
|
1485
|
+
(function (Where) {
|
|
1486
|
+
Where["EQUALS"] = "==";
|
|
1487
|
+
Where["NOTEQUALS"] = "!=";
|
|
1488
|
+
Where["GT"] = ">";
|
|
1489
|
+
Where["GTE"] = ">=";
|
|
1490
|
+
Where["IN"] = "in";
|
|
1491
|
+
Where["NOTIN"] = "not in";
|
|
1492
|
+
Where["LT"] = "<";
|
|
1493
|
+
Where["LTE"] = "<=";
|
|
1494
|
+
Where["LIKE"] = "like";
|
|
1495
|
+
Where["NOTLIKE"] = "not like";
|
|
1496
|
+
Where["ISNULL"] = "is null";
|
|
1497
|
+
Where["ISNOTNULL"] = "is not null";
|
|
1498
|
+
Where["IREGEX"] = "iregex";
|
|
1499
|
+
})(Where || (Where = {}));
|
|
1500
|
+
|
|
1501
|
+
var UpdateOptionActions;
|
|
1502
|
+
(function (UpdateOptionActions) {
|
|
1503
|
+
UpdateOptionActions["UPDATE"] = "update";
|
|
1504
|
+
UpdateOptionActions["MERGE"] = "merge";
|
|
1505
|
+
UpdateOptionActions["REMOVE"] = "remove";
|
|
1506
|
+
UpdateOptionActions["REMOVE_FIELD"] = "removeField";
|
|
1507
|
+
UpdateOptionActions["NULL"] = "null";
|
|
1508
|
+
})(UpdateOptionActions || (UpdateOptionActions = {}));
|
|
1509
|
+
|
|
1510
|
+
class CampaignDashboard extends BaseModel {
|
|
1511
|
+
static get identifiersFields() {
|
|
1512
|
+
return ['id'];
|
|
1687
1513
|
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
class CampaignHashtag extends BaseModel {
|
|
1517
|
+
static get identifiersFields() {
|
|
1518
|
+
return ['id'];
|
|
1690
1519
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
class BeautyProfile extends BaseModel {
|
|
1523
|
+
toPlain() {
|
|
1524
|
+
const plain = super.toPlain();
|
|
1525
|
+
delete plain.id;
|
|
1526
|
+
return plain;
|
|
1696
1527
|
}
|
|
1697
|
-
|
|
1698
|
-
return [
|
|
1528
|
+
static get identifiersFields() {
|
|
1529
|
+
return ['id', 'userId'];
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
var AccessoryImportances;
|
|
1534
|
+
(function (AccessoryImportances) {
|
|
1535
|
+
AccessoryImportances["NOT_INTERESTED"] = "N\u00E3o tenho interesse";
|
|
1536
|
+
AccessoryImportances["LIKE_RARELY_USE"] = "Gosto, mas uso poucos";
|
|
1537
|
+
AccessoryImportances["LIKE_ALWAYS_FOLLOW_FASHION"] = "Gosto muito de acess\u00F3rios e sempre procuro acompanhar a moda";
|
|
1538
|
+
})(AccessoryImportances || (AccessoryImportances = {}));
|
|
1539
|
+
|
|
1540
|
+
var Area;
|
|
1541
|
+
(function (Area) {
|
|
1542
|
+
Area["GP"] = "Geral";
|
|
1543
|
+
Area["CRM"] = "CRM";
|
|
1544
|
+
Area["MediaProd"] = "Media Production";
|
|
1545
|
+
Area["Tech"] = "Tecnologia";
|
|
1546
|
+
Area["Transactional"] = "Transacional";
|
|
1547
|
+
Area["Operations"] = "Opera\u00E7\u00F5es";
|
|
1548
|
+
Area["Sales"] = "Comercial";
|
|
1549
|
+
Area["Finantial"] = "Financeiro";
|
|
1550
|
+
Area["HR"] = "RH";
|
|
1551
|
+
})(Area || (Area = {}));
|
|
1552
|
+
|
|
1553
|
+
var BeardProblems;
|
|
1554
|
+
(function (BeardProblems) {
|
|
1555
|
+
BeardProblems["NO_PROBLEMS"] = "Sem problemas";
|
|
1556
|
+
BeardProblems["DRY"] = "Barba Seca";
|
|
1557
|
+
BeardProblems["OILY"] = "Barba Oleaosa";
|
|
1558
|
+
BeardProblems["DANCRUFF"] = "Barba com Caspa";
|
|
1559
|
+
BeardProblems["INGROWN_HAIRS"] = "P\u00EAlos Encravados";
|
|
1560
|
+
BeardProblems["DOESNT_GROW"] = "N\u00E3o Cresce";
|
|
1561
|
+
BeardProblems["SPARSE_BEARD"] = "Barba Rala";
|
|
1562
|
+
})(BeardProblems || (BeardProblems = {}));
|
|
1563
|
+
|
|
1564
|
+
var BeardSizes;
|
|
1565
|
+
(function (BeardSizes) {
|
|
1566
|
+
BeardSizes["BIG"] = "Grande";
|
|
1567
|
+
BeardSizes["MEDIUM"] = "M\u00E9dia";
|
|
1568
|
+
BeardSizes["SHORT"] = "Curta";
|
|
1569
|
+
BeardSizes["MUSTACHE"] = "Bigode";
|
|
1570
|
+
BeardSizes["NOTHING"] = "Sem Barba";
|
|
1571
|
+
})(BeardSizes || (BeardSizes = {}));
|
|
1572
|
+
|
|
1573
|
+
var BeautyProductImportances;
|
|
1574
|
+
(function (BeautyProductImportances) {
|
|
1575
|
+
BeautyProductImportances["KNOW_LITTLE_ABOUT"] = "Conhe\u00E7o bem pouco de produtos de beleza e rotinas de cuidados";
|
|
1576
|
+
BeautyProductImportances["ALREADY_BOUGHT_NOTHING_SPECIALIZED"] = "J\u00E1 comprei alguns produtos b\u00E1sicos para cuidar de mim, mas nada muito especializado";
|
|
1577
|
+
BeautyProductImportances["GOOD_CARE_MYSELF"] = "Me considero um homem que se cuida bem. Conhe\u00E7o sobre produtos especializados e me preocupo em ter uma rotina de cuidados";
|
|
1578
|
+
BeautyProductImportances["PERSONAL_CARE_EXPERT"] = "Sou um expert em cuidados pessoais";
|
|
1579
|
+
})(BeautyProductImportances || (BeautyProductImportances = {}));
|
|
1580
|
+
|
|
1581
|
+
var BodyProblems;
|
|
1582
|
+
(function (BodyProblems) {
|
|
1583
|
+
BodyProblems["NO_WORRIES"] = "Sem preocupa\u00E7\u00F5es";
|
|
1584
|
+
BodyProblems["FLACCIDITY"] = "Flacidez";
|
|
1585
|
+
BodyProblems["LOCALIZED_FAT"] = "Gordura Localizada";
|
|
1586
|
+
BodyProblems["STRETCH_MARKS"] = "Estrias";
|
|
1587
|
+
BodyProblems["SENSITIVE_SKIN"] = "Pele Sens\u00EDvel";
|
|
1588
|
+
BodyProblems["DRY_SKIN"] = "Pele Seca";
|
|
1589
|
+
BodyProblems["OILY_ACNE"] = "Oleosa/Acne";
|
|
1590
|
+
BodyProblems["SKIN_FRECKLES"] = "Pele com Sardas";
|
|
1591
|
+
BodyProblems["PHOTOSENSITIVE_SKIN"] = "Pele Fotossens\u00EDvel";
|
|
1592
|
+
})(BodyProblems || (BodyProblems = {}));
|
|
1593
|
+
|
|
1594
|
+
var BodyShapes;
|
|
1595
|
+
(function (BodyShapes) {
|
|
1596
|
+
BodyShapes["LEAN"] = "Magro";
|
|
1597
|
+
BodyShapes["REGULAR"] = "Regular";
|
|
1598
|
+
BodyShapes["OVERWEIGHT"] = "Acima do Peso";
|
|
1599
|
+
BodyShapes["ATHLETIC"] = "Atl\u00E9tico";
|
|
1600
|
+
BodyShapes["MUSCULAR"] = "Musculoso";
|
|
1601
|
+
})(BodyShapes || (BodyShapes = {}));
|
|
1602
|
+
|
|
1603
|
+
var BodyTattoos;
|
|
1604
|
+
(function (BodyTattoos) {
|
|
1605
|
+
BodyTattoos["NONE"] = "Nenhuma";
|
|
1606
|
+
BodyTattoos["HAS_DOESNT_CARE"] = "Tenho mas n\u00E3o cuido";
|
|
1607
|
+
BodyTattoos["HAS_CARE_LOT"] = "Tenho e cuido bastante";
|
|
1608
|
+
})(BodyTattoos || (BodyTattoos = {}));
|
|
1609
|
+
|
|
1610
|
+
var FaceSkinOilinesses;
|
|
1611
|
+
(function (FaceSkinOilinesses) {
|
|
1612
|
+
FaceSkinOilinesses["DRY"] = "Seca";
|
|
1613
|
+
FaceSkinOilinesses["OILY"] = "Oleaosa";
|
|
1614
|
+
FaceSkinOilinesses["MIXED"] = "Mista";
|
|
1615
|
+
FaceSkinOilinesses["NORMAL"] = "Normal";
|
|
1616
|
+
FaceSkinOilinesses["DONT_KNOW"] = "Eu n\u00E3o sei como dizer";
|
|
1617
|
+
})(FaceSkinOilinesses || (FaceSkinOilinesses = {}));
|
|
1618
|
+
|
|
1619
|
+
var FaceSkinProblems;
|
|
1620
|
+
(function (FaceSkinProblems) {
|
|
1621
|
+
FaceSkinProblems["NO_PROBLEMS"] = "Sem problemas";
|
|
1622
|
+
FaceSkinProblems["DARK_CIRCLES"] = "Olheiras";
|
|
1623
|
+
FaceSkinProblems["WRINKLES"] = "Rugas";
|
|
1624
|
+
FaceSkinProblems["BLACKHEADS_PIMPLES"] = "Cravos e Espinhas";
|
|
1625
|
+
FaceSkinProblems["STAINS"] = "Manchas";
|
|
1626
|
+
FaceSkinProblems["FRECKLES"] = "Sardas";
|
|
1627
|
+
FaceSkinProblems["SENSITIVE"] = "Sens\u00EDvel";
|
|
1628
|
+
FaceSkinProblems["PHOTOSENSITIVE"] = "Fotossens\u00EDvel";
|
|
1629
|
+
})(FaceSkinProblems || (FaceSkinProblems = {}));
|
|
1630
|
+
|
|
1631
|
+
var FaceSkinTones;
|
|
1632
|
+
(function (FaceSkinTones) {
|
|
1633
|
+
FaceSkinTones["VERY_CLEAR"] = "Muito Clara";
|
|
1634
|
+
FaceSkinTones["CLEAR"] = "Clara";
|
|
1635
|
+
FaceSkinTones["MEDIUM_LIGHT"] = "Clara M\u00E9dia";
|
|
1636
|
+
FaceSkinTones["MEDIUM_DARK"] = "Escura M\u00E9dia";
|
|
1637
|
+
FaceSkinTones["DARK"] = "Escura";
|
|
1638
|
+
FaceSkinTones["VERY_DARK"] = "Muito Escura";
|
|
1639
|
+
})(FaceSkinTones || (FaceSkinTones = {}));
|
|
1640
|
+
|
|
1641
|
+
var FamilyIncomes;
|
|
1642
|
+
(function (FamilyIncomes) {
|
|
1643
|
+
FamilyIncomes["UNTIL_3000"] = "At\u00E9 R$3.000";
|
|
1644
|
+
FamilyIncomes["SINCE_3001_TO_7000"] = "De R$3.001 a R$7.000";
|
|
1645
|
+
FamilyIncomes["SINCE_7001_TO_10000"] = "De R$7.001 a R$10.000";
|
|
1646
|
+
FamilyIncomes["SINCE_10001_TO_15000"] = "De R$10.001 a R$15.000";
|
|
1647
|
+
FamilyIncomes["GRAN_THAN_15000"] = "Mais de R$15.000";
|
|
1648
|
+
FamilyIncomes["NOW_ANSWER"] = "Prefiro nao responder";
|
|
1649
|
+
})(FamilyIncomes || (FamilyIncomes = {}));
|
|
1650
|
+
|
|
1651
|
+
var FragranceImportances;
|
|
1652
|
+
(function (FragranceImportances) {
|
|
1653
|
+
FragranceImportances["NOT_INTERESTED"] = "N\u00E3o tenho interesse";
|
|
1654
|
+
FragranceImportances["LIKE_ALWAYS_USE_SAME"] = "Gosto de perfumes, mas uso sempre os mesmos";
|
|
1655
|
+
FragranceImportances["LIKE_INNOVATE"] = "Gosto de inovar e conhecer novas fragr\u00E2ncias";
|
|
1656
|
+
})(FragranceImportances || (FragranceImportances = {}));
|
|
1657
|
+
|
|
1658
|
+
var HairColors;
|
|
1659
|
+
(function (HairColors) {
|
|
1660
|
+
HairColors["BLACK"] = "Preto";
|
|
1661
|
+
HairColors["DARK_BROWN"] = "Castanho Escuro";
|
|
1662
|
+
HairColors["LIGHT_BROWN"] = "Castanho Claro";
|
|
1663
|
+
HairColors["DARK_BLONDE"] = "Loiro Escuro";
|
|
1664
|
+
HairColors["LIGHT_BLONDE"] = "Loiro Claro";
|
|
1665
|
+
HairColors["WHITE_GRAY"] = "Branco/Grisalho";
|
|
1666
|
+
HairColors["REDHEAD"] = "Ruivo";
|
|
1667
|
+
HairColors["OTHER"] = "RuiOutroo";
|
|
1668
|
+
})(HairColors || (HairColors = {}));
|
|
1669
|
+
|
|
1670
|
+
var HairProblems;
|
|
1671
|
+
(function (HairProblems) {
|
|
1672
|
+
HairProblems["NO_PROBLEMS"] = "Sem problemas";
|
|
1673
|
+
HairProblems["DANCRUFF"] = "Caspa";
|
|
1674
|
+
HairProblems["LOSS"] = "Queda";
|
|
1675
|
+
HairProblems["OILY"] = "Oleosidade";
|
|
1676
|
+
HairProblems["DRYNESS"] = "Ressecamento";
|
|
1677
|
+
HairProblems["CHEMICAL"] = "Quimica";
|
|
1678
|
+
HairProblems["WHITE_HAIR"] = "Cabelos Brancos";
|
|
1679
|
+
HairProblems["REBEL_WIRES"] = "Fios Rebeldes";
|
|
1680
|
+
})(HairProblems || (HairProblems = {}));
|
|
1681
|
+
|
|
1682
|
+
var HairStrands;
|
|
1683
|
+
(function (HairStrands) {
|
|
1684
|
+
HairStrands["NORMAL"] = "Fio Normal";
|
|
1685
|
+
HairStrands["DRY"] = "Fio Seco";
|
|
1686
|
+
HairStrands["OILY"] = "Fio Oleoso";
|
|
1687
|
+
HairStrands["MIXED"] = "Fio Misto";
|
|
1688
|
+
HairStrands["FINE"] = "Fio Fino";
|
|
1689
|
+
HairStrands["THICK"] = "Fio Grosso";
|
|
1690
|
+
})(HairStrands || (HairStrands = {}));
|
|
1691
|
+
|
|
1692
|
+
var HairTypes;
|
|
1693
|
+
(function (HairTypes) {
|
|
1694
|
+
HairTypes["Smooth"] = "Liso";
|
|
1695
|
+
HairTypes["WAVY"] = "Ondulado";
|
|
1696
|
+
HairTypes["CURLY"] = "Cacheado";
|
|
1697
|
+
HairTypes["FRIZZY"] = "Crespo";
|
|
1698
|
+
HairTypes["BALD"] = "Sou careca";
|
|
1699
|
+
})(HairTypes || (HairTypes = {}));
|
|
1700
|
+
|
|
1701
|
+
var OfficePosition;
|
|
1702
|
+
(function (OfficePosition) {
|
|
1703
|
+
OfficePosition["Intern"] = "Estagi\u00E1rio";
|
|
1704
|
+
OfficePosition["Analyst"] = "Analista";
|
|
1705
|
+
OfficePosition["Manager"] = "Gerente";
|
|
1706
|
+
OfficePosition["Director"] = "Diretor";
|
|
1707
|
+
})(OfficePosition || (OfficePosition = {}));
|
|
1708
|
+
|
|
1709
|
+
var PersonTypes;
|
|
1710
|
+
(function (PersonTypes) {
|
|
1711
|
+
PersonTypes["GLAMGIRL"] = "glamgirl";
|
|
1712
|
+
PersonTypes["BFLU"] = "bflu";
|
|
1713
|
+
PersonTypes["NONE"] = "none";
|
|
1714
|
+
})(PersonTypes || (PersonTypes = {}));
|
|
1715
|
+
|
|
1716
|
+
var ProductSpents;
|
|
1717
|
+
(function (ProductSpents) {
|
|
1718
|
+
ProductSpents["UNTIL_50"] = "At\u00E9 R$50";
|
|
1719
|
+
ProductSpents["SINCE_51_TO_100"] = "De R$51 a R$100";
|
|
1720
|
+
ProductSpents["SINCE_101_TO_200"] = "De R$101 a R$200";
|
|
1721
|
+
ProductSpents["SINCE_201_TO_300"] = "De R$201 a R$300";
|
|
1722
|
+
ProductSpents["GRAN_THAN_300"] = "Mais de R$300";
|
|
1723
|
+
ProductSpents["NOW_ANSWER"] = "Prefiro nao responder";
|
|
1724
|
+
})(ProductSpents || (ProductSpents = {}));
|
|
1725
|
+
|
|
1726
|
+
var UserType;
|
|
1727
|
+
(function (UserType) {
|
|
1728
|
+
UserType["B2C"] = "Cliente Transacional";
|
|
1729
|
+
UserType["GlamGirl"] = "Glamgirl";
|
|
1730
|
+
UserType["MensBoy"] = "Mensboy";
|
|
1731
|
+
UserType["B2B"] = "Company";
|
|
1732
|
+
UserType["Collaborator"] = "Funcion\u00E1rio";
|
|
1733
|
+
UserType["Influencer"] = "Influencer";
|
|
1734
|
+
})(UserType || (UserType = {}));
|
|
1735
|
+
|
|
1736
|
+
class Lead extends BaseModel {
|
|
1737
|
+
static get identifiersFields() {
|
|
1738
|
+
return ['id'];
|
|
1699
1739
|
}
|
|
1700
|
-
}
|
|
1701
|
-
DebugHelper.logs$ = new Subject();
|
|
1702
|
-
DebugHelper.traces$ = new Subject();
|
|
1703
|
-
DebugHelper.errors$ = new Subject();
|
|
1704
|
-
DebugHelper.isDebuggable = isDebuggable;
|
|
1740
|
+
}
|
|
1705
1741
|
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
}
|
|
1742
|
+
class Edition extends BaseModel {
|
|
1743
|
+
static get identifiersFields() {
|
|
1744
|
+
return ['id', 'subscriptionId'];
|
|
1745
|
+
}
|
|
1710
1746
|
}
|
|
1711
1747
|
|
|
1712
|
-
|
|
1713
|
-
function
|
|
1714
|
-
|
|
1715
|
-
}
|
|
1716
|
-
function Trace(options = {}) {
|
|
1717
|
-
return function (target, propertyKey, propertyDescriptor) {
|
|
1718
|
-
const method = propertyDescriptor.value;
|
|
1719
|
-
const isPromise = method.toString().includes(ASYNC_IDENTIFIER);
|
|
1720
|
-
const args = {
|
|
1721
|
-
options,
|
|
1722
|
-
method,
|
|
1723
|
-
target,
|
|
1724
|
-
propertyKey,
|
|
1725
|
-
propertyDescriptor,
|
|
1726
|
-
};
|
|
1727
|
-
propertyDescriptor.value = isPromise ? promiseTracer(args) : functionTracer(args);
|
|
1728
|
-
return propertyDescriptor;
|
|
1729
|
-
};
|
|
1730
|
-
}
|
|
1731
|
-
const traceCall = function ({ target, propertyKey, propertyDescriptor, args }) {
|
|
1732
|
-
if (!target.debug)
|
|
1733
|
-
target.debug = DebugHelper.for(target, propertyKey);
|
|
1734
|
-
return target.debug.push(propertyKey).trace('called', { target, propertyKey, propertyDescriptor, args });
|
|
1735
|
-
};
|
|
1736
|
-
const promiseTracer = function ({ options, method, propertyKey, propertyDescriptor }) {
|
|
1737
|
-
return function (...args) {
|
|
1738
|
-
return new Promise((resolve, reject) => {
|
|
1739
|
-
const debug = traceCall({ target: this, propertyDescriptor, propertyKey, args });
|
|
1740
|
-
return method
|
|
1741
|
-
.apply(this, args)
|
|
1742
|
-
.then((result) => {
|
|
1743
|
-
if (options.callbackFn) {
|
|
1744
|
-
options.callbackFn({ target: this, result, args, namespace: [propertyKey] });
|
|
1745
|
-
}
|
|
1746
|
-
if (get(options, 'level', '') === 'log') {
|
|
1747
|
-
debug.log({ req: args, res: result === undefined ? 'void' : result });
|
|
1748
|
-
}
|
|
1749
|
-
return resolve(result);
|
|
1750
|
-
})
|
|
1751
|
-
.catch((error) => {
|
|
1752
|
-
debug.error({ req: args, res: error, stack: error.stack });
|
|
1753
|
-
return reject(error);
|
|
1754
|
-
});
|
|
1755
|
-
});
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
const functionTracer = function ({ options, target, method, propertyKey, propertyDescriptor, }) {
|
|
1759
|
-
return function (...args) {
|
|
1760
|
-
const debug = traceCall({ target: this || target, propertyDescriptor, propertyKey, args });
|
|
1761
|
-
let result;
|
|
1762
|
-
try {
|
|
1763
|
-
result = method.apply(this, args);
|
|
1764
|
-
if (options.callbackFn)
|
|
1765
|
-
options.callbackFn({ target: this, result, args, namespace: [propertyKey] });
|
|
1766
|
-
if (get(options, 'level', '') === 'log') {
|
|
1767
|
-
debug.log({ req: args, res: result === undefined ? 'void' : result });
|
|
1768
|
-
}
|
|
1769
|
-
return result;
|
|
1770
|
-
}
|
|
1771
|
-
catch (error) {
|
|
1772
|
-
if (error instanceof Error)
|
|
1773
|
-
debug.error({ req: args, res: error, stack: error.stack });
|
|
1774
|
-
throw error;
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1748
|
+
var BillingStatus;
|
|
1749
|
+
(function (BillingStatus) {
|
|
1750
|
+
BillingStatus["PAYED"] = "PAGO";
|
|
1751
|
+
})(BillingStatus || (BillingStatus = {}));
|
|
1778
1752
|
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1753
|
+
var EditionStatus;
|
|
1754
|
+
(function (EditionStatus) {
|
|
1755
|
+
EditionStatus["ALLOCATION_WAITING"] = "Aguardando aloca\u00E7\u00E3o";
|
|
1756
|
+
EditionStatus["SHIPPED"] = "Enviado";
|
|
1757
|
+
})(EditionStatus || (EditionStatus = {}));
|
|
1782
1758
|
|
|
1783
|
-
|
|
1759
|
+
var PaymentType;
|
|
1760
|
+
(function (PaymentType) {
|
|
1761
|
+
PaymentType["AQUISITION"] = "Aquisi\u00E7\u00E3o";
|
|
1762
|
+
PaymentType["RENEWAL"] = "Renova\u00E7\u00E3o";
|
|
1763
|
+
PaymentType["FREIGHT"] = "mudan\u00E7a de endere\u00E7o, Frete";
|
|
1764
|
+
})(PaymentType || (PaymentType = {}));
|
|
1784
1765
|
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1766
|
+
var Plans;
|
|
1767
|
+
(function (Plans) {
|
|
1768
|
+
Plans["SELECT"] = "SELECT";
|
|
1769
|
+
Plans["PRIME"] = "PRIME";
|
|
1770
|
+
Plans["SELECT_MENSAL"] = "SELECT_MENSAL";
|
|
1771
|
+
Plans["PRIME_MENSAL"] = "PRIME_MENSAL";
|
|
1772
|
+
})(Plans || (Plans = {}));
|
|
1773
|
+
|
|
1774
|
+
var Status;
|
|
1775
|
+
(function (Status) {
|
|
1776
|
+
Status["ACTIVE"] = "active";
|
|
1777
|
+
Status["CANCELLED"] = "Cancelado";
|
|
1778
|
+
})(Status || (Status = {}));
|
|
1779
|
+
|
|
1780
|
+
class PaymentTransaction extends BaseModel {
|
|
1789
1781
|
}
|
|
1790
1782
|
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
return
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1783
|
+
class Payment extends BaseModel {
|
|
1784
|
+
static get identifiersFields() {
|
|
1785
|
+
return ['id'];
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
__decorate([
|
|
1789
|
+
Type(() => PaymentTransaction),
|
|
1790
|
+
__metadata("design:type", PaymentTransaction)
|
|
1791
|
+
], Payment.prototype, "transaction", void 0);
|
|
1792
|
+
|
|
1793
|
+
class SubscriptionPayment extends BaseModel {
|
|
1794
|
+
static get identifiersFields() {
|
|
1795
|
+
return ['id', 'subscriptionId'];
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
__decorate([
|
|
1799
|
+
Type(() => Payment),
|
|
1800
|
+
__metadata("design:type", Payment)
|
|
1801
|
+
], SubscriptionPayment.prototype, "payment", void 0);
|
|
1802
1802
|
|
|
1803
1803
|
class Coupon extends BaseModel {
|
|
1804
1804
|
get isInfluencer() {
|
|
@@ -5041,11 +5041,6 @@ __decorate([
|
|
|
5041
5041
|
], ProductHasuraGraphQL.prototype, "kitProducts", void 0);
|
|
5042
5042
|
|
|
5043
5043
|
class VariantHasuraGraphQL extends Variant {
|
|
5044
|
-
constructor() {
|
|
5045
|
-
super(...arguments);
|
|
5046
|
-
this.name = '';
|
|
5047
|
-
this.hasVariants = false;
|
|
5048
|
-
}
|
|
5049
5044
|
}
|
|
5050
5045
|
|
|
5051
5046
|
class ProductErrorsHasuraGraphQL extends ProductErrors {
|
|
@@ -5919,7 +5914,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
5919
5914
|
interceptors,
|
|
5920
5915
|
fields: [],
|
|
5921
5916
|
});
|
|
5922
|
-
this.bindReviewToModel = (plain) => (Object.assign(Object.assign({}, is(omit(plain, ['product_id', 'created_at', 'updated_at', 'person_id', 'order_id']))), { createdAt: typeof plain.created_at === 'string' ? new Date(plain.created_at) : plain.created_at, updatedAt: typeof plain.updated_at === 'string' ? new Date(plain.updated_at) : plain.updated_at, personId: plain.person_id, orderId: plain.order_id }));
|
|
5917
|
+
this.bindReviewToModel = (plain) => ProductReview.toInstance(Object.assign(Object.assign({}, is(omit(plain, ['product_id', 'created_at', 'updated_at', 'person_id', 'order_id']))), { createdAt: typeof plain.created_at === 'string' ? new Date(plain.created_at) : plain.created_at, updatedAt: typeof plain.updated_at === 'string' ? new Date(plain.updated_at) : plain.updated_at, personId: plain.person_id, orderId: plain.order_id }));
|
|
5923
5918
|
this.bindReviewToHasura = (review) => (Object.assign(Object.assign({}, is(omit(review, ['productId', 'createdAt', 'updatedAt', 'personId', 'orderId']))), { person_id: review.personId, order_id: review.orderId }));
|
|
5924
5919
|
const commonFields = [
|
|
5925
5920
|
{ id: { columnName: 'id', to: (value) => +value, from: (value) => value.toString() } },
|
|
@@ -6434,11 +6429,11 @@ __decorate([
|
|
|
6434
6429
|
__metadata("design:returntype", Promise)
|
|
6435
6430
|
], ProductHasuraGraphQLRepository.prototype, "cleanShoppingCountFromIds", null);
|
|
6436
6431
|
|
|
6437
|
-
class
|
|
6432
|
+
class ProductReviewHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
6438
6433
|
constructor({ endpoint, authOptions, interceptors, }) {
|
|
6439
6434
|
super({
|
|
6440
6435
|
tableName: 'product_review',
|
|
6441
|
-
model:
|
|
6436
|
+
model: ProductReview,
|
|
6442
6437
|
endpoint,
|
|
6443
6438
|
authOptions,
|
|
6444
6439
|
interceptors,
|
|
@@ -6491,13 +6486,13 @@ __decorate([
|
|
|
6491
6486
|
__metadata("design:type", Function),
|
|
6492
6487
|
__metadata("design:paramtypes", [Number]),
|
|
6493
6488
|
__metadata("design:returntype", void 0)
|
|
6494
|
-
],
|
|
6489
|
+
], ProductReviewHasuraGraphQLRepository.prototype, "aproveReview", null);
|
|
6495
6490
|
__decorate([
|
|
6496
6491
|
Log(),
|
|
6497
6492
|
__metadata("design:type", Function),
|
|
6498
6493
|
__metadata("design:paramtypes", [Number]),
|
|
6499
6494
|
__metadata("design:returntype", void 0)
|
|
6500
|
-
],
|
|
6495
|
+
], ProductReviewHasuraGraphQLRepository.prototype, "disaproveReview", null);
|
|
6501
6496
|
|
|
6502
6497
|
class ProductStockNotificationHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
6503
6498
|
constructor({ endpoint, authOptions, interceptors, }) {
|
|
@@ -7421,4 +7416,4 @@ class ProductsVertexSearch {
|
|
|
7421
7416
|
}
|
|
7422
7417
|
}
|
|
7423
7418
|
|
|
7424
|
-
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, NotFoundError, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum,
|
|
7419
|
+
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, NotFoundError, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, getClass, is, isDebuggable, isUUID, parseDateTime, registerClass, resolveClass, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|