@bondsports/types 2.2.23 → 2.2.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/import/dto/import.dto.d.ts +5 -0
  3. package/dist/types/import/dto/import.dto.js +7 -1
  4. package/dist/types/import/dto/import.dto.js.map +1 -1
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/types/index.js +1 -0
  7. package/dist/types/index.js.map +1 -1
  8. package/dist/types/user-identification/dto/index.d.ts +1 -0
  9. package/dist/types/user-identification/dto/index.js +18 -0
  10. package/dist/types/user-identification/dto/index.js.map +1 -0
  11. package/dist/types/user-identification/dto/user-identifier.dto.d.ts +42 -0
  12. package/dist/types/user-identification/dto/user-identifier.dto.js +35 -0
  13. package/dist/types/user-identification/dto/user-identifier.dto.js.map +1 -0
  14. package/dist/types/user-identification/entities/UserIdentifier.d.ts +18 -0
  15. package/dist/types/user-identification/entities/UserIdentifier.js +8 -0
  16. package/dist/types/user-identification/entities/UserIdentifier.js.map +1 -0
  17. package/dist/types/user-identification/entities/index.d.ts +1 -0
  18. package/dist/types/user-identification/entities/index.js +18 -0
  19. package/dist/types/user-identification/entities/index.js.map +1 -0
  20. package/dist/types/user-identification/index.d.ts +3 -0
  21. package/dist/types/user-identification/index.js +20 -0
  22. package/dist/types/user-identification/index.js.map +1 -0
  23. package/dist/types/user-identification/types/enums/index.d.ts +1 -0
  24. package/dist/types/user-identification/types/enums/index.js +18 -0
  25. package/dist/types/user-identification/types/enums/index.js.map +1 -0
  26. package/dist/types/user-identification/types/enums/user-identifier.types.d.ts +3 -0
  27. package/dist/types/user-identification/types/enums/user-identifier.types.js +8 -0
  28. package/dist/types/user-identification/types/enums/user-identifier.types.js.map +1 -0
  29. package/dist/types/user-identification/types/index.d.ts +1 -0
  30. package/dist/types/user-identification/types/index.js +18 -0
  31. package/dist/types/user-identification/types/index.js.map +1 -0
  32. package/package.json +1 -1
@@ -5,3 +5,8 @@ export declare class ImportResponseDto<T> {
5
5
  data: T[];
6
6
  problems: any[];
7
7
  }
8
+ export declare class ImportResponseMetadata {
9
+ total: number;
10
+ imported: number;
11
+ failed: number;
12
+ }
@@ -1,10 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportResponseDto = exports.ImportValidationResponseDto = void 0;
3
+ exports.ImportResponseMetadata = exports.ImportResponseDto = exports.ImportValidationResponseDto = void 0;
4
4
  class ImportValidationResponseDto {
5
5
  }
6
6
  exports.ImportValidationResponseDto = ImportValidationResponseDto;
7
7
  class ImportResponseDto {
8
8
  }
9
9
  exports.ImportResponseDto = ImportResponseDto;
10
+ // Instead of passing back all data of imported records, we can just pass back metadata.
11
+ // For backwards compatibility, use ImportResponseDto<ImportResponseMetadata> and set
12
+ // data to an array of one ImportResponseMetadata object.
13
+ class ImportResponseMetadata {
14
+ }
15
+ exports.ImportResponseMetadata = ImportResponseMetadata;
10
16
  //# sourceMappingURL=import.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"import.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/import.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC"}
1
+ {"version":3,"file":"import.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/import.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,wFAAwF;AACxF,qFAAqF;AACrF,yDAAyD;AACzD,MAAa,sBAAsB;CAMlC;AAND,wDAMC"}
@@ -37,6 +37,7 @@ export * from './services';
37
37
  export * from './shifts';
38
38
  export * from './user';
39
39
  export * from './user-activities';
