@d19n/youfibre-odin-sdk 1.0.124-beta.3 → 1.0.124

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 (113) hide show
  1. package/dist/actions-v2/AddressUpdateDto.d.ts +3 -2
  2. package/dist/actions-v2/CancelOrderPreInstallDto.js +1 -1
  3. package/dist/actions-v2/CreateContactDto.d.ts +1 -0
  4. package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +1 -0
  5. package/dist/actions-v2/CreatePicRequestDto.js +1 -1
  6. package/dist/actions-v2/CreateProductComponentDto.d.ts +24 -0
  7. package/dist/actions-v2/CreateProductComponentDto.js +16 -0
  8. package/dist/actions-v2/EscalateCaseActionDto.d.ts +0 -1
  9. package/dist/actions-v2/EscalateCaseTransitionDto.d.ts +13 -4
  10. package/dist/actions-v2/EscalateCaseTransitionDto.js +13 -2
  11. package/dist/actions-v2/UpdateProductComponentDto.d.ts +25 -0
  12. package/dist/actions-v2/UpdateProductComponentDto.js +12 -0
  13. package/dist/api-sdk-v2/CaseApi.d.ts +1 -3
  14. package/dist/api-sdk-v2/CaseApi.js +1 -3
  15. package/dist/api-sdk-v2/ContactApi.d.ts +1 -7
  16. package/dist/api-sdk-v2/ContactApi.js +1 -7
  17. package/dist/api-sdk-v2/NoteApi.js +1 -1
  18. package/dist/api-sdk-v2/OrderApi.js +1 -1
  19. package/dist/api-sdk-v2/OutageCaseApi.d.ts +1 -3
  20. package/dist/api-sdk-v2/OutageCaseApi.js +1 -3
  21. package/dist/api-sdk-v2/{PicRequestApi.d.ts → PICRequestApi.d.ts} +6 -6
  22. package/dist/api-sdk-v2/{PicRequestApi.js → PICRequestApi.js} +6 -6
  23. package/dist/db-sdk-v2/CaseDb.d.ts +1 -3
  24. package/dist/db-sdk-v2/CaseDb.js +1 -3
  25. package/dist/db-sdk-v2/ContactDb.d.ts +1 -7
  26. package/dist/db-sdk-v2/ContactDb.js +1 -7
  27. package/dist/db-sdk-v2/NoteDb.js +1 -1
  28. package/dist/db-sdk-v2/OrderDb.js +1 -1
  29. package/dist/db-sdk-v2/{PicRequestDb.d.ts → PICRequestDb.d.ts} +6 -6
  30. package/dist/db-sdk-v2/{PicRequestDb.js → PICRequestDb.js} +6 -6
  31. package/dist/entities-v2/Address.d.ts +2 -2
  32. package/dist/entities-v2/Address.js +1 -1
  33. package/dist/entities-v2/Case.d.ts +2 -3
  34. package/dist/entities-v2/Case.js +1 -1
  35. package/dist/entities-v2/Contact.d.ts +3 -3
  36. package/dist/entities-v2/Contact.js +3 -3
  37. package/dist/entities-v2/Conversation.d.ts +12 -11
  38. package/dist/entities-v2/Conversation.js +12 -11
  39. package/dist/entities-v2/FinanceServiceAppointmentConfig.d.ts +2 -2
  40. package/dist/entities-v2/FinanceServiceAppointmentConfig.js +1 -1
  41. package/dist/entities-v2/InspectionServiceAppointmentConfig.d.ts +2 -2
  42. package/dist/entities-v2/InspectionServiceAppointmentConfig.js +1 -1
  43. package/dist/entities-v2/InstallServiceAppointmentConfig.d.ts +2 -2
  44. package/dist/entities-v2/InstallServiceAppointmentConfig.js +1 -1
  45. package/dist/entities-v2/InstallServiceServiceAppointmentConfig.d.ts +2 -2
  46. package/dist/entities-v2/InstallServiceServiceAppointmentConfig.js +1 -1
  47. package/dist/entities-v2/NetworkAdjustmentServiceAppointmentConfig.d.ts +2 -2
  48. package/dist/entities-v2/NetworkAdjustmentServiceAppointmentConfig.js +1 -1
  49. package/dist/entities-v2/Note.d.ts +2 -2
  50. package/dist/entities-v2/Order.d.ts +2 -2
  51. package/dist/entities-v2/OutageCase.d.ts +2 -2
  52. package/dist/entities-v2/OutageCase.js +1 -1
  53. package/dist/entities-v2/{PicRequest.d.ts → PICRequest.d.ts} +18 -18
  54. package/dist/entities-v2/PICRequest.js +51 -0
  55. package/dist/entities-v2/PlanningServiceAppointmentConfig.d.ts +2 -2
  56. package/dist/entities-v2/PlanningServiceAppointmentConfig.js +1 -1
  57. package/dist/entities-v2/PrePullServiceAppointmentConfig.d.ts +2 -2
  58. package/dist/entities-v2/PrePullServiceAppointmentConfig.js +1 -1
  59. package/dist/entities-v2/ProductComponent.d.ts +2 -0
  60. package/dist/entities-v2/ProductComponent.js +1 -0
  61. package/dist/entities-v2/RemediationServiceAppointmentConfig.d.ts +2 -2
  62. package/dist/entities-v2/RemediationServiceAppointmentConfig.js +1 -1
  63. package/dist/entities-v2/ServiceAppointmentConfig.d.ts +2 -2
  64. package/dist/entities-v2/ServiceAppointmentConfig.js +1 -1
  65. package/dist/entities-v2/ServiceServiceAppointmentConfig.d.ts +2 -2
  66. package/dist/entities-v2/ServiceServiceAppointmentConfig.js +1 -1
  67. package/dist/entities-v2/WayleaveServiceAppointmentConfig.d.ts +2 -2
  68. package/dist/entities-v2/WayleaveServiceAppointmentConfig.js +1 -1
  69. package/dist/types-v1/Types.d.ts +4 -4
  70. package/dist/types-v1/Types.js +4 -4
  71. package/package.json +1 -1
  72. package/src/actions-v2/AddressUpdateDto.ts +3 -2
  73. package/src/actions-v2/CancelOrderPreInstallDto.ts +1 -1
  74. package/src/actions-v2/CreateContactDto.ts +1 -0
  75. package/src/actions-v2/CreateLeadFromAddressDto.ts +1 -0
  76. package/src/actions-v2/CreatePicRequestDto.ts +1 -1
  77. package/src/actions-v2/CreateProductComponentDto.ts +36 -0
  78. package/src/actions-v2/EscalateCaseActionDto.ts +0 -1
  79. package/src/actions-v2/EscalateCaseTransitionDto.ts +22 -2
  80. package/src/actions-v2/UpdateProductComponentDto.ts +32 -0
  81. package/src/api-sdk-v2/CaseApi.ts +4 -18
  82. package/src/api-sdk-v2/ContactApi.ts +7 -49
  83. package/src/api-sdk-v2/NoteApi.ts +1 -1
  84. package/src/api-sdk-v2/OrderApi.ts +1 -1
  85. package/src/api-sdk-v2/OutageCaseApi.ts +3 -17
  86. package/src/api-sdk-v2/{PicRequestApi.ts → PICRequestApi.ts} +9 -9
  87. package/src/db-sdk-v2/CaseDb.ts +3 -19
  88. package/src/db-sdk-v2/ContactDb.ts +8 -56
  89. package/src/db-sdk-v2/NoteDb.ts +1 -1
  90. package/src/db-sdk-v2/OrderDb.ts +1 -1
  91. package/src/db-sdk-v2/{PicRequestDb.ts → PICRequestDb.ts} +9 -9
  92. package/src/entities-v2/Address.ts +3 -3
  93. package/src/entities-v2/Case.ts +1 -3
  94. package/src/entities-v2/Contact.ts +3 -3
  95. package/src/entities-v2/Conversation.ts +12 -11
  96. package/src/entities-v2/FinanceServiceAppointmentConfig.ts +3 -3
  97. package/src/entities-v2/InspectionServiceAppointmentConfig.ts +3 -3
  98. package/src/entities-v2/InstallServiceAppointmentConfig.ts +3 -3
  99. package/src/entities-v2/InstallServiceServiceAppointmentConfig.ts +3 -3
  100. package/src/entities-v2/NetworkAdjustmentServiceAppointmentConfig.ts +3 -3
  101. package/src/entities-v2/Note.ts +2 -2
  102. package/src/entities-v2/Order.ts +2 -2
  103. package/src/entities-v2/OutageCase.ts +1 -1
  104. package/src/entities-v2/{PicRequest.ts → PICRequest.ts} +18 -18
  105. package/src/entities-v2/PlanningServiceAppointmentConfig.ts +3 -3
  106. package/src/entities-v2/PrePullServiceAppointmentConfig.ts +3 -3
  107. package/src/entities-v2/ProductComponent.ts +3 -0
  108. package/src/entities-v2/RemediationServiceAppointmentConfig.ts +3 -3
  109. package/src/entities-v2/ServiceAppointmentConfig.ts +3 -3
  110. package/src/entities-v2/ServiceServiceAppointmentConfig.ts +3 -3
  111. package/src/entities-v2/WayleaveServiceAppointmentConfig.ts +3 -3
  112. package/src/types-v1/Types.ts +4 -4
  113. package/dist/entities-v2/PicRequest.js +0 -51
