@fiado/type-kit 1.9.76 → 1.9.78

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.
@@ -2,4 +2,6 @@ import { CountryId } from '../../country/enums/CountryId';
2
2
  export declare class CardActivateRequest {
3
3
  countryId: CountryId;
4
4
  panOrCode: string;
5
+ expirationMonth?: string;
6
+ expirationYear?: string;
5
7
  }
@@ -24,3 +24,13 @@ __decorate([
24
24
  (0, class_validator_1.Matches)(/^\d{16}$/),
25
25
  __metadata("design:type", String)
26
26
  ], CardActivateRequest.prototype, "panOrCode", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], CardActivateRequest.prototype, "expirationMonth", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", String)
36
+ ], CardActivateRequest.prototype, "expirationYear", void 0);
@@ -1,5 +1,7 @@
1
1
  import { CollectorOrderStatus } from '../enums/CollectorOrderStatus';
2
+ import { CollectionOrderBusiness } from './CollectionOrderBusiness';
2
3
  export declare class OrderCollectorExecutionRequest {
3
4
  status: CollectorOrderStatus[];
4
5
  triggeredBy: string;
6
+ collectionOrderBusiness: CollectionOrderBusiness;
5
7
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OrderCollectorExecutionRequest = void 0;
13
13
  const CollectorOrderStatus_1 = require("../enums/CollectorOrderStatus");
14
14
  const class_validator_1 = require("class-validator");
15
+ const CollectionOrderBusiness_1 = require("./CollectionOrderBusiness");
15
16
  class OrderCollectorExecutionRequest {
16
17
  }
17
18
  exports.OrderCollectorExecutionRequest = OrderCollectorExecutionRequest;
@@ -24,3 +25,7 @@ __decorate([
24
25
  (0, class_validator_1.IsString)(),
25
26
  __metadata("design:type", String)
26
27
  ], OrderCollectorExecutionRequest.prototype, "triggeredBy", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsObject)(),
30
+ __metadata("design:type", CollectionOrderBusiness_1.CollectionOrderBusiness)
31
+ ], OrderCollectorExecutionRequest.prototype, "collectionOrderBusiness", void 0);
@@ -0,0 +1,18 @@
1
+ import { CollectionOrderExecutionStatus } from "../enums/CollectionOrderExecutionStatus";
2
+ export interface OrdersCollector {
3
+ id: string;
4
+ executionId: string;
5
+ createdAt: number;
6
+ updatedAt: number;
7
+ status: CollectionOrderExecutionStatus;
8
+ startedAt: number;
9
+ finishedAt?: number;
10
+ totalOrders?: number;
11
+ batchesSent?: number;
12
+ ordersCompleted?: number;
13
+ ordersPartial?: number;
14
+ ordersDue?: number;
15
+ ordersError?: number;
16
+ notes?: string;
17
+ executedBy?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.9.76",
3
+ "version": "1.9.78",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsString, Matches } from 'class-validator';
1
+ import { IsEnum, IsOptional, IsString, Matches } from 'class-validator';
2
2
  import { CountryId } from '../../country/enums/CountryId';
3
3
 
4
4
 
@@ -9,4 +9,14 @@ export class CardActivateRequest {
9
9
  @IsString()
10
10
  @Matches(/^\d{16}$/)
11
11
  panOrCode: string;
12
+
13
+ @IsString()
14
+ @IsOptional()
15
+ expirationMonth?: string;
16
+
17
+ @IsString()
18
+ @IsOptional()
19
+ expirationYear?: string;
20
+
21
+
12
22
  }
@@ -1,6 +1,7 @@
1
1
 
2
2
  import {CollectorOrderStatus} from '../enums/CollectorOrderStatus';
3
- import {IsEnum, IsString, IsArray} from 'class-validator';
3
+ import {IsEnum, IsString, IsArray, IsObject} from 'class-validator';
4
+ import { CollectionOrderBusiness } from './CollectionOrderBusiness';
4
5
 
5
6
  export class OrderCollectorExecutionRequest {
6
7
 
@@ -10,4 +11,7 @@ export class OrderCollectorExecutionRequest {
10
11
 
11
12
  @IsString()
12
13
  triggeredBy: string;
14
+
15
+ @IsObject()
16
+ collectionOrderBusiness: CollectionOrderBusiness;
13
17
  }
package/.idea/aws.xml DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeRegion" value="us-east-1" />
5
- <option name="recentlyUsedRegions">
6
- <list>
7
- <option value="us-east-1" />
8
- </list>
9
- </option>
10
- </component>
11
- </project>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/fiado-type-kit.iml" filepath="$PROJECT_DIR$/.idea/fiado-type-kit.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>