40
+ export * from './user-identification';
40
41
  export * from './util';
41
42
  export * from './webflow';
42
43
  export * from './webhooks';
@@ -53,6 +53,7 @@ __exportStar(require("./services"), exports);
53
53
  __exportStar(require("./shifts"), exports);
54
54
  __exportStar(require("./user"), exports);
55
55
  __exportStar(require("./user-activities"), exports);
56
+ __exportStar(require("./user-identification"), exports);
56
57
  __exportStar(require("./util"), exports);
57
58
  __exportStar(require("./webflow"), exports);
58
59
  __exportStar(require("./webhooks"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1 @@
1
+ export * from './user-identifier.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./user-identifier.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-identification/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,42 @@
1
+ import { UserIdentifierType } from '../types/enums/user-identifier.types';
2
+ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
3
+ import { ImportResponseDto, ImportResponseMetadata } from '../../import/dto/import.dto';
4
+ export declare class ByFacilityIdDto {
5
+ facilityId?: number;
6
+ }
7
+ export declare class ByOrganizationUserIdentifierDto {
8
+ organizationId: number;
9
+ identifier: string;
10
+ }
11
+ export declare class ByOrganizationAndUserIdentifierIdDto extends ByOrganizationIdDto {
12
+ id: number;
13
+ }
14
+ declare class UserIdentifierCoreDto {
15
+ organizationId: number;
16
+ userId?: number;
17
+ customerId?: number;
18
+ facilityId?: number;
19
+ validFrom?: Date;
20
+ validUntil?: Date;
21
+ }
22
+ export declare class UserIdentifierDto extends UserIdentifierCoreDto {
23
+ id: number;
24
+ identifier: string;
25
+ identifierType: UserIdentifierType;
26
+ importId?: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ }
30
+ export declare class UserIdentifierShowDto extends UserIdentifierDto {
31
+ }
32
+ export declare class UserIdentifierCreateDto extends UserIdentifierCoreDto {
33
+ identifier?: string;
34
+ }
35
+ export declare class UserIdentifierUpdateDto extends UserIdentifierCreateDto {
36
+ id: number;
37
+ }
38
+ export declare class ImportUserIdentifierDto extends UserIdentifierDto {
39
+ }
40
+ export declare class ImportUserIdentifierResponseDto extends ImportResponseDto<ImportResponseMetadata> {
41
+ }
42
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImportUserIdentifierResponseDto = exports.ImportUserIdentifierDto = exports.UserIdentifierUpdateDto = exports.UserIdentifierCreateDto = exports.UserIdentifierShowDto = exports.UserIdentifierDto = exports.ByOrganizationAndUserIdentifierIdDto = exports.ByOrganizationUserIdentifierDto = exports.ByFacilityIdDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ const import_dto_1 = require("../../import/dto/import.dto");
6
+ class ByFacilityIdDto {
7
+ }
8
+ exports.ByFacilityIdDto = ByFacilityIdDto;
9
+ class ByOrganizationUserIdentifierDto {
10
+ }
11
+ exports.ByOrganizationUserIdentifierDto = ByOrganizationUserIdentifierDto;
12
+ class ByOrganizationAndUserIdentifierIdDto extends organization_dto_1.ByOrganizationIdDto {
13
+ }
14
+ exports.ByOrganizationAndUserIdentifierIdDto = ByOrganizationAndUserIdentifierIdDto;
15
+ class UserIdentifierCoreDto {
16
+ }
17
+ class UserIdentifierDto extends UserIdentifierCoreDto {
18
+ }
19
+ exports.UserIdentifierDto = UserIdentifierDto;
20
+ class UserIdentifierShowDto extends UserIdentifierDto {
21
+ }
22
+ exports.UserIdentifierShowDto = UserIdentifierShowDto;
23
+ class UserIdentifierCreateDto extends UserIdentifierCoreDto {
24
+ }
25
+ exports.UserIdentifierCreateDto = UserIdentifierCreateDto;
26
+ class UserIdentifierUpdateDto extends UserIdentifierCreateDto {
27
+ }
28
+ exports.UserIdentifierUpdateDto = UserIdentifierUpdateDto;
29
+ class ImportUserIdentifierDto extends UserIdentifierDto {
30
+ }
31
+ exports.ImportUserIdentifierDto = ImportUserIdentifierDto;
32
+ class ImportUserIdentifierResponseDto extends import_dto_1.ImportResponseDto {
33
+ }
34
+ exports.ImportUserIdentifierResponseDto = ImportUserIdentifierResponseDto;
35
+ //# sourceMappingURL=user-identifier.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-identifier.dto.js","sourceRoot":"","sources":["../../../../src/types/user-identification/dto/user-identifier.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAC9E,4DAAwF;AAExF,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,oCAAqC,SAAQ,sCAAmB;CAE5E;AAFD,oFAEC;AAED,MAAM,qBAAqB;CAY1B;AAED,MAAa,iBAAkB,SAAQ,qBAAqB;CAY3D;AAZD,8CAYC;AAED,MAAa,qBAAsB,SAAQ,iBAAiB;CAAG;AAA/D,sDAA+D;AAE/D,MAAa,uBAAwB,SAAQ,qBAAqB;CAEjE;AAFD,0DAEC;AAED,MAAa,uBAAwB,SAAQ,uBAAuB;CAEnE;AAFD,0DAEC;AAED,MAAa,uBAAwB,SAAQ,iBAAiB;CAAG;AAAjE,0DAAiE;AAEjE,MAAa,+BAAgC,SAAQ,8BAAyC;CAAG;AAAjG,0EAAiG"}
@@ -0,0 +1,18 @@
1
+ import { UserIdentifierType } from '../types/enums/user-identifier.types';
2
+ import { User } from '../../user/entities/User';
3
+ import { Facility } from '../../entity/Facility';
4
+ import { Customer } from '../../entity/Customer';
5
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
6
+ export declare class UserIdentifier extends OrganizationConnectionBaseEntity {
7
+ identifier: string;
8
+ identifierType: UserIdentifierType;
9
+ userId?: number;
10
+ user?: User;
11
+ customerId?: number;
12
+ customer?: Customer;
13
+ facilityId?: number;
14
+ facility?: Facility;
15
+ importId?: string;
16
+ validFrom?: Date;
17
+ validUntil?: Date;
18
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserIdentifier = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class UserIdentifier extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.UserIdentifier = UserIdentifier;
8
+ //# sourceMappingURL=UserIdentifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserIdentifier.js","sourceRoot":"","sources":["../../../../src/types/user-identification/entities/UserIdentifier.ts"],"names":[],"mappings":";;;AAKA,oGAAiG;AAEjG,MAAa,cAAe,SAAQ,mEAAgC;CAsBnE;AAtBD,wCAsBC"}
@@ -0,0 +1 @@
1
+ export * from './UserIdentifier';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./UserIdentifier"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-identification/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,3 @@
1
+ export * from './dto';
2
+ export * from './entities';
3
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/user-identification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './user-identifier.types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./user-identifier.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,3 @@
1
+ export declare enum UserIdentifierType {
2
+ STANDARD = 0
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserIdentifierType = void 0;
4
+ var UserIdentifierType;
5
+ (function (UserIdentifierType) {
6
+ UserIdentifierType[UserIdentifierType["STANDARD"] = 0] = "STANDARD";
7
+ })(UserIdentifierType = exports.UserIdentifierType || (exports.UserIdentifierType = {}));
8
+ //# sourceMappingURL=user-identifier.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-identifier.types.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/enums/user-identifier.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC7B,mEAAY,CAAA;AACb,CAAC,EAFW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAE7B"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-identification/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.23",
3
+ "version": "2.2.24",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {