@rocketlink/crm-model 1.0.276 → 1.0.278

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.
@@ -12,6 +12,6 @@ export interface CSVStatisticResponse {
12
12
  emp: number;
13
13
  finxp: number;
14
14
  novalnet: number;
15
- transactionErrors: number;
15
+ providerErrors: number;
16
16
  }
17
17
  //# sourceMappingURL=csvStatistic.response.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"csvStatistic.response.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/csvStatistic.response.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"csvStatistic.response.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/csvStatistic.response.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,10 @@
1
+ import { PaginatedRequest } from "./common/paginated.request.dto";
2
+ export interface ProviderErrorRequest extends PaginatedRequest {
3
+ id?: number;
4
+ adapter?: string;
5
+ midId?: number;
6
+ orderId?: number;
7
+ }
8
+ /** @deprecated Use ProviderErrorRequest instead */
9
+ export type TransactionErrorRequest = ProviderErrorRequest;
10
+ //# sourceMappingURL=providerError.request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerError.request.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/providerError.request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -33,11 +33,11 @@ export * from './dtos/order.request.dto';
33
33
  export * from './dtos/product.request.dto';
34
34
  export * from './dtos/subscription.request.dto';
35
35
  export * from './dtos/transaction.request.dto';
36
- export * from './dtos/transactionError.request.dto';
37
36
  export * from './gateways/providers/dtos/webhook.rocketpay.request.dto';
38
37
  export * from './gateways/providers/dtos/webhook.rocketpay.response.dto';
39
38
  export * from './gateways/providers/dtos/webhook.genesis.request.dto';
40
39
  export * from './gateways/providers/dtos/webhook.genesis.response.dto';
40
+ export * from './dtos/providerError.request.dto';
41
41
  export * from './dtos/role.request.dto';
42
42
  export * from './dtos/aclSubject.request.dto';
43
43
  export * from './dtos/aclAction.request.dto';
@@ -86,7 +86,7 @@ export * from './model/rebillingConfig.model';
86
86
  export * from './model/subscription.model';
87
87
  export * from './model/subscriptionStepdown.model';
88
88
  export * from './model/transaction.model';
89
- export * from './model/transactionError.model';
89
+ export * from './model/providerError.model';
90
90
  export * from './model/role.model';
91
91
  export * from './model/aclSubject.model';
92
92
  export * from './model/aclAction.model';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC7G,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC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,cAAc,oDAAoD,CAAC;AACnE,cAAc,yDAAyD,CAAC;AACxE,cAAc,sDAAsD,CAAC;AAGrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wDAAwD,CAAC;AAGvE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAE7D,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC"}
package/dist/index.js CHANGED
@@ -58,11 +58,11 @@ __exportStar(require("./dtos/order.request.dto"), exports);
58
58
  __exportStar(require("./dtos/product.request.dto"), exports);
59
59
  __exportStar(require("./dtos/subscription.request.dto"), exports);
60
60
  __exportStar(require("./dtos/transaction.request.dto"), exports);
61
- __exportStar(require("./dtos/transactionError.request.dto"), exports);
62
61
  __exportStar(require("./gateways/providers/dtos/webhook.rocketpay.request.dto"), exports);
63
62
  __exportStar(require("./gateways/providers/dtos/webhook.rocketpay.response.dto"), exports);
64
63
  __exportStar(require("./gateways/providers/dtos/webhook.genesis.request.dto"), exports);
65
64
  __exportStar(require("./gateways/providers/dtos/webhook.genesis.response.dto"), exports);
65
+ __exportStar(require("./dtos/providerError.request.dto"), exports);
66
66
  __exportStar(require("./dtos/role.request.dto"), exports);
67
67
  __exportStar(require("./dtos/aclSubject.request.dto"), exports);
68
68
  __exportStar(require("./dtos/aclAction.request.dto"), exports);
@@ -115,7 +115,7 @@ __exportStar(require("./model/rebillingConfig.model"), exports);
115
115
  __exportStar(require("./model/subscription.model"), exports);
116
116
  __exportStar(require("./model/subscriptionStepdown.model"), exports);
117
117
  __exportStar(require("./model/transaction.model"), exports);
118
- __exportStar(require("./model/transactionError.model"), exports);
118
+ __exportStar(require("./model/providerError.model"), exports);
119
119
  __exportStar(require("./model/role.model"), exports);
120
120
  __exportStar(require("./model/aclSubject.model"), exports);
121
121
  __exportStar(require("./model/aclAction.model"), exports);
@@ -1,5 +1,5 @@
1
1
  import { ADAPTERS } from "./constants/gateway.constants";
