@bondsports/types 2.2.1 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,9 @@ import { Invoice } from '../../../entity/Invoice';
2
2
  import { UserPaymentMethod } from '../../../entity/user-payment-method';
3
3
  export interface InvoiceAndRelatedMethod {
4
4
  invoice: Invoice;
5
- paymentMethod?: Pick<UserPaymentMethod, 'ccBrand' | 'ccLast4' | 'paymentMethodType'>;
5
+ paymentMethod?: DisplayedMethodFields;
6
6
  }
7
+ export type DisplayedMethodFields = Pick<UserPaymentMethod, 'ccBrand' | 'ccLast4' | 'paymentMethodType' | 'paymentMethodId'>;
7
8
  export interface InvoiceAndMethodIds {
8
9
  invoiceId: number;
9
10
  pmId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"connected-resources.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/connected-resources.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAIxD,MAAM,yBAA0B,SAAQ,6BAAe;CAMtD;AAED,MAAa,wBAAyB,SAAQ,yBAAyB;CAKtE;AALD,4DAKC"}
1
+ {"version":3,"file":"connected-resources.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/connected-resources.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAIxD,MAAM,yBAA0B,SAAQ,6BAAe;CAMtD;AAED,MAAa,wBAAyB,SAAQ,yBAAyB;CAItE;AAJD,4DAIC"}
@@ -10,6 +10,7 @@ export interface IConnectedResource {
10
10
  name: string;
11
11
  createdAt: Date;
12
12
  paymentMethodType?: PaymentMethodTypeEnum;
13
+ paymentMethodId?: string;
13
14
  ccBrand?: string;
14
15
  ccLast4?: string;
15
16
  invoiceId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAoD;AAepD,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC"}
1
+ {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAoD;AAgBpD,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC"}
@@ -1,4 +1,5 @@
1
1
  export declare enum ResourceSortByEnum {
2
2
  NAME = "name",
3
- RESOURCE_TYPE = "resourceType"
3
+ RESOURCE_TYPE = "resourceType",
4
+ INVOICE_ID = "invoiceId"
4
5
  }
@@ -5,5 +5,6 @@ var ResourceSortByEnum;
5
5
  (function (ResourceSortByEnum) {
6
6
  ResourceSortByEnum["NAME"] = "name";
7
7
  ResourceSortByEnum["RESOURCE_TYPE"] = "resourceType";
8
+ ResourceSortByEnum["INVOICE_ID"] = "invoiceId";
8
9
  })(ResourceSortByEnum = exports.ResourceSortByEnum || (exports.ResourceSortByEnum = {}));
9
10
  //# sourceMappingURL=connected-resources.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connected-resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/connected-resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,oDAA8B,CAAA;AAC/B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"connected-resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/connected-resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,oDAA8B,CAAA;IAC9B,8CAAwB,CAAA;AACzB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {