@bondsports/types 2.4.90 → 2.4.91-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.
Files changed (37) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/customers/types/consts/customers.consts.d.ts +2 -1
  3. package/dist/types/customers/types/consts/customers.consts.js +3 -2
  4. package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
  5. package/dist/types/customers/types/interfaces.d.ts +1 -0
  6. package/dist/types/gl-codes/dto/gl-code.dto.d.ts +11 -4
  7. package/dist/types/gl-codes/dto/gl-code.dto.js +6 -5
  8. package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
  9. package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +10 -0
  10. package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +8 -0
  11. package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +1 -0
  12. package/dist/types/gl-codes/entities/gl-code.d.ts +2 -0
  13. package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
  14. package/dist/types/gl-codes/entities/index.d.ts +1 -0
  15. package/dist/types/gl-codes/entities/index.js +1 -0
  16. package/dist/types/gl-codes/entities/index.js.map +1 -1
  17. package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +2 -1
  18. package/dist/types/gl-codes/types/enums/gl-code.enum.js +1 -0
  19. package/dist/types/gl-codes/types/enums/gl-code.enum.js.map +1 -1
  20. package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +6 -0
  21. package/dist/types/invoice/dto/organization-invoice.dto.d.ts +2 -0
  22. package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
  23. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -0
  24. package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
  25. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +39 -39
  26. package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +6 -0
  27. package/dist/types/purchase/dto/purchase.dto.d.ts +2 -0
  28. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  29. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -0
  30. package/dist/types/terminal/types/consts/terminal-action.consts.d.ts +1 -0
  31. package/dist/types/terminal/types/consts/terminal-action.consts.js +2 -1
  32. package/dist/types/terminal/types/consts/terminal-action.consts.js.map +1 -1
  33. package/dist/types/terminal/types/enums/terminal-action.enums.d.ts +4 -3
  34. package/dist/types/terminal/types/enums/terminal-action.enums.js +4 -3
  35. package/dist/types/terminal/types/enums/terminal-action.enums.js.map +1 -1
  36. package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +2 -0
  37. package/package.json +1 -1
@@ -2,5 +2,6 @@ import { CreateCustomerOptions } from '../interfaces';
2
2
  export declare const LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
3
3
  export declare const DEFAULT_CREATE_CUSTOMER_OPTIONS: CreateCustomerOptions;
4
4
  export declare const RELATIONS_FOR_ORGANIZATION_USER: string[];
5
- export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: string[];
5
+ export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: ("addressId" | "email" | "phoneNumber" | "firstName" | "lastName")[];
6
+ export declare const CUSTOMER_ORG_SCOPED_UPDATE_FIELDS: "colorCodeId"[];
6
7
  export declare const CUSTOMER_SEARCH_FIELDS: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CUSTOMER_SEARCH_FIELDS = exports.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
3
+ exports.CUSTOMER_SEARCH_FIELDS = exports.CUSTOMER_ORG_SCOPED_UPDATE_FIELDS = exports.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
4
4
  exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
5
5
  exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
6
6
  saveCustomer: true,
@@ -8,15 +8,16 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
8
8
  allowExistingCustomer: false,
9
9
  requireNewUser: false,
10
10
  skipCreateCognitoUser: false,
11
+ skipUserProfileSync: false,
11
12
  };
12
13
  exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
13
14
  exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
14
15
  'addressId',
15
- 'colorCodeId',
16
16
  'email',
17
17
  'firstName',
18
18
  'lastName',
19
19
  'phoneNumber',
20
20
  ];
21
+ exports.CUSTOMER_ORG_SCOPED_UPDATE_FIELDS = ['colorCodeId'];
21
22
  exports.CUSTOMER_SEARCH_FIELDS = ['firstName', 'lastName', 'name', 'email'];
22
23
  //# 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;AAEpC,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;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,aAAa;IACb,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACb,CAAC;AAEW,QAAA,sBAAsB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAGa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;IAC5B,mBAAmB,EAAE,KAAK;CAC1B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACgB,CAAC;AAElB,QAAA,iCAAiC,GAAG,CAAC,aAAa,CAA8B,CAAC;AAEjF,QAAA,sBAAsB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
@@ -35,6 +35,7 @@ export interface CreateCustomerOptions {
35
35
  saveCustomer?: boolean;
36
36
  sendCustomerNotification?: boolean;
37
37
  skipCreateCognitoUser?: boolean;
38
+ skipUserProfileSync?: boolean;
38
39
  }
