@d19n/youfibre-odin-sdk 2.0.106 → 2.0.107

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.
package/README.md CHANGED
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
352
352
 
353
353
  ## Actions
354
354
 
355
- This SDK includes **634** actions.
355
+ This SDK includes **635** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -725,6 +725,12 @@ This SDK includes **634** actions.
725
725
  | `BulkUpdateSalesStatus` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.BulkUpdateSalesStatus |
726
726
  | `UpdateExternalServiceId` | UPDATE | k1.t-hEOJjsDb.CrmModule.Address.Update.UpdateExternalServiceId |
727
727
 
728
+ #### AddressInteraction
729
+
730
+ | Action | Type | Event |
731
+ |--------|------|-------|
732
+ | `AddressInteractionCreate` | CREATE | k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate |
733
+
728
734
  #### Case
729
735
 
730
736
  | Action | Type | Event |
@@ -16,6 +16,7 @@ import { AccountCreditAccessor } from './accessors-v2/AccountCreditAccessor';
16
16
  import { ActivityAccessor } from './accessors-v2/ActivityAccessor';
17
17
  import { ActivityLogAccessor } from './accessors-v2/ActivityLogAccessor';
18
18
  import { AddressAccessor } from './accessors-v2/AddressAccessor';
19
+ import { AddressInteractionAccessor } from './accessors-v2/AddressInteractionAccessor';
19
20
  import { AffiliateCodeAccessor } from './accessors-v2/AffiliateCodeAccessor';
20
21
  import { AppointmentAccessor } from './accessors-v2/AppointmentAccessor';
21
22
  import { BillingAdjustmentAccessor } from './accessors-v2/BillingAdjustmentAccessor';
