@d19n/youfibre-odin-sdk 2.0.285 → 2.0.286

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
@@ -366,7 +366,7 @@ This SDK includes **178** entities across **12** modules.
366
366
 
367
367
  ## Actions
368
368
 
369
- This SDK includes **844** actions.
369
+ This SDK includes **846** actions.
370
370
 
371
371
  ### Action Types
372
372
 
@@ -1561,6 +1561,14 @@ This SDK includes **844** actions.
1561
1561
  | `CreateCustomerDeviceOnt` | CREATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceOnt.Create.CreateCustomerDeviceOnt |
1562
1562
  | `UpdateCustomerDeviceOnt` | UPDATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceOnt.Update.UpdateCustomerDeviceONT |
1563
1563
 
1564
+ #### CustomerDeviceRouter
1565
+
1566
+ | Action | Type | Event |
1567
+ |--------|------|-------|
1568
+ | `CreateCustomerDeviceRouterFromDispatch` | CREATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch |
1569
+ | `CustomerDeviceRouterCreate` | CREATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CustomerDeviceRouterCreate |
1570
+ | `CustomerDeviceRouterUpdate` | UPDATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Update.CustomerDeviceRouterUpdate |
1571
+
1564
1572
  #### EmailSender
1565
1573
 
1566
1574
  | Action | Type | Event |
@@ -2071,6 +2079,12 @@ This SDK includes **844** actions.
2071
2079
  | `CreatePushNotification` | CREATE | k1.t-hEOJjsDb.NotificationModule.PushNotification.Create.CreatePushNotification |
2072
2080
  | `UpdatePushNotification` | UPDATE | k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification |
2073
2081
 
2082
+ #### Recontract
2083
+
2084
+ | Action | Type | Event |
2085
+ |--------|------|-------|
2086
+ | `CreateRecontract` | CREATE | k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract |
2087
+
2074
2088
  #### OrderItem
2075
2089
 
2076
2090
  | Action | Type | Event |
@@ -2204,13 +2218,6 @@ This SDK includes **844** actions.
2204
2218
  |--------|------|-------|
2205
2219
  | `CustomerDeviceAtaUpdate` | UPDATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceAta.Update.CustomerDeviceAtaUpdate |
2206
2220
 
2207
- #### CustomerDeviceRouter
2208
-
2209
- | Action | Type | Event |
2210
- |--------|------|-------|
2211
- | `CustomerDeviceRouterCreate` | CREATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CustomerDeviceRouterCreate |
2212
- | `CustomerDeviceRouterUpdate` | UPDATE | k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Update.CustomerDeviceRouterUpdate |
2213
-
2214
2221
  #### Unknown
2215
2222
 
2216
2223
  | Action | Type | Event |
@@ -97,6 +97,7 @@ import { PgWebhookAttemptAccessor } from './accessors-v2/PgWebhookAttemptAccesso
97
97
  import { PriceBookAccessor } from './accessors-v2/PriceBookAccessor';
98
98
  import { ProductAccessor } from './accessors-v2/ProductAccessor';
99
99
  import { PushNotificationAccessor } from './accessors-v2/PushNotificationAccessor';
100
+ import { RecontractAccessor } from './accessors-v2/RecontractAccessor';
100
101
  import { ReferralAccessor } from './accessors-v2/ReferralAccessor';
101
102
  import { RegionAccessor } from './accessors-v2/RegionAccessor';
102
103
  import { RemediationOutcomeFormAccessor } from './accessors-v2/RemediationOutcomeFormAccessor';
