@d19n/youfibre-odin-sdk 2.0.46 → 2.0.47

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 (43) hide show
  1. package/README.md +14 -3
  2. package/dist/actions-v2/AssignCaseTransitionDto.d.ts +141 -2
  3. package/dist/actions-v2/AssignCaseTransitionDto.js +90 -4
  4. package/dist/actions-v2/CaseDefaultStageEscalatedDto.d.ts +152 -19
  5. package/dist/actions-v2/CaseDefaultStageEscalatedDto.js +101 -23
  6. package/dist/actions-v2/CrmDatasetCreateDto.d.ts +8 -1
  7. package/dist/actions-v2/EscalateCaseActionBrskDto.d.ts +91 -0
  8. package/dist/actions-v2/EscalateCaseActionBrskDto.js +56 -0
  9. package/dist/actions-v2/EscalateCaseActionYfDto.d.ts +82 -0
  10. package/dist/actions-v2/EscalateCaseActionYfDto.js +56 -0
  11. package/dist/actions-v2/EscalateCaseActionYfcsDto.d.ts +89 -0
  12. package/dist/actions-v2/EscalateCaseActionYfcsDto.js +56 -0
  13. package/dist/actions-v2/UpdateExternalServiceIdDto.d.ts +73 -0
  14. package/dist/actions-v2/UpdateExternalServiceIdDto.js +56 -0
  15. package/dist/actions-v2/UpdateTeamDto.d.ts +3 -3
  16. package/dist/api-sdk-v2/CrmDatasetApi.d.ts +2 -0
  17. package/dist/api-sdk-v2/CrmDatasetApi.js +6 -0
  18. package/dist/api-sdk-v2/ExchangeApi.d.ts +2 -0
  19. package/dist/api-sdk-v2/ExchangeApi.js +6 -0
  20. package/dist/db-sdk-v2/CrmDatasetDb.d.ts +2 -0
  21. package/dist/db-sdk-v2/CrmDatasetDb.js +6 -0
  22. package/dist/db-sdk-v2/ExchangeDb.d.ts +2 -0
  23. package/dist/db-sdk-v2/ExchangeDb.js +6 -0
  24. package/dist/entities-v2/Address.d.ts +8 -1
  25. package/dist/entities-v2/Address.js +2 -0
  26. package/dist/entities-v2/Config.d.ts +8 -8
  27. package/dist/entities-v2/Config.js +4 -4
  28. package/dist/entities-v2/CreditNote.d.ts +20 -20
  29. package/dist/entities-v2/CreditNote.js +6 -6
  30. package/dist/entities-v2/CrmDataset.d.ts +3 -4
  31. package/dist/entities-v2/Exchange.d.ts +7 -0
  32. package/dist/entities-v2/Exchange.js +5 -1
  33. package/dist/entities-v2/Team.d.ts +12 -10
  34. package/dist/entities-v2/Team.js +13 -11
  35. package/dist/records-v2/AddressRecord.d.ts +27 -0
  36. package/dist/records-v2/AddressRecord.js +29 -0
  37. package/dist/records-v2/CaseRecord.d.ts +207 -13
  38. package/dist/records-v2/CaseRecord.js +312 -16
  39. package/dist/records-v2/CrmDatasetRecord.d.ts +20 -0
  40. package/dist/records-v2/CrmDatasetRecord.js +33 -0
  41. package/dist/records-v2/ExchangeRecord.d.ts +20 -0
  42. package/dist/records-v2/ExchangeRecord.js +33 -0
  43. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ /**
2
+ * UpdateExternalServiceId Action DTO
3
+ *
4
+ * Update ExternalServiceId
5
+ *
6
+ * @module CrmModule
7
+ * @entity Address
8
+ * @actionKey UpdateExternalServiceId
9
+ * @event k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateExternalServiceId updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId
18
+ */
19
+ export interface UpdateExternalServiceIdMessage extends OdinRecordUpdatedEvent<UpdateExternalServiceIdDto, UpdateExternalServiceIdProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateExternalServiceId action
23
+ *
24
+ * @property Required fields: 1
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateExternalServiceIdProperties {
28
+ /**
29
+ * External Service ID
30
+ *
31
+ * When integrating with external suppliers, use this to record the ID of service at this address
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ ExternalServiceId: string;
36
+ }
37
+ /**
38
+ * UpdateExternalServiceId
39
+ *
40
+ * Update ExternalServiceId
41
+ *
42
+ * @actionType UPDATE - Updates an existing Address record
43
+ * @module CrmModule
44
+ * @entity Address
45
+ * @event k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId
46
+ * @permission schema.action.updateexternalserviceid.trigger
47
+ * @benchmark This action is tracked for performance benchmarks
48
+ */
49
+ export declare class UpdateExternalServiceIdDto extends OdinRecordUpdateDto<UpdateExternalServiceIdProperties> {
50
+ /** Used by SDK generators to identify action type */
51
+ static readonly ACTION_TYPE = "UPDATE";
52
+ static readonly ACTION_KEY = "UpdateExternalServiceId";
53
+ static readonly MODULE_NAME = "CrmModule";
54
+ static readonly ENTITIES: string[];
55
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId";
56
+ static readonly PERMISSION = "schema.action.updateexternalserviceid.trigger";
57
+ /** Step metadata - entity this action targets */
58
+ static readonly STEP_ENTITY = "CrmModule:Address";
59
+ static readonly STEP_SCHEMA_ID = "8ba73cbb-5017-446c-8def-8e7eb561b829";
60
+ static readonly STEP_SCHEMA_ACTION_ID = "d0482d64-8906-4753-aa20-ca1d64336015";
61
+ static readonly AUTO_LINK_PARENT = false;
62
+ readonly actionName: string;
63
+ readonly schemaActionId: string;
64
+ readonly entity: string;
65
+ constructor(record: OdinRecord<any> | {
66
+ id: string;
67
+ entity: string;
68
+ type?: string;
69
+ }, properties: UpdateExternalServiceIdProperties, options?: {
70
+ journeyId?: string;
71
+ stageKey?: string;
72
+ });
73
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateExternalServiceId Action DTO
4
+ *
5
+ * Update ExternalServiceId
6
+ *
7
+ * @module CrmModule
8
+ * @entity Address
9
+ * @actionKey UpdateExternalServiceId
10
+ * @event k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateExternalServiceIdDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateExternalServiceId
19
+ *
20
+ * Update ExternalServiceId
21
+ *
22
+ * @actionType UPDATE - Updates an existing Address record
23
+ * @module CrmModule
24
+ * @entity Address
25
+ * @event k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId
26
+ * @permission schema.action.updateexternalserviceid.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateExternalServiceIdDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateExternalServiceId';
40
+ this.schemaActionId = 'd0482d64-8906-4753-aa20-ca1d64336015';
41
+ this.entity = 'CrmModule:Address';
42
+ }
43
+ }
44
+ exports.UpdateExternalServiceIdDto = UpdateExternalServiceIdDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateExternalServiceIdDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateExternalServiceIdDto.ACTION_KEY = 'UpdateExternalServiceId';
48
+ UpdateExternalServiceIdDto.MODULE_NAME = 'CrmModule';
49
+ UpdateExternalServiceIdDto.ENTITIES = ['Address'];
50
+ UpdateExternalServiceIdDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId';
51
+ UpdateExternalServiceIdDto.PERMISSION = 'schema.action.updateexternalserviceid.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateExternalServiceIdDto.STEP_ENTITY = 'CrmModule:Address';
54
+ UpdateExternalServiceIdDto.STEP_SCHEMA_ID = '8ba73cbb-5017-446c-8def-8e7eb561b829';
55
+ UpdateExternalServiceIdDto.STEP_SCHEMA_ACTION_ID = 'd0482d64-8906-4753-aa20-ca1d64336015';
56
+ UpdateExternalServiceIdDto.AUTO_LINK_PARENT = false;
@@ -26,12 +26,12 @@ export interface UpdateTeamMessage extends OdinRecordUpdatedEvent<UpdateTeamDto,
26
26
  */