@@ -119,6 +120,7 @@ export declare const EntityRegistry: {
119
120
  readonly Activity: typeof ActivityAccessor;
120
121
  readonly ActivityLog: typeof ActivityLogAccessor;
121
122
  readonly Address: typeof AddressAccessor;
123
+ readonly AddressInteraction: typeof AddressInteractionAccessor;
122
124
  readonly AffiliateCode: typeof AffiliateCodeAccessor;
123
125
  readonly Appointment: typeof AppointmentAccessor;
124
126
  readonly BillingAdjustment: typeof BillingAdjustmentAccessor;
@@ -19,6 +19,7 @@ const AccountCreditAccessor_1 = require("./accessors-v2/AccountCreditAccessor");
19
19
  const ActivityAccessor_1 = require("./accessors-v2/ActivityAccessor");
20
20
  const ActivityLogAccessor_1 = require("./accessors-v2/ActivityLogAccessor");
21
21
  const AddressAccessor_1 = require("./accessors-v2/AddressAccessor");
22
+ const AddressInteractionAccessor_1 = require("./accessors-v2/AddressInteractionAccessor");
22
23
  const AffiliateCodeAccessor_1 = require("./accessors-v2/AffiliateCodeAccessor");
23
24
  const AppointmentAccessor_1 = require("./accessors-v2/AppointmentAccessor");
24
25
  const BillingAdjustmentAccessor_1 = require("./accessors-v2/BillingAdjustmentAccessor");
@@ -122,6 +123,7 @@ exports.EntityRegistry = {
122
123
  'Activity': ActivityAccessor_1.ActivityAccessor,
123
124
  'ActivityLog': ActivityLogAccessor_1.ActivityLogAccessor,
124
125
  'Address': AddressAccessor_1.AddressAccessor,
126
+ 'AddressInteraction': AddressInteractionAccessor_1.AddressInteractionAccessor,
125
127
  'AffiliateCode': AffiliateCodeAccessor_1.AffiliateCodeAccessor,
126
128
  'Appointment': AppointmentAccessor_1.AppointmentAccessor,
127
129
  'BillingAdjustment': BillingAdjustmentAccessor_1.BillingAdjustmentAccessor,
@@ -26,6 +26,7 @@ import { AccountCreditAccessor } from './accessors-v2/AccountCreditAccessor';
26
26
  import { ActivityAccessor } from './accessors-v2/ActivityAccessor';
27
27
  import { ActivityLogAccessor } from './accessors-v2/ActivityLogAccessor';
28
28
  import { AddressAccessor } from './accessors-v2/AddressAccessor';
29
+ import { AddressInteractionAccessor } from './accessors-v2/AddressInteractionAccessor';
29
30
  import { AffiliateCodeAccessor } from './accessors-v2/AffiliateCodeAccessor';
30
31
  import { AppointmentAccessor } from './accessors-v2/AppointmentAccessor';
31
32
  import { BillingAdjustmentAccessor } from './accessors-v2/BillingAdjustmentAccessor';
@@ -138,6 +139,7 @@ export declare class OdinApiClient {
138
139
  private _activities?;
139
140
  private _activityLogs?;
140
141
  private _addresses?;
142
+ private _addressInteractions?;
141
143
  private _affiliateCodes?;
142
144
  private _appointments?;
143
145
  private _billingAdjustments?;
@@ -256,6 +258,8 @@ export declare class OdinApiClient {
256
258
  get activityLogs(): ActivityLogAccessor;
257
259
  /** Access Address records */
258
260
  get addresses(): AddressAccessor;
261
+ /** Access AddressInteraction records */
262
+ get addressInteractions(): AddressInteractionAccessor;
259
263
  /** Access AffiliateCode records */
260
264
  get affiliateCodes(): AffiliateCodeAccessor;
261
265
  /** Access Appointment records */
@@ -37,6 +37,7 @@ const AccountCreditAccessor_1 = require("./accessors-v2/AccountCreditAccessor");
37
37
  const ActivityAccessor_1 = require("./accessors-v2/ActivityAccessor");
38
38
  const ActivityLogAccessor_1 = require("./accessors-v2/ActivityLogAccessor");
39
39
  const AddressAccessor_1 = require("./accessors-v2/AddressAccessor");
40
+ const AddressInteractionAccessor_1 = require("./accessors-v2/AddressInteractionAccessor");
40
41
  const AffiliateCodeAccessor_1 = require("./accessors-v2/AffiliateCodeAccessor");
41
42
  const AppointmentAccessor_1 = require("./accessors-v2/AppointmentAccessor");
42
43
  const BillingAdjustmentAccessor_1 = require("./accessors-v2/BillingAdjustmentAccessor");
@@ -197,6 +198,13 @@ class OdinApiClient {
197
198
  }
198
199
  return this._addresses;
199
200
  }
201
+ /** Access AddressInteraction records */
202
+ get addressInteractions() {
203
+ if (!this._addressInteractions) {
204
+ this._addressInteractions = new AddressInteractionAccessor_1.AddressInteractionAccessor(this._provider);
205
+ }
206
+ return this._addressInteractions;
207
+ }
200
208
  /** Access AffiliateCode records */
201
209
  get affiliateCodes() {
202
210
  if (!this._affiliateCodes) {
@@ -33,6 +33,7 @@ import { AccountDbAccessor } from './db-accessors-v2/AccountDbAccessor';
33
33
  import { ActivityDbAccessor } from './db-accessors-v2/ActivityDbAccessor';
34
34
  import { ActivityLogDbAccessor } from './db-accessors-v2/ActivityLogDbAccessor';
35
35
  import { AddressDbAccessor } from './db-accessors-v2/AddressDbAccessor';
36
+ import { AddressInteractionDbAccessor } from './db-accessors-v2/AddressInteractionDbAccessor';
36
37
  import { AffiliateCodeDbAccessor } from './db-accessors-v2/AffiliateCodeDbAccessor';
37
38
  import { AppointmentDbAccessor } from './db-accessors-v2/AppointmentDbAccessor';
38
39
  import { BillingAdjustmentDbAccessor } from './db-accessors-v2/BillingAdjustmentDbAccessor';
@@ -139,6 +140,7 @@ export declare class OdinDbClient {
139
140
  private _activities?;
140
141
  private _activityLogs?;
141
142
  private _addresses?;
143
+ private _addressInteractions?;
142
144
  private _affiliateCodes?;
143
145
  private _appointments?;
144
146
  private _billingAdjustments?;
@@ -266,6 +268,8 @@ export declare class OdinDbClient {
266
268
  get activityLogs(): ActivityLogDbAccessor;
267
269
  /** Access Address records */
268
270
  get addresses(): AddressDbAccessor;
271
+ /** Access AddressInteraction records */
272
+ get addressInteractions(): AddressInteractionDbAccessor;
269
273
  /** Access AffiliateCode records */
270
274
  get affiliateCodes(): AffiliateCodeDbAccessor;
271
275
  /** Access Appointment records */
@@ -35,6 +35,7 @@ const AccountDbAccessor_1 = require("./db-accessors-v2/AccountDbAccessor");
35
35
  const ActivityDbAccessor_1 = require("./db-accessors-v2/ActivityDbAccessor");
36
36
  const ActivityLogDbAccessor_1 = require("./db-accessors-v2/ActivityLogDbAccessor");
37
37
  const AddressDbAccessor_1 = require("./db-accessors-v2/AddressDbAccessor");
38
+ const AddressInteractionDbAccessor_1 = require("./db-accessors-v2/AddressInteractionDbAccessor");
38
39
  const AffiliateCodeDbAccessor_1 = require("./db-accessors-v2/AffiliateCodeDbAccessor");
39
40
  const AppointmentDbAccessor_1 = require("./db-accessors-v2/AppointmentDbAccessor");
40
41
  const BillingAdjustmentDbAccessor_1 = require("./db-accessors-v2/BillingAdjustmentDbAccessor");
@@ -198,6 +199,13 @@ class OdinDbClient {
198
199
  }
199
200
  return this._addresses;
200
201
  }
202
+ /** Access AddressInteraction records */
203
+ get addressInteractions() {
204
+ if (!this._addressInteractions) {
205
+ this._addressInteractions = new AddressInteractionDbAccessor_1.AddressInteractionDbAccessor(this._principal, this._dbService, this._defaultOptions);
206
+ }
207
+ return this._addressInteractions;
208
+ }
201
209
  /** Access AffiliateCode records */
202
210
  get affiliateCodes() {
203
211
  if (!this._affiliateCodes) {
@@ -0,0 +1,111 @@
1
+ /**
2
+ * AddressInteraction Accessor
3
+ *
4
+ * Provides typed access to AddressInteraction records via API.
5
+ * Returns wrapped records with typed action methods.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // Get existing record
10
+ * const record = await accessor.get(id);
11
+ * await record.updateAddressInteraction({ ... });
12
+ *
13
+ * // Create new record
14
+ * const newRecord = accessor.new();
15
+ * await newRecord.createAddressInteraction({ ... });
16
+ * ```
17
+ *
18
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
+ */
20
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
21
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
22
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
23
+ import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
24
+ import { AddressInteractionProperties } from '../entities-v2/AddressInteraction';
25
+ import { AddressInteractionRecord } from '../records-v2/AddressInteractionRecord';
26
+ /** List response with wrapped records */
27
+ export interface AddressInteractionListResponse {
28
+ data: AddressInteractionRecord[];
29
+ hasMore: boolean;
30
+ totalRecords: number;
31
+ }
32
+ /** Search response with wrapped records */
33
+ export interface AddressInteractionSearchResponse {
34
+ records: AddressInteractionRecord[];
35
+ totalRecords: number;
36
+ hasMore: boolean;
37
+ }
38
+ export declare class AddressInteractionAccessor {
39
+ private readonly _provider;
40
+ private readonly _moduleName;
41
+ private readonly _entityName;
42
+ constructor(provider: ApiProvider);
43
+ constructor(authParams: OauthParams);
44
+ constructor(authToken: string, host?: string);
45
+ get moduleName(): string;
46
+ get entityName(): string;
47
+ /**
48
+ * Create a new empty AddressInteraction record instance for create operations.
49
+ * Pre-generates an ID that can be referenced before the record is saved.
50
+ *
51
+ * @param id - Optional ID to use (auto-generated UUID if not provided)
52
+ * @returns A new record wrapper with pre-generated ID
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * // Auto-generated ID
57
+ * const note = odinClient.notes.new();
58
+ * console.log(note.id); // UUID available immediately
59
+ *
60
+ * // Custom ID
61
+ * const order = odinClient.orders.new("custom-id-123");
62
+ *
63
+ * // Reference ID before save
64
+ * const account = odinClient.accounts.new();
65
+ * const contact = odinClient.contacts.new();
66
+ * await contact
67
+ * .link({ id: account.id, entity: "CrmModule:Account" })
68
+ * .createContact({ FirstName: "John" });
69
+ * ```
70
+ */
71
+ new(id?: string): AddressInteractionRecord;
72
+ /**
73
+ * Get a single AddressInteraction record by ID
74
+ */
75
+ get(id: string): Promise<AddressInteractionRecord>;
76
+ /**
77
+ * Get multiple AddressInteraction records by IDs
78
+ */
79
+ getMany(ids: string[]): Promise<AddressInteractionRecord[]>;
80
+ /**
81
+ * Search AddressInteraction records
82
+ */
83
+ search(params: Partial<OdinSearchV2>): Promise<AddressInteractionSearchResponse>;
84
+ /**
85
+ * Search all AddressInteraction records with automatic pagination
86
+ */
87
+ searchAll(params: Partial<OdinSearchV2>): Promise<AddressInteractionRecord[]>;
88
+ /**
89
+ * Async generator for paginating through all matching records.
90
+ * Yields batches of wrapped records.
91
+ */
92
+ paginate(params: Partial<OdinSearchV2>): AsyncGenerator<AddressInteractionRecord[]>;
93
+ /**
94
+ * Create a fluent query builder for AddressInteraction records
95
+ *
96
+ * @example
97
+ * ```typescript
98
+ * const results = await accessor
99
+ * .query()
100
+ * .where('Status', 'in', ['Active', 'Pending'])
101
+ * .where('CreatedAt', 'gte', '2025-01-01')
102
+ * .select('id', 'title', 'properties.*')
103
+ * .sortBy('createdAt', 'desc')
104
+ * .limit(100)
105
+ * .execute();
106
+ * ```
107
+ */
108
+ query(): QueryBuilder<AddressInteractionProperties, AddressInteractionRecord>;
109
+ /** Access the underlying ApiProvider */
110
+ get provider(): ApiProvider;
111
+ }
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ /**
3
+ * AddressInteraction Accessor
4
+ *
5
+ * Provides typed access to AddressInteraction records via API.
6
+ * Returns wrapped records with typed action methods.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // Get existing record
11
+ * const record = await accessor.get(id);
12
+ * await record.updateAddressInteraction({ ... });
13
+ *
14
+ * // Create new record
15
+ * const newRecord = accessor.new();
16
+ * await newRecord.createAddressInteraction({ ... });
17
+ * ```
18
+ *
19
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
+ */
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
31
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
32
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
33
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
34
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
35
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
36
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
37
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
38
+ function fulfill(value) { resume("next", value); }
39
+ function reject(value) { resume("throw", value); }
40
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.AddressInteractionAccessor = void 0;
44
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
45
+ const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
46
+ const AddressInteractionRecord_1 = require("../records-v2/AddressInteractionRecord");
47
+ class AddressInteractionAccessor {
48
+ constructor(providerOrAuth, host) {
49
+ this._moduleName = 'CrmModule';
50
+ this._entityName = 'AddressInteraction';
51
+ if (providerOrAuth instanceof api_provider_1.ApiProvider) {
52
+ this._provider = providerOrAuth;
53
+ }
54
+ else if (typeof providerOrAuth === 'string') {
55
+ // Auth token provided
56
+ this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
57
+ }
58
+ else {
59
+ // OauthParams provided
60
+ this._provider = new api_provider_1.ApiProvider(providerOrAuth);
61
+ }
62
+ }
63
+ get moduleName() { return this._moduleName; }
64
+ get entityName() { return this._entityName; }
65
+ // ============================================
66
+ // RECORD CREATION
67
+ // ============================================
68
+ /**
69
+ * Create a new empty AddressInteraction record instance for create operations.
70
+ * Pre-generates an ID that can be referenced before the record is saved.
71
+ *
72
+ * @param id - Optional ID to use (auto-generated UUID if not provided)
73
+ * @returns A new record wrapper with pre-generated ID
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * // Auto-generated ID
78
+ * const note = odinClient.notes.new();
79
+ * console.log(note.id); // UUID available immediately
80
+ *
81
+ * // Custom ID
82
+ * const order = odinClient.orders.new("custom-id-123");
83
+ *
84
+ * // Reference ID before save
85
+ * const account = odinClient.accounts.new();
86
+ * const contact = odinClient.contacts.new();
87
+ * await contact
88
+ * .link({ id: account.id, entity: "CrmModule:Account" })
89
+ * .createContact({ FirstName: "John" });
90
+ * ```
91
+ */
92
+ new(id) {
93
+ return new AddressInteractionRecord_1.AddressInteractionRecord(null, this._provider, id);
94
+ }
95
+ // ============================================
96
+ // RECORD RETRIEVAL
97
+ // ============================================
98
+ /**
99
+ * Get a single AddressInteraction record by ID
100
+ */
101
+ get(id) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
104
+ return new AddressInteractionRecord_1.AddressInteractionRecord(record, this._provider);
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple AddressInteraction records by IDs
109
+ */
110
+ getMany(ids) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ if (ids.length === 0)
113
+ return [];
114
+ const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
115
+ return records.map((r) => new AddressInteractionRecord_1.AddressInteractionRecord(r, this._provider));
116
+ });
117
+ }
118
+ // ============================================
119
+ // SEARCH OPERATIONS
120
+ // ============================================
121
+ /**
122
+ * Search AddressInteraction records
123
+ */
124
+ search(params) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
127
+ return {
128
+ records: result.records.map((r) => new AddressInteractionRecord_1.AddressInteractionRecord(r, this._provider)),
129
+ totalRecords: result.totalRecords,
130
+ hasMore: result.hasMore,
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Search all AddressInteraction records with automatic pagination
136
+ */
137
+ searchAll(params) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
140
+ return result.records.map((r) => new AddressInteractionRecord_1.AddressInteractionRecord(r, this._provider));
141
+ });
142
+ }
143
+ /**
144
+ * Async generator for paginating through all matching records.
145
+ * Yields batches of wrapped records.
146
+ */
147
+ paginate(params) {
148
+ var _a;
149
+ return __asyncGenerator(this, arguments, function* paginate_1() {
150
+ let hasMore = true;
151
+ let searchAfter;
152
+ const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
153
+ while (hasMore) {
154
+ const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
155
+ if (result.records.length > 0) {
156
+ yield yield __await(result.records.map((r) => new AddressInteractionRecord_1.AddressInteractionRecord(r, this._provider)));
157
+ const lastRecord = result.records[result.records.length - 1];
158
+ searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
159
+ }
160
+ hasMore = result.hasMore && result.records.length >= query.pageSize;
161
+ }
162
+ });
163
+ }
164
+ // ============================================
165
+ // QUERY BUILDER
166
+ // ============================================
167
+ /**
168
+ * Create a fluent query builder for AddressInteraction records
169
+ *
170
+ * @example
171
+ * ```typescript
172
+ * const results = await accessor
173
+ * .query()
174
+ * .where('Status', 'in', ['Active', 'Pending'])
175
+ * .where('CreatedAt', 'gte', '2025-01-01')
176
+ * .select('id', 'title', 'properties.*')
177
+ * .sortBy('createdAt', 'desc')
178
+ * .limit(100)
179
+ * .execute();
180
+ * ```
181
+ */
182
+ query() {
183
+ return (0, query_builder_1.createQueryBuilder)(this);
184
+ }
185
+ /** Access the underlying ApiProvider */
186
+ get provider() {
187
+ return this._provider;
188
+ }
189
+ }
190
+ exports.AddressInteractionAccessor = AddressInteractionAccessor;
@@ -10,6 +10,7 @@ export { AccountCreditAccessor, AccountCreditSearchResponse, AccountCreditListRe
10
10
  export { AccountAccessor, AccountSearchResponse, AccountListResponse } from './AccountAccessor';
11
11
  export { ActivityLogAccessor, ActivityLogSearchResponse, ActivityLogListResponse } from './ActivityLogAccessor';
12
12
  export { ActivityAccessor, ActivitySearchResponse, ActivityListResponse } from './ActivityAccessor';
13
+ export { AddressInteractionAccessor, AddressInteractionSearchResponse, AddressInteractionListResponse } from './AddressInteractionAccessor';
13
14
  export { AddressAccessor, AddressSearchResponse, AddressListResponse } from './AddressAccessor';
14
15
  export { AffiliateCodeAccessor, AffiliateCodeSearchResponse, AffiliateCodeListResponse } from './AffiliateCodeAccessor';
15
16
  export { AppointmentAccessor, AppointmentSearchResponse, AppointmentListResponse } from './AppointmentAccessor';
@@ -8,9 +8,9 @@
8
8
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferAccessor = exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DiscountAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallTransferAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.CallEventAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
12
- exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = void 0;
13
- exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = void 0;
11
+ exports.OhExternalAuditAccessor = exports.OfferAccessor = exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DiscountAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallTransferAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.CallEventAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
12
+ exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = void 0;
13
+ exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = void 0;
14
14
  var AccountCreditAccessor_1 = require("./AccountCreditAccessor");
15
15
  Object.defineProperty(exports, "AccountCreditAccessor", { enumerable: true, get: function () { return AccountCreditAccessor_1.AccountCreditAccessor; } });
16
16
  var AccountAccessor_1 = require("./AccountAccessor");
@@ -19,6 +19,8 @@ var ActivityLogAccessor_1 = require("./ActivityLogAccessor");
19
19
  Object.defineProperty(exports, "ActivityLogAccessor", { enumerable: true, get: function () { return ActivityLogAccessor_1.ActivityLogAccessor; } });
20
20
  var ActivityAccessor_1 = require("./ActivityAccessor");
21
21
  Object.defineProperty(exports, "ActivityAccessor", { enumerable: true, get: function () { return ActivityAccessor_1.ActivityAccessor; } });
22
+ var AddressInteractionAccessor_1 = require("./AddressInteractionAccessor");
23
+ Object.defineProperty(exports, "AddressInteractionAccessor", { enumerable: true, get: function () { return AddressInteractionAccessor_1.AddressInteractionAccessor; } });
22
24
  var AddressAccessor_1 = require("./AddressAccessor");
23
25
  Object.defineProperty(exports, "AddressAccessor", { enumerable: true, get: function () { return AddressAccessor_1.AddressAccessor; } });
24
26
  var AffiliateCodeAccessor_1 = require("./AffiliateCodeAccessor");
@@ -0,0 +1,99 @@
1
+ /**
2
+ * AddressInteractionCreate Action DTO
3
+ *
4
+ * Address Interaction Create
5
+ *
6
+ * @module CrmModule
7
+ * @entity AddressInteraction
8
+ * @actionKey AddressInteractionCreate
9
+ * @event k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for AddressInteractionCreate created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate
18
+ */
19
+ export interface AddressInteractionCreateMessage extends OdinRecordCreatedEvent<AddressInteractionCreateDto, AddressInteractionCreateProperties> {
20
+ }
21
+ /**
22
+ * Properties for AddressInteractionCreate action
23
+ *
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface AddressInteractionCreateProperties {
28
+ /**
29
+ * UDPRN
30
+ *
31
+ * Royal Mail UDPRN (Unique Delivery Point Reference Number) — the canonical identifier for a UK address.
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ udprn: string;
36
+ /**
37
+ * Full Address
38
+ *
39
+ * Human-readable address string
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ fullAddress: string;
44
+ /**
45
+ * Postcode
46
+ *
47
+ * Extracted postcode — useful for Marketing to segment and target by area
48
+ * @type {TEXT}
49
+ * @required
50
+ */
51
+ postcode: string;
52
+ /**
53
+ * Source
54
+ *
55
+ * Which website/form the interaction came from: YF_RESIDENTIAL, YF_BUSINESS, NETOMNIA — important given the team manages multiple brands
56
+ * @type {ENUM}
57
+ */
58
+ source?: string | null;
59
+ /**
60
+ * Interaction Count
61
+ *
62
+ * Number of times this address has been checked without a lead being created — helps Marketing prioritise warm addresses
63
+ * @type {NUMBER}
64
+ * @default 1
65
+ */
66
+ interactionCount?: number | null;
67
+ }
68
+ /**
69
+ * AddressInteractionCreate
70
+ *
71
+ * Address Interaction Create
72
+ *
73
+ * @actionType CREATE - Creates a new AddressInteraction record
74
+ * @module CrmModule
75
+ * @entity AddressInteraction
76
+ * @event k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate
77
+ * @permission schema.action.addressinteractioncreate.trigger
78
+ * @benchmark This action is tracked for performance benchmarks
79
+ */
80
+ export declare class AddressInteractionCreateDto extends OdinRecordCreateDto<AddressInteractionCreateProperties> {
81
+ /** Used by SDK generators to identify action type */
82
+ static readonly ACTION_TYPE = "CREATE";
83
+ static readonly ACTION_KEY = "AddressInteractionCreate";
84
+ static readonly MODULE_NAME = "CrmModule";
85
+ static readonly ENTITIES: string[];
86
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate";
87
+ static readonly PERMISSION = "schema.action.addressinteractioncreate.trigger";
88
+ /** Step metadata - entity this action targets */
89
+ static readonly STEP_ENTITY = "CrmModule:AddressInteraction";
90
+ static readonly STEP_SCHEMA_ID = "4eab8349-297d-4a68-84fd-608443d74043";
91
+ static readonly STEP_SCHEMA_ACTION_ID = "6491299d-ecf9-4a71-b4fc-72c461cd6ceb";
92
+ static readonly AUTO_LINK_PARENT = true;
93
+ readonly actionName: string;
94
+ readonly schemaActionId: string;
95
+ readonly entity: string;
96
+ constructor(properties: AddressInteractionCreateProperties, options?: {
97
+ journeyId?: string;
98
+ });
99
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * AddressInteractionCreate Action DTO
4
+ *
5
+ * Address Interaction Create
6
+ *
7
+ * @module CrmModule
8
+ * @entity AddressInteraction
9
+ * @actionKey AddressInteractionCreate
10
+ * @event k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AddressInteractionCreateDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * AddressInteractionCreate
19
+ *
20
+ * Address Interaction Create
21
+ *
22
+ * @actionType CREATE - Creates a new AddressInteraction record
23
+ * @module CrmModule
24
+ * @entity AddressInteraction
25
+ * @event k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate
26
+ * @permission schema.action.addressinteractioncreate.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class AddressInteractionCreateDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'CrmModule:AddressInteraction',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'AddressInteractionCreate';
38
+ this.schemaActionId = '6491299d-ecf9-4a71-b4fc-72c461cd6ceb';
39
+ this.entity = 'CrmModule:AddressInteraction';
40
+ }
41
+ }
42
+ exports.AddressInteractionCreateDto = AddressInteractionCreateDto;
43
+ /** Used by SDK generators to identify action type */
44
+ AddressInteractionCreateDto.ACTION_TYPE = 'CREATE';
45
+ AddressInteractionCreateDto.ACTION_KEY = 'AddressInteractionCreate';
46
+ AddressInteractionCreateDto.MODULE_NAME = 'CrmModule';
47
+ AddressInteractionCreateDto.ENTITIES = ['AddressInteraction'];
48
+ AddressInteractionCreateDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.AddressInteraction.Create.AddressInteractionCreate';
49
+ AddressInteractionCreateDto.PERMISSION = 'schema.action.addressinteractioncreate.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ AddressInteractionCreateDto.STEP_ENTITY = 'CrmModule:AddressInteraction';
52
+ AddressInteractionCreateDto.STEP_SCHEMA_ID = '4eab8349-297d-4a68-84fd-608443d74043';
53
+ AddressInteractionCreateDto.STEP_SCHEMA_ACTION_ID = '6491299d-ecf9-4a71-b4fc-72c461cd6ceb';
54
+ AddressInteractionCreateDto.AUTO_LINK_PARENT = true;