@@ -216,6 +217,7 @@ export declare const EntityRegistry: {
216
217
  readonly PriceBook: typeof PriceBookAccessor;
217
218
  readonly Product: typeof ProductAccessor;
218
219
  readonly PushNotification: typeof PushNotificationAccessor;
220
+ readonly Recontract: typeof RecontractAccessor;
219
221
  readonly Referral: typeof ReferralAccessor;
220
222
  readonly Region: typeof RegionAccessor;
221
223
  readonly RemediationOutcomeForm: typeof RemediationOutcomeFormAccessor;
@@ -100,6 +100,7 @@ const PgWebhookAttemptAccessor_1 = require("./accessors-v2/PgWebhookAttemptAcces
100
100
  const PriceBookAccessor_1 = require("./accessors-v2/PriceBookAccessor");
101
101
  const ProductAccessor_1 = require("./accessors-v2/ProductAccessor");
102
102
  const PushNotificationAccessor_1 = require("./accessors-v2/PushNotificationAccessor");
103
+ const RecontractAccessor_1 = require("./accessors-v2/RecontractAccessor");
103
104
  const ReferralAccessor_1 = require("./accessors-v2/ReferralAccessor");
104
105
  const RegionAccessor_1 = require("./accessors-v2/RegionAccessor");
105
106
  const RemediationOutcomeFormAccessor_1 = require("./accessors-v2/RemediationOutcomeFormAccessor");
@@ -219,6 +220,7 @@ exports.EntityRegistry = {
219
220
  'PriceBook': PriceBookAccessor_1.PriceBookAccessor,
220
221
  'Product': ProductAccessor_1.ProductAccessor,
221
222
  'PushNotification': PushNotificationAccessor_1.PushNotificationAccessor,
223
+ 'Recontract': RecontractAccessor_1.RecontractAccessor,
222
224
  'Referral': ReferralAccessor_1.ReferralAccessor,
223
225
  'Region': RegionAccessor_1.RegionAccessor,
224
226
  'RemediationOutcomeForm': RemediationOutcomeFormAccessor_1.RemediationOutcomeFormAccessor,
@@ -107,6 +107,7 @@ import { PgWebhookAttemptAccessor } from './accessors-v2/PgWebhookAttemptAccesso
107
107
  import { PriceBookAccessor } from './accessors-v2/PriceBookAccessor';
108
108
  import { ProductAccessor } from './accessors-v2/ProductAccessor';
109
109
  import { PushNotificationAccessor } from './accessors-v2/PushNotificationAccessor';
110
+ import { RecontractAccessor } from './accessors-v2/RecontractAccessor';
110
111
  import { ReferralAccessor } from './accessors-v2/ReferralAccessor';
111
112
  import { RegionAccessor } from './accessors-v2/RegionAccessor';
112
113
  import { RemediationOutcomeFormAccessor } from './accessors-v2/RemediationOutcomeFormAccessor';
@@ -235,6 +236,7 @@ export declare class OdinApiClient {
235
236
  private _priceBooks?;
236
237
  private _products?;
237
238
  private _pushNotifications?;
239
+ private _recontracts?;
238
240
  private _referrals?;
239
241
  private _regions?;
240
242
  private _remediationOutcomeForms?;
@@ -450,6 +452,8 @@ export declare class OdinApiClient {
450
452
  get products(): ProductAccessor;
451
453
  /** Access PushNotification records */
452
454
  get pushNotifications(): PushNotificationAccessor;
455
+ /** Access Recontract records */
456
+ get recontracts(): RecontractAccessor;
453
457
  /** Access Referral records */
454
458
  get referrals(): ReferralAccessor;
455
459
  /** Access Region records */
@@ -118,6 +118,7 @@ const PgWebhookAttemptAccessor_1 = require("./accessors-v2/PgWebhookAttemptAcces
118
118
  const PriceBookAccessor_1 = require("./accessors-v2/PriceBookAccessor");
119
119
  const ProductAccessor_1 = require("./accessors-v2/ProductAccessor");
120
120
  const PushNotificationAccessor_1 = require("./accessors-v2/PushNotificationAccessor");
121
+ const RecontractAccessor_1 = require("./accessors-v2/RecontractAccessor");
121
122
  const ReferralAccessor_1 = require("./accessors-v2/ReferralAccessor");
122
123
  const RegionAccessor_1 = require("./accessors-v2/RegionAccessor");
123
124
  const RemediationOutcomeFormAccessor_1 = require("./accessors-v2/RemediationOutcomeFormAccessor");
@@ -780,6 +781,13 @@ class OdinApiClient {
780
781
  }
781
782
  return this._pushNotifications;
782
783
  }
784
+ /** Access Recontract records */
785
+ get recontracts() {
786
+ if (!this._recontracts) {
787
+ this._recontracts = new RecontractAccessor_1.RecontractAccessor(this._provider);
788
+ }
789
+ return this._recontracts;
790
+ }
783
791
  /** Access Referral records */
784
792
  get referrals() {
785
793
  if (!this._referrals) {
@@ -114,6 +114,7 @@ import { PgWebhookDbAccessor } from './db-accessors-v2/PgWebhookDbAccessor';
114
114
  import { PriceBookDbAccessor } from './db-accessors-v2/PriceBookDbAccessor';
115
115
  import { ProductDbAccessor } from './db-accessors-v2/ProductDbAccessor';
116
116
  import { PushNotificationDbAccessor } from './db-accessors-v2/PushNotificationDbAccessor';
117
+ import { RecontractDbAccessor } from './db-accessors-v2/RecontractDbAccessor';
117
118
  import { ReferralDbAccessor } from './db-accessors-v2/ReferralDbAccessor';
118
119
  import { RegionDbAccessor } from './db-accessors-v2/RegionDbAccessor';
119
120
  import { RemediationOutcomeFormDbAccessor } from './db-accessors-v2/RemediationOutcomeFormDbAccessor';
@@ -236,6 +237,7 @@ export declare class OdinDbClient {
236
237
  private _priceBooks?;
237
238
  private _products?;
238
239
  private _pushNotifications?;
240
+ private _recontracts?;
239
241
  private _referrals?;
240
242
  private _regions?;
241
243
  private _remediationOutcomeForms?;
@@ -460,6 +462,8 @@ export declare class OdinDbClient {
460
462
  get products(): ProductDbAccessor;
461
463
  /** Access PushNotification records */
462
464
  get pushNotifications(): PushNotificationDbAccessor;
465
+ /** Access Recontract records */
466
+ get recontracts(): RecontractDbAccessor;
463
467
  /** Access Referral records */
464
468
  get referrals(): ReferralDbAccessor;
465
469
  /** Access Region records */
@@ -116,6 +116,7 @@ const PgWebhookDbAccessor_1 = require("./db-accessors-v2/PgWebhookDbAccessor");
116
116
  const PriceBookDbAccessor_1 = require("./db-accessors-v2/PriceBookDbAccessor");
117
117
  const ProductDbAccessor_1 = require("./db-accessors-v2/ProductDbAccessor");
118
118
  const PushNotificationDbAccessor_1 = require("./db-accessors-v2/PushNotificationDbAccessor");
119
+ const RecontractDbAccessor_1 = require("./db-accessors-v2/RecontractDbAccessor");
119
120
  const ReferralDbAccessor_1 = require("./db-accessors-v2/ReferralDbAccessor");
120
121
  const RegionDbAccessor_1 = require("./db-accessors-v2/RegionDbAccessor");
121
122
  const RemediationOutcomeFormDbAccessor_1 = require("./db-accessors-v2/RemediationOutcomeFormDbAccessor");
@@ -781,6 +782,13 @@ class OdinDbClient {
781
782
  }
782
783
  return this._pushNotifications;
783
784
  }
785
+ /** Access Recontract records */
786
+ get recontracts() {
787
+ if (!this._recontracts) {
788
+ this._recontracts = new RecontractDbAccessor_1.RecontractDbAccessor(this._principal, this._dbService, this._defaultOptions);
789
+ }
790
+ return this._recontracts;
791
+ }
784
792
  /** Access Referral records */
785
793
  get referrals() {
786
794
  if (!this._referrals) {
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Recontract Accessor
3
+ *
4
+ * Provides typed access to Recontract 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.updateRecontract({ ... });
12
+ *
13
+ * // Create new record
14
+ * const newRecord = accessor.new();
15
+ * await newRecord.createRecontract({ ... });
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 { RecontractProperties } from '../entities-v2/Recontract';
25
+ import { RecontractRecord } from '../records-v2/RecontractRecord';
26
+ /** List response with wrapped records */
27
+ export interface RecontractListResponse {
28
+ data: RecontractRecord[];
29
+ hasMore: boolean;
30
+ totalRecords: number;
31
+ }
32
+ /** Search response with wrapped records */
33
+ export interface RecontractSearchResponse {
34
+ records: RecontractRecord[];
35
+ totalRecords: number;
36
+ hasMore: boolean;
37
+ }
38
+ export declare class RecontractAccessor {
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 Recontract 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): RecontractRecord;
72
+ /**
73
+ * Get a single Recontract record by ID
74
+ */
75
+ get(id: string): Promise<RecontractRecord>;
76
+ /**
77
+ * Get multiple Recontract records by IDs
78
+ */
79
+ getMany(ids: string[]): Promise<RecontractRecord[]>;
80
+ /**
81
+ * Search Recontract records
82
+ */
83
+ search(params: Partial<OdinSearchV2>): Promise<RecontractSearchResponse>;
84
+ /**
85
+ * Search all Recontract records with automatic pagination
86
+ */
87
+ searchAll(params: Partial<OdinSearchV2>): Promise<RecontractRecord[]>;
88
+ /**
89
+ * Async generator for paginating through all matching records.
90
+ * Yields batches of wrapped records.
91
+ */
92
+ paginate(params: Partial<OdinSearchV2>): AsyncGenerator<RecontractRecord[]>;
93
+ /**
94
+ * Create a fluent query builder for Recontract 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<RecontractProperties, RecontractRecord>;
109
+ /** Access the underlying ApiProvider */
110
+ get provider(): ApiProvider;
111
+ }
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ /**
3
+ * Recontract Accessor
4
+ *
5
+ * Provides typed access to Recontract 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.updateRecontract({ ... });
13
+ *
14
+ * // Create new record
15
+ * const newRecord = accessor.new();
16
+ * await newRecord.createRecontract({ ... });
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.RecontractAccessor = 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 RecontractRecord_1 = require("../records-v2/RecontractRecord");
47
+ class RecontractAccessor {
48
+ constructor(providerOrAuth, host) {
49
+ this._moduleName = 'OrderModule';
50
+ this._entityName = 'Recontract';
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 Recontract 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 RecontractRecord_1.RecontractRecord(null, this._provider, id);
94
+ }
95
+ // ============================================
96
+ // RECORD RETRIEVAL
97
+ // ============================================
98
+ /**
99
+ * Get a single Recontract 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 RecontractRecord_1.RecontractRecord(record, this._provider);
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple Recontract 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 RecontractRecord_1.RecontractRecord(r, this._provider));
116
+ });
117
+ }
118
+ // ============================================
119
+ // SEARCH OPERATIONS
120
+ // ============================================
121
+ /**
122
+ * Search Recontract 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 RecontractRecord_1.RecontractRecord(r, this._provider)),
129
+ totalRecords: result.totalRecords,
130
+ hasMore: result.hasMore,
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Search all Recontract 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 RecontractRecord_1.RecontractRecord(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 RecontractRecord_1.RecontractRecord(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 Recontract 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.RecontractAccessor = RecontractAccessor;
@@ -92,6 +92,7 @@ export { PgWebhookAccessor, PgWebhookSearchResponse, PgWebhookListResponse } fro
92
92
  export { PriceBookAccessor, PriceBookSearchResponse, PriceBookListResponse } from './PriceBookAccessor';
93
93
  export { ProductAccessor, ProductSearchResponse, ProductListResponse } from './ProductAccessor';
94
94
  export { PushNotificationAccessor, PushNotificationSearchResponse, PushNotificationListResponse } from './PushNotificationAccessor';
95
+ export { RecontractAccessor, RecontractSearchResponse, RecontractListResponse } from './RecontractAccessor';
95
96
  export { ReferralAccessor, ReferralSearchResponse, ReferralListResponse } from './ReferralAccessor';
96
97
  export { RegionAccessor, RegionSearchResponse, RegionListResponse } from './RegionAccessor';
97
98
  export { RemediationOutcomeFormAccessor, RemediationOutcomeFormSearchResponse, RemediationOutcomeFormListResponse } from './RemediationOutcomeFormAccessor';
@@ -9,8 +9,8 @@
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.ModifyServiceRequestAccessor = 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.DataIssueAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationSummaryFeedbackAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallAccessor = exports.CallLegAccessor = 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.SmsTemplateAccessor = 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.PgReportEventAccessor = 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.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = exports.NotificationTemplateAccessor = void 0;
13
- exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.YfAgentLocationAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = void 0;
12
+ 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.RecontractAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgReportEventAccessor = 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.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = exports.NotificationTemplateAccessor = void 0;
13
+ exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.YfAgentLocationAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsTemplateAccessor = 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");
@@ -183,6 +183,8 @@ var ProductAccessor_1 = require("./ProductAccessor");
183
183
  Object.defineProperty(exports, "ProductAccessor", { enumerable: true, get: function () { return ProductAccessor_1.ProductAccessor; } });
184
184
  var PushNotificationAccessor_1 = require("./PushNotificationAccessor");
185
185
  Object.defineProperty(exports, "PushNotificationAccessor", { enumerable: true, get: function () { return PushNotificationAccessor_1.PushNotificationAccessor; } });
186
+ var RecontractAccessor_1 = require("./RecontractAccessor");
187
+ Object.defineProperty(exports, "RecontractAccessor", { enumerable: true, get: function () { return RecontractAccessor_1.RecontractAccessor; } });
186
188
  var ReferralAccessor_1 = require("./ReferralAccessor");
187
189
  Object.defineProperty(exports, "ReferralAccessor", { enumerable: true, get: function () { return ReferralAccessor_1.ReferralAccessor; } });
188
190
  var RegionAccessor_1 = require("./RegionAccessor");
@@ -0,0 +1,74 @@
1
+ /**
2
+ * CreateCustomerDeviceRouterFromDispatch Action DTO
3
+ *
4
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
5
+ *
6
+ * @module ServiceModule
7
+ * @entity CustomerDeviceRouter
8
+ * @actionKey CreateCustomerDeviceRouterFromDispatch
9
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
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 CreateCustomerDeviceRouterFromDispatch created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
18
+ */
19
+ export interface CreateCustomerDeviceRouterFromDispatchMessage extends OdinRecordCreatedEvent<CreateCustomerDeviceRouterFromDispatchDto, CreateCustomerDeviceRouterFromDispatchProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateCustomerDeviceRouterFromDispatch action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface CreateCustomerDeviceRouterFromDispatchProperties {
28
+ /**
29
+ * SerialNumber
30
+ *
31
+ * serial number for the customer device, scanned during install (Network Operations - CustomerDeviceRouter)
32
+ * @type {TEXT}
33
+ */
34
+ SerialNumber?: string | null;
35
+ /**
36
+ * MacAddress
37
+ *
38
+ * mac address (Network Operations - CustomerDeviceRouter)
39
+ * @type {TEXT}
40
+ */
41
+ MacAddress?: string | null;
42
+ }
43
+ /**
44
+ * CreateCustomerDeviceRouterFromDispatch
45
+ *
46
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
47
+ *
48
+ * @actionType CREATE - Creates a new CustomerDeviceRouter record
49
+ * @module ServiceModule
50
+ * @entity CustomerDeviceRouter
51
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
52
+ * @permission schema.action.createcustomerdevicerouterfromdispatch.trigger
53
+ * @benchmark This action is tracked for performance benchmarks
54
+ */
55
+ export declare class CreateCustomerDeviceRouterFromDispatchDto extends OdinRecordCreateDto<CreateCustomerDeviceRouterFromDispatchProperties> {
56
+ /** Used by SDK generators to identify action type */
57
+ static readonly ACTION_TYPE = "CREATE";
58
+ static readonly ACTION_KEY = "CreateCustomerDeviceRouterFromDispatch";
59
+ static readonly MODULE_NAME = "ServiceModule";
60
+ static readonly ENTITIES: string[];
61
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch";
62
+ static readonly PERMISSION = "schema.action.createcustomerdevicerouterfromdispatch.trigger";
63
+ /** Step metadata - entity this action targets */
64
+ static readonly STEP_ENTITY = "ServiceModule:CustomerDeviceRouter";
65
+ static readonly STEP_SCHEMA_ID = "4c9cdf3a-e059-4e45-8050-e6cdf9fdd87d";
66
+ static readonly STEP_SCHEMA_ACTION_ID = "5b818ad9-c6e5-4787-a990-539145fe47fe";
67
+ static readonly AUTO_LINK_PARENT = true;
68
+ readonly actionName: string;
69
+ readonly schemaActionId: string;
70
+ readonly entity: string;
71
+ constructor(properties: CreateCustomerDeviceRouterFromDispatchProperties, options?: {
72
+ journeyId?: string;
73
+ });
74
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCustomerDeviceRouterFromDispatch Action DTO
4
+ *
5
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
6
+ *
7
+ * @module ServiceModule
8
+ * @entity CustomerDeviceRouter
9
+ * @actionKey CreateCustomerDeviceRouterFromDispatch
10
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateCustomerDeviceRouterFromDispatchDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateCustomerDeviceRouterFromDispatch
19
+ *
20
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
21
+ *
22
+ * @actionType CREATE - Creates a new CustomerDeviceRouter record
23
+ * @module ServiceModule
24
+ * @entity CustomerDeviceRouter
25
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
26
+ * @permission schema.action.createcustomerdevicerouterfromdispatch.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateCustomerDeviceRouterFromDispatchDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'ServiceModule:CustomerDeviceRouter',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateCustomerDeviceRouterFromDispatch';
38
+ this.schemaActionId = '5b818ad9-c6e5-4787-a990-539145fe47fe';
39
+ this.entity = 'ServiceModule:CustomerDeviceRouter';
40
+ }
41
+ }
42
+ exports.CreateCustomerDeviceRouterFromDispatchDto = CreateCustomerDeviceRouterFromDispatchDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateCustomerDeviceRouterFromDispatchDto.ACTION_TYPE = 'CREATE';
45
+ CreateCustomerDeviceRouterFromDispatchDto.ACTION_KEY = 'CreateCustomerDeviceRouterFromDispatch';
46
+ CreateCustomerDeviceRouterFromDispatchDto.MODULE_NAME = 'ServiceModule';
47
+ CreateCustomerDeviceRouterFromDispatchDto.ENTITIES = ['CustomerDeviceRouter'];
48
+ CreateCustomerDeviceRouterFromDispatchDto.EVENT_NAME = 'k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch';
49
+ CreateCustomerDeviceRouterFromDispatchDto.PERMISSION = 'schema.action.createcustomerdevicerouterfromdispatch.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_ENTITY = 'ServiceModule:CustomerDeviceRouter';
52
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_SCHEMA_ID = '4c9cdf3a-e059-4e45-8050-e6cdf9fdd87d';
53
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_SCHEMA_ACTION_ID = '5b818ad9-c6e5-4787-a990-539145fe47fe';
54
+ CreateCustomerDeviceRouterFromDispatchDto.AUTO_LINK_PARENT = true;