@puzzlin/models 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.d.ts +2 -0
- package/dist/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.d.ts.map +1 -1
- package/dist/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.js +13 -0
- package/dist/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.js.map +1 -1
- package/dist/models/orders/objects/transaction.object.d.ts +14 -2
- package/dist/models/orders/objects/transaction.object.d.ts.map +1 -1
- package/dist/models/orders/objects/transaction.object.js +52 -3
- package/dist/models/orders/objects/transaction.object.js.map +1 -1
- package/dist/models/products/inputs/create-product-platform-fee.input.d.ts +4 -0
- package/dist/models/products/inputs/create-product-platform-fee.input.d.ts.map +1 -0
- package/dist/models/products/inputs/create-product-platform-fee.input.js +24 -0
- package/dist/models/products/inputs/create-product-platform-fee.input.js.map +1 -0
- package/dist/models/products/inputs/create-product.input.d.ts +5 -2
- package/dist/models/products/inputs/create-product.input.d.ts.map +1 -1
- package/dist/models/products/inputs/create-product.input.js +14 -1
- package/dist/models/products/inputs/create-product.input.js.map +1 -1
- package/dist/models/products/inputs/index.d.ts +1 -0
- package/dist/models/products/inputs/index.d.ts.map +1 -1
- package/dist/models/products/inputs/index.js +1 -0
- package/dist/models/products/inputs/index.js.map +1 -1
- package/dist/models/products/objects/index.d.ts +1 -0
- package/dist/models/products/objects/index.d.ts.map +1 -1
- package/dist/models/products/objects/index.js +1 -0
- package/dist/models/products/objects/index.js.map +1 -1
- package/dist/models/products/objects/product-platform-fee.object.d.ts +4 -0
- package/dist/models/products/objects/product-platform-fee.object.d.ts.map +1 -0
- package/dist/models/products/objects/product-platform-fee.object.js +29 -0
- package/dist/models/products/objects/product-platform-fee.object.js.map +1 -0
- package/dist/models/products/objects/product-share.object.js +1 -1
- package/dist/models/products/objects/product-share.object.js.map +1 -1
- package/dist/models/products/objects/product.object.d.ts +5 -2
- package/dist/models/products/objects/product.object.d.ts.map +1 -1
- package/dist/models/products/objects/product.object.js +18 -1
- package/dist/models/products/objects/product.object.js.map +1 -1
- package/dist/models/sellers/objects/seller.object.d.ts +2 -1
- package/dist/models/sellers/objects/seller.object.d.ts.map +1 -1
- package/dist/models/sellers/objects/seller.object.js +8 -1
- package/dist/models/sellers/objects/seller.object.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,9 @@ import { PaginationArgs } from '../../../../../models/pagination';
|
|
|
2
2
|
import { EegReportStatusEnum, EegReportTypeEnum } from '@puzzlin/enums';
|
|
3
3
|
export declare class EegReportsArgs extends PaginationArgs {
|
|
4
4
|
explorerId?: string;
|
|
5
|
+
isUnlocked?: boolean;
|
|
5
6
|
practitionerId?: string;
|
|
7
|
+
query?: string;
|
|
6
8
|
status?: EegReportStatusEnum;
|
|
7
9
|
type?: EegReportTypeEnum;
|
|
8
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eeg-reports.args.d.ts","sourceRoot":"","sources":["../../../../../../src/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExE,qBACa,cAAe,SAAQ,cAAc;IAKhD,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"eeg-reports.args.d.ts","sourceRoot":"","sources":["../../../../../../src/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExE,qBACa,cAAe,SAAQ,cAAc;IAKhD,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAM7B,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B"}
|
|
@@ -22,6 +22,12 @@ __decorate([
|
|
|
22
22
|
}),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], EegReportsArgs.prototype, "explorerId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, graphql_1.Field)(() => Boolean, {
|
|
27
|
+
nullable: true,
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], EegReportsArgs.prototype, "isUnlocked", void 0);
|
|
25
31
|
__decorate([
|
|
26
32
|
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
27
33
|
description: 'Select reports for a user who acted as a practitioner.',
|
|
@@ -29,6 +35,13 @@ __decorate([
|
|
|
29
35
|
}),
|
|
30
36
|
__metadata("design:type", String)
|
|
31
37
|
], EegReportsArgs.prototype, "practitionerId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, graphql_1.Field)(() => String, {
|
|
40
|
+
description: "Select reports by this search string on subject's or practitioners' name.",
|
|
41
|
+
nullable: true,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], EegReportsArgs.prototype, "query", void 0);
|
|
32
45
|
__decorate([
|
|
33
46
|
(0, graphql_1.Field)(() => enums_1.EegReportStatusEnum, {
|
|
34
47
|
description: 'Select reports with a specific status.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eeg-reports.args.js","sourceRoot":"","sources":["../../../../../../src/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAqD;AACrD,6CAAsD;AACtD,0CAAwE;AAGjE,IAAM,cAAc,4BAApB,MAAM,cAAe,SAAQ,2BAAc;
|
|
1
|
+
{"version":3,"file":"eeg-reports.args.js","sourceRoot":"","sources":["../../../../../../src/models/brain-imaging/models/eeg-reports/args/eeg-reports.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAqD;AACrD,6CAAsD;AACtD,0CAAwE;AAGjE,IAAM,cAAc,4BAApB,MAAM,cAAe,SAAQ,2BAAc;CAmCjD,CAAA;AA9BC;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,WAAW,EAAE,iDAAiD;QAC9D,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACkB;AAKpB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE;QACpB,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACmB;AAMrB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,WAAW,EAAE,wDAAwD;QACrE,QAAQ,EAAE,IAAI;KACf,CAAC;;sDACsB;AAMxB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,2EAA2E;QACxF,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACa;AAMf;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAmB,EAAE;QAChC,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACf,CAAC;;8CAC2B;AAM7B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,yBAAiB,EAAE;QAC9B,WAAW,EAAE,gCAAgC;QAC7C,QAAQ,EAAE,IAAI;KACf,CAAC;;4CACuB;yBAlCd,cAAc;IAD1B,IAAA,kBAAQ,GAAE;GACE,cAAc,CAmC1B"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Node, Timestamp } from '../../../utils';
|
|
2
|
+
import { AppCurrencyEnum, PaymentProviderEnum } from '@puzzlin/enums';
|
|
3
|
+
import { Order } from './order.object';
|
|
4
|
+
declare const Transaction_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
5
|
+
export declare class Transaction extends Transaction_base {
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: AppCurrencyEnum;
|
|
8
|
+
discountAmount?: number;
|
|
9
|
+
onBehalfOfSellerId?: string;
|
|
10
|
+
order?: Order;
|
|
11
|
+
orderId: string;
|
|
12
|
+
platformFeeAmount: number;
|
|
3
13
|
provider: PaymentProviderEnum;
|
|
14
|
+
providerFeeAmount?: number;
|
|
4
15
|
stripeId?: string;
|
|
5
16
|
}
|
|
17
|
+
export {};
|
|
6
18
|
//# sourceMappingURL=transaction.object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.object.d.ts","sourceRoot":"","sources":["../../../../src/models/orders/objects/transaction.object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transaction.object.d.ts","sourceRoot":"","sources":["../../../../src/models/orders/objects/transaction.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;;AAEvC,qBAGa,WAAY,SAAQ,gBAAiC;IAIhE,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,eAAe,CAAC;IAM1B,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,KAAK,CAAC,EAAE,KAAK,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAKhB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,EAAE,mBAAmB,CAAC;IAM9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -10,22 +10,71 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Transaction = void 0;
|
|
13
|
+
const utils_1 = require("../../../utils");
|
|
13
14
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
15
|
const enums_1 = require("@puzzlin/enums");
|
|
15
|
-
|
|
16
|
+
const graphql_scalars_1 = require("graphql-scalars");
|
|
17
|
+
const order_object_1 = require("./order.object");
|
|
18
|
+
let Transaction = exports.Transaction = class Transaction extends (0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp) {
|
|
16
19
|
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver, {
|
|
22
|
+
description: 'Total amount for a transaction.',
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], Transaction.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, graphql_1.Field)(() => enums_1.AppCurrencyEnum),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Transaction.prototype, "currency", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver, {
|
|
32
|
+
description: 'Total discount amount for a transaction.',
|
|
33
|
+
nullable: true,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Transaction.prototype, "discountAmount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
39
|
+
nullable: true,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Transaction.prototype, "onBehalfOfSellerId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, graphql_1.Field)(() => order_object_1.Order),
|
|
45
|
+
__metadata("design:type", order_object_1.Order)
|
|
46
|
+
], Transaction.prototype, "order", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Transaction.prototype, "orderId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver, {
|
|
53
|
+
description: 'Total platform fee amount for a transaction.',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Transaction.prototype, "platformFeeAmount", void 0);
|
|
17
57
|
__decorate([
|
|
18
58
|
(0, graphql_1.Field)(() => enums_1.PaymentProviderEnum),
|
|
19
59
|
__metadata("design:type", String)
|
|
20
60
|
], Transaction.prototype, "provider", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver, {
|
|
63
|
+
description: 'Total payment provider fee amount for a transaction. Known only after payment succeeds.',
|
|
64
|
+
nullable: true,
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], Transaction.prototype, "providerFeeAmount", void 0);
|
|
21
68
|
__decorate([
|
|
22
69
|
(0, graphql_1.Field)(() => String, {
|
|
23
|
-
description: 'Stripe checkout session ID',
|
|
70
|
+
description: 'Stripe checkout session ID.',
|
|
24
71
|
nullable: true,
|
|
25
72
|
}),
|
|
26
73
|
__metadata("design:type", String)
|
|
27
74
|
], Transaction.prototype, "stripeId", void 0);
|
|
28
75
|
exports.Transaction = Transaction = __decorate([
|
|
29
|
-
(0, graphql_1.ObjectType)(
|
|
76
|
+
(0, graphql_1.ObjectType)({
|
|
77
|
+
implements: utils_1.Node,
|
|
78
|
+
})
|
|
30
79
|
], Transaction);
|
|
31
80
|
//# sourceMappingURL=transaction.object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.object.js","sourceRoot":"","sources":["../../../../src/models/orders/objects/transaction.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"transaction.object.js","sourceRoot":"","sources":["../../../../src/models/orders/objects/transaction.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA0C;AAC1C,6CAA0E;AAC1E,0CAAsE;AACtE,qDAAsD;AACtD,iDAAuC;AAKhC,IAAM,WAAW,yBAAjB,MAAM,WAAY,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CA6CjE,CAAA;AAzCC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,EAAE;QAChC,WAAW,EAAE,iCAAiC;KAC/C,CAAC;;2CACa;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC;;6CACH;AAM1B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,EAAE;QAChC,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,IAAI;KACf,CAAC;;mDACsB;AAKxB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;uDAC0B;AAG5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BACX,oBAAK;0CAAC;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;4CACA;AAKhB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,EAAE;QAChC,WAAW,EAAE,8CAA8C;KAC5D,CAAC;;sDACwB;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6CACH;AAM9B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,EAAE;QAChC,WAAW,EAAE,yFAAyF;QACtG,QAAQ,EAAE,IAAI;KACf,CAAC;;sDACyB;AAM3B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACgB;sBA5CP,WAAW;IAHvB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,WAAW,CA6CvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-product-platform-fee.input.d.ts","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product-platform-fee.input.ts"],"names":[],"mappings":"AAGA,qBACa,6BAA6B;IAExC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateProductPlatformFeeInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const graphql_scalars_1 = require("graphql-scalars");
|
|
15
|
+
let CreateProductPlatformFeeInput = exports.CreateProductPlatformFeeInput = class CreateProductPlatformFeeInput {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], CreateProductPlatformFeeInput.prototype, "percentage", void 0);
|
|
21
|
+
exports.CreateProductPlatformFeeInput = CreateProductPlatformFeeInput = __decorate([
|
|
22
|
+
(0, graphql_1.InputType)()
|
|
23
|
+
], CreateProductPlatformFeeInput);
|
|
24
|
+
//# sourceMappingURL=create-product-platform-fee.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-product-platform-fee.input.js","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product-platform-fee.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAAsD;AAG/C,IAAM,6BAA6B,2CAAnC,MAAM,6BAA6B;CAGzC,CAAA;AADC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,CAAC;;iEACd;wCAFR,6BAA6B;IADzC,IAAA,mBAAS,GAAE;GACC,6BAA6B,CAGzC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ProductTypeEnum } from '@puzzlin/enums';
|
|
1
|
+
import { ProductRevenueModelEnum, ProductTypeEnum } from '@puzzlin/enums';
|
|
2
2
|
import { CreateProductShareInput } from './create-product-share.input';
|
|
3
|
+
import { CreateProductPlatformFeeInput } from './create-product-platform-fee.input';
|
|
3
4
|
export declare class CreateProductInput {
|
|
4
5
|
onBehalfOfSellerId: string;
|
|
5
|
-
|
|
6
|
+
platformFee?: CreateProductPlatformFeeInput;
|
|
7
|
+
revenueModel: ProductRevenueModelEnum;
|
|
8
|
+
shares?: CreateProductShareInput[];
|
|
6
9
|
type: ProductTypeEnum;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=create-product.input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.input.d.ts","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-product.input.d.ts","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,qBACa,kBAAkB;IAE7B,kBAAkB,EAAE,MAAM,CAAC;IAK3B,WAAW,CAAC,EAAE,6BAA6B,CAAC;IAG5C,YAAY,EAAE,uBAAuB,CAAC;IAKtC,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAGnC,IAAI,EAAE,eAAe,CAAC;CACvB"}
|
|
@@ -13,6 +13,7 @@ exports.CreateProductInput = void 0;
|
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const enums_1 = require("@puzzlin/enums");
|
|
15
15
|
const create_product_share_input_1 = require("./create-product-share.input");
|
|
16
|
+
const create_product_platform_fee_input_1 = require("./create-product-platform-fee.input");
|
|
16
17
|
let CreateProductInput = exports.CreateProductInput = class CreateProductInput {
|
|
17
18
|
};
|
|
18
19
|
__decorate([
|
|
@@ -20,7 +21,19 @@ __decorate([
|
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], CreateProductInput.prototype, "onBehalfOfSellerId", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(() =>
|
|
24
|
+
(0, graphql_1.Field)(() => create_product_platform_fee_input_1.CreateProductPlatformFeeInput, {
|
|
25
|
+
nullable: true,
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", create_product_platform_fee_input_1.CreateProductPlatformFeeInput)
|
|
28
|
+
], CreateProductInput.prototype, "platformFee", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, graphql_1.Field)(() => enums_1.ProductRevenueModelEnum),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateProductInput.prototype, "revenueModel", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, graphql_1.Field)(() => [create_product_share_input_1.CreateProductShareInput], {
|
|
35
|
+
nullable: true,
|
|
36
|
+
}),
|
|
24
37
|
__metadata("design:type", Array)
|
|
25
38
|
], CreateProductInput.prototype, "shares", void 0);
|
|
26
39
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.input.js","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"create-product.input.js","sourceRoot":"","sources":["../../../../src/models/products/inputs/create-product.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,0CAA0E;AAC1E,6EAAuE;AACvE,2FAAoF;AAG7E,IAAM,kBAAkB,gCAAxB,MAAM,kBAAkB;CAmB9B,CAAA;AAjBC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;8DACW;AAK3B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iEAA6B,EAAE;QAC1C,QAAQ,EAAE,IAAI;KACf,CAAC;8BACY,iEAA6B;uDAAC;AAG5C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC;;wDACC;AAKtC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oDAAuB,CAAC,EAAE;QACtC,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACiC;AAGnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC;;gDACP;6BAlBX,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAmB9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/products/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/products/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-product-platform-fee.input"), exports);
|
|
17
18
|
__exportStar(require("./create-product-share.input"), exports);
|
|
18
19
|
__exportStar(require("./create-product.input"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/products/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/products/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,+DAA6C;AAC7C,yDAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/products/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/products/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-platform-fee.object"), exports);
|
|
17
18
|
__exportStar(require("./product-price.object"), exports);
|
|
18
19
|
__exportStar(require("./product-share.object"), exports);
|
|
19
20
|
__exportStar(require("./product.object"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/products/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/products/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-platform-fee.object.d.ts","sourceRoot":"","sources":["../../../../src/models/products/objects/product-platform-fee.object.ts"],"names":[],"mappings":"AAIA,qBACa,kBAAkB;IAM7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductPlatformFee = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const graphql_scalars_1 = require("graphql-scalars");
|
|
16
|
+
let ProductPlatformFee = exports.ProductPlatformFee = class ProductPlatformFee {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver, {
|
|
20
|
+
description: 'Percentage from 0 to 100 the platform applies as a fee for a product.',
|
|
21
|
+
nullable: true,
|
|
22
|
+
}),
|
|
23
|
+
(0, class_validator_1.Max)(100),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ProductPlatformFee.prototype, "percentage", void 0);
|
|
26
|
+
exports.ProductPlatformFee = ProductPlatformFee = __decorate([
|
|
27
|
+
(0, graphql_1.ObjectType)()
|
|
28
|
+
], ProductPlatformFee);
|
|
29
|
+
//# sourceMappingURL=product-platform-fee.object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-platform-fee.object.js","sourceRoot":"","sources":["../../../../src/models/products/objects/product-platform-fee.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,qDAAsC;AACtC,qDAAsD;AAG/C,IAAM,kBAAkB,gCAAxB,MAAM,kBAAkB;CAO9B,CAAA;AADC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,EAAE;QAChC,WAAW,EAAE,uEAAuE;QACpF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,qBAAG,EAAC,GAAG,CAAC;;sDACW;6BANT,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAO9B"}
|
|
@@ -19,7 +19,7 @@ let ProductShare = exports.ProductShare = class ProductShare extends (0, graphql
|
|
|
19
19
|
};
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, graphql_1.Field)(() => graphql_1.Float, {
|
|
22
|
-
description: 'Percentage
|
|
22
|
+
description: 'Percentage (0-100) of a product share for a seller.',
|
|
23
23
|
}),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
25
|
], ProductShare.prototype, "percentage", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-share.object.js","sourceRoot":"","sources":["../../../../src/models/products/objects/product-share.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA0C;AAC1C,mCAA0C;AAC1C,6CAAiF;AACjF,yDAAyC;AACzC,qDAA2C;AAKpC,IAAM,YAAY,0BAAlB,MAAM,YAAa,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CAmBlE,CAAA;AAfC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QAClB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"product-share.object.js","sourceRoot":"","sources":["../../../../src/models/products/objects/product-share.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA0C;AAC1C,mCAA0C;AAC1C,6CAAiF;AACjF,yDAAyC;AACzC,qDAA2C;AAKpC,IAAM,YAAY,0BAAlB,MAAM,YAAa,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CAmBlE,CAAA;AAfC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QAClB,WAAW,EAAE,qDAAqD;KACnE,CAAC;;gDACiB;AAInB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACpB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACV,wBAAO;6CAAC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+CACE;AAIlB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,gBAAM,CAAC;IACnB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAM,CAAC;8BACV,gBAAM;4CAAC;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;8CACC;uBAlBN,YAAY;IAHxB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,YAAY,CAmBxB"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Seller } from '../../../models/sellers';
|
|
2
2
|
import { Node, Timestamp } from '../../../utils';
|
|
3
|
-
import { AppLocaleEnum, ProductTypeEnum } from '@puzzlin/enums';
|
|
3
|
+
import { AppLocaleEnum, ProductRevenueModelEnum, ProductTypeEnum } from '@puzzlin/enums';
|
|
4
|
+
import { ProductPlatformFee } from './product-platform-fee.object';
|
|
4
5
|
import { ProductShare } from './product-share.object';
|
|
5
6
|
declare const Product_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
6
7
|
export declare class Product extends Product_base {
|
|
7
8
|
locale: AppLocaleEnum;
|
|
8
9
|
onBehalfOfSeller?: Seller;
|
|
9
10
|
onBehalfOfSellerId?: string;
|
|
10
|
-
|
|
11
|
+
platformFee?: ProductPlatformFee;
|
|
12
|
+
revenueModel: ProductRevenueModelEnum;
|
|
13
|
+
shares?: ProductShare[];
|
|
11
14
|
stripeId: string;
|
|
12
15
|
title: string;
|
|
13
16
|
type: ProductTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.object.d.ts","sourceRoot":"","sources":["../../../../src/models/products/objects/product.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"product.object.d.ts","sourceRoot":"","sources":["../../../../src/models/products/objects/product.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;;AAEtD,qBAGa,OAAQ,SAAQ,YAAiC;IAE5D,MAAM,EAAE,aAAa,CAAC;IAOtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAO5B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAGjC,YAAY,EAAE,uBAAuB,CAAC;IAOtC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IAGxB,QAAQ,EAAE,MAAM,CAAC;IAKjB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,eAAe,CAAC;CACvB"}
|
|
@@ -15,6 +15,7 @@ const utils_1 = require("../../../utils");
|
|
|
15
15
|
const graphql_1 = require("@nestjs/graphql");
|
|
16
16
|
const enums_1 = require("@puzzlin/enums");
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const product_platform_fee_object_1 = require("./product-platform-fee.object");
|
|
18
19
|
const product_share_object_1 = require("./product-share.object");
|
|
19
20
|
let Product = exports.Product = class Product extends (0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp) {
|
|
20
21
|
};
|
|
@@ -24,6 +25,7 @@ __decorate([
|
|
|
24
25
|
], Product.prototype, "locale", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, graphql_1.Field)(() => sellers_1.Seller, {
|
|
28
|
+
description: `Mandatory for a product with ${enums_1.ProductRevenueModelEnum.DESTINATION_CHARGE} revenue model.`,
|
|
27
29
|
nullable: true,
|
|
28
30
|
}),
|
|
29
31
|
(0, class_transformer_1.Type)(() => sellers_1.Seller),
|
|
@@ -36,7 +38,22 @@ __decorate([
|
|
|
36
38
|
__metadata("design:type", String)
|
|
37
39
|
], Product.prototype, "onBehalfOfSellerId", void 0);
|
|
38
40
|
__decorate([
|
|
39
|
-
(0, graphql_1.Field)(() =>
|
|
41
|
+
(0, graphql_1.Field)(() => product_platform_fee_object_1.ProductPlatformFee, {
|
|
42
|
+
description: `Mandatory for a product with ${enums_1.ProductRevenueModelEnum.DESTINATION_CHARGE} revenue model.`,
|
|
43
|
+
nullable: true,
|
|
44
|
+
}),
|
|
45
|
+
(0, class_transformer_1.Type)(() => product_platform_fee_object_1.ProductPlatformFee),
|
|
46
|
+
__metadata("design:type", product_platform_fee_object_1.ProductPlatformFee)
|
|
47
|
+
], Product.prototype, "platformFee", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)(() => enums_1.ProductRevenueModelEnum),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Product.prototype, "revenueModel", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [product_share_object_1.ProductShare], {
|
|
54
|
+
description: `Mandatory for a product with ${enums_1.ProductRevenueModelEnum.SPLIT_PAYMENT} revenue model.`,
|
|
55
|
+
nullable: true,
|
|
56
|
+
}),
|
|
40
57
|
(0, class_transformer_1.Type)(() => product_share_object_1.ProductShare),
|
|
41
58
|
__metadata("design:type", Array)
|
|
42
59
|
], Product.prototype, "shares", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.object.js","sourceRoot":"","sources":["../../../../src/models/products/objects/product.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA0C;AAC1C,mCAA0C;AAC1C,6CAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"product.object.js","sourceRoot":"","sources":["../../../../src/models/products/objects/product.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA0C;AAC1C,mCAA0C;AAC1C,6CAA0E;AAC1E,0CAAyF;AACzF,yDAAyC;AACzC,+EAAmE;AACnE,iEAAsD;AAK/C,IAAM,OAAO,qBAAb,MAAM,OAAQ,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CA2C7D,CAAA;AAzCC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;;uCACL;AAOtB;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,gBAAM,EAAE;QACnB,WAAW,EAAE,gCAAgC,+BAAuB,CAAC,kBAAkB,iBAAiB;QACxG,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAM,CAAC;8BACA,gBAAM;iDAAC;AAK1B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;mDAC0B;AAO5B;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,gDAAkB,EAAE;QAC/B,WAAW,EAAE,gCAAgC,+BAAuB,CAAC,kBAAkB,iBAAiB;QACxG,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAkB,CAAC;8BACjB,gDAAkB;4CAAC;AAGjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC;;6CACC;AAOtC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,mCAAY,CAAC,EAAE;QAC3B,WAAW,EAAE,gCAAgC,+BAAuB,CAAC,aAAa,iBAAiB;QACnG,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAY,CAAC;;uCACD;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACH;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,0FAA0F;KACxG,CAAC;;sCACY;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC;;qCACP;kBA1CX,OAAO;IAHnB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,OAAO,CA2CnB"}
|
|
@@ -3,8 +3,9 @@ import { User } from '../../../models/users';
|
|
|
3
3
|
import { Node, Timestamp } from '../../../utils';
|
|
4
4
|
declare const Seller_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
5
5
|
export declare class Seller extends Seller_base {
|
|
6
|
+
oauthLink?: URL;
|
|
6
7
|
products?: Product[];
|
|
7
|
-
stripeAccountId
|
|
8
|
+
stripeAccountId?: string;
|
|
8
9
|
user?: User;
|
|
9
10
|
userId: string;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seller.object.d.ts","sourceRoot":"","sources":["../../../../src/models/sellers/objects/seller.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"seller.object.d.ts","sourceRoot":"","sources":["../../../../src/models/sellers/objects/seller.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;AAK1C,qBAGa,MAAO,SAAQ,WAAiC;IAE3D,SAAS,CAAC,EAAE,GAAG,CAAC;IAMhB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAKrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAIzB,IAAI,CAAC,EAAE,IAAI,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -15,8 +15,13 @@ const users_1 = require("../../../models/users");
|
|
|
15
15
|
const utils_1 = require("../../../utils");
|
|
16
16
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const graphql_scalars_1 = require("graphql-scalars");
|
|
18
19
|
let Seller = exports.Seller = class Seller extends (0, graphql_1.IntersectionType)(utils_1.Node, utils_1.Timestamp) {
|
|
19
20
|
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, graphql_1.Field)(() => graphql_scalars_1.URLResolver),
|
|
23
|
+
__metadata("design:type", URL)
|
|
24
|
+
], Seller.prototype, "oauthLink", void 0);
|
|
20
25
|
__decorate([
|
|
21
26
|
(0, graphql_1.Field)(() => [products_1.Product], {
|
|
22
27
|
nullable: true,
|
|
@@ -25,7 +30,9 @@ __decorate([
|
|
|
25
30
|
__metadata("design:type", Array)
|
|
26
31
|
], Seller.prototype, "products", void 0);
|
|
27
32
|
__decorate([
|
|
28
|
-
(0, graphql_1.Field)(() => String
|
|
33
|
+
(0, graphql_1.Field)(() => String, {
|
|
34
|
+
nullable: true,
|
|
35
|
+
}),
|
|
29
36
|
__metadata("design:type", String)
|
|
30
37
|
], Seller.prototype, "stripeAccountId", void 0);
|
|
31
38
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seller.object.js","sourceRoot":"","sources":["../../../../src/models/sellers/objects/seller.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA4C;AAC5C,0CAAsC;AACtC,mCAA0C;AAC1C,6CAA0E;AAC1E,yDAAyC;
|
|
1
|
+
{"version":3,"file":"seller.object.js","sourceRoot":"","sources":["../../../../src/models/sellers/objects/seller.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA4C;AAC5C,0CAAsC;AACtC,mCAA0C;AAC1C,6CAA0E;AAC1E,yDAAyC;AACzC,qDAA8C;AAKvC,IAAM,MAAM,oBAAZ,MAAM,MAAO,SAAQ,IAAA,0BAAgB,EAAC,YAAI,EAAE,iBAAS,CAAC;CAqB5D,CAAA;AAnBC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAW,CAAC;8BACb,GAAG;yCAAC;AAMhB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,kBAAO,CAAC,EAAE;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;;wCACC;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACuB;AAIzB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAI,CAAC;IACjB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,YAAI,CAAC;8BACV,YAAI;oCAAC;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;sCACD;iBApBJ,MAAM;IAHlB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,YAAI;KACjB,CAAC;GACW,MAAM,CAqBlB"}
|