@bondsports/types 2.3.65 → 2.3.66-squad-b-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.
Files changed (36) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/auth/auth-headers-names.enum.d.ts +6 -0
  3. package/dist/types/auth/auth-headers-names.enum.js +11 -0
  4. package/dist/types/auth/auth-headers-names.enum.js.map +1 -0
  5. package/dist/types/auth/index.d.ts +1 -0
  6. package/dist/types/auth/index.js +18 -0
  7. package/dist/types/auth/index.js.map +1 -0
  8. package/dist/types/customers/types/consts/customers.consts.js +1 -0
  9. package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
  10. package/dist/types/customers/types/interfaces.d.ts +2 -0
  11. package/dist/types/dto/aws.cognito.dto.d.ts +38 -0
  12. package/dist/types/dto/aws.cognito.dto.js +19 -0
  13. package/dist/types/dto/aws.cognito.dto.js.map +1 -0
  14. package/dist/types/dto/index.d.ts +1 -0
  15. package/dist/types/dto/index.js +1 -0
  16. package/dist/types/dto/index.js.map +1 -1
  17. package/dist/types/index.d.ts +1 -0
  18. package/dist/types/index.js +1 -0
  19. package/dist/types/index.js.map +1 -1
  20. package/dist/types/invoice/dto/index.d.ts +1 -0
  21. package/dist/types/invoice/dto/index.js +1 -0
  22. package/dist/types/invoice/dto/index.js.map +1 -1
  23. package/dist/types/invoice/dto/publish-invoice.dto.d.ts +2 -2
  24. package/dist/types/invoice/dto/publish-invoice.dto.js +4 -3
  25. package/dist/types/invoice/dto/publish-invoice.dto.js.map +1 -1
  26. package/dist/types/invoice/dto/share-invoice.dto.d.ts +14 -0
  27. package/dist/types/invoice/dto/share-invoice.dto.js +16 -0
  28. package/dist/types/invoice/dto/share-invoice.dto.js.map +1 -0
  29. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +5 -0
  30. package/dist/types/product-pricing/types/enums/product.enums.d.ts +5 -5
  31. package/dist/types/product-pricing/types/enums/product.enums.js +7 -7
  32. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  33. package/dist/types/webhooks/types/webhooks.enums.d.ts +4 -1
  34. package/dist/types/webhooks/types/webhooks.enums.js +6 -2
  35. package/dist/types/webhooks/types/webhooks.enums.js.map +1 -1
  36. package/package.json +52 -52