27
27
  export interface UpdateTeamProperties {
28
28
  /**
29
- * Providers
29
+ * Domain
30
30
  *
31
- * Providers
31
+ * Domain
32
32
  * @type {ENUM}
33
33
  */
34
- Providers?: string | null;
34
+ Domain?: string | null;
35
35
  /**
36
36
  * SupportTeam
37
37
  *
@@ -23,6 +23,7 @@ export declare class CrmDatasetApi extends ApiProvider {
23
23
  private _salesterritory?;
24
24
  private _team?;
25
25
  private _address?;
26
+ private _exchange?;
26
27
  constructor(authParams?: OauthParams, authToken?: string);
27
28
  get user(): ApiRecordLinkManager;
28
29
  get note(): ApiRecordLinkManager;
@@ -30,6 +31,7 @@ export declare class CrmDatasetApi extends ApiProvider {
30
31
  get salesterritory(): ApiRecordLinkManager;
31
32
  get team(): ApiRecordLinkManager;
32
33
  get address(): ApiRecordLinkManager;
34
+ get exchange(): ApiRecordLinkManager;
33
35
  setRecord(sourceRecord: any): void;
34
36
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
35
37
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<CrmDatasetProperties>>>;
@@ -69,6 +69,12 @@ class CrmDatasetApi extends api_provider_1.ApiProvider {
69
69
  }
70
70
  return this._address;
71
71
  }
72
+ get exchange() {
73
+ if (!this._exchange) {
74
+ this._exchange = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:CrmDataset', 'ProjectModule:Exchange', 'Exchange__CrmDataset');
75
+ }
76
+ return this._exchange;
77
+ }
72
78
  // ============================================
73
79
  // STANDARD METHODS (Unchanged API)
74
80
  // ============================================
@@ -17,9 +17,11 @@ export declare class ExchangeApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
+ private _crmdataset?;
20
21
  private _salesterritory?;
21
22
  private _region?;
22
23
  constructor(authParams?: OauthParams, authToken?: string);
24
+ get crmdataset(): ApiRecordLinkManager;
23
25
  get salesterritory(): ApiRecordLinkManager;
24
26
  get region(): ApiRecordLinkManager;
25
27
  setRecord(sourceRecord: any): void;
@@ -33,6 +33,12 @@ class ExchangeApi extends api_provider_1.ApiProvider {
33
33
  // LAZY-LOADED LINK MANAGERS (Public Getters)
34
34
  // ============================================
35
35
  // Usage remains identical: api.address.list(recordId)
36
+ get crmdataset() {
37
+ if (!this._crmdataset) {
38
+ this._crmdataset = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProjectModule:Exchange', 'CrmModule:CrmDataset', 'Exchange__CrmDataset');
39
+ }
40
+ return this._crmdataset;
41
+ }
36
42
  get salesterritory() {
37
43
  if (!this._salesterritory) {
38
44
  this._salesterritory = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProjectModule:Exchange', 'CrmModule:SalesTerritory', 'Exchange__SalesTerritory');
@@ -27,6 +27,7 @@ export declare class CrmDatasetDb extends DbProvider {
27
27
  private _salesterritory?;
28
28
  private _team?;
29
29
  private _address?;
30
+ private _exchange?;
30
31
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
31
32
  get user(): DbRecordLinkManager;
32
33
  get note(): DbRecordLinkManager;
@@ -34,6 +35,7 @@ export declare class CrmDatasetDb extends DbProvider {
34
35
  get salesterritory(): DbRecordLinkManager;
35
36
  get team(): DbRecordLinkManager;
36
37
  get address(): DbRecordLinkManager;
38
+ get exchange(): DbRecordLinkManager;
37
39
  setRecord(sourceRecord: any): void;
38
40
  /**
39
41
  * Search records with manual pagination control
@@ -74,6 +74,12 @@ class CrmDatasetDb extends db_provider_1.DbProvider {
74
74
  }
75
75
  return this._address;
76
76
  }
77
+ get exchange() {
78
+ if (!this._exchange) {
79
+ this._exchange = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:CrmDataset', 'ProjectModule:Exchange', 'Exchange__CrmDataset');
80
+ }
81
+ return this._exchange;
82
+ }
77
83
  // ============================================
78
84
  // STANDARD METHODS
79
85
  // ============================================
@@ -21,9 +21,11 @@ export declare class ExchangeDb extends DbProvider {
21
21
  private readonly moduleName;
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
+ private _crmdataset?;
24
25
  private _salesterritory?;
25
26
  private _region?;
26
27
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
28
+ get crmdataset(): DbRecordLinkManager;
27
29
  get salesterritory(): DbRecordLinkManager;
28
30
  get region(): DbRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
@@ -38,6 +38,12 @@ class ExchangeDb extends db_provider_1.DbProvider {
38
38
  // LAZY-LOADED LINK MANAGERS (Public Getters)
39
39
  // ============================================
40
40
  // Usage remains identical: db.address.list(recordId)
41
+ get crmdataset() {
42
+ if (!this._crmdataset) {
43
+ this._crmdataset = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProjectModule:Exchange', 'CrmModule:CrmDataset', 'Exchange__CrmDataset');
44
+ }
45
+ return this._crmdataset;
46
+ }
41
47
  get salesterritory() {
42
48
  if (!this._salesterritory) {
43
49
  this._salesterritory = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProjectModule:Exchange', 'CrmModule:SalesTerritory', 'Exchange__SalesTerritory');
@@ -198,7 +198,9 @@ export declare enum AddressPropertyKeys {
198
198
  /** The sales status for the address (Sales - Address) */
199
199
  SalesStatus = "SalesStatus",
200
200
  /** external install in-progress date (Sales - Address) */
201
- ExternalInstallInProgressDate = "ExternalInstallInProgressDate"
201
+ ExternalInstallInProgressDate = "ExternalInstallInProgressDate",
202
+ /** When integrating with external suppliers, use this to record the ID of service at this address */
203
+ ExternalServiceId = "ExternalServiceId"
202
204
  }
203
205
  /**
204
206
  * Properties for Address records
@@ -587,6 +589,11 @@ export interface AddressProperties {
587
589
  * @hidden This field is hidden in the UI
588
590
  */
589
591
  ExternalInstallInProgressDate: string;
592
+ /** When integrating with external suppliers, use this to record the ID of service at this address
593
+ *
594
+ * @type {TEXT}
595
+ */
596
+ ExternalServiceId: string;
590
597
  }
591
598
  /**
592
599
  * Address entity from CrmModule
@@ -188,6 +188,8 @@ var AddressPropertyKeys;
188
188
  AddressPropertyKeys["SalesStatus"] = "SalesStatus";
189
189
  /** external install in-progress date (Sales - Address) */
190
190
  AddressPropertyKeys["ExternalInstallInProgressDate"] = "ExternalInstallInProgressDate";
191
+ /** When integrating with external suppliers, use this to record the ID of service at this address */
192
+ AddressPropertyKeys["ExternalServiceId"] = "ExternalServiceId";
191
193
  })(AddressPropertyKeys = exports.AddressPropertyKeys || (exports.AddressPropertyKeys = {}));
192
194
  /**
193
195
  * Address entity from CrmModule
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
23
23
  * Use these constants instead of string literals for type safety
24
24
  */
25
25
  export declare enum ConfigPropertyKeys {
26
- /** Data field for Config records. Used by Platform team. */
27
- Test = "Test",
26
+ /** the name of the app this config relates to (Platform - Config) */
27
+ AppName = "AppName",
28
28
  /** object of { key: value } mappings (Platform - Config) */
29
29
  Mappings = "Mappings",
30
- /** the name of the app this config relates to (Platform - Config) */
31
- AppName = "AppName"
30
+ /** Data field for Config records. Used by Platform team. */
31
+ Test = "Test"
32
32
  }
33
33
  /**
34
34
  * Properties for Config records
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
36
36
  * @see SchemaModule:Config
37
37
  */
38
38
  export interface ConfigProperties {
39
- /** Data field for Config records. Used by Platform team.
39
+ /** the name of the app this config relates to (Platform - Config)
40
40
  *
41
41
  * @type {TEXT}
42
42
  */
43
- Test: string;
43
+ AppName: string;
44
44
  /** object of { key: value } mappings (Platform - Config)
45
45
  *
46
46
  * @type {JSON}
47
47
  */
48
48
  Mappings: string;
49
- /** the name of the app this config relates to (Platform - Config)
49
+ /** Data field for Config records. Used by Platform team.
50
50
  *
51
51
  * @type {TEXT}
52
52
  */
53
- AppName: string;
53
+ Test: string;
54
54
  }
