@bondsports/types 2.4.6 → 2.4.7-a-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.
@@ -40,5 +40,6 @@ export declare class UserExtendedDto extends SimpleUserDto {
40
40
  export declare class CustomerExtendedDto extends BaseCustomerWithRelationsDto {
41
41
  user: UserExtendedDto;
42
42
  organizationId: number;
43
+ isEmployee?: boolean;
43
44
  }
44
45
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"full-customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/full-customer.dto.ts"],"names":[],"mappings":";;;AAQA,sDAAwD;AAGxD,mEAAiF;AAEjF,MAAM,4BAA6B,SAAQ,yCAAiB;CAsC3D;AAED;GACG;AACH,MAAa,eAAgB,SAAQ,4BAA4B;CAEhE;AAFD,0CAEC;AAED,MAAa,eAAgB,SAAQ,wBAAa;CAEjD;AAFD,0CAEC;AAED,MAAa,mBAAoB,SAAQ,4BAA4B;CAIpE;AAJD,kDAIC"}
1
+ {"version":3,"file":"full-customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/full-customer.dto.ts"],"names":[],"mappings":";;;AAQA,sDAAwD;AAGxD,mEAAiF;AAEjF,MAAM,4BAA6B,SAAQ,yCAAiB;CAsC3D;AAED;GACG;AACH,MAAa,eAAgB,SAAQ,4BAA4B;CAEhE;AAFD,0CAEC;AAED,MAAa,eAAgB,SAAQ,wBAAa;CAEjD;AAFD,0CAEC;AAED,MAAa,mBAAoB,SAAQ,4BAA4B;CAMpE;AAND,kDAMC"}
@@ -2,6 +2,7 @@ import { Customer } from '../../entity/Customer';
2
2
  import { CustomerFieldsToMergeDto } from '../dto/customers-merge.dto';
3
3
  import { CustomerMergeErrorCodes } from '../enums/customer-merge-error-codes.enum';
4
4
  import { AttendeeResourceType } from './types';
5
+ import { ObjectLiteral, UpdateQueryBuilder } from 'typeorm';
5
6
  interface IValidationError {
6
7
  code: CustomerMergeErrorCodes;
7
8
  params?: unknown;
@@ -52,4 +53,15 @@ export interface IFamilyCustomersIds {
52
53
  sourceCustomerId: number;
53
54
  targetCustomerId: number;
54
55
  }
56
+ /**
57
+ * Optional parameters for reassigning entities during merge operations.
58
+ */
59
+ export interface IReassignEntitiesByIdsOptions<EntityType> {
60
+ /** Optional organization ID for filtering */
61
+ organizationId?: number;
62
+ /** Additional WHERE conditions (object or query builder function) */
63
+ extraConditions?: ObjectLiteral | ((qb: UpdateQueryBuilder<EntityType>) => string);
64
+ /** Whether to soft delete the reassigned entities */
65
+ softDelete?: boolean;
66
+ }
55
67
  export {};
@@ -1,3 +1,4 @@
1
+ import { CustomerMerge } from '../customers-merge/entities/CustomerMerge';
1
2
  import { UserAuthorizationsTypeEnum } from '../services/enums.service';
2
3
  import { User } from '../user/entities/User';
3
4
  import { BondBaseEntity } from './BondBaseEntity';
@@ -6,4 +7,7 @@ export declare class UserAuthorizations extends BondBaseEntity {
6
7
  userId: number | null;
7
8
  entityType: UserAuthorizationsTypeEnum;
8
9
  user: User;
10
+ deletedAt?: Date;
11
+ mergeId?: number;
12
+ merge?: CustomerMerge;
9
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UserAuthorizations.js","sourceRoot":"","sources":["../../../src/types/entity/UserAuthorizations.ts"],"names":[],"mappings":";;;AAKA,qDAAkD;AAElD,MAAa,kBAAmB,SAAQ,+BAAc;CAQrD;AARD,gDAQC"}
1
+ {"version":3,"file":"UserAuthorizations.js","sourceRoot":"","sources":["../../../src/types/entity/UserAuthorizations.ts"],"names":[],"mappings":";;;AAMA,qDAAkD;AAElD,MAAa,kBAAmB,SAAQ,+BAAc;CAcrD;AAdD,gDAcC"}
@@ -1,3 +1,4 @@
1
+ import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
1
2
  import { EmployeeStatus } from '../../employees/types/enums';
2
3
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
3
4
  import { User } from '../../user/entities/User';
@@ -10,4 +11,6 @@ export declare class OrganizationUsers extends BondBaseEntity {
10
11
  employmentStartDate?: Date;
11
12
  employmentEndDate?: Date;
12
13
  deletedAt?: Date;
14
+ mergeId?: number;
15
+ merge?: CustomerMerge;
13
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAG7D,MAAa,iBAAkB,SAAQ,+BAAc;CAiBpD;AAjBD,8CAiBC"}
1
+ {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AAIA,gEAA6D;AAG7D,MAAa,iBAAkB,SAAQ,+BAAc;CAqBpD;AArBD,8CAqBC"}
@@ -1,3 +1,4 @@
1
+ import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
1
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
3
  import { User } from '../../user/entities/User';
3
4
  import { Role } from './Role';
@@ -8,4 +9,6 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
8
9
  facilityId: number;
9
10
  role: Role;
10
11
  user: User;
12
+ mergeId?: number;
13
+ merge?: CustomerMerge;
11
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/UserRole.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,QAAS,SAAQ,mEAAgC;CAY7D;AAZD,4BAYC"}
1
+ {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/UserRole.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAKjG,MAAa,QAAS,SAAQ,mEAAgC;CAgB7D;AAhBD,4BAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.6",
3
+ "version": "2.4.7-a-1",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -33,12 +33,12 @@
33
33
  ],
34
34
  "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
35
  "dependencies": {
36
+ "@bondsports/date-time": "^2.4.48",
37
+ "@bondsports/notifications-sdk": "latest",
36
38
  "moment": "^2.29.1",
37
39
  "rimraf": "^3.0.2",
38
40
  "stripe": "9.1.0",
39
- "typeorm": "^0.2.32",
40
- "@bondsports/date-time": "^2.4.48",
41
- "@bondsports/notifications-sdk": "latest"
41
+ "typeorm": "^0.2.32"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@bondsports/eslint-config": "^1.0.2",
@@ -50,5 +50,5 @@
50
50
  "ts-node": "^10.8.0",
51
51
  "typescript": "^4.4.3"
52
52
  },
53
- "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
53
+ "gitHead": "26959b38737e7c486d87af2492d09bf214a4904e"
54
54
  }