@d19n/youfibre-odin-sdk 2.0.255 → 2.0.256-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +11 -2
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/CustomerDeviceAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/CustomerDeviceAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +5 -3
  12. package/dist/actions-v2/CreateCustomerDeviceBatteryDto.d.ts +70 -0
  13. package/dist/actions-v2/CreateCustomerDeviceBatteryDto.js +57 -0
  14. package/dist/actions-v2/DefaultUpdateChurnRequestDto.d.ts +15 -1
  15. package/dist/actions-v2/SetOrderCancelDateDto.d.ts +111 -0
  16. package/dist/actions-v2/SetOrderCancelDateDto.js +76 -0
  17. package/dist/api-sdk-v2/CustomerDeviceApi.d.ts +48 -0
  18. package/dist/api-sdk-v2/CustomerDeviceApi.js +155 -0
  19. package/dist/api-sdk-v2/FieldServiceDispatchedProductApi.d.ts +2 -0
  20. package/dist/api-sdk-v2/FieldServiceDispatchedProductApi.js +6 -0
  21. package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
  22. package/dist/api-sdk-v2/OrderApi.js +6 -0
  23. package/dist/api-sdk-v2/RecontractApi.d.ts +48 -0
  24. package/dist/api-sdk-v2/RecontractApi.js +155 -0
  25. package/dist/db-accessors-v2/CustomerDeviceDbAccessor.d.ts +149 -0
  26. package/dist/db-accessors-v2/CustomerDeviceDbAccessor.js +227 -0
  27. package/dist/db-accessors-v2/index.d.ts +1 -0
  28. package/dist/db-accessors-v2/index.js +5 -3
  29. package/dist/db-sdk-v2/CustomerDeviceDb.d.ts +120 -0
  30. package/dist/db-sdk-v2/CustomerDeviceDb.js +204 -0
  31. package/dist/db-sdk-v2/FieldServiceDispatchedProductDb.d.ts +2 -0
  32. package/dist/db-sdk-v2/FieldServiceDispatchedProductDb.js +6 -0
  33. package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
  34. package/dist/db-sdk-v2/OrderDb.js +6 -0
  35. package/dist/db-sdk-v2/RecontractDb.d.ts +120 -0
  36. package/dist/db-sdk-v2/RecontractDb.js +204 -0
  37. package/dist/entities-v2/CustomerDevice.d.ts +112 -0
  38. package/dist/entities-v2/CustomerDevice.js +80 -0
  39. package/dist/entities-v2/FieldServiceDispatchedProduct.d.ts +3 -0
  40. package/dist/entities-v2/Order.d.ts +10 -0
  41. package/dist/entities-v2/Order.js +2 -0
  42. package/dist/entities-v2/Recontract.d.ts +143 -0
  43. package/dist/entities-v2/Recontract.js +98 -0
  44. package/dist/records-v2/CustomerDeviceRecord.d.ts +221 -0
  45. package/dist/records-v2/CustomerDeviceRecord.js +296 -0
  46. package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +20 -0
  47. package/dist/records-v2/FieldServiceDispatchedProductRecord.js +33 -0
  48. package/dist/records-v2/index.d.ts +1 -0
  49. package/dist/records-v2/index.js +7 -4
  50. package/package.json +1 -1
package/README.md CHANGED
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
124
124
 
125
125
  ## Entities
126
126
 
127
- This SDK includes **172** entities across **12** modules.
127
+ This SDK includes **174** entities across **12** modules.
128
128
 
129
129
  ### CrmModule
130
130
 
@@ -208,6 +208,7 @@ This SDK includes **172** entities across **12** modules.
208
208
  | **OneTouchSwitch** | OneTouchSwitch Entity Definition | GAINING, LOSING |
209
209
  | **Order** | Order Entity Definition | DEFAULT |
210
210
  | **PICRequest** | PICRequest Entity Definition | DEFAULT |
211
+ | **Recontract** | Recontract Entity Definition | DEFAULT |
211
212
  | **ReturnOrder** | ReturnOrder Entity Definition | DEFAULT |
212
213
  | **SplitOrder** | SplitOrder Entity Definition | DEFAULT |
213
214
 
@@ -263,6 +264,7 @@ This SDK includes **172** entities across **12** modules.
263
264
  | Entity | Description | Types |
264
265
  |--------|-------------|-------|
