@heliofi/common 0.1.518 → 0.1.519

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.
Files changed (21) hide show
  1. package/dist/src/domain/model/refund-request/dtos/GetRefundRequestsQueryParams.d.ts +7 -0
  2. package/dist/src/domain/model/refund-request/dtos/GetRefundRequestsQueryParams.js +41 -0
  3. package/dist/src/domain/model/refund-request/dtos/GetRefundRequestsQueryParams.js.map +1 -0
  4. package/dist/src/domain/model/refund-request/dtos/RefundRequestType.enum.d.ts +4 -0
  5. package/dist/src/domain/model/refund-request/dtos/RefundRequestType.enum.js +9 -0
  6. package/dist/src/domain/model/refund-request/dtos/RefundRequestType.enum.js.map +1 -0
  7. package/dist/src/domain/model/refund-request/dtos/index.d.ts +2 -1
  8. package/dist/src/domain/model/refund-request/dtos/index.js +2 -1
  9. package/dist/src/domain/model/refund-request/dtos/index.js.map +1 -1
  10. package/dist/src/domain/model/refund-request/entities/BaseRefundRequest.entity.d.ts +2 -2
  11. package/dist/src/domain/model/refund-request/entities/BaseRefundRequest.entity.js.map +1 -1
  12. package/dist/src/domain/model/refund-request/entities/RefundRequestCollectionItem.entity.d.ts +1 -1
  13. package/dist/src/domain/model/refund-request/entities/RefundRequestCollectionItem.entity.js.map +1 -1
  14. package/dist/src/domain/model/refund-request/entities/index.d.ts +0 -2
  15. package/dist/src/domain/model/refund-request/entities/index.js +0 -2
  16. package/dist/src/domain/model/refund-request/entities/index.js.map +1 -1
  17. package/dist/src/domain/model/refund-request/index.d.ts +1 -0
  18. package/dist/src/domain/model/refund-request/index.js +1 -0
  19. package/dist/src/domain/model/refund-request/index.js.map +1 -1
  20. package/dist/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +2 -2