39
40
  export interface CustomerFamilyMember {
40
41
  id: number;
@@ -14,6 +14,7 @@ export declare class CreateGlCodeDto {
14
14
  resourceType?: GlResourceTypeEnum;
15
15
  productType?: ProductTypesEnum;
16
16
  glTypeId: number;
17
+ facilitiesIds?: number[];
17
18
  }
18
19
  export declare class GlCodeDto extends OrganizationBaseEntityDto {
19
20
  code: string;
@@ -23,6 +24,8 @@ export declare class GlCodeDto extends OrganizationBaseEntityDto {
23
24
  productType?: ProductTypesEnum;
24
25
  updatedAt?: Date;
25
26
  assignedResources?: number;
27
+ facilityIds?: number[];
28
+ isAllFacilities?: boolean;
26
29
  glType: GlTypeDto;
27
30
  }
28
31
  export declare class AccountingCodeDto extends IdDto {
@@ -32,7 +35,10 @@ export declare class AccountingCodeDto extends IdDto {
32
35
  resourceType?: GlResourceTypeEnum;
33
36
  productType?: ProductTypesEnum;
34
37
  }
35
- export declare class FindGlCodesFiltersDto {
38
+ export declare class ExpandGlCodeDto {
39
+ expand?: GlCodeExpandEnum[];
40
+ }
41
+ export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
36
42
  label?: string;
37
43
  includeInactive?: boolean;
38
44
  codes?: string[];
@@ -41,6 +47,7 @@ export declare class FindGlCodesFiltersDto {
41
47
  productTypes?: ProductTypesEnum[];
42
48
  isResourceTypeNullable?: boolean;
43
49
  glTypeIds?: number[];
50
+ facilitiesIds?: number[];
44
51
  }
45
52
  export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGlCodesFilters {
46
53
  search?: string;
@@ -49,13 +56,11 @@ export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGl
49
56
  resourceTypes?: GlResourceTypeEnum[];
50
57
  productTypes?: ProductTypesEnum[];
51
58
  glTypeIds?: number[];
59
+ facilitiesIds?: number[];
52
60
  orderBy?: GlCodeOrderByEnum;
53
61
  order?: OrderByEnum;
54
62
  expand?: GlCodeExpandEnum[];
55
63
  }
56
- export declare class ExpandGlCodeDto {
57
- expand?: GlCodeExpandEnum[];
58
- }
59
64
  export declare class UpdateGlCodeDto {
60
65
  id: number;
61
66
  code?: string;
@@ -64,6 +69,7 @@ export declare class UpdateGlCodeDto {
64
69
  resourceType?: GlResourceTypeEnum;
65
70
  productType?: ProductTypesEnum;
66
71
  glTypeId?: number;
72
+ facilitiesIds?: number[];
67
73
  }
68
74
  export declare class MassActionUpdateGlCodeDto {
69
75
  label?: string;
@@ -84,4 +90,5 @@ export declare class MassActionGlCodesQueryDto extends MassActionFilterDto imple
84
90
  resourceTypes?: GlResourceTypeEnum[];
85
91
  productTypes?: ProductTypesEnum[];
86
92
  glTypeIds?: number[];
93
+ facilitiesIds?: number[];
87
94
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.ExpandGlCodeDto = exports.GetGlCodesFiltersDto = exports.FindGlCodesFiltersDto = exports.AccountingCodeDto = exports.GlCodeDto = exports.CreateGlCodeDto = exports.ByGlCodeDto = void 0;
3
+ exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.GetGlCodesFiltersDto = exports.FindGlCodesFiltersDto = exports.ExpandGlCodeDto = exports.AccountingCodeDto = exports.GlCodeDto = exports.CreateGlCodeDto = exports.ByGlCodeDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class ByGlCodeDto extends organization_dto_1.ByOrganizationIdDto {
@@ -15,8 +15,12 @@ exports.GlCodeDto = GlCodeDto;
15
15
  class AccountingCodeDto extends general_dto_1.IdDto {
16
16
  }
17
17
  exports.AccountingCodeDto = AccountingCodeDto;
18
- class FindGlCodesFiltersDto {
18
+ class ExpandGlCodeDto {
19
+ }
20
+ exports.ExpandGlCodeDto = ExpandGlCodeDto;
21
+ class FindGlCodesFiltersDto extends ExpandGlCodeDto {
19
22
  constructor() {
23
+ super(...arguments);
20
24
  this.isResourceTypeNullable = true;
21
25
  }
22
26
  }
@@ -24,9 +28,6 @@ exports.FindGlCodesFiltersDto = FindGlCodesFiltersDto;
24
28
  class GetGlCodesFiltersDto extends general_dto_1.PaginationQuery {
25
29
  }
26
30
  exports.GetGlCodesFiltersDto = GetGlCodesFiltersDto;
27
- class ExpandGlCodeDto {
28
- }
29
- exports.ExpandGlCodeDto = ExpandGlCodeDto;
30
31
  class UpdateGlCodeDto {
31
32
  }
32
33
  exports.UpdateGlCodeDto = UpdateGlCodeDto;
@@ -1 +1 @@
1
- {"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAgBvD;AAhBD,8BAgBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAU3C;AAVD,8CAUC;AAED,MAAa,qBAAqB;IAAlC;QAaC,2BAAsB,GAAa,IAAI,CAAC;IAGzC,CAAC;CAAA;AAhBD,sDAgBC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAkBxD;AAlBD,oDAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAA0B,SAAQ,iCAAmB;CAUjE;AAVD,8DAUC"}
1
+ {"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAoBvD;AApBD,8BAoBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAU3C;AAVD,8CAUC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,eAAe;IAA1D;;QAaC,2BAAsB,GAAa,IAAI,CAAC;IAKzC,CAAC;CAAA;AAlBD,sDAkBC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAoBxD;AApBD,oDAoBC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAA0B,SAAQ,iCAAmB;CAYjE;AAZD,8DAYC"}
@@ -0,0 +1,10 @@
1
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { Facility } from '../../facilities/entities/Facility';
3
+ import { GlCode } from './gl-code';
4
+ export declare class GlCodeToFacility extends BondBaseEntity {
5
+ glCodeId: number;
6
+ facilityId: number;
7
+ deletedAt?: Date;
8
+ facility: Facility;
9
+ glCode: GlCode;
10
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlCodeToFacility = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class GlCodeToFacility extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.GlCodeToFacility = GlCodeToFacility;
8
+ //# sourceMappingURL=gl-code-to-facility.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gl-code-to-facility.entity.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code-to-facility.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAK7D,MAAa,gBAAiB,SAAQ,+BAAc;CAUnD;AAVD,4CAUC"}
@@ -1,6 +1,7 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
2
  import { ActivityEnum, ProductTypesEnum } from '../../services/enums.service';
3
3
  import { GlResourceTypeEnum } from '../types/enums/gl-code.enum';
4
+ import { GlCodeToFacility } from './gl-code-to-facility.entity';
4
5
  import { GlType } from './gl-type';
5
6
  export declare class GlCode extends OrganizationConnectionBaseEntity {
6
7
  code: string;
@@ -11,5 +12,6 @@ export declare class GlCode extends OrganizationConnectionBaseEntity {
11
12
  deletedAt?: Date;
12
13
  glTypeId: number;
13
14
  glType: GlType;
15
+ glCodeToFacilities: GlCodeToFacility[];
14
16
  assignedResources?: number;
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,MAAO,SAAQ,mEAAgC;CAkB3D;AAlBD,wBAkBC"}
1
+ {"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,MAAO,SAAQ,mEAAgC;CAoB3D;AApBD,wBAoBC"}
@@ -1,3 +1,4 @@
1
+ export * from './gl-code-to-facility.entity';
1
2
  export * from './gl-code';
2
3
  export * from './gl-type';
3
4
  export * from './resource-to-gl';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./gl-code-to-facility.entity"), exports);
17
18
  __exportStar(require("./gl-code"), exports);
18
19
  __exportStar(require("./gl-type"), exports);
19
20
  __exportStar(require("./resource-to-gl"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
@@ -23,5 +23,6 @@ export declare enum GlCodeOrderByEnum {
23
23
  UPDATED_AT = "updatedAt"
24
24
  }
25
25
  export declare enum GlCodeExpandEnum {
26
- ASSIGNED_RESOURCES = "assignedResources"
26
+ ASSIGNED_RESOURCES = "assignedResources",
27
+ FACILITIES = "facilities"
27
28
  }
@@ -30,5 +30,6 @@ var GlCodeOrderByEnum;
30
30
  var GlCodeExpandEnum;
31
31
  (function (GlCodeExpandEnum) {
32
32
  GlCodeExpandEnum["ASSIGNED_RESOURCES"] = "assignedResources";
33
+ GlCodeExpandEnum["FACILITIES"] = "facilities";
33
34
  })(GlCodeExpandEnum = exports.GlCodeExpandEnum || (exports.GlCodeExpandEnum = {}));
34
35
  //# sourceMappingURL=gl-code.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC3B,4DAAwC,CAAA;AACzC,CAAC,EAFW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAE3B"}
1
+ {"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,4DAAwC,CAAA;IACxC,6CAAyB,CAAA;AAC1B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
@@ -1,12 +1,17 @@
1
1
  import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
2
2
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
3
3
  import { CreateResourceToGlDto } from '../../dto/resource-to-gl.dto';
4
+ import { GlCodeToFacility } from '../../entities/gl-code-to-facility.entity';
4
5
  import { ResourceToGL } from '../../entities/resource-to-gl';
5
6
  import { GlCodeExpandEnum, GlCodeOrderByEnum, GlResourceTypeEnum } from '../enums/gl-code.enum';
6
7
  export interface filterExistingGlsResult {
7
8
  deleteResourceToGlsIds: number[];
8
9
  newResourceToGls: CreateResourceToGlDto[];
9
10
  }
11
+ export interface IGlCodeFacilityConnectionsDiff {
12
+ connectionIdsToRemove: number[];
13
+ connectionsToAdd: GlCodeToFacility[];
14
+ }
10
15
  export interface IResourcesGLsResult {
11
16
  organizationId: number;
12
17
  resourceId: number;
@@ -15,6 +20,7 @@ export interface IResourcesGLsResult {
15
20
  }
16
21
  export interface IGlCodesFilters extends IPagination {
17
22
  expand?: GlCodeExpandEnum[];
23
+ facilitiesIds?: number[];
18
24
  glTypeIds?: number[];
19
25
  labels?: string[];
20
26
  order?: OrderByEnum;
@@ -38,6 +38,7 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
38
38
  hasDueDate?: boolean;
39
39
  isOverdue?: boolean;
40
40
  platforms?: PlatformsEnum[];
41
+ facilitiesIds?: number[];
41
42
  createdAtFrom?: Date;
42
43
  createdAtTo?: Date;
43
44
  dueDateFrom?: Date;
@@ -46,6 +47,7 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
46
47
  }
47
48
  export declare class OrganizationInvoiceDto {
48
49
  invoiceId: number;
50
+ facilityIds: number[];
49
51
  payingUserName?: string;
50
52
  payingUserId: number;
51
53
  payingUserEmail?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAI9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;CAwB1G;AAxBD,0EAwBC;AAED,MAAa,sBAAsB;CAoClC;AApCD,wDAoCC"}
1
+ {"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAK9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;CA0B1G;AA1BD,0EA0BC;AAED,MAAa,sBAAsB;CAsClC;AAtCD,wDAsCC"}
@@ -10,6 +10,7 @@ import { RefundDto } from '../../dto/refund.dto';
10
10
  import { Payment } from '../../entities/Payment';
11
11
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
12
12
  import { RefundBuilderErrorCodesEnum, RefundTypeEnum } from '../enums/refund.enums';
13
+ import { ISaveCardTerminalInput } from './user-payment-method.interfaces';
13
14
  export declare class PaymentResult {
14
15
  paymentMethodId: string;
15
16
  paymentMethodType: PaymentMethodTypeEnum;
@@ -183,3 +184,15 @@ export interface IHandleDisputeClosedLostParams {
183
184
  export interface IRefundPaymentOptions {
184
185
  isFullDisputeLoss?: boolean;
185
186
  }
187
+ /**
188
+ * Params for creating a Stripe PaymentIntent when amount (dollars, fees included) and bondFee are already calculated.
189
+ */
190
+ export interface ICreatePaymentIntentParams {
191
+ amount: number;
192
+ bondFee: number;
193
+ cardSaveTerminalData?: ISaveCardTerminalInput;
194
+ customer: string;
195
+ payment_method?: string;
196
+ payment_method_types: string[];
197
+ setup_future_usage?: 'off_session';
198
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAiBA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAiBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
1
+ {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAmBA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAiBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
@@ -230,28 +230,6 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
230
230
  };
231
231
  resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
232
232
  approvalRequired?: boolean;
233
- allowResourceSelection?: boolean;
234
- prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
235
- bookingDurations?: {
236
- minDuration?: {
237
- amount?: number;
238
- unit?: TimeUnit;
239
- };
240
- maxDuration?: {
241
- amount?: number;
242
- unit?: TimeUnit;
243
- };
244
- durationStep?: {
245
- amount?: number;
246
- unit?: TimeUnit;
247
- };
248
- defaultDuration?: {
249
- amount?: number;
250
- unit?: TimeUnit;
251
- };
252
- };
253
- slotStartTime?: number;
254
- allowOverlappingStartTimes?: boolean;
255
233
  memberships?: [{
256
234
  name?: string;
257
235
  id?: string;
@@ -277,49 +255,49 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
277
255
  unit?: TimeUnit;
278
256
  };
279
257
  }[]];
280
- }, {
281
- default?: {
282
- advanceBookingWindow?: {
258
+ allowResourceSelection?: boolean;
259
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
260
+ bookingDurations?: {
261
+ minDuration?: {
283
262
  amount?: number;
284
263
  unit?: TimeUnit;
285
264
  };
286
- minimumBookingNotice?: {
265
+ maxDuration?: {
287
266
  amount?: number;
288
267
  unit?: TimeUnit;
289
268
  };
290
- maxBookingHours?: {
269
+ durationStep?: {
291
270
  amount?: number;
292
271
  unit?: TimeUnit;
293
272
  };
294
- maxSequentialBookings?: {
273
+ defaultDuration?: {
295
274
  amount?: number;
296
275
  unit?: TimeUnit;
297
276
  };
298
277
  };
299
- resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
300
- approvalRequired?: boolean;
301
- allowResourceSelection?: boolean;
302
- prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
303
- bookingDurations?: {
304
- minDuration?: {
278
+ slotStartTime?: number;
279
+ allowOverlappingStartTimes?: boolean;
280
+ }, {
281
+ default?: {
282
+ advanceBookingWindow?: {
305
283
  amount?: number;
306
284
  unit?: TimeUnit;
307
285
  };
308
- maxDuration?: {
286
+ minimumBookingNotice?: {
309
287
  amount?: number;
310
288
  unit?: TimeUnit;
311
289
  };
312
- durationStep?: {
290
+ maxBookingHours?: {
313
291
  amount?: number;
314
292
  unit?: TimeUnit;
315
293
  };
316
- defaultDuration?: {
294
+ maxSequentialBookings?: {
317
295
  amount?: number;
318
296
  unit?: TimeUnit;
319
297
  };
320
298
  };
321
- slotStartTime?: number;
322
- allowOverlappingStartTimes?: boolean;
299
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
300
+ approvalRequired?: boolean;
323
301
  memberships?: [{
324
302
  name?: string;
325
303
  id?: string;
@@ -345,6 +323,28 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
345
323
  unit?: TimeUnit;
346
324
  };
347
325
  }[]];
326
+ allowResourceSelection?: boolean;
327
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
328
+ bookingDurations?: {
329
+ minDuration?: {
330
+ amount?: number;
331
+ unit?: TimeUnit;
332
+ };
333
+ maxDuration?: {
334
+ amount?: number;
335
+ unit?: TimeUnit;
336
+ };
337
+ durationStep?: {
338
+ amount?: number;
339
+ unit?: TimeUnit;
340
+ };
341
+ defaultDuration?: {
342
+ amount?: number;
343
+ unit?: TimeUnit;
344
+ };
345
+ };
346
+ slotStartTime?: number;
347
+ allowOverlappingStartTimes?: boolean;
348
348
  }>;
349
349
  declare const _GOODS_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
350
350
  colorCodeId: z.ZodNullable<z.ZodNumber>;
@@ -6,3 +6,9 @@ export interface IGetSourceProductDataResponse {
6
6
  glCodes: ResourceGLsResponseDto[];
7
7
  resourceSettings: ResourceSetting[];
8
8
  }
9
+ export interface ICreateProductOptions {
10
+ skipGls?: boolean;
11
+ skipResources?: boolean;
12
+ skipEntitlements?: boolean;
13
+ skipPaymentPlans?: boolean;
14
+ }
@@ -6,6 +6,7 @@ import { ProductsUsers } from '../../entity/ProductsUsers';
6
6
  import { FindOrCreateFolderDto } from '../../folders/dto/folder.dto';
7
7
  import { InvoiceCartDto } from '../../invoice/dto/invoice.dto';
8
8
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
9
+ import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
9
10
  import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
10
11
  import { Payment } from '../../payment/entities/Payment';
11
12
  import { AllowRedisplayEnum, FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
@@ -18,6 +19,7 @@ export declare class PurchasePaymentDto implements IPurchasePayment {
18
19
  paymentMethodId?: number;
19
20
  applyForFuture?: boolean;
20
21
  allowRedisplay?: AllowRedisplayEnum;
22
+ cardSaveTerminalData?: SaveCardTerminalInputDto;
21
23
  }
22
24
  export declare class ChargeRentalsReuqestDto {
23
25
  organizationId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAkBlD;AAlBD,0CAkBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAgB9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAkBlD;AAlBD,0CAkBC"}
@@ -11,6 +11,7 @@ import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
11
11
  import { Payment } from '../../../payment/entities/Payment';
12
12
  import { FuturePaymentStatusEnum, PaymentMethodTypeEnum } from '../../../payment/types/enums/payment.enums';
13
13
  import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
14
+ import { ISaveCardTerminalInput } from '../../../payment/types/interfaces/user-payment-method.interfaces';
14
15
  import { Product } from '../../../product-pricing/entities/product.entity';
15
16
  import { IResource } from '../../../product-pricing/types/interfaces/product-resource.interfaces';
16
17
  import { UserPunchPass } from '../../../punch-pass/entities';
@@ -85,6 +86,7 @@ export interface IPurchasePayment {
85
86
  applyForFuture?: boolean;
86
87
  token?: string;
87
88
  type: PaymentMethodTypeEnum;
89
+ cardSaveTerminalData?: ISaveCardTerminalInput;
88
90
  }
89
91
  export interface IPaymentMethodInfo {
90
92
  payingUserId?: number;
@@ -7,6 +7,7 @@ export declare const STRIPE_PAYMENT_INTENT_UNEXPECTED_STATE_CODE = "payment_inte
7
7
  export declare const STRIPE_TERMINAL_READER_BUSY_CODE = "terminal_reader_busy";
8
8
  export declare const STRIPE_TERMINAL_READER_OFFLINE_CODE = "terminal_reader_offline";
9
9
  export declare const STRIPE_TERMINAL_READER_TIMEOUT_CODE = "terminal_reader_timeout";
10
+ export declare const DEFAULT_TERMINAL_PAYMENT_METHOD_TYPE = "card_present";
10
11
  /**
11
12
  * Statuses a PaymentIntent may hold when it is handed to a reader for `process_payment_intent`.
12
13
  * A declined charge returns the intent to `requires_payment_method`, so retries stay dispatchable,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DISPATCHABLE_PAYMENT_INTENT_STATUSES = exports.STRIPE_TERMINAL_READER_TIMEOUT_CODE = exports.STRIPE_TERMINAL_READER_OFFLINE_CODE = exports.STRIPE_TERMINAL_READER_BUSY_CODE = exports.STRIPE_PAYMENT_INTENT_UNEXPECTED_STATE_CODE = exports.LOCK_TTL_MS = exports.GHOST_CANCEL_RETRY_COOLDOWN_MS = exports.GHOST_CANCEL_TTL_SECONDS = exports.ACTIVE_ACTION_TTL_SECONDS = void 0;
3
+ exports.DISPATCHABLE_PAYMENT_INTENT_STATUSES = exports.DEFAULT_TERMINAL_PAYMENT_METHOD_TYPE = exports.STRIPE_TERMINAL_READER_TIMEOUT_CODE = exports.STRIPE_TERMINAL_READER_OFFLINE_CODE = exports.STRIPE_TERMINAL_READER_BUSY_CODE = exports.STRIPE_PAYMENT_INTENT_UNEXPECTED_STATE_CODE = exports.LOCK_TTL_MS = exports.GHOST_CANCEL_RETRY_COOLDOWN_MS = exports.GHOST_CANCEL_TTL_SECONDS = exports.ACTIVE_ACTION_TTL_SECONDS = void 0;
4
4
  exports.ACTIVE_ACTION_TTL_SECONDS = 300;
5
5
  exports.GHOST_CANCEL_TTL_SECONDS = 300;
6
6
  exports.GHOST_CANCEL_RETRY_COOLDOWN_MS = 30000;
@@ -9,6 +9,7 @@ exports.STRIPE_PAYMENT_INTENT_UNEXPECTED_STATE_CODE = 'payment_intent_unexpected
9
9
  exports.STRIPE_TERMINAL_READER_BUSY_CODE = 'terminal_reader_busy';
10
10
  exports.STRIPE_TERMINAL_READER_OFFLINE_CODE = 'terminal_reader_offline';
11
11
  exports.STRIPE_TERMINAL_READER_TIMEOUT_CODE = 'terminal_reader_timeout';
12
+ exports.DEFAULT_TERMINAL_PAYMENT_METHOD_TYPE = 'card_present';
12
13
  /**
13
14
  * Statuses a PaymentIntent may hold when it is handed to a reader for `process_payment_intent`.
14
15
  * A declined charge returns the intent to `requires_payment_method`, so retries stay dispatchable,
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-action.consts.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/consts/terminal-action.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAG,GAAG,CAAC;AAEhC,QAAA,wBAAwB,GAAG,GAAG,CAAC;AAE/B,QAAA,8BAA8B,GAAG,KAAM,CAAC;AAExC,QAAA,WAAW,GAAG,KAAM,CAAC;AAErB,QAAA,2CAA2C,GAAG,iCAAiC,CAAC;AAEhF,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAE1D,QAAA,mCAAmC,GAAG,yBAAyB,CAAC;AAEhE,QAAA,mCAAmC,GAAG,yBAAyB,CAAC;AAE7E;;;;;GAKG;AACU,QAAA,oCAAoC,GAA6C,IAAI,GAAG,CAAC;IACrG,yBAAyB;IACzB,uBAAuB;CACvB,CAAC,CAAC"}
1
+ {"version":3,"file":"terminal-action.consts.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/consts/terminal-action.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAG,GAAG,CAAC;AAEhC,QAAA,wBAAwB,GAAG,GAAG,CAAC;AAE/B,QAAA,8BAA8B,GAAG,KAAM,CAAC;AAExC,QAAA,WAAW,GAAG,KAAM,CAAC;AAErB,QAAA,2CAA2C,GAAG,iCAAiC,CAAC;AAEhF,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAE1D,QAAA,mCAAmC,GAAG,yBAAyB,CAAC;AAEhE,QAAA,mCAAmC,GAAG,yBAAyB,CAAC;AAEhE,QAAA,oCAAoC,GAAG,cAAc,CAAC;AAEnE;;;;;GAKG;AACU,QAAA,oCAAoC,GAA6C,IAAI,GAAG,CAAC;IACrG,yBAAyB;IACzB,uBAAuB;CACvB,CAAC,CAAC"}
@@ -15,9 +15,10 @@ export declare enum TerminalActionErrorCodeEnum {
15
15
  TERMINAL_OVERRIDE_FAILED = "TERMINAL_OVERRIDE_FAILED"
16
16
  }
17
17
  /**
18
- * Result of a best-effort PaymentIntent cancel. `NOT_CANCELABLE` covers both "there was no intent to
19
- * cancel" and "Stripe refused because it already settled": in either case no cancelable intent is
20
- * left behind, which is what callers deciding whether to retain recovery state care about.
18
+ * Result of a best-effort PaymentIntent cancel. `NOT_CANCELABLE` covers "there was no intent to
19
+ * cancel", "Stripe refused because it already settled", and intentional skips (e.g. the displaced
20
+ * target is the same PaymentIntent the caller is about to re-dispatch): in every case no cancelable
21
+ * intent is left behind orphaned, which is what callers deciding whether to retain recovery state care about.
21
22
  */
22
23
  export declare enum TerminalPaymentIntentCancelOutcomeEnum {
23
24
  CANCELED = "canceled",
@@ -21,9 +21,10 @@ var TerminalActionErrorCodeEnum;
21
21
  TerminalActionErrorCodeEnum["TERMINAL_OVERRIDE_FAILED"] = "TERMINAL_OVERRIDE_FAILED";
22
22
  })(TerminalActionErrorCodeEnum = exports.TerminalActionErrorCodeEnum || (exports.TerminalActionErrorCodeEnum = {}));
23
23
  /**
24
- * Result of a best-effort PaymentIntent cancel. `NOT_CANCELABLE` covers both "there was no intent to
25
- * cancel" and "Stripe refused because it already settled": in either case no cancelable intent is
26
- * left behind, which is what callers deciding whether to retain recovery state care about.
24
+ * Result of a best-effort PaymentIntent cancel. `NOT_CANCELABLE` covers "there was no intent to
25
+ * cancel", "Stripe refused because it already settled", and intentional skips (e.g. the displaced
26
+ * target is the same PaymentIntent the caller is about to re-dispatch): in every case no cancelable
27
+ * intent is left behind orphaned, which is what callers deciding whether to retain recovery state care about.
27
28
  */
28
29
  var TerminalPaymentIntentCancelOutcomeEnum;
29
30
  (function (TerminalPaymentIntentCancelOutcomeEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-action.enums.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/enums/terminal-action.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6DAA2B,CAAA;IAC3B,qDAAmB,CAAA;IACnB,uDAAqB,CAAA;AACtB,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAChD,oEAA2B,CAAA;IAC3B,4DAAmB,CAAA;AACpB,CAAC,EAHW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAGhD;AAED,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACtC,4EAA6C,CAAA;IAC7C,kFAAmD,CAAA;IACnD,kFAAmD,CAAA;IACnD,8FAA+D,CAAA;IAC/D,oFAAqD,CAAA;AACtD,CAAC,EANW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAMtC;AAED;;;;GAIG;AACH,IAAY,sCAIX;AAJD,WAAY,sCAAsC;IACjD,+DAAqB,CAAA;IACrB,2EAAiC,CAAA;IACjC,2DAAiB,CAAA;AAClB,CAAC,EAJW,sCAAsC,GAAtC,8CAAsC,KAAtC,8CAAsC,QAIjD;AAED,IAAY,iCAIX;AAJD,WAAY,iCAAiC;IAC5C,4FAAuD,CAAA;IACvD,oEAA+B,CAAA;IAC/B,wEAAmC,CAAA;AACpC,CAAC,EAJW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAI5C;AAED,IAAY,2BAEX;AAFD,WAAY,2BAA2B;IACtC,kEAAmC,CAAA;AACpC,CAAC,EAFW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAEtC"}
1
+ {"version":3,"file":"terminal-action.enums.js","sourceRoot":"","sources":["../../../../../src/types/terminal/types/enums/terminal-action.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6DAA2B,CAAA;IAC3B,qDAAmB,CAAA;IACnB,uDAAqB,CAAA;AACtB,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAChD,oEAA2B,CAAA;IAC3B,4DAAmB,CAAA;AACpB,CAAC,EAHW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAGhD;AAED,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACtC,4EAA6C,CAAA;IAC7C,kFAAmD,CAAA;IACnD,kFAAmD,CAAA;IACnD,8FAA+D,CAAA;IAC/D,oFAAqD,CAAA;AACtD,CAAC,EANW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAMtC;AAED;;;;;GAKG;AACH,IAAY,sCAIX;AAJD,WAAY,sCAAsC;IACjD,+DAAqB,CAAA;IACrB,2EAAiC,CAAA;IACjC,2DAAiB,CAAA;AAClB,CAAC,EAJW,sCAAsC,GAAtC,8CAAsC,KAAtC,8CAAsC,QAIjD;AAED,IAAY,iCAIX;AAJD,WAAY,iCAAiC;IAC5C,4FAAuD,CAAA;IACvD,oEAA+B,CAAA;IAC/B,wEAAmC,CAAA;AACpC,CAAC,EAJW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAI5C;AAED,IAAY,2BAEX;AAFD,WAAY,2BAA2B;IACtC,kEAAmC,CAAA;AACpC,CAAC,EAFW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAEtC"}
@@ -71,6 +71,8 @@ export interface IExecuteActionTriggerParams {
71
71
  dispatch: (readerId: string) => Promise<TerminalActionResponseDto>;
72
72
  force?: boolean;
73
73
  logTemplates: IActionLogTemplates;
74
+ /** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
75
+ reservedTargetId?: string | null;
74
76
  }
75
77
  export interface IForceActionTriggerParams extends IExecuteActionTriggerParams {
76
78
  startedAt: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.90",
3
+ "version": "2.4.91-a-1",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {