@d19n/youfibre-odin-sdk 2.0.379 → 2.0.381

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 (84) hide show
  1. package/README.md +12 -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/EdgarFeedbackAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/EdgarFeedbackAccessor.js +191 -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/CreateCollectionAmcoFollowOnWorkOrderDto.d.ts +9 -1
  13. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderDto.d.ts +9 -1
  14. package/dist/actions-v2/CreateCollectionAmcoReplacementWorkOrderFromWorkOrderDto.d.ts +9 -1
  15. package/dist/actions-v2/CreateCollectionAmcoWorkOrderDto.d.ts +1 -0
  16. package/dist/actions-v2/CreateCollectionAmcoWorkOrderFromOrderDto.d.ts +1 -0
  17. package/dist/actions-v2/CreateDispatchAmcoWorkOrderDto.d.ts +1 -0
  18. package/dist/actions-v2/CreateDispatchAmcoWorkOrderFromOrderDto.d.ts +1 -0
  19. package/dist/actions-v2/CreateEdgarFeedbackDto.d.ts +89 -0
  20. package/dist/actions-v2/CreateEdgarFeedbackDto.js +59 -0
  21. package/dist/actions-v2/CreateFieldServiceTvDeviceProductDto.d.ts +228 -0
  22. package/dist/actions-v2/CreateFieldServiceTvDeviceProductDto.js +176 -0
  23. package/dist/actions-v2/UpdateEdgarFeedbackDto.d.ts +81 -0
  24. package/dist/actions-v2/UpdateEdgarFeedbackDto.js +56 -0
  25. package/dist/api-sdk-v2/AddressApi.d.ts +2 -0
  26. package/dist/api-sdk-v2/AddressApi.js +6 -0
  27. package/dist/api-sdk-v2/CaseApi.d.ts +2 -0
  28. package/dist/api-sdk-v2/CaseApi.js +6 -0
  29. package/dist/api-sdk-v2/EdgarFeedbackApi.d.ts +48 -0
  30. package/dist/api-sdk-v2/EdgarFeedbackApi.js +155 -0
  31. package/dist/api-sdk-v2/FileApi.d.ts +134 -132
  32. package/dist/api-sdk-v2/FileApi.js +274 -268
  33. package/dist/api-sdk-v2/NoteApi.d.ts +2 -0
  34. package/dist/api-sdk-v2/NoteApi.js +6 -0
  35. package/dist/api-sdk-v2/ServiceVisitAuditV2Api.d.ts +54 -0
  36. package/dist/api-sdk-v2/ServiceVisitAuditV2Api.js +173 -0
  37. package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
  38. package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
  39. package/dist/db-accessors-v2/EdgarFeedbackDbAccessor.d.ts +180 -0
  40. package/dist/db-accessors-v2/EdgarFeedbackDbAccessor.js +265 -0
  41. package/dist/db-accessors-v2/index.d.ts +1 -0
  42. package/dist/db-accessors-v2/index.js +5 -3
  43. package/dist/db-sdk-v2/AddressDb.d.ts +2 -0
  44. package/dist/db-sdk-v2/AddressDb.js +6 -0
  45. package/dist/db-sdk-v2/CaseDb.d.ts +2 -0
  46. package/dist/db-sdk-v2/CaseDb.js +6 -0
  47. package/dist/db-sdk-v2/EdgarFeedbackDb.d.ts +120 -0
  48. package/dist/db-sdk-v2/EdgarFeedbackDb.js +204 -0
  49. package/dist/db-sdk-v2/FileDb.d.ts +134 -132
  50. package/dist/db-sdk-v2/FileDb.js +274 -268
  51. package/dist/db-sdk-v2/NoteDb.d.ts +2 -0
  52. package/dist/db-sdk-v2/NoteDb.js +6 -0
  53. package/dist/db-sdk-v2/ServiceVisitAuditV2Db.d.ts +126 -0
  54. package/dist/db-sdk-v2/ServiceVisitAuditV2Db.js +222 -0
  55. package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
  56. package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
  57. package/dist/entities-v2/Address.d.ts +7 -0
  58. package/dist/entities-v2/Address.js +5 -1
  59. package/dist/entities-v2/Case.d.ts +7 -0
  60. package/dist/entities-v2/Case.js +5 -1
  61. package/dist/entities-v2/EdgarFeedback.d.ts +110 -0
  62. package/dist/entities-v2/EdgarFeedback.js +86 -0
  63. package/dist/entities-v2/FieldServiceProduct.d.ts +72 -1
  64. package/dist/entities-v2/FieldServiceProduct.js +11 -1
  65. package/dist/entities-v2/File.d.ts +9 -0
  66. package/dist/entities-v2/File.js +5 -1
  67. package/dist/entities-v2/Note.d.ts +3 -0
  68. package/dist/entities-v2/Offer.d.ts +70 -1
  69. package/dist/entities-v2/Offer.js +6 -0
  70. package/dist/entities-v2/OrderItem.d.ts +261 -261
  71. package/dist/entities-v2/OrderItem.js +137 -137
  72. package/dist/entities-v2/ServiceVisitAuditV2.d.ts +938 -0
  73. package/dist/entities-v2/ServiceVisitAuditV2.js +452 -0
  74. package/dist/entities-v2/WorkOrder.d.ts +7 -0
  75. package/dist/entities-v2/WorkOrder.js +5 -1
  76. package/dist/records-v2/CaseRecord.d.ts +20 -0
  77. package/dist/records-v2/CaseRecord.js +33 -0
  78. package/dist/records-v2/EdgarFeedbackRecord.d.ts +234 -0
  79. package/dist/records-v2/EdgarFeedbackRecord.js +314 -0
  80. package/dist/records-v2/FieldServiceProductRecord.d.ts +48 -3
  81. package/dist/records-v2/FieldServiceProductRecord.js +44 -1
  82. package/dist/records-v2/index.d.ts +1 -0
  83. package/dist/records-v2/index.js +7 -4
  84. package/package.json +2 -2