@@ -0,0 +1,7 @@
1
+ import { RefundRequestType } from './RefundRequestType.enum';
2
+ export declare class GetRefundRequestsQueryParams {
3
+ type?: RefundRequestType;
4
+ page?: number;
5
+ lastItemId?: string;
6
+ limit?: number;
7
+ }
@@ -0,0 +1,41 @@
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.GetRefundRequestsQueryParams = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const RefundRequestType_enum_1 = require("./RefundRequestType.enum");
15
+ class GetRefundRequestsQueryParams {
16
+ constructor() {
17
+ this.type = RefundRequestType_enum_1.RefundRequestType.OPEN;
18
+ }
19
+ }
20
+ __decorate([
21
+ (0, class_validator_1.IsEnum)(RefundRequestType_enum_1.RefundRequestType),
22
+ (0, class_validator_1.IsOptional)(),
23
+ __metadata("design:type", String)
24
+ ], GetRefundRequestsQueryParams.prototype, "type", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ __metadata("design:type", Number)
29
+ ], GetRefundRequestsQueryParams.prototype, "page", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsMongoId)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ __metadata("design:type", String)
34
+ ], GetRefundRequestsQueryParams.prototype, "lastItemId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsNumber)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ __metadata("design:type", Number)
39
+ ], GetRefundRequestsQueryParams.prototype, "limit", void 0);
40
+ exports.GetRefundRequestsQueryParams = GetRefundRequestsQueryParams;
41
+ //# sourceMappingURL=GetRefundRequestsQueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetRefundRequestsQueryParams.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/dtos/GetRefundRequestsQueryParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,qEAA6D;AAG7D,MAAa,4BAA4B;IAAzC;QAGE,SAAI,GAAuB,0CAAiB,CAAC,IAAI,CAAC;IAapD,CAAC;CAAA;AAfC;IAAC,IAAA,wBAAM,EAAC,0CAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;0DACqC;AAElD;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACC;AAEd;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gEACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACE;AAfjB,oEAgBC"}
@@ -0,0 +1,4 @@
1
+ export declare enum RefundRequestType {
2
+ CLOSED = "CLOSED",
3
+ OPEN = "OPEN"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundRequestType = void 0;
4
+ var RefundRequestType;
5
+ (function (RefundRequestType) {
6
+ RefundRequestType["CLOSED"] = "CLOSED";
7
+ RefundRequestType["OPEN"] = "OPEN";
8
+ })(RefundRequestType = exports.RefundRequestType || (exports.RefundRequestType = {}));
9
+ //# sourceMappingURL=RefundRequestType.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefundRequestType.enum.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/dtos/RefundRequestType.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
@@ -1 +1,2 @@
1
- export * from './SubmitRefundRequest.dto';
1
+ export * from './GetRefundRequestsQueryParams';
2
+ export * from './RefundRequestType.enum';
@@ -14,5 +14,6 @@ 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("./SubmitRefundRequest.dto"), exports);
17
+ __exportStar(require("./GetRefundRequestsQueryParams"), exports);
18
+ __exportStar(require("./RefundRequestType.enum"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,2DAAyC"}
@@ -1,9 +1,9 @@
1
1
  import { Entity } from '../../entity';
2
2
  export declare class BaseRefundRequest extends Entity {
3
+ refundAmount: bigint;
4
+ refundUSDCAmount: bigint;
3
5
  id: string;
4
6
  requestedAt: Date;
5
7
  completedAt?: Date | undefined;
6
- refundAmount: bigint;
7
- refundUSDCAmount: bigint;
8
8
  rejectionReason?: string | undefined;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseRefundRequest.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/BaseRefundRequest.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,iBAAkB,SAAQ,eAAM;CAc5C;AAPC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACnB;AAErB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;2DACf;AAX3B,8CAcC"}
1
+ {"version":3,"file":"BaseRefundRequest.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/BaseRefundRequest.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,iBAAkB,SAAQ,eAAM;CAc5C;AAbC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACnB;AAErB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;2DACf;AAL3B,8CAcC"}
@@ -2,8 +2,8 @@ import { BaseRefundRequest } from './BaseRefundRequest.entity';
2
2
  import { Currency } from '../../currency';
3
3
  import { RefundRequestStatus } from './RefundRequestStatus.enum';
4
4
  export declare class RefundRequestCollectionItem extends BaseRefundRequest {
5
+ paymentAmount: bigint;
5
6
  shopifyPaymentId: string;
6
7
  status: RefundRequestStatus;
7
- paymentAmount: bigint;
8
8
  currency: Currency;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RefundRequestCollectionItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/RefundRequestCollectionItem.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yEAA+D;AAI/D,MAAa,2BAA4B,SAAQ,4CAAiB;CASjE;AAJC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;kEAClB;AANxB,kEASC"}
1
+ {"version":3,"file":"RefundRequestCollectionItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/RefundRequestCollectionItem.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yEAA+D;AAI/D,MAAa,2BAA4B,SAAQ,4CAAiB;CASjE;AARC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;kEAClB;AAFxB,kEASC"}
@@ -1,6 +1,4 @@
1
1
  export * from './RefundRequestStatus.enum';
2
- export * from './RefundRequestType.enum';
3
2
  export * from './BaseRefundRequest.entity';
4
3
  export * from './RefundRequest.entity';
5
- export * from './GetRefundRequestsQueryParams';
6
4
  export * from './RefundRequestCollectionItem.entity';
@@ -15,9 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RefundRequestStatus.enum"), exports);
18
- __exportStar(require("./RefundRequestType.enum"), exports);
19
18
  __exportStar(require("./BaseRefundRequest.entity"), exports);
20
19
  __exportStar(require("./RefundRequest.entity"), exports);
21
- __exportStar(require("./GetRefundRequestsQueryParams"), exports);
22
20
  __exportStar(require("./RefundRequestCollectionItem.entity"), exports);
23
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,yDAAuC;AACvC,iEAA+C;AAC/C,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/refund-request/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,6DAA2C;AAC3C,yDAAuC;AACvC,uEAAqD"}
@@ -1 +1,2 @@
1
1
  export * from './entities';
2
+ export * from './dtos';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./dtos"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/refund-request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/refund-request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}