265
266
  | **BngProvision** | BngProvision Entity Definition | DEFAULT |
267
+ | **CustomerDevice** | CustomerDevice Entity Definition | BATTERY |
266
268
  | **CustomerDeviceAta** | CustomerDeviceAta Entity Definition | DEFAULT |
267
269
  | **CustomerDeviceOnt** | CustomerDeviceOnt Entity Definition | DEFAULT |
268
270
  | **CustomerDeviceOntRemoval** | CustomerDeviceOntRemoval Entity Definition | DEFAULT |
@@ -360,7 +362,7 @@ This SDK includes **172** entities across **12** modules.
360
362
 
361
363
  ## Actions
362
364
 
363
- This SDK includes **781** actions.
365
+ This SDK includes **783** actions.
364
366
 
365
367
  ### Action Types
366
368
 
@@ -403,6 +405,7 @@ This SDK includes **781** actions.
403
405
  | `OderUpdate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.OderUpdate |
404
406
  | `ReactivateOrderAfterRollback` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.ReactivateOrderAfterRollback |
405
407
  | `SetOrderAffiliateCode` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderAffiliateCode |
408
+ | `SetOrderCancelDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Flow.SetOrderCancelDate |
406
409
  | `SetOrderCancelOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderCancelOnDate |
407
410
  | `SetOrderDeactivateOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderDeactivateOnDate |
408
411
  | `SetPendingAmcoWorkOrder` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetPendingAmcoWorkOrder |
@@ -1436,6 +1439,12 @@ This SDK includes **781** actions.
1436
1439
  |--------|------|-------|
1437
1440
  | `CreateConversationSummaryFeedback` | CREATE | k1.t-hEOJjsDb.NotificationModule.ConversationSummaryFeedback.Create.CreateConversationSummaryFeedback |
1438
1441
 
1442
+ #### CustomerDevice
1443
+
1444
+ | Action | Type | Event |
1445
+ |--------|------|-------|
1446
+ | `CreateCustomerDeviceBattery` | CREATE | k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery |
1447
+
1439
1448
  #### CustomerDeviceConfiguration
1440
1449
 
1441
1450
  | Action | Type | Event |
@@ -37,6 +37,7 @@ import { ConversationAccessor } from './accessors-v2/ConversationAccessor';
37
37
  import { ConversationSummaryFeedbackAccessor } from './accessors-v2/ConversationSummaryFeedbackAccessor';
38
38
  import { CreditNoteAccessor } from './accessors-v2/CreditNoteAccessor';
39
39
  import { CrmDatasetAccessor } from './accessors-v2/CrmDatasetAccessor';
40
+ import { CustomerDeviceAccessor } from './accessors-v2/CustomerDeviceAccessor';
40
41
  import { CustomerDeviceAtaAccessor } from './accessors-v2/CustomerDeviceAtaAccessor';
41
42
  import { CustomerDeviceConfigurationAccessor } from './accessors-v2/CustomerDeviceConfigurationAccessor';
42
43
  import { CustomerDeviceOntAccessor } from './accessors-v2/CustomerDeviceOntAccessor';