@@ -0,0 +1,89 @@
1
+ /**
2
+ * CreateEdgarFeedback Action DTO
3
+ *
4
+ * Record a person's review of a case Edgar handed to a team.
5
+ *
6
+ * @module SupportModule
7
+ * @entity EdgarFeedback
8
+ * @entityType DEFAULT
9
+ * @actionKey CreateEdgarFeedback
10
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback
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 CreateEdgarFeedback created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback
19
+ */
20
+ export interface CreateEdgarFeedbackMessage extends OdinRecordCreatedEvent<CreateEdgarFeedbackDto, CreateEdgarFeedbackProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateEdgarFeedback action
24
+ *
25
+ * @property Required fields: 3
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateEdgarFeedbackProperties {
29
+ /**
30
+ * Case
31
+ *
32
+ * The case Edgar handed to a team that this review is about.
33
+ * @type {LOOKUP}
34
+ * @required
35
+ */
36
+ CaseId: string;
37
+ /**
38
+ * Reason
39
+ *
40
+ * The reviewer's verdict on why Edgar handed the case to a team.
41
+ * @type {ENUM}
42
+ * @required
43
+ */
44
+ Reason: string;
45
+ /**
46
+ * Feedback
47
+ *
48
+ * What the reviewer found: what Edgar should have done, or what it was missing.
49
+ * @type {TEXT_LONG}
50
+ * @required
51
+ */
52
+ Feedback: string;
53
+ }
54
+ /**
55
+ * Review Edgar
56
+ *
57
+ * Record a person's review of a case Edgar handed to a team.
58
+ *
59
+ * @actionType CREATE - Creates a new EdgarFeedback record
60
+ * @module SupportModule
61
+ * @entity EdgarFeedback
62
+ * @entityType DEFAULT (Default)
63
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback
64
+ * @permission schema.action.createedgarfeedback.trigger
65
+ * @benchmark This action is tracked for performance benchmarks
66
+ */
67
+ export declare class CreateEdgarFeedbackDto extends OdinRecordCreateDto<CreateEdgarFeedbackProperties> {
68
+ /** Used by SDK generators to identify action type */
69
+ static readonly ACTION_TYPE = "CREATE";
70
+ static readonly ACTION_KEY = "CreateEdgarFeedback";
71
+ static readonly MODULE_NAME = "SupportModule";
72
+ static readonly ENTITIES: string[];
73
+ static readonly ENTITY_TYPE = "DEFAULT";
74
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback";
75
+ static readonly PERMISSION = "schema.action.createedgarfeedback.trigger";
76
+ /** Step metadata - entity this action targets */
77
+ static readonly STEP_ENTITY = "SupportModule:EdgarFeedback";
78
+ static readonly STEP_SCHEMA_ID = "acd5fc13-1e77-4f73-b02f-d621f8ba01c5";
79
+ static readonly STEP_SCHEMA_ACTION_ID = "45e5875f-9fbc-4115-9e58-b03bc99cabd6";
80
+ static readonly STEP_SCHEMA_TYPE_ID = "0b29d0f6-7841-4108-874a-1ccacfcd8d39";
81
+ static readonly STEP_TYPE = "DEFAULT";
82
+ static readonly AUTO_LINK_PARENT = true;
83
+ readonly actionName: string;
84
+ readonly schemaActionId: string;
85
+ readonly entity: string;
86
+ constructor(properties: CreateEdgarFeedbackProperties, options?: {
87
+ journeyId?: string;
88
+ });
89
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateEdgarFeedback Action DTO
4
+ *
5
+ * Record a person's review of a case Edgar handed to a team.
6
+ *
7
+ * @module SupportModule
8
+ * @entity EdgarFeedback
9
+ * @entityType DEFAULT
10
+ * @actionKey CreateEdgarFeedback
11
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateEdgarFeedbackDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Review Edgar
20
+ *
21
+ * Record a person's review of a case Edgar handed to a team.
22
+ *
23
+ * @actionType CREATE - Creates a new EdgarFeedback record
24
+ * @module SupportModule
25
+ * @entity EdgarFeedback
26
+ * @entityType DEFAULT (Default)
27
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback
28
+ * @permission schema.action.createedgarfeedback.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateEdgarFeedbackDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'SupportModule:EdgarFeedback',
35
+ type: 'DEFAULT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateEdgarFeedback';
40
+ this.schemaActionId = '45e5875f-9fbc-4115-9e58-b03bc99cabd6';
41
+ this.entity = 'SupportModule:EdgarFeedback';
42
+ }
43
+ }
44
+ exports.CreateEdgarFeedbackDto = CreateEdgarFeedbackDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateEdgarFeedbackDto.ACTION_TYPE = 'CREATE';
47
+ CreateEdgarFeedbackDto.ACTION_KEY = 'CreateEdgarFeedback';
48
+ CreateEdgarFeedbackDto.MODULE_NAME = 'SupportModule';
49
+ CreateEdgarFeedbackDto.ENTITIES = ['EdgarFeedback'];
50
+ CreateEdgarFeedbackDto.ENTITY_TYPE = 'DEFAULT';
51
+ CreateEdgarFeedbackDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Create.CreateEdgarFeedback';
52
+ CreateEdgarFeedbackDto.PERMISSION = 'schema.action.createedgarfeedback.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateEdgarFeedbackDto.STEP_ENTITY = 'SupportModule:EdgarFeedback';
55
+ CreateEdgarFeedbackDto.STEP_SCHEMA_ID = 'acd5fc13-1e77-4f73-b02f-d621f8ba01c5';
56
+ CreateEdgarFeedbackDto.STEP_SCHEMA_ACTION_ID = '45e5875f-9fbc-4115-9e58-b03bc99cabd6';
57
+ CreateEdgarFeedbackDto.STEP_SCHEMA_TYPE_ID = '0b29d0f6-7841-4108-874a-1ccacfcd8d39';
58
+ CreateEdgarFeedbackDto.STEP_TYPE = 'DEFAULT';
59
+ CreateEdgarFeedbackDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,228 @@
1
+ /**
2
+ * CreateFieldServiceTvDeviceProduct Action DTO
3
+ *
4
+ * CreateFieldServiceTvDeviceProduct
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity FieldServiceProduct
8
+ * @entityType TV_DEVICE
9
+ * @actionKey CreateFieldServiceTvDeviceProduct
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordCreateDto, OdinRecordCreatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateFieldServiceTvDeviceProduct created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct
19
+ */
20
+ export interface CreateFieldServiceTvDeviceProductMessage extends OdinRecordCreatedEvent<CreateFieldServiceTvDeviceProductDto, CreateFieldServiceTvDeviceProductProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateFieldServiceTvDeviceProduct action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 9
27
+ */
28
+ export interface CreateFieldServiceTvDeviceProductProperties {
29
+ /**
30
+ * InventoryId
31
+ *
32
+ * The inventory Id of the product (Field Operations - FieldServiceProduct)
33
+ * @type {ALPHA_NUMERICAL}
34
+ */
35
+ InventoryId?: string | null;
36
+ /**
37
+ * Name
38
+ *
39
+ * Name of the Product (Field Operations - FieldServiceProduct)
40
+ * @type {TEXT}
41
+ */
42
+ Name?: string | null;
43
+ /**
44
+ * Vendor
45
+ *
46
+ * Vendor of the product (Field Operations - FieldServiceProduct)
47
+ * @type {ENUM}
48
+ */
49
+ Vendor?: string | null;
50
+ /**
51
+ * DefaultShippingMethod
52
+ *
53
+ * Default Shipping Method fpr the product (Field Operations - FieldServiceProduct)
54
+ * @type {ENUM}
55
+ */
56
+ DefaultShippingMethod?: string | null;
57
+ /**
58
+ * Providers
59
+ *
60
+ * Providers
61
+ * @type {ENUM_MULTI_SELECT}
62
+ */
63
+ Providers?: string | null;
64
+ /**
65
+ * AvailableOnAllBroadbandProducts
66
+ *
67
+ * AvailableOnAllBroadbandProducts
68
+ * @type {BOOLEAN}
69
+ */
70
+ AvailableOnAllBroadbandProducts?: boolean | null;
71
+ /**
72
+ * AvailableOnAllMeshProducts
73
+ *
74
+ * AvailableOnAllMeshProducts
75
+ * @type {BOOLEAN}
76
+ */
77
+ AvailableOnAllMeshProducts?: boolean | null;
78
+ /**
79
+ * AvailableOnAllPhoneProducts
80
+ *
81
+ * AvailableOnAllPhoneProducts
82
+ * @type {BOOLEAN}
83
+ */
84
+ AvailableOnAllPhoneProducts?: boolean | null;
85
+ /**
86
+ * Active
87
+ *
88
+ * Data field for FieldServiceProduct records. Used by Field Operations team.
89
+ * @type {BOOLEAN}
90
+ */
91
+ Active?: boolean | null;
92
+ }
93
+ /**
94
+ * Builder for CreateFieldServiceTvDeviceProduct action
95
+ *
96
+ * Provides fluent API for adding associations before executing the action.
97
+ * Use .link*() methods to add associations, then call .execute() to run.
98
+ *
99
+ * @example
100
+ * ```typescript
101
+ * await record.createFieldServiceTvDeviceProduct({ ...properties })
102
+ * .linkAssociation_1783602621524({ id: '...', entity: '...' })
103
+ * .execute();
104
+ * ```
105
+ */
106
+ export declare class CreateFieldServiceTvDeviceProductBuilder {
107
+ private _associations;
108
+ private _properties;
109
+ private _pendingLinks;
110
+ private _options?;
111
+ private _provider?;
112
+ private _moduleName?;
113
+ private _entityName?;
114
+ private _clearPendingLinks?;
115
+ private _externalId?;
116
+ private _externalAppId?;
117
+ private _groups?;
118
+ constructor(properties: CreateFieldServiceTvDeviceProductProperties, pendingLinks: OdinRecordLinkDto[], options?: {
119
+ journeyId?: string;
120
+ stageKey?: string;
121
+ });
122
+ /**
123
+ * Link FieldServiceProduct__CompatibleProducts
124
+ * @schemaAssociationId 50581980-779e-4b98-9c27-f2f628b0fb9f
125
+ * @param target - The record to link
126
+ * @returns this (for method chaining)
127
+ */
128
+ linkAssociation_1783602621524(target: OdinRecord<any> | {
129
+ id: string;
130
+ entity: string;
131
+ }): this;
132
+ /**
133
+ * Set an external system identifier for this record.
134
+ * Links the record to a corresponding entry in an external application.
135
+ * @param externalId - The ID in the external system
136
+ * @param externalAppId - The external application identifier
137
+ * @returns this (for chaining)
138
+ */
139
+ withExternalId(externalId: string, externalAppId: string): this;
140
+ /**
141
+ * Set security/access groups for this record.
142
+ * @param groups - Array of group names
143
+ * @returns this (for chaining)
144
+ */
145
+ withGroups(groups: string[]): this;
146
+ /**
147
+ * Get the action payload without executing
148
+ * @returns The action data that would be sent
149
+ */
150
+ getData(): {
151
+ entity: string;
152
+ type: string | undefined;
153
+ actionName: string;
154
+ properties: CreateFieldServiceTvDeviceProductProperties;
155
+ associations?: OdinRecordLinkDto[];
156
+ journeyId?: string;
157
+ stageKey?: string;
158
+ externalId?: string;
159
+ externalAppId?: string;
160
+ groups?: string[];
161
+ };
162
+ /**
163
+ * Inject execution context (called by record wrapper)
164
+ * @internal
165
+ */
166
+ withProvider(provider: {
167
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
168
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
169
+ /**
170
+ * Execute the action
171
+ * @returns The result from the API
172
+ * @throws Error if withProvider() has not been called
173
+ */
174
+ execute(): Promise<any>;
175
+ /**
176
+ * Returns the request payload without executing (for debugging)
177
+ * @returns The request payload that would be sent to the API
178
+ */
179
+ dryRun(): Record<string, any>;
180
+ /**
181
+ * Prevents accidental `await builder` without .execute()
182
+ * @throws Error always - use .execute() or .dryRun() instead
183
+ */
184
+ then(): never;
185
+ }
186
+ /**
187
+ * CreateFieldServiceTvDeviceProduct
188
+ *
189
+ * @actionType CREATE - Creates a new FieldServiceProduct record
190
+ * @module FieldServiceModule
191
+ * @entity FieldServiceProduct
192
+ * @entityType TV_DEVICE (TV Device)
193
+ * @event k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct
194
+ * @permission schema.action.createfieldservicetvdeviceproduct.trigger
195
+ * @benchmark This action is tracked for performance benchmarks
196
+ */
197
+ export declare class CreateFieldServiceTvDeviceProductDto extends OdinRecordCreateDto<CreateFieldServiceTvDeviceProductProperties> {
198
+ /** Used by SDK generators to identify action type */
199
+ static readonly ACTION_TYPE = "CREATE";
200
+ static readonly ACTION_KEY = "CreateFieldServiceTvDeviceProduct";
201
+ static readonly MODULE_NAME = "FieldServiceModule";
202
+ static readonly ENTITIES: string[];
203
+ static readonly ENTITY_TYPE = "TV_DEVICE";
204
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct";
205
+ static readonly PERMISSION = "schema.action.createfieldservicetvdeviceproduct.trigger";
206
+ /** Step metadata - entity this action targets */
207
+ static readonly STEP_ENTITY = "FieldServiceModule:FieldServiceProduct";
208
+ static readonly STEP_SCHEMA_ID = "1c437c1a-d6d7-403d-a36e-4dd3cd2d82b9";
209
+ static readonly STEP_SCHEMA_ACTION_ID = "9caca305-0658-4293-9c8a-e49f52448110";
210
+ static readonly STEP_SCHEMA_TYPE_ID = "1fc315b7-fdf9-4e08-8d67-ab6946bf3fb6";
211
+ static readonly STEP_TYPE = "TV_DEVICE";
212
+ static readonly AUTO_LINK_PARENT = true;
213
+ static readonly HAS_ASSOCIATIONS = true;
214
+ static readonly HAS_REQUIRED_ASSOCIATIONS = false;
215
+ static readonly BUILDER_CLASS = "CreateFieldServiceTvDeviceProductBuilder";
216
+ static readonly ASSOCIATION_FIELDS: readonly [{
217
+ readonly name: "Association_1783602621524";
218
+ readonly methodName: "linkAssociation_1783602621524";
219
+ readonly required: false;
220
+ readonly schemaAssociationId: "50581980-779e-4b98-9c27-f2f628b0fb9f";
221
+ }];
222
+ readonly actionName: string;
223
+ readonly schemaActionId: string;
224
+ readonly entity: string;
225
+ constructor(properties: CreateFieldServiceTvDeviceProductProperties, options?: {
226
+ journeyId?: string;
227
+ });
228
+ }
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ /**
3
+ * CreateFieldServiceTvDeviceProduct Action DTO
4
+ *
5
+ * CreateFieldServiceTvDeviceProduct
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity FieldServiceProduct
9
+ * @entityType TV_DEVICE
10
+ * @actionKey CreateFieldServiceTvDeviceProduct
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CreateFieldServiceTvDeviceProductDto = exports.CreateFieldServiceTvDeviceProductBuilder = void 0;
26
+ const core_1 = require("@d19n/odin-types/dist/core");
27
+ /**
28
+ * Builder for CreateFieldServiceTvDeviceProduct action
29
+ *
30
+ * Provides fluent API for adding associations before executing the action.
31
+ * Use .link*() methods to add associations, then call .execute() to run.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * await record.createFieldServiceTvDeviceProduct({ ...properties })
36
+ * .linkAssociation_1783602621524({ id: '...', entity: '...' })
37
+ * .execute();
38
+ * ```
39
+ */
40
+ class CreateFieldServiceTvDeviceProductBuilder {
41
+ constructor(properties, pendingLinks, options) {
42
+ this._associations = [];
43
+ this._properties = properties;
44
+ this._pendingLinks = pendingLinks;
45
+ this._options = options;
46
+ }
47
+ /**
48
+ * Link FieldServiceProduct__CompatibleProducts
49
+ * @schemaAssociationId 50581980-779e-4b98-9c27-f2f628b0fb9f
50
+ * @param target - The record to link
51
+ * @returns this (for method chaining)
52
+ */
53
+ linkAssociation_1783602621524(target) {
54
+ this._associations.push(new core_1.OdinRecordLinkDto({
55
+ id: target.id,
56
+ entity: 'entity' in target ? target.entity : target.entity,
57
+ }));
58
+ return this;
59
+ }
60
+ /**
61
+ * Set an external system identifier for this record.
62
+ * Links the record to a corresponding entry in an external application.
63
+ * @param externalId - The ID in the external system
64
+ * @param externalAppId - The external application identifier
65
+ * @returns this (for chaining)
66
+ */
67
+ withExternalId(externalId, externalAppId) {
68
+ this._externalId = externalId;
69
+ this._externalAppId = externalAppId;
70
+ return this;
71
+ }
72
+ /**
73
+ * Set security/access groups for this record.
74
+ * @param groups - Array of group names
75
+ * @returns this (for chaining)
76
+ */
77
+ withGroups(groups) {
78
+ this._groups = groups;
79
+ return this;
80
+ }
81
+ /**
82
+ * Get the action payload without executing
83
+ * @returns The action data that would be sent
84
+ */
85
+ getData() {
86
+ var _a, _b;
87
+ const allAssociations = [...this._associations, ...this._pendingLinks];
88
+ return Object.assign(Object.assign({ entity: 'FieldServiceModule:FieldServiceProduct', type: 'TV_DEVICE', actionName: 'CreateFieldServiceTvDeviceProduct', properties: this._properties, associations: allAssociations.length > 0 ? allAssociations : undefined, journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId, stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey }, (this._externalId && { externalId: this._externalId, externalAppId: this._externalAppId })), (this._groups && { groups: this._groups }));
89
+ }
90
+ /**
91
+ * Inject execution context (called by record wrapper)
92
+ * @internal
93
+ */
94
+ withProvider(provider, moduleName, entityName, clearPendingLinks) {
95
+ this._provider = provider;
96
+ this._moduleName = moduleName;
97
+ this._entityName = entityName;
98
+ this._clearPendingLinks = clearPendingLinks;
99
+ return this;
100
+ }
101
+ /**
102
+ * Execute the action
103
+ * @returns The result from the API
104
+ * @throws Error if withProvider() has not been called
105
+ */
106
+ execute() {
107
+ var _a;
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ if (!this._provider || !this._moduleName || !this._entityName) {
110
+ throw new Error('Builder not connected to provider. Use the record wrapper API to get an executable builder.');
111
+ }
112
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this.getData());
113
+ (_a = this._clearPendingLinks) === null || _a === void 0 ? void 0 : _a.call(this);
114
+ return result;
115
+ });
116
+ }
117
+ /**
118
+ * Returns the request payload without executing (for debugging)
119
+ * @returns The request payload that would be sent to the API
120
+ */
121
+ dryRun() {
122
+ return this.getData();
123
+ }
124
+ /**
125
+ * Prevents accidental `await builder` without .execute()
126
+ * @throws Error always - use .execute() or .dryRun() instead
127
+ */
128
+ then() {
129
+ throw new Error('Builder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
130
+ }
131
+ }
132
+ exports.CreateFieldServiceTvDeviceProductBuilder = CreateFieldServiceTvDeviceProductBuilder;
133
+ /**
134
+ * CreateFieldServiceTvDeviceProduct
135
+ *
136
+ * @actionType CREATE - Creates a new FieldServiceProduct record
137
+ * @module FieldServiceModule
138
+ * @entity FieldServiceProduct
139
+ * @entityType TV_DEVICE (TV Device)
140
+ * @event k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct
141
+ * @permission schema.action.createfieldservicetvdeviceproduct.trigger
142
+ * @benchmark This action is tracked for performance benchmarks
143
+ */
144
+ class CreateFieldServiceTvDeviceProductDto extends core_1.OdinRecordCreateDto {
145
+ constructor(properties, options) {
146
+ super({
147
+ entity: 'FieldServiceModule:FieldServiceProduct',
148
+ type: 'TV_DEVICE',
149
+ properties,
150
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
151
+ });
152
+ this.actionName = 'CreateFieldServiceTvDeviceProduct';
153
+ this.schemaActionId = '9caca305-0658-4293-9c8a-e49f52448110';
154
+ this.entity = 'FieldServiceModule:FieldServiceProduct';
155
+ }
156
+ }
157
+ exports.CreateFieldServiceTvDeviceProductDto = CreateFieldServiceTvDeviceProductDto;
158
+ /** Used by SDK generators to identify action type */
159
+ CreateFieldServiceTvDeviceProductDto.ACTION_TYPE = 'CREATE';
160
+ CreateFieldServiceTvDeviceProductDto.ACTION_KEY = 'CreateFieldServiceTvDeviceProduct';
161
+ CreateFieldServiceTvDeviceProductDto.MODULE_NAME = 'FieldServiceModule';
162
+ CreateFieldServiceTvDeviceProductDto.ENTITIES = ['FieldServiceProduct'];
163
+ CreateFieldServiceTvDeviceProductDto.ENTITY_TYPE = 'TV_DEVICE';
164
+ CreateFieldServiceTvDeviceProductDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.FieldServiceProduct.Create.CreateFieldServiceTvDeviceProduct';
165
+ CreateFieldServiceTvDeviceProductDto.PERMISSION = 'schema.action.createfieldservicetvdeviceproduct.trigger';
166
+ /** Step metadata - entity this action targets */
167
+ CreateFieldServiceTvDeviceProductDto.STEP_ENTITY = 'FieldServiceModule:FieldServiceProduct';
168
+ CreateFieldServiceTvDeviceProductDto.STEP_SCHEMA_ID = '1c437c1a-d6d7-403d-a36e-4dd3cd2d82b9';
169
+ CreateFieldServiceTvDeviceProductDto.STEP_SCHEMA_ACTION_ID = '9caca305-0658-4293-9c8a-e49f52448110';
170
+ CreateFieldServiceTvDeviceProductDto.STEP_SCHEMA_TYPE_ID = '1fc315b7-fdf9-4e08-8d67-ab6946bf3fb6';
171
+ CreateFieldServiceTvDeviceProductDto.STEP_TYPE = 'TV_DEVICE';
172
+ CreateFieldServiceTvDeviceProductDto.AUTO_LINK_PARENT = true;
173
+ CreateFieldServiceTvDeviceProductDto.HAS_ASSOCIATIONS = true;
174
+ CreateFieldServiceTvDeviceProductDto.HAS_REQUIRED_ASSOCIATIONS = false;
175
+ CreateFieldServiceTvDeviceProductDto.BUILDER_CLASS = 'CreateFieldServiceTvDeviceProductBuilder';
176
+ CreateFieldServiceTvDeviceProductDto.ASSOCIATION_FIELDS = [{ "name": "Association_1783602621524", "methodName": "linkAssociation_1783602621524", "required": false, "schemaAssociationId": "50581980-779e-4b98-9c27-f2f628b0fb9f" }];
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateEdgarFeedback Action DTO
3
+ *
4
+ * Change a person's review of a case Edgar handed to a team.
5
+ *
6
+ * @module SupportModule
7
+ * @entity EdgarFeedback
8
+ * @actionKey UpdateEdgarFeedback
9
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateEdgarFeedback updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback
18
+ */
19
+ export interface UpdateEdgarFeedbackMessage extends OdinRecordUpdatedEvent<UpdateEdgarFeedbackDto, UpdateEdgarFeedbackProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateEdgarFeedback action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateEdgarFeedbackProperties {
28
+ /**
29
+ * Reason
30
+ *
31
+ * The reviewer's verdict on why Edgar handed the case to a team.
32
+ * @type {ENUM}
33
+ * @required
34
+ */
35
+ Reason: string;
36
+ /**
37
+ * Feedback
38
+ *
39
+ * What the reviewer found: what Edgar should have done, or what it was missing.
40
+ * @type {TEXT_LONG}
41
+ * @required
42
+ */
43
+ Feedback: string;
44
+ }
45
+ /**
46
+ * Update review
47
+ *
48
+ * Change a person's review of a case Edgar handed to a team.
49
+ *
50
+ * @actionType UPDATE - Updates an existing EdgarFeedback record
51
+ * @module SupportModule
52
+ * @entity EdgarFeedback
53
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback
54
+ * @permission schema.action.updateedgarfeedback.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateEdgarFeedbackDto extends OdinRecordUpdateDto<UpdateEdgarFeedbackProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateEdgarFeedback";
61
+ static readonly MODULE_NAME = "SupportModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback";
64
+ static readonly PERMISSION = "schema.action.updateedgarfeedback.trigger";
65
+ /** Step metadata - entity this action targets */
66
+ static readonly STEP_ENTITY = "SupportModule:EdgarFeedback";
67
+ static readonly STEP_SCHEMA_ID = "acd5fc13-1e77-4f73-b02f-d621f8ba01c5";
68
+ static readonly STEP_SCHEMA_ACTION_ID = "5aac9af0-9427-491c-98f7-a3cd48855d79";
69
+ static readonly AUTO_LINK_PARENT = false;
70
+ readonly actionName: string;
71
+ readonly schemaActionId: string;
72
+ readonly entity: string;
73
+ constructor(record: OdinRecord<any> | {
74
+ id: string;
75
+ entity: string;
76
+ type?: string;
77
+ }, properties: UpdateEdgarFeedbackProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateEdgarFeedback Action DTO
4
+ *
5
+ * Change a person's review of a case Edgar handed to a team.
6
+ *
7
+ * @module SupportModule
8
+ * @entity EdgarFeedback
9
+ * @actionKey UpdateEdgarFeedback
10
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateEdgarFeedbackDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Update review
19
+ *
20
+ * Change a person's review of a case Edgar handed to a team.
21
+ *
22
+ * @actionType UPDATE - Updates an existing EdgarFeedback record
23
+ * @module SupportModule
24
+ * @entity EdgarFeedback
25
+ * @event k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback
26
+ * @permission schema.action.updateedgarfeedback.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateEdgarFeedbackDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateEdgarFeedback';
40
+ this.schemaActionId = '5aac9af0-9427-491c-98f7-a3cd48855d79';
41
+ this.entity = 'SupportModule:EdgarFeedback';
42
+ }
43
+ }
44
+ exports.UpdateEdgarFeedbackDto = UpdateEdgarFeedbackDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateEdgarFeedbackDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateEdgarFeedbackDto.ACTION_KEY = 'UpdateEdgarFeedback';
48
+ UpdateEdgarFeedbackDto.MODULE_NAME = 'SupportModule';
49
+ UpdateEdgarFeedbackDto.ENTITIES = ['EdgarFeedback'];
50
+ UpdateEdgarFeedbackDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.EdgarFeedback.Update.UpdateEdgarFeedback';
51
+ UpdateEdgarFeedbackDto.PERMISSION = 'schema.action.updateedgarfeedback.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateEdgarFeedbackDto.STEP_ENTITY = 'SupportModule:EdgarFeedback';
54
+ UpdateEdgarFeedbackDto.STEP_SCHEMA_ID = 'acd5fc13-1e77-4f73-b02f-d621f8ba01c5';
55
+ UpdateEdgarFeedbackDto.STEP_SCHEMA_ACTION_ID = '5aac9af0-9427-491c-98f7-a3cd48855d79';
56
+ UpdateEdgarFeedbackDto.AUTO_LINK_PARENT = false;