55
55
  /**
56
56
  * Config entity from SchemaModule
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
28
28
  */
29
29
  var ConfigPropertyKeys;
30
30
  (function (ConfigPropertyKeys) {
31
- /** Data field for Config records. Used by Platform team. */
32
- ConfigPropertyKeys["Test"] = "Test";
33
- /** object of { key: value } mappings (Platform - Config) */
34
- ConfigPropertyKeys["Mappings"] = "Mappings";
35
31
  /** the name of the app this config relates to (Platform - Config) */
36
32
  ConfigPropertyKeys["AppName"] = "AppName";
33
+ /** object of { key: value } mappings (Platform - Config) */
34
+ ConfigPropertyKeys["Mappings"] = "Mappings";
35
+ /** Data field for Config records. Used by Platform team. */
36
+ ConfigPropertyKeys["Test"] = "Test";
37
37
  })(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
38
38
  /**
39
39
  * Config entity from SchemaModule
@@ -71,18 +71,18 @@ export declare enum CreditNoteReason {
71
71
  * Use these constants instead of string literals for type safety
72
72
  */
73
73
  export declare enum CreditNotePropertyKeys {
74
- /** amount of the credit note (Finance - CreditNote) */
75
- Amount = "Amount",
74
+ /** credit note reason (Finance - CreditNote) */
75
+ Reason = "Reason",
76
+ /** credit note status (Finance - CreditNote) */
77
+ Status = "Status",
76
78
  /** description of the credit note (Finance - CreditNote) */
77
79
  Description = "Description",
78
80
  /** the record # of the invoice (Finance - CreditNote) */
79
81
  InvoiceRef = "InvoiceRef",
80
- /** credit note reason (Finance - CreditNote) */
81
- Reason = "Reason",
82
82
  /** reason code (Finance - CreditNote) */
83
83
  ReasonCode = "ReasonCode",
84
- /** credit note status (Finance - CreditNote) */
85
- Status = "Status"
84
+ /** amount of the credit note (Finance - CreditNote) */
85
+ Amount = "Amount"
86
86
  }
87
87
  /**
88
88
  * Properties for CreditNote records
@@ -90,12 +90,18 @@ export declare enum CreditNotePropertyKeys {
90
90
  * @see BillingModule:CreditNote
91
91
  */
92
92
  export interface CreditNoteProperties {
93
- /** amount of the credit note (Finance - CreditNote)
93
+ /** credit note reason (Finance - CreditNote)
94
94
  *
95
- * @type {CURRENCY}
96
- * @default 0
95
+ * @type {ENUM}
96
+ * @enum {CreditNoteReason}
97
97
  */
98
- Amount: string;
98
+ Reason: CreditNoteReason;
99
+ /** credit note status (Finance - CreditNote)
100
+ *
101
+ * @type {TEXT}
102
+ * @hidden This field is hidden in the UI
103
+ */
104
+ Status: string;
99
105
  /** description of the credit note (Finance - CreditNote)
100
106
  *
101
107
  * @type {TEXT_LONG}
@@ -106,24 +112,18 @@ export interface CreditNoteProperties {
106
112
  * @type {TEXT}
107
113
  */
108
114
  InvoiceRef: string;
109
- /** credit note reason (Finance - CreditNote)
110
- *
111
- * @type {ENUM}
112
- * @enum {CreditNoteReason}
113
- */
114
- Reason: CreditNoteReason;
115
115
  /** reason code (Finance - CreditNote)
116
116
  *
117
117
  * @type {TEXT}
118
118
  * @hidden This field is hidden in the UI
119
119
  */
120
120
  ReasonCode: string;
121
- /** credit note status (Finance - CreditNote)
121
+ /** amount of the credit note (Finance - CreditNote)
122
122
  *
123
- * @type {TEXT}
124
- * @hidden This field is hidden in the UI
123
+ * @type {CURRENCY}
124
+ * @default 0
125
125
  */
126
- Status: string;
126
+ Amount: string;
127
127
  }
128
128
  /**
129
129
  * CreditNote entity from BillingModule
@@ -73,18 +73,18 @@ var CreditNoteReason;
73
73
  */
74
74
  var CreditNotePropertyKeys;
75
75
  (function (CreditNotePropertyKeys) {
76
- /** amount of the credit note (Finance - CreditNote) */
77
- CreditNotePropertyKeys["Amount"] = "Amount";
76
+ /** credit note reason (Finance - CreditNote) */
77
+ CreditNotePropertyKeys["Reason"] = "Reason";
78
+ /** credit note status (Finance - CreditNote) */
79
+ CreditNotePropertyKeys["Status"] = "Status";
78
80
  /** description of the credit note (Finance - CreditNote) */
79
81
  CreditNotePropertyKeys["Description"] = "Description";
80
82
  /** the record # of the invoice (Finance - CreditNote) */
81
83
  CreditNotePropertyKeys["InvoiceRef"] = "InvoiceRef";
82
- /** credit note reason (Finance - CreditNote) */
83
- CreditNotePropertyKeys["Reason"] = "Reason";
84
84
  /** reason code (Finance - CreditNote) */
85
85
  CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
86
- /** credit note status (Finance - CreditNote) */
87
- CreditNotePropertyKeys["Status"] = "Status";
86
+ /** amount of the credit note (Finance - CreditNote) */
87
+ CreditNotePropertyKeys["Amount"] = "Amount";
88
88
  })(CreditNotePropertyKeys = exports.CreditNotePropertyKeys || (exports.CreditNotePropertyKeys = {}));
89
89
  /**
90
90
  * CreditNote entity from BillingModule
@@ -17,6 +17,7 @@ import { LeadProperties } from './Lead';
17
17
  import { SalesTerritoryProperties } from './SalesTerritory';
18
18
  import { TeamProperties } from './Team';
19
19
  import { AddressProperties } from './Address';
20
+ import { ExchangeProperties } from './Exchange';
20
21
  /**
21
22
  * Available types for CrmDataset records
22
23
  */
@@ -149,7 +150,6 @@ export interface CrmDatasetProperties {
149
150
  /** Data field for CrmDataset records. Used by Sales team.
150
151
  *
151
152
  * @type {TEXT}
152
- * @hidden This field is hidden in the UI
153
153
  */
154
154
  Exchange: string;
155
155
  /** Used for analytics when querying data we search starting from this date (Sales - CrmDataset)
@@ -233,7 +233,6 @@ export interface AddressCrmDatasetProperties {
233
233
  /** Data field for CrmDataset records. Used by Sales team.
234
234
  *
235
235
  * @type {TEXT}
236
- * @hidden This field is hidden in the UI
237
236
  */
238
237
  Exchange: string;
239
238
  /** Used for analytics when querying data we search starting from this date (Sales - CrmDataset)
@@ -317,7 +316,6 @@ export interface ContactCrmDatasetProperties {
317
316
  /** Data field for CrmDataset records. Used by Sales team.
318
317
  *
319
318
  * @type {TEXT}
320
- * @hidden This field is hidden in the UI
321
319
  */
322
320
  Exchange: string;
323
321
  /** Used for analytics when querying data we search starting from this date (Sales - CrmDataset)
@@ -401,7 +399,6 @@ export interface LeadCrmDatasetProperties {
401
399
  /** Data field for CrmDataset records. Used by Sales team.
402
400
  *
403
401
  * @type {TEXT}
404
- * @hidden This field is hidden in the UI
405
402
  */
406
403
  Exchange: string;
407
404
  /** Used for analytics when querying data we search starting from this date (Sales - CrmDataset)
@@ -453,6 +450,8 @@ export declare class CrmDataset extends OdinRecord<CrmDatasetProperties> {
453
450
  Team: OdinLink<LinkedOdinRecord<TeamProperties>>;
454
451
  /** Linked Address records (CrmDataset__Address) */
455
452
  Address: OdinLink<LinkedOdinRecord<AddressProperties>>;
453
+ /** Linked Exchange records (Exchange__CrmDataset) */
454
+ Exchange: OdinLink<LinkedOdinRecord<ExchangeProperties>>;
456
455
  }
457
456
  /**
458
457
  * RabbitMQ routing keys for CrmDataset events
@@ -11,6 +11,7 @@
11
11
  * Generated from Odin schema definition
12
12
  */
13
13
  import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
+ import { CrmDatasetProperties } from './CrmDataset';
14
15
  import { SalesTerritoryProperties } from './SalesTerritory';
15
16
  import { RegionProperties } from './Region';
16
17
  /**
@@ -83,6 +84,8 @@ export declare class Exchange extends OdinRecord<ExchangeProperties> {
83
84
  type: ExchangeEntityTypes;
84
85
  schemaId: 'e8162e52-c785-4094-a812-83b7b86e587e';
85
86
  properties: ExchangeProperties;
87
+ /** Linked CrmDataset records (Exchange__CrmDataset) */
88
+ CrmDataset: OdinLink<LinkedOdinRecord<CrmDatasetProperties>>;
86
89
  /** Linked SalesTerritory records (Exchange__SalesTerritory) */
87
90
  SalesTerritory: OdinLink<LinkedOdinRecord<SalesTerritoryProperties>>;
88
91
  /** Linked Region records (Region__Exchange) */
@@ -104,6 +107,10 @@ export declare const ROUTING_KEY_EXCHANGE_DEFAULT_CREATED = "ProjectModule.Excha
104
107
  export declare const ROUTING_KEY_EXCHANGE_DEFAULT_UPDATED = "ProjectModule.Exchange.DEFAULT.SubDbRecordUpdated";
105
108
  /** Default record type deleted */
106
109
  export declare const ROUTING_KEY_EXCHANGE_DEFAULT_DELETED = "ProjectModule.Exchange.DEFAULT.SubDbRecordDeleted";
110
+ /** Event: Exchange__CrmDataset link created */
111
+ export declare const ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_CREATED = "ProjectModule.Exchange.CrmDataset.SubDbRecordAssociationCreated";
112
+ /** Event: Exchange__CrmDataset link deleted */
113
+ export declare const ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_DELETED = "ProjectModule.Exchange.CrmDataset.SubDbRecordAssociationDeleted";
107
114
  /** Event: Exchange__SalesTerritory link created */
108
115
  export declare const ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_CREATED = "ProjectModule.Exchange.SalesTerritory.SubDbRecordAssociationCreated";
109
116
  /** Event: Exchange__SalesTerritory link deleted */
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_DELETED = exports.ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_CREATED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_DELETED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_UPDATED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_CREATED = exports.ROUTING_KEY_EXCHANGE_DELETED = exports.ROUTING_KEY_EXCHANGE_UPDATED = exports.ROUTING_KEY_EXCHANGE_CREATED = exports.Exchange = exports.ExchangePropertyKeys = exports.ExchangeEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_DELETED = exports.ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_CREATED = exports.ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_DELETED = exports.ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_CREATED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_DELETED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_UPDATED = exports.ROUTING_KEY_EXCHANGE_DEFAULT_CREATED = exports.ROUTING_KEY_EXCHANGE_DELETED = exports.ROUTING_KEY_EXCHANGE_UPDATED = exports.ROUTING_KEY_EXCHANGE_CREATED = exports.Exchange = exports.ExchangePropertyKeys = exports.ExchangeEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Exchange records
@@ -71,6 +71,10 @@ exports.ROUTING_KEY_EXCHANGE_DEFAULT_CREATED = 'ProjectModule.Exchange.DEFAULT.S
71
71
  exports.ROUTING_KEY_EXCHANGE_DEFAULT_UPDATED = 'ProjectModule.Exchange.DEFAULT.SubDbRecordUpdated';
72
72
  /** Default record type deleted */
73
73
  exports.ROUTING_KEY_EXCHANGE_DEFAULT_DELETED = 'ProjectModule.Exchange.DEFAULT.SubDbRecordDeleted';
74
+ /** Event: Exchange__CrmDataset link created */
75
+ exports.ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_CREATED = 'ProjectModule.Exchange.CrmDataset.SubDbRecordAssociationCreated';
76
+ /** Event: Exchange__CrmDataset link deleted */
77
+ exports.ROUTING_KEY_LINK_EXCHANGE_CRM_DATASET_DELETED = 'ProjectModule.Exchange.CrmDataset.SubDbRecordAssociationDeleted';
74
78
  /** Event: Exchange__SalesTerritory link created */
75
79
  exports.ROUTING_KEY_LINK_EXCHANGE_SALES_TERRITORY_CREATED = 'ProjectModule.Exchange.SalesTerritory.SubDbRecordAssociationCreated';
76
80
  /** Event: Exchange__SalesTerritory link deleted */
@@ -106,17 +106,19 @@ export declare enum TeamSupportTeam {
106
106
  YES = "YES"
107
107
  }
108
108
  /**
109
- * Valid values for Team.Providers
109
+ * Valid values for Team.Domain
110
110
  *
111
- * Providers
111
+ * Domain
112
112
  *
113
113
  * @remarks Available options:
114
114
  * - `Brsk`
115
- * - `Netomnia`
115
+ * - `Joint support`
116
+ * - `YouFibre`
116
117
  */
117
- export declare enum TeamProviders {
118
+ export declare enum TeamDomain {
118
119
  BRSK = "Brsk",
119
- NETOMNIA = "Netomnia"
120
+ JOINT_SUPPORT = "Joint support",
121
+ YOU_FIBRE = "YouFibre"
120
122
  }
121
123
  /**
122
124
  * Property keys for Team
@@ -143,8 +145,8 @@ export declare enum TeamPropertyKeys {
143
145
  TwilioSupport = "TwilioSupport",
144
146
  /** Flags if this is a support team (IT Security - Team) */
145
147
  SupportTeam = "SupportTeam",
146
- /** Providers */
147
- Providers = "Providers"
148
+ /** Domain */
149
+ Domain = "Domain"
148
150
  }
149
151
  /**
150
152
  * Properties for Team records
@@ -208,12 +210,12 @@ export interface TeamProperties {
208
210
  * @enum {TeamSupportTeam}
209
211
  */
210
212
  SupportTeam: TeamSupportTeam;
211
- /** Providers
213
+ /** Domain
212
214
  *
213
215
  * @type {ENUM}
214
- * @enum {TeamProviders}
216
+ * @enum {TeamDomain}
215
217
  */
216
- Providers: TeamProviders;
218
+ Domain: TeamDomain;
217
219
  }
218
220
  /**
219
221
  * Team entity from IdentityModule