@@ -150,6 +151,7 @@ export declare const EntityRegistry: {
150
151
  readonly ConversationSummaryFeedback: typeof ConversationSummaryFeedbackAccessor;
151
152
  readonly CreditNote: typeof CreditNoteAccessor;
152
153
  readonly CrmDataset: typeof CrmDatasetAccessor;
154
+ readonly CustomerDevice: typeof CustomerDeviceAccessor;
153
155
  readonly CustomerDeviceAta: typeof CustomerDeviceAtaAccessor;
154
156
  readonly CustomerDeviceConfiguration: typeof CustomerDeviceConfigurationAccessor;
155
157
  readonly CustomerDeviceOnt: typeof CustomerDeviceOntAccessor;
@@ -40,6 +40,7 @@ const ConversationAccessor_1 = require("./accessors-v2/ConversationAccessor");
40
40
  const ConversationSummaryFeedbackAccessor_1 = require("./accessors-v2/ConversationSummaryFeedbackAccessor");
41
41
  const CreditNoteAccessor_1 = require("./accessors-v2/CreditNoteAccessor");
42
42
  const CrmDatasetAccessor_1 = require("./accessors-v2/CrmDatasetAccessor");
43
+ const CustomerDeviceAccessor_1 = require("./accessors-v2/CustomerDeviceAccessor");
43
44
  const CustomerDeviceAtaAccessor_1 = require("./accessors-v2/CustomerDeviceAtaAccessor");
44
45
  const CustomerDeviceConfigurationAccessor_1 = require("./accessors-v2/CustomerDeviceConfigurationAccessor");
45
46
  const CustomerDeviceOntAccessor_1 = require("./accessors-v2/CustomerDeviceOntAccessor");
@@ -153,6 +154,7 @@ exports.EntityRegistry = {
153
154
  'ConversationSummaryFeedback': ConversationSummaryFeedbackAccessor_1.ConversationSummaryFeedbackAccessor,
154
155
  'CreditNote': CreditNoteAccessor_1.CreditNoteAccessor,
155
156
  'CrmDataset': CrmDatasetAccessor_1.CrmDatasetAccessor,
157
+ 'CustomerDevice': CustomerDeviceAccessor_1.CustomerDeviceAccessor,
156
158
  'CustomerDeviceAta': CustomerDeviceAtaAccessor_1.CustomerDeviceAtaAccessor,
157
159
  'CustomerDeviceConfiguration': CustomerDeviceConfigurationAccessor_1.CustomerDeviceConfigurationAccessor,
158
160
  'CustomerDeviceOnt': CustomerDeviceOntAccessor_1.CustomerDeviceOntAccessor,
@@ -47,6 +47,7 @@ import { ConversationAccessor } from './accessors-v2/ConversationAccessor';
47
47
  import { ConversationSummaryFeedbackAccessor } from './accessors-v2/ConversationSummaryFeedbackAccessor';
48
48
  import { CreditNoteAccessor } from './accessors-v2/CreditNoteAccessor';
49
49
  import { CrmDatasetAccessor } from './accessors-v2/CrmDatasetAccessor';
50
+ import { CustomerDeviceAccessor } from './accessors-v2/CustomerDeviceAccessor';
50
51
  import { CustomerDeviceAtaAccessor } from './accessors-v2/CustomerDeviceAtaAccessor';
51
52
  import { CustomerDeviceConfigurationAccessor } from './accessors-v2/CustomerDeviceConfigurationAccessor';
52
53
  import { CustomerDeviceOntAccessor } from './accessors-v2/CustomerDeviceOntAccessor';
@@ -169,6 +170,7 @@ export declare class OdinApiClient {
169
170
  private _conversationSummaryFeedbacks?;
170
171
  private _creditNotes?;
171
172
  private _crmDatasets?;
173
+ private _customerDevices?;
172
174
  private _customerDeviceAtas?;
173
175
  private _customerDeviceConfigurations?;
174
176
  private _customerDeviceOnts?;
@@ -318,6 +320,8 @@ export declare class OdinApiClient {
318
320
  get creditNotes(): CreditNoteAccessor;
319
321
  /** Access CrmDataset records */
320
322
  get crmDatasets(): CrmDatasetAccessor;
323
+ /** Access CustomerDevice records */
324
+ get customerDevices(): CustomerDeviceAccessor;
321
325
  /** Access CustomerDeviceAta records */
322
326
  get customerDeviceAtas(): CustomerDeviceAtaAccessor;
323
327
  /** Access CustomerDeviceConfiguration records */
@@ -58,6 +58,7 @@ const ConversationAccessor_1 = require("./accessors-v2/ConversationAccessor");
58
58
  const ConversationSummaryFeedbackAccessor_1 = require("./accessors-v2/ConversationSummaryFeedbackAccessor");
59
59
  const CreditNoteAccessor_1 = require("./accessors-v2/CreditNoteAccessor");
60
60
  const CrmDatasetAccessor_1 = require("./accessors-v2/CrmDatasetAccessor");
61
+ const CustomerDeviceAccessor_1 = require("./accessors-v2/CustomerDeviceAccessor");
61
62
  const CustomerDeviceAtaAccessor_1 = require("./accessors-v2/CustomerDeviceAtaAccessor");
62
63
  const CustomerDeviceConfigurationAccessor_1 = require("./accessors-v2/CustomerDeviceConfigurationAccessor");
63
64
  const CustomerDeviceOntAccessor_1 = require("./accessors-v2/CustomerDeviceOntAccessor");
@@ -354,6 +355,13 @@ class OdinApiClient {
354
355
  }
355
356
  return this._crmDatasets;
356
357
  }
358
+ /** Access CustomerDevice records */
359
+ get customerDevices() {
360
+ if (!this._customerDevices) {
361
+ this._customerDevices = new CustomerDeviceAccessor_1.CustomerDeviceAccessor(this._provider);
362
+ }
363
+ return this._customerDevices;
364
+ }
357
365
  /** Access CustomerDeviceAta records */
358
366
  get customerDeviceAtas() {
359
367
  if (!this._customerDeviceAtas) {
@@ -56,6 +56,7 @@ import { CreditNoteDbAccessor } from './db-accessors-v2/CreditNoteDbAccessor';
56
56
  import { CrmDatasetDbAccessor } from './db-accessors-v2/CrmDatasetDbAccessor';
57
57
  import { CustomerDeviceAtaDbAccessor } from './db-accessors-v2/CustomerDeviceAtaDbAccessor';
58
58
  import { CustomerDeviceConfigurationDbAccessor } from './db-accessors-v2/CustomerDeviceConfigurationDbAccessor';
59
+ import { CustomerDeviceDbAccessor } from './db-accessors-v2/CustomerDeviceDbAccessor';
59
60
  import { CustomerDeviceOntDbAccessor } from './db-accessors-v2/CustomerDeviceOntDbAccessor';
60
61
  import { CustomerDeviceRouterDbAccessor } from './db-accessors-v2/CustomerDeviceRouterDbAccessor';
61
62
  import { CustomerPhonePortingDbAccessor } from './db-accessors-v2/CustomerPhonePortingDbAccessor';
@@ -172,6 +173,7 @@ export declare class OdinDbClient {
172
173
  private _crmDatasets?;
173
174
  private _customerDeviceAtas?;
174
175
  private _customerDeviceConfigurations?;
176
+ private _customerDevices?;
175
177
  private _customerDeviceOnts?;
176
178
  private _customerDeviceRouters?;
177
179
  private _customerPhonePortings?;
@@ -332,6 +334,8 @@ export declare class OdinDbClient {
332
334
  get customerDeviceAtas(): CustomerDeviceAtaDbAccessor;
333
335
  /** Access CustomerDeviceConfiguration records */
334
336
  get customerDeviceConfigurations(): CustomerDeviceConfigurationDbAccessor;
337
+ /** Access CustomerDevice records */
338
+ get customerDevices(): CustomerDeviceDbAccessor;
335
339
  /** Access CustomerDeviceOnt records */
336
340
  get customerDeviceOnts(): CustomerDeviceOntDbAccessor;
337
341
  /** Access CustomerDeviceRouter records */
@@ -58,6 +58,7 @@ const CreditNoteDbAccessor_1 = require("./db-accessors-v2/CreditNoteDbAccessor")
58
58
  const CrmDatasetDbAccessor_1 = require("./db-accessors-v2/CrmDatasetDbAccessor");
59
59
  const CustomerDeviceAtaDbAccessor_1 = require("./db-accessors-v2/CustomerDeviceAtaDbAccessor");
60
60
  const CustomerDeviceConfigurationDbAccessor_1 = require("./db-accessors-v2/CustomerDeviceConfigurationDbAccessor");
61
+ const CustomerDeviceDbAccessor_1 = require("./db-accessors-v2/CustomerDeviceDbAccessor");
61
62
  const CustomerDeviceOntDbAccessor_1 = require("./db-accessors-v2/CustomerDeviceOntDbAccessor");
62
63
  const CustomerDeviceRouterDbAccessor_1 = require("./db-accessors-v2/CustomerDeviceRouterDbAccessor");
63
64
  const CustomerPhonePortingDbAccessor_1 = require("./db-accessors-v2/CustomerPhonePortingDbAccessor");
@@ -369,6 +370,13 @@ class OdinDbClient {
369
370
  }
370
371
  return this._customerDeviceConfigurations;
371
372
  }
373
+ /** Access CustomerDevice records */
374
+ get customerDevices() {
375
+ if (!this._customerDevices) {
376
+ this._customerDevices = new CustomerDeviceDbAccessor_1.CustomerDeviceDbAccessor(this._principal, this._dbService, this._defaultOptions);
377
+ }
378
+ return this._customerDevices;
379
+ }
372
380
  /** Access CustomerDeviceOnt records */
373
381
  get customerDeviceOnts() {
374
382
  if (!this._customerDeviceOnts) {
@@ -0,0 +1,111 @@
1
+ /**
2
+ * CustomerDevice Accessor
3
+ *
4
+ * Provides typed access to CustomerDevice 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.updateCustomerDevice({ ... });
12
+ *
13
+ * // Create new record
14
+ * const newRecord = accessor.new();
15
+ * await newRecord.createCustomerDevice({ ... });
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 { CustomerDeviceProperties } from '../entities-v2/CustomerDevice';
25
+ import { CustomerDeviceRecord } from '../records-v2/CustomerDeviceRecord';
26
+ /** List response with wrapped records */
27
+ export interface CustomerDeviceListResponse {
28
+ data: CustomerDeviceRecord[];
29
+ hasMore: boolean;
30
+ totalRecords: number;
31
+ }
32
+ /** Search response with wrapped records */
33
+ export interface CustomerDeviceSearchResponse {
34
+ records: CustomerDeviceRecord[];
35
+ totalRecords: number;
36
+ hasMore: boolean;
37
+ }
38
+ export declare class CustomerDeviceAccessor {
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 CustomerDevice 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): CustomerDeviceRecord;
72
+ /**
73
+ * Get a single CustomerDevice record by ID
74
+ */
75
+ get(id: string): Promise<CustomerDeviceRecord>;
76
+ /**
77
+ * Get multiple CustomerDevice records by IDs
78
+ */
79
+ getMany(ids: string[]): Promise<CustomerDeviceRecord[]>;
80
+ /**
81
+ * Search CustomerDevice records
82
+ */
83
+ search(params: Partial<OdinSearchV2>): Promise<CustomerDeviceSearchResponse>;
84
+ /**
85
+ * Search all CustomerDevice records with automatic pagination
86
+ */
87
+ searchAll(params: Partial<OdinSearchV2>): Promise<CustomerDeviceRecord[]>;
88
+ /**
89
+ * Async generator for paginating through all matching records.
90
+ * Yields batches of wrapped records.
91
+ */
92
+ paginate(params: Partial<OdinSearchV2>): AsyncGenerator<CustomerDeviceRecord[]>;
93
+ /**
94
+ * Create a fluent query builder for CustomerDevice 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<CustomerDeviceProperties, CustomerDeviceRecord>;
109
+ /** Access the underlying ApiProvider */
110
+ get provider(): ApiProvider;
111
+ }
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ /**
3
+ * CustomerDevice Accessor
4
+ *
5
+ * Provides typed access to CustomerDevice 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.updateCustomerDevice({ ... });
13
+ *
14
+ * // Create new record
15
+ * const newRecord = accessor.new();
16
+ * await newRecord.createCustomerDevice({ ... });
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.CustomerDeviceAccessor = 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 CustomerDeviceRecord_1 = require("../records-v2/CustomerDeviceRecord");
47
+ class CustomerDeviceAccessor {
48
+ constructor(providerOrAuth, host) {
49
+ this._moduleName = 'ServiceModule';
50
+ this._entityName = 'CustomerDevice';
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 CustomerDevice 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 CustomerDeviceRecord_1.CustomerDeviceRecord(null, this._provider, id);
94
+ }
95
+ // ============================================
96
+ // RECORD RETRIEVAL
97
+ // ============================================
98
+ /**
99
+ * Get a single CustomerDevice 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 CustomerDeviceRecord_1.CustomerDeviceRecord(record, this._provider);
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple CustomerDevice 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 CustomerDeviceRecord_1.CustomerDeviceRecord(r, this._provider));
116
+ });
117
+ }
118
+ // ============================================
119
+ // SEARCH OPERATIONS
120
+ // ============================================
121
+ /**
122
+ * Search CustomerDevice 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 CustomerDeviceRecord_1.CustomerDeviceRecord(r, this._provider)),
129
+ totalRecords: result.totalRecords,
130
+ hasMore: result.hasMore,
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Search all CustomerDevice 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 CustomerDeviceRecord_1.CustomerDeviceRecord(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 CustomerDeviceRecord_1.CustomerDeviceRecord(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 CustomerDevice 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.CustomerDeviceAccessor = CustomerDeviceAccessor;
@@ -35,6 +35,7 @@ export { CrmDatasetAccessor, CrmDatasetSearchResponse, CrmDatasetListResponse }
35
35
  export { CustomerDeviceAtaAccessor, CustomerDeviceAtaSearchResponse, CustomerDeviceAtaListResponse } from './CustomerDeviceAtaAccessor';
36
36
  export { CustomerDeviceConfigurationAccessor, CustomerDeviceConfigurationSearchResponse, CustomerDeviceConfigurationListResponse } from './CustomerDeviceConfigurationAccessor';
37
37
  export { CustomerDeviceOntAccessor, CustomerDeviceOntSearchResponse, CustomerDeviceOntListResponse } from './CustomerDeviceOntAccessor';
38
+ export { CustomerDeviceAccessor, CustomerDeviceSearchResponse, CustomerDeviceListResponse } from './CustomerDeviceAccessor';
38
39
  export { CustomerDeviceRouterAccessor, CustomerDeviceRouterSearchResponse, CustomerDeviceRouterListResponse } from './CustomerDeviceRouterAccessor';
39
40
  export { CustomerPhonePortingAccessor, CustomerPhonePortingSearchResponse, CustomerPhonePortingListResponse } from './CustomerPhonePortingAccessor';
40
41
  export { DiscountAccessor, DiscountSearchResponse, DiscountListResponse } from './DiscountAccessor';
@@ -8,9 +8,9 @@
8
8
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.OfferTemplateAccessor = exports.OfferAccessor = 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.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = 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.TwilioActivityAccessor = 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.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 = void 0;
13
- exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = void 0;
11
+ exports.OfferAccessor = 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.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.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.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 = void 0;
13
+ exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = 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");
@@ -69,6 +69,8 @@ var CustomerDeviceConfigurationAccessor_1 = require("./CustomerDeviceConfigurati
69
69
  Object.defineProperty(exports, "CustomerDeviceConfigurationAccessor", { enumerable: true, get: function () { return CustomerDeviceConfigurationAccessor_1.CustomerDeviceConfigurationAccessor; } });
70
70
  var CustomerDeviceOntAccessor_1 = require("./CustomerDeviceOntAccessor");
71
71
  Object.defineProperty(exports, "CustomerDeviceOntAccessor", { enumerable: true, get: function () { return CustomerDeviceOntAccessor_1.CustomerDeviceOntAccessor; } });
72
+ var CustomerDeviceAccessor_1 = require("./CustomerDeviceAccessor");
73
+ Object.defineProperty(exports, "CustomerDeviceAccessor", { enumerable: true, get: function () { return CustomerDeviceAccessor_1.CustomerDeviceAccessor; } });
72
74
  var CustomerDeviceRouterAccessor_1 = require("./CustomerDeviceRouterAccessor");
73
75
  Object.defineProperty(exports, "CustomerDeviceRouterAccessor", { enumerable: true, get: function () { return CustomerDeviceRouterAccessor_1.CustomerDeviceRouterAccessor; } });
74
76
  var CustomerPhonePortingAccessor_1 = require("./CustomerPhonePortingAccessor");
@@ -0,0 +1,70 @@
1
+ /**
2
+ * CreateCustomerDeviceBattery Action DTO
3
+ *
4
+ * CreateCustomerDeviceBattery
5
+ *
6
+ * @module ServiceModule
7
+ * @entity CustomerDevice
8
+ * @entityType BATTERY
9
+ * @actionKey CreateCustomerDeviceBattery
10
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateCustomerDeviceBattery created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery
19
+ */
20
+ export interface CreateCustomerDeviceBatteryMessage extends OdinRecordCreatedEvent<CreateCustomerDeviceBatteryDto, CreateCustomerDeviceBatteryProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateCustomerDeviceBattery action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 1
27
+ */
28
+ export interface CreateCustomerDeviceBatteryProperties {
29
+ /**
30
+ * Serial Number
31
+ *
32
+ * Serial Number
33
+ * @type {TEXT}
34
+ */
35
+ SerialNumber?: string | null;
36
+ }
37
+ /**
38
+ * CreateCustomerDeviceBattery
39
+ *
40
+ * @actionType CREATE - Creates a new CustomerDevice record
41
+ * @module ServiceModule
42
+ * @entity CustomerDevice
43
+ * @entityType BATTERY (Battery Backup)
44
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery
45
+ * @permission schema.action.createcustomerdevicebattery.trigger
46
+ * @benchmark This action is tracked for performance benchmarks
47
+ */
48
+ export declare class CreateCustomerDeviceBatteryDto extends OdinRecordCreateDto<CreateCustomerDeviceBatteryProperties> {
49
+ /** Used by SDK generators to identify action type */
50
+ static readonly ACTION_TYPE = "CREATE";
51
+ static readonly ACTION_KEY = "CreateCustomerDeviceBattery";
52
+ static readonly MODULE_NAME = "ServiceModule";
53
+ static readonly ENTITIES: string[];
54
+ static readonly ENTITY_TYPE = "BATTERY";
55
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery";
56
+ static readonly PERMISSION = "schema.action.createcustomerdevicebattery.trigger";
57
+ /** Step metadata - entity this action targets */
58
+ static readonly STEP_ENTITY = "ServiceModule:CustomerDevice";
59
+ static readonly STEP_SCHEMA_ID = "a72ffce5-0294-4038-8fb1-45fad5e4e473";
60
+ static readonly STEP_SCHEMA_ACTION_ID = "b339f484-877f-4db5-ac17-bef7d8e7b8b1";
61
+ static readonly STEP_SCHEMA_TYPE_ID = "bddbd043-c985-4eaf-9202-eb9dbe18c5e3";
62
+ static readonly STEP_TYPE = "BATTERY";
63
+ static readonly AUTO_LINK_PARENT = true;
64
+ readonly actionName: string;
65
+ readonly schemaActionId: string;
66
+ readonly entity: string;
67
+ constructor(properties: CreateCustomerDeviceBatteryProperties, options?: {
68
+ journeyId?: string;
69
+ });
70
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCustomerDeviceBattery Action DTO
4
+ *
5
+ * CreateCustomerDeviceBattery
6
+ *
7
+ * @module ServiceModule
8
+ * @entity CustomerDevice
9
+ * @entityType BATTERY
10
+ * @actionKey CreateCustomerDeviceBattery
11
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateCustomerDeviceBatteryDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateCustomerDeviceBattery
20
+ *
21
+ * @actionType CREATE - Creates a new CustomerDevice record
22
+ * @module ServiceModule
23
+ * @entity CustomerDevice
24
+ * @entityType BATTERY (Battery Backup)
25
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery
26
+ * @permission schema.action.createcustomerdevicebattery.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateCustomerDeviceBatteryDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'ServiceModule:CustomerDevice',
33
+ type: 'BATTERY',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateCustomerDeviceBattery';
38
+ this.schemaActionId = 'b339f484-877f-4db5-ac17-bef7d8e7b8b1';
39
+ this.entity = 'ServiceModule:CustomerDevice';
40
+ }
41
+ }
42
+ exports.CreateCustomerDeviceBatteryDto = CreateCustomerDeviceBatteryDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateCustomerDeviceBatteryDto.ACTION_TYPE = 'CREATE';
45
+ CreateCustomerDeviceBatteryDto.ACTION_KEY = 'CreateCustomerDeviceBattery';
46
+ CreateCustomerDeviceBatteryDto.MODULE_NAME = 'ServiceModule';
47
+ CreateCustomerDeviceBatteryDto.ENTITIES = ['CustomerDevice'];
48
+ CreateCustomerDeviceBatteryDto.ENTITY_TYPE = 'BATTERY';
49
+ CreateCustomerDeviceBatteryDto.EVENT_NAME = 'k1.t-hEOJjsDb.ServiceModule.CustomerDevice.Create.CreateCustomerDeviceBattery';
50
+ CreateCustomerDeviceBatteryDto.PERMISSION = 'schema.action.createcustomerdevicebattery.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ CreateCustomerDeviceBatteryDto.STEP_ENTITY = 'ServiceModule:CustomerDevice';
53
+ CreateCustomerDeviceBatteryDto.STEP_SCHEMA_ID = 'a72ffce5-0294-4038-8fb1-45fad5e4e473';
54
+ CreateCustomerDeviceBatteryDto.STEP_SCHEMA_ACTION_ID = 'b339f484-877f-4db5-ac17-bef7d8e7b8b1';
55
+ CreateCustomerDeviceBatteryDto.STEP_SCHEMA_TYPE_ID = 'bddbd043-c985-4eaf-9202-eb9dbe18c5e3';
56
+ CreateCustomerDeviceBatteryDto.STEP_TYPE = 'BATTERY';
57
+ CreateCustomerDeviceBatteryDto.AUTO_LINK_PARENT = true;