@@ -0,0 +1,6 @@
1
+ export declare enum AuthHeadersNamesEnum {
2
+ AccessToken = "X-BondUserAccessToken",
3
+ IdToken = "X-BondUserIdToken",
4
+ RefreshToken = "X-BondUserRefreshToken",
5
+ Username = "X-BondUserUsername"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthHeadersNamesEnum = void 0;
4
+ var AuthHeadersNamesEnum;
5
+ (function (AuthHeadersNamesEnum) {
6
+ AuthHeadersNamesEnum["AccessToken"] = "X-BondUserAccessToken";
7
+ AuthHeadersNamesEnum["IdToken"] = "X-BondUserIdToken";
8
+ AuthHeadersNamesEnum["RefreshToken"] = "X-BondUserRefreshToken";
9
+ AuthHeadersNamesEnum["Username"] = "X-BondUserUsername";
10
+ })(AuthHeadersNamesEnum = exports.AuthHeadersNamesEnum || (exports.AuthHeadersNamesEnum = {}));
11
+ //# sourceMappingURL=auth-headers-names.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-headers-names.enum.js","sourceRoot":"","sources":["../../../src/types/auth/auth-headers-names.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,+DAAuC,CAAA;IACvC,uDAA+B,CAAA;AAChC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
@@ -0,0 +1 @@
1
+ export * from './auth-headers-names.enum';
@@ -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("./auth-headers-names.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
@@ -7,6 +7,7 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
7
7
  sendCustomerNotification: true,
8
8
  allowExistingCustomer: false,
9
9
  requireNewUser: false,
10
+ skipCreateCognitoUser: false,
10
11
  };
11
12
  exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
12
13
  //# sourceMappingURL=customers.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;CACrB,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC"}
@@ -16,6 +16,7 @@ export interface CreateCustomerOptions {
16
16
  requireNewUser?: boolean;
17
17
  saveCustomer?: boolean;
18
18
  sendCustomerNotification?: boolean;
19
+ skipCreateCognitoUser?: boolean;
19
20
  }
20
21
  export interface CustomerFamilyMember {
21
22
  id: number;
@@ -36,6 +37,7 @@ export interface ICreateCustomer {
36
37
  addressId?: number;
37
38
  userId: number;
38
39
  newCustomer: CreateCustomerDto;
40
+ user: User;
39
41
  }
40
42
  /**
41
43
  * Use CustomerDetailResponseDto instead which properly separates customer and user data.
@@ -0,0 +1,38 @@
1
+ import { GenderEnum, PlatformsEnum } from '../services/enums.service';
2
+ export declare class CreateCognitoUserDto {
3
+ userId: string;
4
+ userType: PlatformsEnum;
5
+ firstName?: string;
6
+ lastName?: string;
7
+ email?: string;
8
+ birthDate?: Date | null;
9
+ gender?: GenderEnum;
10
+ forcePasswordUpdate: boolean;
11
+ }
12
+ export declare class UpdateCognitoUserDto {
13
+ firstName?: string;
14
+ lastName?: string;
15
+ email?: string;
16
+ birthDate?: string;
17
+ }
18
+ export declare class CognitoNewUserResponseDto {
19
+ email: string;
20
+ tempPassword?: string;
21
+ createdWithTempPassword?: boolean;
22
+ cognitoUserId?: string;
23
+ }
24
+ export declare class UpdateUserResponseDto {
25
+ status: number;
26
+ requestId: string;
27
+ attempts: number;
28
+ cognitoUserId?: string;
29
+ }
30
+ export declare class CognitoUserDto {
31
+ id: string;
32
+ birthdate?: Date;
33
+ email?: string;
34
+ firstName?: string;
35
+ lastName?: string;
36
+ userId: number;
37
+ gender: GenderEnum;
38
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoUserDto = exports.UpdateUserResponseDto = exports.CognitoNewUserResponseDto = exports.UpdateCognitoUserDto = exports.CreateCognitoUserDto = void 0;
4
+ class CreateCognitoUserDto {
5
+ }
6
+ exports.CreateCognitoUserDto = CreateCognitoUserDto;
7
+ class UpdateCognitoUserDto {
8
+ }
9
+ exports.UpdateCognitoUserDto = UpdateCognitoUserDto;
10
+ class CognitoNewUserResponseDto {
11
+ }
12
+ exports.CognitoNewUserResponseDto = CognitoNewUserResponseDto;
13
+ class UpdateUserResponseDto {
14
+ }
15
+ exports.UpdateUserResponseDto = UpdateUserResponseDto;
16
+ class CognitoUserDto {
17
+ }
18
+ exports.CognitoUserDto = CognitoUserDto;
19
+ //# sourceMappingURL=aws.cognito.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws.cognito.dto.js","sourceRoot":"","sources":["../../../src/types/dto/aws.cognito.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,cAAc;CAc1B;AAdD,wCAcC"}
@@ -1,6 +1,7 @@
1
1
  export * from './activityTimes.dto';
2
2
  export * from './application.dto';
3
3
  export * from './applicationParams.dto';
4
+ export * from './aws.cognito.dto';
4
5
  export * from './bookingTypeSetting.dto';
5
6
  export * from './configuration.dto';
6
7
  export * from './customer.dto';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./activityTimes.dto"), exports);
18
18
  __exportStar(require("./application.dto"), exports);
19
19
  __exportStar(require("./applicationParams.dto"), exports);
20
+ __exportStar(require("./aws.cognito.dto"), exports);
20
21
  __exportStar(require("./bookingTypeSetting.dto"), exports);
21
22
  __exportStar(require("./configuration.dto"), exports);
22
23
  __exportStar(require("./customer.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B;AAC7B,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B;AAC7B,0DAAwC"}
@@ -3,6 +3,7 @@ export * from './activities';
3
3
  export * from './addons';
4
4
  export * from './address';
5
5
  export * from './attendance';
6
+ export * from './auth';
6
7
  export * from './cart';
7
8
  export * from './customers';
8
9
  export * from './customers-merge';
@@ -19,6 +19,7 @@ __exportStar(require("./activities"), exports);
19
19
  __exportStar(require("./addons"), exports);
20
20
  __exportStar(require("./address"), exports);
21
21
  __exportStar(require("./attendance"), exports);
22
+ __exportStar(require("./auth"), exports);
22
23
  __exportStar(require("./cart"), exports);
23
24
  __exportStar(require("./customers"), exports);
24
25
  __exportStar(require("./customers-merge"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,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,yDAAuC;AACvC,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,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,yDAAuC;AACvC,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -2,3 +2,4 @@ export * from './invoice-history.dto';
2
2
  export * from './invoice.dto';
3
3
  export * from './lineItem.dto';
4
4
  export * from './publish-invoice.dto';
5
+ export * from './share-invoice.dto';
@@ -18,4 +18,5 @@ __exportStar(require("./invoice-history.dto"), exports);
18
18
  __exportStar(require("./invoice.dto"), exports);
19
19
  __exportStar(require("./lineItem.dto"), exports);
20
20
  __exportStar(require("./publish-invoice.dto"), exports);
21
+ __exportStar(require("./share-invoice.dto"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC"}
@@ -4,9 +4,9 @@ export declare class PublishInvoiceDto {
4
4
  sendToEmail: string;
5
5
  memo?: string;
6
6
  }
7
- export declare class LandingPageUrlDto {
7
+ export declare class DeprecatedLandingPageUrlDto {
8
8
  landingPageUrl: string;
9
9
  }
10
10
  export declare class PublishInvoiceResponseDto {
11
- data: LandingPageUrlDto;
11
+ data: DeprecatedLandingPageUrlDto;
12
12
  }
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublishInvoiceResponseDto = exports.LandingPageUrlDto = exports.PublishInvoiceDto = void 0;
3
+ exports.PublishInvoiceResponseDto = exports.DeprecatedLandingPageUrlDto = exports.PublishInvoiceDto = void 0;
4
+ //TODO: deprecate once BOND-15715 clients is merged
4
5
  class PublishInvoiceDto {
5
6
  }
6
7
  exports.PublishInvoiceDto = PublishInvoiceDto;
7
- class LandingPageUrlDto {
8
+ class DeprecatedLandingPageUrlDto {
8
9
  }
9
- exports.LandingPageUrlDto = LandingPageUrlDto;
10
+ exports.DeprecatedLandingPageUrlDto = DeprecatedLandingPageUrlDto;
10
11
  class PublishInvoiceResponseDto {
11
12
  }
12
13
  exports.PublishInvoiceResponseDto = PublishInvoiceResponseDto;
@@ -1 +1 @@
1
- {"version":3,"file":"publish-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/publish-invoice.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC"}
1
+ {"version":3,"file":"publish-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/publish-invoice.dto.ts"],"names":[],"mappings":";;;AAEA,mDAAmD;AACnD,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC"}
@@ -0,0 +1,14 @@
1
+ export declare class SendInvoiceEmailDto {
2
+ sendToEmail: string;
3
+ memo?: string;
4
+ }
5
+ export declare class UpdateInvoiceVisibilityDto {
6
+ isPublic?: boolean;
7
+ }
8
+ export declare class ShareInvoiceDto {
9
+ sendEmailRequest: SendInvoiceEmailDto;
10
+ updateInvoiceRequest: UpdateInvoiceVisibilityDto;
11
+ }
12
+ export declare class LandingPageUrlDto {
13
+ landingPageUrl: string;
14
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LandingPageUrlDto = exports.ShareInvoiceDto = exports.UpdateInvoiceVisibilityDto = exports.SendInvoiceEmailDto = void 0;
4
+ class SendInvoiceEmailDto {
5
+ }
6
+ exports.SendInvoiceEmailDto = SendInvoiceEmailDto;
7
+ class UpdateInvoiceVisibilityDto {
8
+ }
9
+ exports.UpdateInvoiceVisibilityDto = UpdateInvoiceVisibilityDto;
10
+ class ShareInvoiceDto {
11
+ }
12
+ exports.ShareInvoiceDto = ShareInvoiceDto;
13
+ class LandingPageUrlDto {
14
+ }
15
+ exports.LandingPageUrlDto = LandingPageUrlDto;
16
+ //# sourceMappingURL=share-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/share-invoice.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC"}
@@ -148,3 +148,8 @@ export interface IGetPaymentByIdOptions {
148
148
  relations?: string[];
149
149
  throwError?: boolean;
150
150
  }
151
+ export interface IUpdatePendingPaymentStatusResult {
152
+ payment: Payment;
153
+ isUpdated: boolean;
154
+ invoiceId?: number;
155
+ }
@@ -11,13 +11,13 @@ export declare enum OrderByProductEnum {
11
11
  STATUS = "status",
12
12
  PRODUCT_STATUS = "productStatus"
13
13
  }
14
- export declare enum ProductBuilderTypeEnum {
15
- RENTAL = "rental",
16
- PROGRAM_PUNCH_PASS = "program_punch_pass",
17
- RENTAL_PUNCH_PASS = "rental_punch_pass"
18
- }
19
14
  export declare enum ProductExpandEnum {
20
15
  PRICES = "prices",
21
16
  REQUIRED_PRODUCTS = "requiredProducts",
22
17
  ENTITLEMENT_DISCOUNTS = "entitlementDiscounts"
23
18
  }
19
+ export declare enum ProductBuilderTypeEnum {
20
+ RENTAL = "rental",
21
+ PROGRAM_PUNCH_PASS = "program_punch_pass",
22
+ RENTAL_PUNCH_PASS = "rental_punch_pass"
23
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductExpandEnum = exports.ProductBuilderTypeEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
3
+ exports.ProductBuilderTypeEnum = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
4
4
  var ProductStateEnum;
5
5
  (function (ProductStateEnum) {
6
6
  ProductStateEnum["VALID"] = "valid";
@@ -16,16 +16,16 @@ var OrderByProductEnum;
16
16
  OrderByProductEnum["STATUS"] = "status";
17
17
  OrderByProductEnum["PRODUCT_STATUS"] = "productStatus";
18
18
  })(OrderByProductEnum = exports.OrderByProductEnum || (exports.OrderByProductEnum = {}));
19
- var ProductBuilderTypeEnum;
20
- (function (ProductBuilderTypeEnum) {
21
- ProductBuilderTypeEnum["RENTAL"] = "rental";
22
- ProductBuilderTypeEnum["PROGRAM_PUNCH_PASS"] = "program_punch_pass";
23
- ProductBuilderTypeEnum["RENTAL_PUNCH_PASS"] = "rental_punch_pass";
24
- })(ProductBuilderTypeEnum = exports.ProductBuilderTypeEnum || (exports.ProductBuilderTypeEnum = {}));
25
19
  var ProductExpandEnum;
26
20
  (function (ProductExpandEnum) {
27
21
  ProductExpandEnum["PRICES"] = "prices";
28
22
  ProductExpandEnum["REQUIRED_PRODUCTS"] = "requiredProducts";
29
23
  ProductExpandEnum["ENTITLEMENT_DISCOUNTS"] = "entitlementDiscounts";
30
24
  })(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
25
+ var ProductBuilderTypeEnum;
26
+ (function (ProductBuilderTypeEnum) {
27
+ ProductBuilderTypeEnum["RENTAL"] = "rental";
28
+ ProductBuilderTypeEnum["PROGRAM_PUNCH_PASS"] = "program_punch_pass";
29
+ ProductBuilderTypeEnum["RENTAL_PUNCH_PASS"] = "rental_punch_pass";
30
+ })(ProductBuilderTypeEnum = exports.ProductBuilderTypeEnum || (exports.ProductBuilderTypeEnum = {}));
31
31
  //# sourceMappingURL=product.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;AACjC,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;AAC/C,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;AACjC,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;AAC/C,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
@@ -3,7 +3,7 @@ export declare enum StripeEventTypeEnum {
3
3
  PAYMENT_INTENT_PROCESSING = "payment_intent.processing",
4
4
  PAYMENT_INTENT_SUCCEEDED = "payment_intent.succeeded",
5
5
  PAYMENT_INTENT_CANCELED = "payment_intent.canceled",
6
- PAYMENT_INTENT_PAYMENT_FAILED = "payment_intent.payment_failed",
6
+ PAYMENT_INTENT_FAILED = "payment_intent.payment_failed",
7
7
  PAYMENT_INTENT_REQUIRES_ACTION = "payment_intent.requires_action",
8
8
  PAYMENT_METHOD_ATTACHED = "payment_method.attached",
9
9
  PAYMENT_METHOD_DETACHED = "payment_method.detached",
@@ -25,3 +25,6 @@ export declare enum PaymentIntentStatusEnum {
25
25
  REQUIRES_PAYMENT_METHOD = "requires_payment_method",
26
26
  SUCCEEDED = "succeeded"
27
27
  }
28
+ export declare enum StripeFailureCodeEnum {
29
+ OFFLINE_PIN_REQUIRED = "offline_pin_required"
30
+ }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentIntentStatusEnum = exports.StripeEventTypeEnum = void 0;
3
+ exports.StripeFailureCodeEnum = exports.PaymentIntentStatusEnum = exports.StripeEventTypeEnum = void 0;
4
4
  var StripeEventTypeEnum;
5
5
  (function (StripeEventTypeEnum) {
6
6
  StripeEventTypeEnum["PAYMENT_INTENT_CREATED"] = "payment_intent.created";
7
7
  StripeEventTypeEnum["PAYMENT_INTENT_PROCESSING"] = "payment_intent.processing";
8
8
  StripeEventTypeEnum["PAYMENT_INTENT_SUCCEEDED"] = "payment_intent.succeeded";
9
9
  StripeEventTypeEnum["PAYMENT_INTENT_CANCELED"] = "payment_intent.canceled";
10
- StripeEventTypeEnum["PAYMENT_INTENT_PAYMENT_FAILED"] = "payment_intent.payment_failed";
10
+ StripeEventTypeEnum["PAYMENT_INTENT_FAILED"] = "payment_intent.payment_failed";
11
11
  StripeEventTypeEnum["PAYMENT_INTENT_REQUIRES_ACTION"] = "payment_intent.requires_action";
12
12
  StripeEventTypeEnum["PAYMENT_METHOD_ATTACHED"] = "payment_method.attached";
13
13
  StripeEventTypeEnum["PAYMENT_METHOD_DETACHED"] = "payment_method.detached";
@@ -30,4 +30,8 @@ var PaymentIntentStatusEnum;
30
30
  PaymentIntentStatusEnum["REQUIRES_PAYMENT_METHOD"] = "requires_payment_method";
31
31
  PaymentIntentStatusEnum["SUCCEEDED"] = "succeeded";
32
32
  })(PaymentIntentStatusEnum = exports.PaymentIntentStatusEnum || (exports.PaymentIntentStatusEnum = {}));
33
+ var StripeFailureCodeEnum;
34
+ (function (StripeFailureCodeEnum) {
35
+ StripeFailureCodeEnum["OFFLINE_PIN_REQUIRED"] = "offline_pin_required";
36
+ })(StripeFailureCodeEnum = exports.StripeFailureCodeEnum || (exports.StripeFailureCodeEnum = {}));
33
37
  //# sourceMappingURL=webhooks.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.enums.js","sourceRoot":"","sources":["../../../../src/types/webhooks/types/webhooks.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAiBX;AAjBD,WAAY,mBAAmB;IAC9B,wEAAiD,CAAA;IACjD,8EAAuD,CAAA;IACvD,4EAAqD,CAAA;IACrD,0EAAmD,CAAA;IACnD,sFAA+D,CAAA;IAC/D,wFAAiE,CAAA;IACjE,0EAAmD,CAAA;IACnD,0EAAmD,CAAA;IACnD,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,4DAAqC,CAAA;IACrC,0DAAmC,CAAA;IACnC,sDAA+B,CAAA;IAC/B,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;IACrC,8DAAuC,CAAA;AACxC,CAAC,EAjBW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAiB9B;AAED,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAClC,gDAAqB,CAAA;IACrB,oDAAyB,CAAA;IACzB,8DAAmC,CAAA;IACnC,gEAAqC,CAAA;IACrC,0EAA+C,CAAA;IAC/C,8EAAmD,CAAA;IACnD,kDAAuB,CAAA;AACxB,CAAC,EARW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQlC"}
1
+ {"version":3,"file":"webhooks.enums.js","sourceRoot":"","sources":["../../../../src/types/webhooks/types/webhooks.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAiBX;AAjBD,WAAY,mBAAmB;IAC9B,wEAAiD,CAAA;IACjD,8EAAuD,CAAA;IACvD,4EAAqD,CAAA;IACrD,0EAAmD,CAAA;IACnD,8EAAuD,CAAA;IACvD,wFAAiE,CAAA;IACjE,0EAAmD,CAAA;IACnD,0EAAmD,CAAA;IACnD,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,4DAAqC,CAAA;IACrC,0DAAmC,CAAA;IACnC,sDAA+B,CAAA;IAC/B,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;IACrC,8DAAuC,CAAA;AACxC,CAAC,EAjBW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAiB9B;AAED,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAClC,gDAAqB,CAAA;IACrB,oDAAyB,CAAA;IACzB,8DAAmC,CAAA;IACnC,gEAAqC,CAAA;IACrC,0EAA+C,CAAA;IAC/C,8EAAmD,CAAA;IACnD,kDAAuB,CAAA;AACxB,CAAC,EARW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQlC;AAED,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,sEAA6C,CAAA;AAC9C,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC"}
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
1
  {
2
- "name": "@bondsports/types",
3
- "version": "2.3.65",
4
- "description": "backend types module for Bond-Sports",
5
- "main": "./dist/index.js",
6
- "scripts": {
7
- "format": "prettier --check .",
8
- "format:fix": "prettier --write .",
9
- "prelint:fix": "npm run format:fix",
10
- "prelint": "npm run format",
11
- "lint": "eslint .",
12
- "lint:fix": "eslint --fix .",
13
- "release": "standard-version",
14
- "import:types": "rimraf src/types && node ./import.js",
15
- "prebuild": "npm run clean",
16
- "build": "tsc --project tsconfig.build.json",
17
- "start": "npm run build && cd dist && node ./index.js",
18
- "clean": "rimraf dist",
19
- "prepublish": "npm run build",
20
- "version": "echo $npm_package_version"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
25
- },
26
- "author": "Bond-Sports",
27
- "license": "ISC",
28
- "bugs": {
29
- "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
30
- },
31
- "files": [
32
- "dist/**/*"
33
- ],
34
- "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
- "dependencies": {
36
- "moment": "^2.29.1",
37
- "rimraf": "^3.0.2",
38
- "stripe": "9.1.0",
39
- "typeorm": "^0.2.32",
40
- "@bondsports/date-time": "^2.4.48",
41
- "@bondsports/notifications-sdk": "latest"
42
- },
43
- "devDependencies": {
44
- "@bondsports/eslint-config": "^1.0.2",
45
- "@bondsports/prettier-config": "0.0.1",
46
- "@types/node": "^13.9.1",
47
- "eslint": "^8.16.0",
48
- "prettier": "^2.6.2",
49
- "standard-version": "^9.5.0",
50
- "ts-node": "^10.8.0",
51
- "typescript": "^4.4.3"
52
- },
53
- "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
2
+ "name": "@bondsports/types",
3
+ "version": "2.3.66-squad-b-1",
4
+ "description": "backend types module for Bond-Sports",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "format": "prettier --check .",
8
+ "format:fix": "prettier --write .",
9
+ "prelint:fix": "npm run format:fix",
10
+ "prelint": "npm run format",
11
+ "lint": "eslint .",
12
+ "lint:fix": "eslint --fix .",
13
+ "release": "standard-version",
14
+ "import:types": "rimraf src/types && node ./import.js",
15
+ "prebuild": "npm run clean",
16
+ "build": "tsc --project tsconfig.build.json",
17
+ "start": "npm run build && cd dist && node ./index.js",
18
+ "clean": "rimraf dist",
19
+ "prepublish": "npm run build",
20
+ "version": "echo $npm_package_version"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
25
+ },
26
+ "author": "Bond-Sports",
27
+ "license": "ISC",
28
+ "bugs": {
29
+ "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
30
+ },
31
+ "files": [
32
+ "dist/**/*"
33
+ ],
34
+ "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
+ "dependencies": {
36
+ "moment": "^2.29.1",
37
+ "rimraf": "^3.0.2",
38
+ "stripe": "9.1.0",
39
+ "typeorm": "^0.2.32",
40
+ "@bondsports/date-time": "^2.4.48",
41
+ "@bondsports/notifications-sdk": "latest"
42
+ },
43
+ "devDependencies": {
44
+ "@bondsports/eslint-config": "^1.0.2",
45
+ "@bondsports/prettier-config": "0.0.1",
46
+ "@types/node": "^13.9.1",
47
+ "eslint": "^8.16.0",
48
+ "prettier": "^2.6.2",
49
+ "standard-version": "^9.5.0",
50
+ "ts-node": "^10.8.0",
51
+ "typescript": "^4.4.3"
52
+ },
53
+ "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
54
54
  }