@@ -2,10 +2,11 @@ import { OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitm
2
2
  import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
3
3
  import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
4
4
  interface AddressUpdateProperties {
5
+ Sprn: number;
5
6
  ExPolygonId?: number;
6
- SalesStatus?: string;
7
- Classification?: string;
8
7
  L2PolygonId?: number;
8
+ SalesStatus?: string;
9
+ AddressLine1?: string;
9
10
  }
10
11
  export declare class AddressUpdateDto extends OdinRecordUpdateDto {
11
12
  readonly actionName: string;
@@ -5,7 +5,7 @@ const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
5
  class CreatePicRequestDto extends odin_dtos_1.OdinRecordCreateDto {
6
6
  constructor(properties) {
7
7
  super({
8
- entity: 'OrderModule:PicRequest',
8
+ entity: 'OrderModule:PICRequest',
9
9
  type: 'DEFAULT',
10
10
  properties
11
11
  });
@@ -4,6 +4,7 @@ interface CreateContactProperties {
4
4
  FirstName: string;
5
5
  LastName: string;
6
6
  EmailAddress: string;
7
+ MarketingConsent?: boolean;
7
8
  }
8
9
  export declare class CreateContactDto extends OdinRecordCreateDto {
9
10
  readonly actionName: string;
@@ -16,6 +16,7 @@ interface CreateContactProperties {
16
16
  FirstName: string;
17
17
  LastName: string;
18
18
  EmailAddress: string;
19
+ MarketingConsent?: boolean;
19
20
  }
20
21
  export declare class CreateContactDto extends OdinRecordCreateDto {
21
22
  readonly actionName: string;
@@ -5,7 +5,7 @@ const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
5
  class CreatePicRequestDto extends odin_dtos_1.OdinRecordCreateDto {
6
6
  constructor(properties) {
7
7
  super({
8
- entity: 'OrderModule:PicRequest',
8
+ entity: 'OrderModule:PICRequest',
9
9
  type: 'DEFAULT',
10
10
  properties
11
11
  });
@@ -0,0 +1,24 @@
1
+ import { OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
2
+ import { OdinRecordCreateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
3
+ interface CreateProductComponentProperties {
4
+ Type: string;
5
+ Category: string;
6
+ RequiresProvisioning: string;
7
+ RequiresOnSiteSetup: string;
8
+ Shippable: string;
9
+ AvailableFrom: Date;
10
+ UnitPrice: number;
11
+ UnitCost: number;
12
+ MinimumSalePrice: number;
13
+ Description?: string;
14
+ AvailableTo?: Date;
15
+ Title?: string;
16
+ }
17
+ export declare class CreateProductComponentDto extends OdinRecordCreateDto {
18
+ readonly actionName: string;
19
+ constructor(properties: CreateProductComponentProperties);
20
+ }
21
+ export interface CreateProductComponentMessage extends OdinRecordCreatedEvent<CreateProductComponentDto, CreateProductComponentProperties> {
22
+ }
23
+ export declare const ROUTING_KEY_CREATE_PRODUCT_COMPONENT = "CreateProductComponentEvent";
24
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROUTING_KEY_CREATE_PRODUCT_COMPONENT = exports.CreateProductComponentDto = void 0;
4
+ const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
+ class CreateProductComponentDto extends odin_dtos_1.OdinRecordCreateDto {
6
+ constructor(properties) {
7
+ super({
8
+ entity: 'ProductModule:ProductComponent',
9
+ type: null,
10
+ properties
11
+ });
12
+ this.actionName = 'CreateProductComponent';
13
+ }
14
+ }
15
+ exports.CreateProductComponentDto = CreateProductComponentDto;
16
+ exports.ROUTING_KEY_CREATE_PRODUCT_COMPONENT = 'CreateProductComponentEvent';
@@ -3,7 +3,6 @@ import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
3
3
  import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
4
4
  interface EscalateCaseActionProperties {
5
5
  TeamId: string;
6
- EscalationNote: string;
7
6
  }
8
7
  export declare class EscalateCaseActionDto extends OdinRecordUpdateDto {
9
8
  readonly actionName: string;
@@ -1,9 +1,8 @@
1
- import { OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
2
- import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
1
+ import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
2
+ import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
3
3
  import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
4
4
  interface EscalateCaseActionProperties {
5
5
  TeamId: string;
6
- EscalationNote: string;
7
6
  }
8
7
  export declare class EscalateCaseActionDto extends OdinRecordUpdateDto {
9
8
  readonly actionName: string;
@@ -11,6 +10,15 @@ export declare class EscalateCaseActionDto extends OdinRecordUpdateDto {
11
10
  }
12
11
  export interface EscalateCaseActionMessage extends OdinRecordUpdatedEvent<EscalateCaseActionDto, EscalateCaseActionProperties> {
13
12
  }
13
+ interface CreateNoteForCaseAssignmentProperties {
14
+ Body?: string;
15
+ }
16
+ export declare class CreateNoteForCaseAssignmentDto extends OdinRecordCreateDto {
17
+ readonly actionName: string;
18
+ constructor(properties: CreateNoteForCaseAssignmentProperties);
19
+ }
20
+ export interface CreateNoteForCaseAssignmentMessage extends OdinRecordCreatedEvent<CreateNoteForCaseAssignmentDto, CreateNoteForCaseAssignmentProperties> {
21
+ }
14
22
  interface RemoveAssignmentFromCaseProperties {
15
23
  OwnerId?: string;
16
24
  }
@@ -22,6 +30,7 @@ export interface RemoveAssignmentFromCaseMessage extends OdinRecordUpdatedEvent<
22
30
  }
23
31
  declare type StepClassMap = {
24
32
  EscalateCaseActionDto: EscalateCaseActionDto;
33
+ CreateNoteForCaseAssignmentDto: CreateNoteForCaseAssignmentDto;
25
34
  RemoveAssignmentFromCaseDto: RemoveAssignmentFromCaseDto;
26
35
  };
27
36
  export interface EscalateCaseTransitionMessage extends OdinRecordUpdatedEvent<EscalateCaseTransitionDto, {}> {
@@ -30,7 +39,7 @@ export declare class EscalateCaseTransitionDto extends OdinRecordUpdateDto {
30
39
  readonly actionName: string;
31
40
  readonly stageKey: string;
32
41
  constructor(record: OdinRecord<any>);
33
- static readonly stepClasses: readonly ["EscalateCaseActionDto", "RemoveAssignmentFromCaseDto"];
42
+ static readonly stepClasses: readonly ["EscalateCaseActionDto", "CreateNoteForCaseAssignmentDto", "RemoveAssignmentFromCaseDto"];
34
43
  steps: StepClassMap[(typeof EscalateCaseTransitionDto.stepClasses)[number]][];
35
44
  }
36
45
  export declare const ROUTING_KEY_ESCALATE_CASE_TRANSITION = "EscalateCaseTransitionEvent";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ROUTING_KEY_ESCALATE_CASE_TRANSITION = exports.EscalateCaseTransitionDto = exports.RemoveAssignmentFromCaseDto = exports.EscalateCaseActionDto = void 0;
3
+ exports.ROUTING_KEY_ESCALATE_CASE_TRANSITION = exports.EscalateCaseTransitionDto = exports.RemoveAssignmentFromCaseDto = exports.CreateNoteForCaseAssignmentDto = exports.EscalateCaseActionDto = void 0;
4
4
  const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
5
  class EscalateCaseActionDto extends odin_dtos_1.OdinRecordUpdateDto {
6
6
  constructor(record, properties) {
@@ -9,6 +9,17 @@ class EscalateCaseActionDto extends odin_dtos_1.OdinRecordUpdateDto {
9
9
  }
10
10
  }
11
11
  exports.EscalateCaseActionDto = EscalateCaseActionDto;
12
+ class CreateNoteForCaseAssignmentDto extends odin_dtos_1.OdinRecordCreateDto {
13
+ constructor(properties) {
14
+ super({
15
+ entity: 'SupportModule:Note',
16
+ type: 'DEFAULT',
17
+ properties
18
+ });
19
+ this.actionName = 'CreateNoteForCaseAssignment';
20
+ }
21
+ }
22
+ exports.CreateNoteForCaseAssignmentDto = CreateNoteForCaseAssignmentDto;
12
23
  class RemoveAssignmentFromCaseDto extends odin_dtos_1.OdinRecordUpdateDto {
13
24
  constructor(record, properties) {
14
25
  super(record, properties);
@@ -24,5 +35,5 @@ class EscalateCaseTransitionDto extends odin_dtos_1.OdinRecordUpdateDto {
24
35
  }
25
36
  }
26
37
  exports.EscalateCaseTransitionDto = EscalateCaseTransitionDto;
27
- EscalateCaseTransitionDto.stepClasses = ['EscalateCaseActionDto', 'RemoveAssignmentFromCaseDto'];
38
+ EscalateCaseTransitionDto.stepClasses = ['EscalateCaseActionDto', 'CreateNoteForCaseAssignmentDto', 'RemoveAssignmentFromCaseDto'];
28
39
  exports.ROUTING_KEY_ESCALATE_CASE_TRANSITION = 'EscalateCaseTransitionEvent';
@@ -0,0 +1,25 @@
1
+ import { OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
2
+ import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
3
+ import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
4
+ interface UpdateProductComponentProperties {
5
+ Type: string;
6
+ Category: string;
7
+ RequiresProvisioning: string;
8
+ RequiresOnSiteSetup: string;
9
+ Shippable: string;
10
+ AvailableFrom: Date;
11
+ UnitPrice: number;
12
+ UnitCost: number;
13
+ MinimumSalePrice: number;
14
+ Title?: string;
15
+ Description?: string;
16
+ AvailableTo?: Date;
17
+ }
18
+ export declare class UpdateProductComponentDto extends OdinRecordUpdateDto {
19
+ readonly actionName: string;
20
+ constructor(record: OdinRecord<any>, properties: UpdateProductComponentProperties);
21
+ }
22
+ export interface UpdateProductComponentMessage extends OdinRecordUpdatedEvent<UpdateProductComponentDto, UpdateProductComponentProperties> {
23
+ }
24
+ export declare const ROUTING_KEY_UPDATE_PRODUCT_COMPONENT = "UpdateProductComponentEvent";
25
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROUTING_KEY_UPDATE_PRODUCT_COMPONENT = exports.UpdateProductComponentDto = void 0;
4
+ const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
+ class UpdateProductComponentDto extends odin_dtos_1.OdinRecordUpdateDto {
6
+ constructor(record, properties) {
7
+ super(record, properties);
8
+ this.actionName = 'UpdateProductComponent';
9
+ }
10
+ }
11
+ exports.UpdateProductComponentDto = UpdateProductComponentDto;
12
+ exports.ROUTING_KEY_UPDATE_PRODUCT_COMPONENT = 'UpdateProductComponentEvent';
@@ -24,9 +24,7 @@ export declare class CaseApi extends ApiProvider {
24
24
  readonly workorder: ApiRecordLinkManager;
25
25
  readonly queue: ApiRecordLinkManager;
26
26
  readonly conversation: ApiRecordLinkManager;
27
- readonly case__case: ApiRecordLinkManager;
28
- readonly case__order: ApiRecordLinkManager;
29
- readonly case__caseaction: ApiRecordLinkManager;
27
+ readonly case: ApiRecordLinkManager;
30
28
  readonly file: ApiRecordLinkManager;
31
29
  readonly caseaction: ApiRecordLinkManager;
32
30
  readonly order: ApiRecordLinkManager;
@@ -33,9 +33,7 @@ class CaseApi extends api_provider_1.ApiProvider {
33
33
  this.workorder = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
34
34
  this.queue = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Queue', 'Queue__Case');
35
35
  this.conversation = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Conversation', 'Case_Conversation');
36
- this.case__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
37
- this.case__order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Order');
38
- this.case__caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__CaseAction');
36
+ this.case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
39
37
  this.file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SchemaModule:File', 'Case__File');
40
38
  this.caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:CaseAction', 'Case__CaseAction');
41
39
  this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:Order', 'Case__Order');
@@ -27,15 +27,9 @@ export declare class ContactApi extends ApiProvider {
27
27
  readonly workorder: ApiRecordLinkManager;
28
28
  readonly contactidentity: ApiRecordLinkManager;
29
29
  readonly order: ApiRecordLinkManager;
30
- readonly order__contact: ApiRecordLinkManager;
31
- readonly contact__billingrequest: ApiRecordLinkManager;
32
- readonly contact__file: ApiRecordLinkManager;
33
- readonly contact__contact: ApiRecordLinkManager;
34
- readonly case__contact: ApiRecordLinkManager;
35
- readonly email_contact: ApiRecordLinkManager;
36
- readonly onetouchswitch__contact: ApiRecordLinkManager;
37
30
  readonly billingrequest: ApiRecordLinkManager;
38
31
  readonly file: ApiRecordLinkManager;
32
+ readonly contact: ApiRecordLinkManager;
39
33
  readonly onetouchswitch: ApiRecordLinkManager;
40
34
  readonly case: ApiRecordLinkManager;
41
35
  readonly email: ApiRecordLinkManager;
@@ -36,15 +36,9 @@ class ContactApi extends api_provider_1.ApiProvider {
36
36
  this.workorder = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
37
37
  this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
38
38
  this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
39
- this.order__contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
40
- this.contact__billingrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__BillingRequest');
41
- this.contact__file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__File');
42
- this.contact__contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
43
- this.case__contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
44
- this.email_contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
45
- this.onetouchswitch__contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
46
39
  this.billingrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
47
40
  this.file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
41
+ this.contact = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
48
42
  this.onetouchswitch = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
49
43
  this.case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
50
44
  this.email = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
@@ -47,7 +47,7 @@ class NoteApi extends api_provider_1.ApiProvider {
47
47
  this.commission = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'BillingModule:Commission', 'Commission__Note');
48
48
  this.internalinstallaudit = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'FieldServiceModule:InternalInstallAudit', 'InternalInstallAudit_Note');
49
49
  this.churnrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'OrderModule:ChurnRequest', 'ChurnRequest__Note');
50
- this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'OrderModule:PicRequest', 'PICRequest__Note');
50
+ this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'OrderModule:PICRequest', 'PICRequest__Note');
51
51
  this.address = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'CrmModule:Address', 'Address__Note');
52
52
  this.creditnote = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'BillingModule:CreditNote', 'CreditNote__Note');
53
53
  this.paymentmethod = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Note', 'BillingModule:PaymentMethod', 'PaymentMethod__Note');
@@ -23,7 +23,7 @@ class OrderApi extends api_provider_1.ApiProvider {
23
23
  this.billingadjustment = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'OrderModule:BillingAdjustment', 'Order__BillingAdjustment');
24
24
  this.account = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'CrmModule:Account', 'Account__Order');
25
25
  this.commission = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'BillingModule:Commission', 'Order__Commission');
26
- this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'OrderModule:PicRequest', 'PICRequest__Order');
26
+ this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'OrderModule:PICRequest', 'PICRequest__Order');
27
27
  this.invoice = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'BillingModule:Invoice', 'Order__Invoice');
28
28
  this.orderitem = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'OrderModule:OrderItem', 'Order_OrderItem');
29
29
  this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:Order', 'CrmModule:PhoneNumber', 'Order__PhoneNumber');
@@ -25,9 +25,7 @@ export declare class OutageCaseApi extends ApiProvider {
25
25
  readonly workorder: ApiRecordLinkManager;
26
26
  readonly queue: ApiRecordLinkManager;
27
27
  readonly conversation: ApiRecordLinkManager;
28
- readonly case__case: ApiRecordLinkManager;
29
- readonly case__order: ApiRecordLinkManager;
30
- readonly case__caseaction: ApiRecordLinkManager;
28
+ readonly case: ApiRecordLinkManager;
31
29
  readonly file: ApiRecordLinkManager;
32
30
  readonly caseaction: ApiRecordLinkManager;
33
31
  readonly order: ApiRecordLinkManager;
@@ -34,9 +34,7 @@ class OutageCaseApi extends api_provider_1.ApiProvider {
34
34
  this.workorder = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
35
35
  this.queue = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Queue', 'Queue__Case');
36
36
  this.conversation = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Conversation', 'Case_Conversation');
37
- this.case__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
38
- this.case__order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Order');
39
- this.case__caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__CaseAction');
37
+ this.case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
40
38
  this.file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SchemaModule:File', 'Case__File');
41
39
  this.caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:CaseAction', 'Case__CaseAction');
42
40
  this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:Order', 'Case__Order');
@@ -3,8 +3,8 @@ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
3
  import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
4
4
  import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
5
5
  import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
6
- import { PicRequestProperties } from '../entities-v2/PicRequest';
7
- export declare class PicRequestApi extends ApiProvider {
6
+ import { PICRequestProperties } from '../entities-v2/PICRequest';
7
+ export declare class PICRequestApi extends ApiProvider {
8
8
  protected readonly authToken?: string;
9
9
  private readonly moduleName;
10
10
  private readonly entityName;
@@ -14,14 +14,14 @@ export declare class PicRequestApi extends ApiProvider {
14
14
  constructor(authParams?: OauthParams, authToken?: string);
15
15
  setRecord(sourceRecord: any): void;
16
16
  schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
17
- search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>>;
18
- searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>>;
17
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>>;
18
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>>;
19
19
  reIndex(body: {
20
20
  id: string;
21
21
  schemaId: string;
22
22
  }[]): Promise<any>;
23
- get(picRequestId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>;
24
- getMany(picRequestIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>[]>;
23
+ get(picRequestId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>;
24
+ getMany(picRequestIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>[]>;
25
25
  upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
26
26
  upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
27
27
  update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
@@ -9,17 +9,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PicRequestApi = void 0;
12
+ exports.PICRequestApi = void 0;
13
13
  const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
14
  const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
15
- class PicRequestApi extends api_provider_1.ApiProvider {
15
+ class PICRequestApi extends api_provider_1.ApiProvider {
16
16
  constructor(authParams, authToken) {
17
17
  super(authParams, authToken);
18
18
  this.authToken = authToken;
19
19
  this.moduleName = 'OrderModule';
20
- this.entityName = 'PicRequest';
21
- this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:PicRequest', 'OrderModule:Order', 'PICRequest__Order');
22
- this.note = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:PicRequest', 'SupportModule:Note', 'PICRequest__Note');
20
+ this.entityName = 'PICRequest';
21
+ this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:PICRequest', 'OrderModule:Order', 'PICRequest__Order');
22
+ this.note = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'OrderModule:PICRequest', 'SupportModule:Note', 'PICRequest__Note');
23
23
  }
24
24
  setRecord(sourceRecord) {
25
25
  this.sourceRecord = sourceRecord;
@@ -125,4 +125,4 @@ class PicRequestApi extends api_provider_1.ApiProvider {
125
125
  });
126
126
  }
127
127
  }
128
- exports.PicRequestApi = PicRequestApi;
128
+ exports.PICRequestApi = PICRequestApi;
@@ -24,9 +24,7 @@ export declare class CaseDb extends DbProvider {
24
24
  readonly workorder: DbRecordLinkManager;
25
25
  readonly queue: DbRecordLinkManager;
26
26
  readonly conversation: DbRecordLinkManager;
27
- readonly case__case: DbRecordLinkManager;
28
- readonly case__order: DbRecordLinkManager;
29
- readonly case__caseaction: DbRecordLinkManager;
27
+ readonly case: DbRecordLinkManager;
30
28
  readonly file: DbRecordLinkManager;
31
29
  readonly caseaction: DbRecordLinkManager;
32
30
  readonly order: DbRecordLinkManager;
@@ -34,9 +34,7 @@ class CaseDb extends db_provider_1.DbProvider {
34
34
  this.workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
35
35
  this.queue = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:Queue', 'Queue__Case');
36
36
  this.conversation = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'NotificationModule:Conversation', 'Case_Conversation');
37
- this.case__case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
38
- this.case__order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:Case', 'Case__Order');
39
- this.case__caseaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:Case', 'Case__CaseAction');
37
+ this.case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
40
38
  this.file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SchemaModule:File', 'Case__File');
41
39
  this.caseaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'SupportModule:CaseAction', 'Case__CaseAction');
42
40
  this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'OrderModule:Order', 'Case__Order');
@@ -27,15 +27,9 @@ export declare class ContactDb extends DbProvider {
27
27
  readonly workorder: DbRecordLinkManager;
28
28
  readonly contactidentity: DbRecordLinkManager;
29
29
  readonly order: DbRecordLinkManager;
30
- readonly order__contact: DbRecordLinkManager;
31
- readonly contact__billingrequest: DbRecordLinkManager;
32
- readonly contact__file: DbRecordLinkManager;
33
- readonly contact__contact: DbRecordLinkManager;
34
- readonly case__contact: DbRecordLinkManager;
35
- readonly email_contact: DbRecordLinkManager;
36
- readonly onetouchswitch__contact: DbRecordLinkManager;
37
30
  readonly billingrequest: DbRecordLinkManager;
38
31
  readonly file: DbRecordLinkManager;
32
+ readonly contact: DbRecordLinkManager;
39
33
  readonly onetouchswitch: DbRecordLinkManager;
40
34
  readonly case: DbRecordLinkManager;
41
35
  readonly email: DbRecordLinkManager;
@@ -37,15 +37,9 @@ class ContactDb extends db_provider_1.DbProvider {
37
37
  this.workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
38
38
  this.contactidentity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
39
39
  this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
40
- this.order__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
41
- this.contact__billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__BillingRequest');
42
- this.contact__file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__File');
43
- this.contact__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
44
- this.case__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
45
- this.email_contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
46
- this.onetouchswitch__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
47
40
  this.billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
48
41
  this.file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
42
+ this.contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
49
43
  this.onetouchswitch = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
50
44
  this.case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
51
45
  this.email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
@@ -48,7 +48,7 @@ class NoteDb extends db_provider_1.DbProvider {
48
48
  this.commission = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'BillingModule:Commission', 'Commission__Note');
49
49
  this.internalinstallaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'FieldServiceModule:InternalInstallAudit', 'InternalInstallAudit_Note');
50
50
  this.churnrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'OrderModule:ChurnRequest', 'ChurnRequest__Note');
51
- this.picrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'OrderModule:PicRequest', 'PICRequest__Note');
51
+ this.picrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'OrderModule:PICRequest', 'PICRequest__Note');
52
52
  this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'CrmModule:Address', 'Address__Note');
53
53
  this.creditnote = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'BillingModule:CreditNote', 'CreditNote__Note');
54
54
  this.paymentmethod = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Note', 'BillingModule:PaymentMethod', 'PaymentMethod__Note');
@@ -24,7 +24,7 @@ class OrderDb extends db_provider_1.DbProvider {
24
24
  this.billingadjustment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:BillingAdjustment', 'Order__BillingAdjustment');
25
25
  this.account = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'CrmModule:Account', 'Account__Order');
26
26
  this.commission = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'BillingModule:Commission', 'Order__Commission');
27
- this.picrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:PicRequest', 'PICRequest__Order');
27
+ this.picrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:PICRequest', 'PICRequest__Order');
28
28
  this.invoice = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'BillingModule:Invoice', 'Order__Invoice');
29
29
  this.orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:OrderItem', 'Order_OrderItem');
30
30
  this.phonenumber = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'CrmModule:PhoneNumber', 'Order__PhoneNumber');
@@ -2,8 +2,8 @@ import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
2
2
  import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
3
3
  import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
4
4
  import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
5
- import { PicRequestProperties } from '../entities-v2/PicRequest';
6
- export declare class PicRequestDb extends DbProvider {
5
+ import { PICRequestProperties } from '../entities-v2/PICRequest';
6
+ export declare class PICRequestDb extends DbProvider {
7
7
  protected readonly principal: any;
8
8
  protected readonly dbService: any;
9
9
  private readonly moduleName;
@@ -13,10 +13,10 @@ export declare class PicRequestDb extends DbProvider {
13
13
  readonly note: DbRecordLinkManager;
14
14
  constructor(principal: any, dbService: any);
15
15
  setRecord(sourceRecord: any): void;
16
- searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-types/dist/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>>;
17
- searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-types/dist/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>>;
18
- getByPrimaryKey(picRequestId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>>;
19
- getManyByPrimaryKey(picRequestIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PicRequestProperties>[]>;
16
+ searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-types/dist/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>>;
17
+ searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-types/dist/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>>;
18
+ getByPrimaryKey(picRequestId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>>;
19
+ getManyByPrimaryKey(picRequestIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<PICRequestProperties>[]>;
20
20
  upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
21
21
  upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
22
22
  update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
@@ -9,18 +9,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PicRequestDb = void 0;
12
+ exports.PICRequestDb = void 0;
13
13
  const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
14
14
  const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
15
- class PicRequestDb extends db_provider_1.DbProvider {
15
+ class PICRequestDb extends db_provider_1.DbProvider {
16
16
  constructor(principal, dbService) {
17
17
  super(principal, dbService);
18
18
  this.moduleName = 'OrderModule';
19
- this.entityName = 'PicRequest';
19
+ this.entityName = 'PICRequest';
20
20
  this.principal = principal;
21
21
  this.dbService = dbService;
22
- this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:PicRequest', 'OrderModule:Order', 'PICRequest__Order');
23
- this.note = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:PicRequest', 'SupportModule:Note', 'PICRequest__Note');
22
+ this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:PICRequest', 'OrderModule:Order', 'PICRequest__Order');
23
+ this.note = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:PICRequest', 'SupportModule:Note', 'PICRequest__Note');
24
24
  }
25
25
  setRecord(sourceRecord) {
26
26
  this.sourceRecord = sourceRecord;
@@ -108,4 +108,4 @@ class PicRequestDb extends db_provider_1.DbProvider {
108
108
  });
109
109
  }
110
110
  }
111
- exports.PicRequestDb = PicRequestDb;
111
+ exports.PICRequestDb = PICRequestDb;
@@ -33,6 +33,7 @@ export declare enum AddressSalesStatus {
33
33
  REGISTER_INTEREST_PLUS = "REGISTER_INTEREST_PLUS"
34
34
  }
35
35
  export declare enum AddressPropertyKeys {
36
+ AddressLine1 = "AddressLine1",
36
37
  AddressLine3 = "AddressLine3",
37
38
  BuildStatus = "BuildStatus",
38
39
  Uprn = "UPRN",
@@ -78,7 +79,6 @@ export declare enum AddressPropertyKeys {
78
79
  L4OnHold = "L4OnHold",
79
80
  Latititude = "Latititude",
80
81
  NetomniaSalesStatus = "NetomniaSalesStatus",
81
- AddressLine1 = "AddressLine1",
82
82
  RagStatus = "RagStatus",
83
83
  OrderStatus = "OrderStatus",
84
84
  Sprn = "SPRN",
@@ -96,6 +96,7 @@ export declare enum AddressPropertyKeys {
96
96
  SalesStatus = "SalesStatus"
97
97
  }
98
98
  export interface AddressProperties {
99
+ AddressLine1?: string;
99
100
  AddressLine3?: string;
100
101
  BuildStatus?: string;
101
102
  Uprn: number;
@@ -141,7 +142,6 @@ export interface AddressProperties {
141
142
  L4OnHold?: boolean;
142
143
  Latititude?: string;
143
144
  NetomniaSalesStatus?: string;
144
- AddressLine1?: string;
145
145
  RagStatus?: string;
146
146
  OrderStatus?: string;
147
147
  Sprn: number;
@@ -22,6 +22,7 @@ var AddressSalesStatus;
22
22
  })(AddressSalesStatus = exports.AddressSalesStatus || (exports.AddressSalesStatus = {}));
23
23
  var AddressPropertyKeys;
24
24
  (function (AddressPropertyKeys) {
25
+ AddressPropertyKeys["AddressLine1"] = "AddressLine1";
25
26
  AddressPropertyKeys["AddressLine3"] = "AddressLine3";
26
27
  AddressPropertyKeys["BuildStatus"] = "BuildStatus";
27
28
  AddressPropertyKeys["Uprn"] = "UPRN";
@@ -67,7 +68,6 @@ var AddressPropertyKeys;
67
68
  AddressPropertyKeys["L4OnHold"] = "L4OnHold";
68
69
  AddressPropertyKeys["Latititude"] = "Latititude";
69
70
  AddressPropertyKeys["NetomniaSalesStatus"] = "NetomniaSalesStatus";
70
- AddressPropertyKeys["AddressLine1"] = "AddressLine1";
71
71
  AddressPropertyKeys["RagStatus"] = "RagStatus";
72
72
  AddressPropertyKeys["OrderStatus"] = "OrderStatus";
73
73
  AddressPropertyKeys["Sprn"] = "SPRN";