2
- export interface TransactionError {
2
+ export interface ProviderError {
3
3
  id?: number;
4
4
  adapter: ADAPTERS;
5
5
  midId?: number;
@@ -14,4 +14,6 @@ export interface TransactionError {
14
14
  createdAt?: Date;
15
15
  updatedAt?: Date;
16
16
  }
17
- //# sourceMappingURL=transactionError.model.d.ts.map
17
+ /** @deprecated Use ProviderError instead */
18
+ export type TransactionError = ProviderError;
19
+ //# sourceMappingURL=providerError.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerError.model.d.ts","sourceRoot":"","sources":["../../src/model/providerError.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { USER_STATE } from "@/model/constants/user.constants";
2
- import { Merchant } from "@/model/merchant.model";
3
2
  export interface User {
4
3
  id?: number;
5
4
  name?: string;
@@ -7,9 +6,10 @@ export interface User {
7
6
  plainPassword?: string;
8
7
  email?: string;
9
8
  status?: USER_STATE;
10
- tenantId?: number;
11
9
  roleId?: number;
12
- merchants?: Merchant[];
10
+ tenantId?: number;
11
+ tenants?: number[];
12
+ merchants?: number[];
13
13
  createdAt?: Date;
14
14
  updatedAt?: Date;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/model/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,IAAI;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB"}
1
+ {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/model/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAE5D,MAAM,WAAW,IAAI;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketlink/crm-model",
3
- "version": "1.0.276",
3
+ "version": "1.0.278",
4
4
  "description": "Shared DTOs and Models for CRM Rocketlink",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,5 +12,5 @@ export interface CSVStatisticResponse {
12
12
  emp: number;
13
13
  finxp: number;
14
14
  novalnet: number;
15
- transactionErrors: number;
15
+ providerErrors: number;
16
16
  }
@@ -1,11 +1,11 @@
1
- import { FastifyInstance, FastifyReply, FastifyRequest, RouteGenericInterface } from "fastify";
1
+ import { FastifyReply, FastifyRequest, RouteGenericInterface } from "fastify";
2
2
  import "@fastify/jwt";
3
3
  import "@fastify/mysql";
4
4
 
5
5
  declare module '@fastify/jwt' {
6
6
  interface FastifyJWT {
7
- payload: { userId: number; email: string; tenantId?: number; roleId?: number; merchants?: number[] };
8
- user: { userId: number; email: string; tenantId?: number; roleId?: number; merchants?: number[] };
7
+ payload: AuthenticatedUser;
8
+ user: AuthenticatedUser;
9
9
  }
10
10
  }
11
11
 
@@ -0,0 +1,11 @@
1
+ import { PaginatedRequest } from "./common/paginated.request.dto";
2
+
3
+ export interface ProviderErrorRequest extends PaginatedRequest {
4
+ id?: number;
5
+ adapter?: string;
6
+ midId?: number;
7
+ orderId?: number;
8
+ }
9
+
10
+ /** @deprecated Use ProviderErrorRequest instead */
11
+ export type TransactionErrorRequest = ProviderErrorRequest;
package/src/index.ts CHANGED
@@ -37,11 +37,11 @@ export * from './dtos/order.request.dto';
37
37
  export * from './dtos/product.request.dto';
38
38
  export * from './dtos/subscription.request.dto';
39
39
  export * from './dtos/transaction.request.dto';
40
- export * from './dtos/transactionError.request.dto';
41
40
  export * from './gateways/providers/dtos/webhook.rocketpay.request.dto';
42
41
  export * from './gateways/providers/dtos/webhook.rocketpay.response.dto';
43
42
  export * from './gateways/providers/dtos/webhook.genesis.request.dto';
44
43
  export * from './gateways/providers/dtos/webhook.genesis.response.dto';
44
+ export * from './dtos/providerError.request.dto';
45
45
  export * from './dtos/role.request.dto';
46
46
  export * from './dtos/aclSubject.request.dto';
47
47
  export * from './dtos/aclAction.request.dto';
@@ -97,7 +97,7 @@ export * from './model/rebillingConfig.model';
97
97
  export * from './model/subscription.model';
98
98
  export * from './model/subscriptionStepdown.model';
99
99
  export * from './model/transaction.model';
100
- export * from './model/transactionError.model';
100
+ export * from './model/providerError.model';
101
101
  export * from './model/role.model';
102
102
  export * from './model/aclSubject.model';
103
103
  export * from './model/aclAction.model';
@@ -1,6 +1,6 @@
1
1
  import { ADAPTERS } from "./constants/gateway.constants";
2
2
 
3
- export interface TransactionError {
3
+ export interface ProviderError {
4
4
  id?: number;
5
5
  adapter: ADAPTERS;
6
6
  midId?: number;
@@ -14,4 +14,7 @@ export interface TransactionError {
14
14
  response?: string;
15
15
  createdAt?: Date;
16
16
  updatedAt?: Date;
17
- }
17
+ }
18
+
19
+ /** @deprecated Use ProviderError instead */
20
+ export type TransactionError = ProviderError;
@@ -1,5 +1,4 @@
1
1
  import {USER_STATE} from "@/model/constants/user.constants";
2
- import {Merchant} from "@/model/merchant.model";
3
2
 
4
3
  export interface User {
5
4
  id?: number;
@@ -8,9 +7,10 @@ export interface User {
8
7
  plainPassword?: string;
9
8
  email?: string;
10
9
  status?: USER_STATE;
11
- tenantId?: number;
12
10
  roleId?: number;
13
- merchants?: Merchant[];
11
+ tenantId?: number;
12
+ tenants?: number[];
13
+ merchants?: number[];
14
14
  createdAt?: Date;
15
15
  updatedAt?: Date;
16
16
  }
@@ -1,8 +0,0 @@
1
- import { PaginatedRequest } from "./common/paginated.request.dto";
2
- export interface TransactionErrorRequest extends PaginatedRequest {
3
- id?: number;
4
- adapter?: string;
5
- midId?: number;
6
- orderId?: number;
7
- }
8
- //# sourceMappingURL=transactionError.request.dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactionError.request.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/transactionError.request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactionError.model.d.ts","sourceRoot":"","sources":["../../src/model/transactionError.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -1,8 +0,0 @@
1
- import { PaginatedRequest } from "./common/paginated.request.dto";
2
-
3
- export interface TransactionErrorRequest extends PaginatedRequest {
4
- id?: number;
5
- adapter?: string;
6
- midId?: number;
7
- orderId?: number;
8
- }