@puzzlin/models 3.25.0 → 3.25.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/dist/apps/platform/assets/objects/asset-purchase.object.js +1 -1
- package/dist/apps/platform/assets/objects/asset-purchase.object.js.map +1 -1
- package/dist/apps/platform/credits/inputs/create-credit-ledger-entry.input.d.ts +2 -2
- package/dist/apps/platform/credits/inputs/create-credit-ledger-entry.input.d.ts.map +1 -1
- package/dist/apps/platform/credits/inputs/create-credit-ledger-entry.input.js +10 -10
- package/dist/apps/platform/credits/inputs/create-credit-ledger-entry.input.js.map +1 -1
- package/dist/apps/platform/credits/inputs/index.d.ts +2 -2
- package/dist/apps/platform/credits/inputs/index.d.ts.map +1 -1
- package/dist/apps/platform/credits/inputs/index.js +2 -2
- package/dist/apps/platform/credits/inputs/index.js.map +1 -1
- package/dist/apps/platform/credits/inputs/redeem-credits.input.d.ts +6 -0
- package/dist/apps/platform/credits/inputs/redeem-credits.input.d.ts.map +1 -0
- package/dist/apps/platform/credits/inputs/{redeem-credits-for-resources.input.js → redeem-credits.input.js} +10 -10
- package/dist/apps/platform/credits/inputs/redeem-credits.input.js.map +1 -0
- package/dist/apps/platform/credits/inputs/user-asset.input.d.ts +7 -0
- package/dist/apps/platform/credits/inputs/user-asset.input.d.ts.map +1 -0
- package/dist/apps/platform/credits/inputs/{user-resource.input.js → user-asset.input.js} +10 -15
- package/dist/apps/platform/credits/inputs/user-asset.input.js.map +1 -0
- package/dist/apps/platform/credits/objects/credit-ledger-entry.object.d.ts +2 -2
- package/dist/apps/platform/credits/objects/credit-ledger-entry.object.d.ts.map +1 -1
- package/dist/apps/platform/credits/objects/credit-ledger-entry.object.js +10 -10
- package/dist/apps/platform/credits/objects/credit-ledger-entry.object.js.map +1 -1
- package/dist/apps/platform/credits/payloads/index.d.ts +1 -1
- package/dist/apps/platform/credits/payloads/index.d.ts.map +1 -1
- package/dist/apps/platform/credits/payloads/index.js +1 -1
- package/dist/apps/platform/credits/payloads/index.js.map +1 -1
- package/dist/apps/platform/credits/payloads/redeem-credits.payload.d.ts +4 -0
- package/dist/apps/platform/credits/payloads/redeem-credits.payload.d.ts.map +1 -0
- package/dist/apps/platform/credits/payloads/{redeem-credits-for-resources.payload.js → redeem-credits.payload.js} +7 -7
- package/dist/apps/platform/credits/payloads/redeem-credits.payload.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/apps/platform/credits/inputs/redeem-credits-for-resources.input.d.ts +0 -6
- package/dist/apps/platform/credits/inputs/redeem-credits-for-resources.input.d.ts.map +0 -1
- package/dist/apps/platform/credits/inputs/redeem-credits-for-resources.input.js.map +0 -1
- package/dist/apps/platform/credits/inputs/user-resource.input.d.ts +0 -9
- package/dist/apps/platform/credits/inputs/user-resource.input.d.ts.map +0 -1
- package/dist/apps/platform/credits/inputs/user-resource.input.js.map +0 -1
- package/dist/apps/platform/credits/payloads/redeem-credits-for-resources.payload.d.ts +0 -4
- package/dist/apps/platform/credits/payloads/redeem-credits-for-resources.payload.d.ts.map +0 -1
- package/dist/apps/platform/credits/payloads/redeem-credits-for-resources.payload.js.map +0 -1
|
@@ -15,7 +15,7 @@ const graphql_1 = require("@nestjs/graphql");
|
|
|
15
15
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
16
16
|
// NOTE: This is not in use yet.
|
|
17
17
|
// Use it maybe once subscriptions are implemented.
|
|
18
|
-
// Until then, the credit ledger owns the info of who did what on which
|
|
18
|
+
// Until then, the credit ledger owns the info of who did what on which asset, regarding credits.
|
|
19
19
|
let AssetPurchase = class AssetPurchase extends shared_1.Node {
|
|
20
20
|
};
|
|
21
21
|
exports.AssetPurchase = AssetPurchase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-purchase.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset-purchase.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgC;AAChC,6CAAwD;AACxD,qDAA+E;AAE/E,gCAAgC;AAChC,mDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"asset-purchase.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset-purchase.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgC;AAChC,6CAAwD;AACxD,qDAA+E;AAE/E,gCAAgC;AAChC,mDAAmD;AACnD,iGAAiG;AAK1F,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,aAAI;CActC,CAAA;AAdY,sCAAa;AAExB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+CACC;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0CAAwB,CAAC;;kDAClB;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAkB,CAAC;;kDACZ;AAKpB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAkB,EAAE;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACkB;wBAbT,aAAa;IAHzB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,aAAI;KACjB,CAAC;GACW,aAAa,CAczB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CreditLedgerEntryReasonEnum, ProductTypeEnum } from '@puzzlin/enums';
|
|
2
2
|
export declare class CreateCreditLedgerEntryInput {
|
|
3
|
+
assetId?: string;
|
|
3
4
|
bySystem?: string;
|
|
4
5
|
byUserId?: string;
|
|
5
6
|
notes?: string;
|
|
6
|
-
productType: ProductTypeEnum;
|
|
7
7
|
orderId?: string;
|
|
8
|
+
productType: ProductTypeEnum;
|
|
8
9
|
quantity: number;
|
|
9
10
|
reason: CreditLedgerEntryReasonEnum;
|
|
10
|
-
resourceId?: string;
|
|
11
11
|
userId: string;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=create-credit-ledger-entry.input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-ledger-entry.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/create-credit-ledger-entry.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE9E,qBACa,4BAA4B;IAIvC,
|
|
1
|
+
{"version":3,"file":"create-credit-ledger-entry.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/create-credit-ledger-entry.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE9E,qBACa,4BAA4B;IAIvC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,eAAe,CAAC;IAG7B,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,2BAA2B,CAAC;IAGpC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -15,6 +15,12 @@ const enums_1 = require("@puzzlin/enums");
|
|
|
15
15
|
let CreateCreditLedgerEntryInput = class CreateCreditLedgerEntryInput {
|
|
16
16
|
};
|
|
17
17
|
exports.CreateCreditLedgerEntryInput = CreateCreditLedgerEntryInput;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
20
|
+
nullable: true,
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateCreditLedgerEntryInput.prototype, "assetId", void 0);
|
|
18
24
|
__decorate([
|
|
19
25
|
(0, graphql_1.Field)(() => String, {
|
|
20
26
|
nullable: true,
|
|
@@ -33,16 +39,16 @@ __decorate([
|
|
|
33
39
|
}),
|
|
34
40
|
__metadata("design:type", String)
|
|
35
41
|
], CreateCreditLedgerEntryInput.prototype, "notes", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(() => enums_1.ProductTypeEnum),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CreateCreditLedgerEntryInput.prototype, "productType", void 0);
|
|
40
42
|
__decorate([
|
|
41
43
|
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
42
44
|
nullable: true,
|
|
43
45
|
}),
|
|
44
46
|
__metadata("design:type", String)
|
|
45
47
|
], CreateCreditLedgerEntryInput.prototype, "orderId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)(() => enums_1.ProductTypeEnum),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateCreditLedgerEntryInput.prototype, "productType", void 0);
|
|
46
52
|
__decorate([
|
|
47
53
|
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
48
54
|
__metadata("design:type", Number)
|
|
@@ -51,12 +57,6 @@ __decorate([
|
|
|
51
57
|
(0, graphql_1.Field)(() => enums_1.CreditLedgerEntryReasonEnum),
|
|
52
58
|
__metadata("design:type", String)
|
|
53
59
|
], CreateCreditLedgerEntryInput.prototype, "reason", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
56
|
-
nullable: true,
|
|
57
|
-
}),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], CreateCreditLedgerEntryInput.prototype, "resourceId", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
62
62
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-ledger-entry.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/create-credit-ledger-entry.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAC5D,0CAA8E;AAGvE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAqCxC,CAAA;AArCY,oEAA4B;AAIvC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"create-credit-ledger-entry.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/create-credit-ledger-entry.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAC5D,0CAA8E;AAGvE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAqCxC,CAAA;AArCY,oEAA4B;AAIvC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;6DACe;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;8DACgB;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;8DACgB;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;2DACa;AAKf;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;6DACe;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC;;iEACA;AAG7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;8DACA;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;4DACL;AAGpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;4DACD;uCApCJ,4BAA4B;IADxC,IAAA,mBAAS,GAAE;GACC,4BAA4B,CAqCxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC"}
|
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-credit-ledger-entry.input"), exports);
|
|
18
|
-
__exportStar(require("./redeem-credits
|
|
19
|
-
__exportStar(require("./user-
|
|
18
|
+
__exportStar(require("./redeem-credits.input"), exports);
|
|
19
|
+
__exportStar(require("./user-asset.input"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,yDAAuC;AACvC,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redeem-credits.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/redeem-credits.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,kBAAkB;IAE7B,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B"}
|
|
@@ -9,21 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.RedeemCreditsInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const
|
|
15
|
-
let
|
|
14
|
+
const user_asset_input_1 = require("./user-asset.input");
|
|
15
|
+
let RedeemCreditsInput = class RedeemCreditsInput {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.RedeemCreditsInput = RedeemCreditsInput;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
21
|
+
], RedeemCreditsInput.prototype, "byUserId", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(() => [
|
|
23
|
+
(0, graphql_1.Field)(() => [user_asset_input_1.UserAssetInput]),
|
|
24
24
|
__metadata("design:type", Array)
|
|
25
|
-
],
|
|
26
|
-
exports.
|
|
25
|
+
], RedeemCreditsInput.prototype, "userAssets", void 0);
|
|
26
|
+
exports.RedeemCreditsInput = RedeemCreditsInput = __decorate([
|
|
27
27
|
(0, graphql_1.InputType)()
|
|
28
|
-
],
|
|
29
|
-
//# sourceMappingURL=redeem-credits
|
|
28
|
+
], RedeemCreditsInput);
|
|
29
|
+
//# sourceMappingURL=redeem-credits.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redeem-credits.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/redeem-credits.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,yDAAoD;AAG7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;oDACC;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iCAAc,CAAC,CAAC;;sDACD;6BALlB,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAM9B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CreateCreditLedgerEntryInput } from './create-credit-ledger-entry.input';
|
|
2
|
+
export declare class UserAssetInput implements Pick<CreateCreditLedgerEntryInput, 'assetId' | 'quantity' | 'userId'> {
|
|
3
|
+
assetId: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
userId: string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=user-asset.input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-asset.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/user-asset.input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,qBACa,cAAe,YAAW,IAAI,CAAC,4BAA4B,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE1G,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -9,30 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UserAssetInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const enums_1 = require("@puzzlin/enums");
|
|
15
14
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
16
|
-
let
|
|
15
|
+
let UserAssetInput = class UserAssetInput {
|
|
17
16
|
};
|
|
18
|
-
exports.
|
|
17
|
+
exports.UserAssetInput = UserAssetInput;
|
|
19
18
|
__decorate([
|
|
20
|
-
(0, graphql_1.Field)(() =>
|
|
19
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
21
20
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
21
|
+
], UserAssetInput.prototype, "assetId", void 0);
|
|
23
22
|
__decorate([
|
|
24
23
|
(0, graphql_1.Field)(() => graphql_scalars_1.PositiveIntResolver),
|
|
25
24
|
__metadata("design:type", Number)
|
|
26
|
-
],
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], UserResourceInput.prototype, "resourceId", void 0);
|
|
25
|
+
], UserAssetInput.prototype, "quantity", void 0);
|
|
31
26
|
__decorate([
|
|
32
27
|
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
33
28
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
35
|
-
exports.
|
|
29
|
+
], UserAssetInput.prototype, "userId", void 0);
|
|
30
|
+
exports.UserAssetInput = UserAssetInput = __decorate([
|
|
36
31
|
(0, graphql_1.InputType)()
|
|
37
|
-
],
|
|
38
|
-
//# sourceMappingURL=user-
|
|
32
|
+
], UserAssetInput);
|
|
33
|
+
//# sourceMappingURL=user-asset.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-asset.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/inputs/user-asset.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,qDAAsD;AAI/C,IAAM,cAAc,GAApB,MAAM,cAAc;CAS1B,CAAA;AATY,wCAAc;AAEzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+CACA;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAmB,CAAC;;gDAChB;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;8CACD;yBARJ,cAAc;IAD1B,IAAA,mBAAS,GAAE;GACC,cAAc,CAS1B"}
|
|
@@ -3,14 +3,14 @@ import { CreditLedgerEntryReasonEnum, ProductTypeEnum } from '@puzzlin/enums';
|
|
|
3
3
|
import { CreateCreditLedgerEntryInput } from '../inputs';
|
|
4
4
|
declare const CreditLedgerEntry_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
5
5
|
export declare class CreditLedgerEntry extends CreditLedgerEntry_base implements CreateCreditLedgerEntryInput {
|
|
6
|
+
assetId?: string;
|
|
6
7
|
bySystem?: string;
|
|
7
8
|
byUserId?: string;
|
|
8
9
|
notes?: string;
|
|
9
|
-
productType: ProductTypeEnum;
|
|
10
10
|
orderId?: string;
|
|
11
|
+
productType: ProductTypeEnum;
|
|
11
12
|
quantity: number;
|
|
12
13
|
reason: CreditLedgerEntryReasonEnum;
|
|
13
|
-
resourceId?: string;
|
|
14
14
|
userId: string;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-ledger-entry.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/objects/credit-ledger-entry.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;;AAEzD,qBAGa,iBAAkB,SAAQ,sBAAkC,YAAW,4BAA4B;IAI9G,
|
|
1
|
+
{"version":3,"file":"credit-ledger-entry.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/objects/credit-ledger-entry.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;;AAEzD,qBAGa,iBAAkB,SAAQ,sBAAkC,YAAW,4BAA4B;IAI9G,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,eAAe,CAAC;IAG7B,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,2BAA2B,CAAC;IAGpC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -16,6 +16,12 @@ const enums_1 = require("@puzzlin/enums");
|
|
|
16
16
|
let CreditLedgerEntry = class CreditLedgerEntry extends (0, graphql_1.IntersectionType)(shared_1.Node, shared_1.Timestamp) {
|
|
17
17
|
};
|
|
18
18
|
exports.CreditLedgerEntry = CreditLedgerEntry;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
21
|
+
nullable: true,
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreditLedgerEntry.prototype, "assetId", void 0);
|
|
19
25
|
__decorate([
|
|
20
26
|
(0, graphql_1.Field)(() => String, {
|
|
21
27
|
nullable: true,
|
|
@@ -34,16 +40,16 @@ __decorate([
|
|
|
34
40
|
}),
|
|
35
41
|
__metadata("design:type", String)
|
|
36
42
|
], CreditLedgerEntry.prototype, "notes", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, graphql_1.Field)(() => enums_1.ProductTypeEnum),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], CreditLedgerEntry.prototype, "productType", void 0);
|
|
41
43
|
__decorate([
|
|
42
44
|
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
43
45
|
nullable: true,
|
|
44
46
|
}),
|
|
45
47
|
__metadata("design:type", String)
|
|
46
48
|
], CreditLedgerEntry.prototype, "orderId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, graphql_1.Field)(() => enums_1.ProductTypeEnum),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreditLedgerEntry.prototype, "productType", void 0);
|
|
47
53
|
__decorate([
|
|
48
54
|
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
49
55
|
__metadata("design:type", Number)
|
|
@@ -52,12 +58,6 @@ __decorate([
|
|
|
52
58
|
(0, graphql_1.Field)(() => enums_1.CreditLedgerEntryReasonEnum),
|
|
53
59
|
__metadata("design:type", String)
|
|
54
60
|
], CreditLedgerEntry.prototype, "reason", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
57
|
-
nullable: true,
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], CreditLedgerEntry.prototype, "resourceId", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
63
63
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-ledger-entry.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/objects/credit-ledger-entry.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2C;AAC3C,6CAAiF;AACjF,0CAA8E;AAMvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,0BAAgB,EAAC,aAAI,EAAE,kBAAS,CAAC;CAqCvE,CAAA;AArCY,8CAAiB;AAI5B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"credit-ledger-entry.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/objects/credit-ledger-entry.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2C;AAC3C,6CAAiF;AACjF,0CAA8E;AAMvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,0BAAgB,EAAC,aAAI,EAAE,kBAAS,CAAC;CAqCvE,CAAA;AArCY,8CAAiB;AAI5B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACe;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;mDACgB;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;mDACgB;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACa;AAKf;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACe;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,uBAAe,CAAC;;sDACA;AAG7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;mDACF;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;iDACL;AAGpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;iDACD;4BApCJ,iBAAiB;IAH7B,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,aAAI;KACjB,CAAC;GACW,iBAAiB,CAqC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC"}
|
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-credit-ledger-entry.payload"), exports);
|
|
18
|
-
__exportStar(require("./redeem-credits
|
|
18
|
+
__exportStar(require("./redeem-credits.payload"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,2DAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redeem-credits.payload.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/redeem-credits.payload.ts"],"names":[],"mappings":"AAEA,qBACa,oBAAoB;IAE/B,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -9,16 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.RedeemCreditsPayload = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let
|
|
14
|
+
let RedeemCreditsPayload = class RedeemCreditsPayload {
|
|
15
15
|
};
|
|
16
|
-
exports.
|
|
16
|
+
exports.RedeemCreditsPayload = RedeemCreditsPayload;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, graphql_1.Field)(() => Boolean),
|
|
19
19
|
__metadata("design:type", Boolean)
|
|
20
|
-
],
|
|
21
|
-
exports.
|
|
20
|
+
], RedeemCreditsPayload.prototype, "redeemed", void 0);
|
|
21
|
+
exports.RedeemCreditsPayload = RedeemCreditsPayload = __decorate([
|
|
22
22
|
(0, graphql_1.ObjectType)()
|
|
23
|
-
],
|
|
24
|
-
//# sourceMappingURL=redeem-credits
|
|
23
|
+
], RedeemCreditsPayload);
|
|
24
|
+
//# sourceMappingURL=redeem-credits.payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redeem-credits.payload.js","sourceRoot":"","sources":["../../../../../src/apps/platform/credits/payloads/redeem-credits.payload.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAG7C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAGhC,CAAA;AAHY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;sDACH;+BAFP,oBAAoB;IADhC,IAAA,oBAAU,GAAE;GACA,oBAAoB,CAGhC"}
|