@d19n/youfibre-odin-sdk 2.0.244 → 2.0.245

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
@@ -360,7 +360,7 @@ This SDK includes **172** entities across **12** modules.
360
360
 
361
361
  ## Actions
362
362
 
363
- This SDK includes **753** actions.
363
+ This SDK includes **756** actions.
364
364
 
365
365
  ### Action Types
366
366
 
@@ -473,6 +473,9 @@ This SDK includes **753** actions.
473
473
  | `CreateCollectionWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionWorkOrder |
474
474
  | `CreateDispatchAmcoWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchAmcoWorkOrder |
475
475
  | `CreateDispatchAmcoWorkOrderFromOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchAmcoWorkOrder |
476
+ | `CreateDispatchMeshLink` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink |
477
+ | `CreateDispatchMisc1Link` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link |
478
+ | `CreateDispatchRouterLink` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink |
476
479
  | `CreateFinanceWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateFinanceWorkOrder |
477
480
  | `CreateInspectionWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateInspectionWorkOrder |
478
481
  | `CreateInstallBusinessWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateInstall_BusinessWorkOrder |
@@ -0,0 +1,61 @@
1
+ /**
2
+ * CreateDispatchMeshLink Action DTO
3
+ *
4
+ * CreateDispatchMeshLink
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType DISPATCH_AMCO
9
+ * @actionKey CreateDispatchMeshLink
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink
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 CreateDispatchMeshLink created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink
19
+ */
20
+ export interface CreateDispatchMeshLinkMessage extends OdinRecordCreatedEvent<CreateDispatchMeshLinkDto, CreateDispatchMeshLinkProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateDispatchMeshLink action
24
+ *
25
+ */
26
+ export interface CreateDispatchMeshLinkProperties {
27
+ }
28
+ /**
29
+ * CreateDispatchMeshLink
30
+ *
31
+ * @actionType CREATE - Creates a new WorkOrder record
32
+ * @module FieldServiceModule
33
+ * @entity WorkOrder
34
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
35
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink
36
+ * @permission schema.action.createdispatchmeshlink.trigger
37
+ * @benchmark This action is tracked for performance benchmarks
38
+ */
39
+ export declare class CreateDispatchMeshLinkDto extends OdinRecordCreateDto<CreateDispatchMeshLinkProperties> {
40
+ /** Used by SDK generators to identify action type */
41
+ static readonly ACTION_TYPE = "CREATE";
42
+ static readonly ACTION_KEY = "CreateDispatchMeshLink";
43
+ static readonly MODULE_NAME = "FieldServiceModule";
44
+ static readonly ENTITIES: string[];
45
+ static readonly ENTITY_TYPE = "DISPATCH_AMCO";
46
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink";
47
+ static readonly PERMISSION = "schema.action.createdispatchmeshlink.trigger";
48
+ /** Step metadata - entity this action targets */
49
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
50
+ static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
51
+ static readonly STEP_SCHEMA_ACTION_ID = "7a4e047b-79fe-4c71-af85-b8caab66ab5c";
52
+ static readonly STEP_SCHEMA_TYPE_ID = "1732c195-96a8-4884-866d-de30b806e8b9";
53
+ static readonly STEP_TYPE = "DISPATCH_AMCO";
54
+ static readonly AUTO_LINK_PARENT = true;
55
+ readonly actionName: string;
56
+ readonly schemaActionId: string;
57
+ readonly entity: string;
58
+ constructor(properties: CreateDispatchMeshLinkProperties, options?: {
59
+ journeyId?: string;
60
+ });
61
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * CreateDispatchMeshLink Action DTO
4
+ *
5
+ * CreateDispatchMeshLink
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType DISPATCH_AMCO
10
+ * @actionKey CreateDispatchMeshLink
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateDispatchMeshLinkDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateDispatchMeshLink
20
+ *
21
+ * @actionType CREATE - Creates a new WorkOrder record
22
+ * @module FieldServiceModule
23
+ * @entity WorkOrder
24
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
25
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink
26
+ * @permission schema.action.createdispatchmeshlink.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateDispatchMeshLinkDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'FieldServiceModule:WorkOrder',
33
+ type: 'DISPATCH_AMCO',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateDispatchMeshLink';
38
+ this.schemaActionId = '7a4e047b-79fe-4c71-af85-b8caab66ab5c';
39
+ this.entity = 'FieldServiceModule:WorkOrder';
40
+ }
41
+ }
42
+ exports.CreateDispatchMeshLinkDto = CreateDispatchMeshLinkDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateDispatchMeshLinkDto.ACTION_TYPE = 'CREATE';
45
+ CreateDispatchMeshLinkDto.ACTION_KEY = 'CreateDispatchMeshLink';
46
+ CreateDispatchMeshLinkDto.MODULE_NAME = 'FieldServiceModule';
47
+ CreateDispatchMeshLinkDto.ENTITIES = ['WorkOrder'];
48
+ CreateDispatchMeshLinkDto.ENTITY_TYPE = 'DISPATCH_AMCO';
49
+ CreateDispatchMeshLinkDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMeshLink';
50
+ CreateDispatchMeshLinkDto.PERMISSION = 'schema.action.createdispatchmeshlink.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ CreateDispatchMeshLinkDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
53
+ CreateDispatchMeshLinkDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
54
+ CreateDispatchMeshLinkDto.STEP_SCHEMA_ACTION_ID = '7a4e047b-79fe-4c71-af85-b8caab66ab5c';
55
+ CreateDispatchMeshLinkDto.STEP_SCHEMA_TYPE_ID = '1732c195-96a8-4884-866d-de30b806e8b9';
56
+ CreateDispatchMeshLinkDto.STEP_TYPE = 'DISPATCH_AMCO';
57
+ CreateDispatchMeshLinkDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * CreateDispatchMisc1Link Action DTO
3
+ *
4
+ * CreateDispatchMisc1Link
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType DISPATCH_AMCO
9
+ * @actionKey CreateDispatchMisc1Link
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link
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 CreateDispatchMisc1Link created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link
19
+ */
20
+ export interface CreateDispatchMisc1LinkMessage extends OdinRecordCreatedEvent<CreateDispatchMisc1LinkDto, CreateDispatchMisc1LinkProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateDispatchMisc1Link action
24
+ *
25
+ */
26
+ export interface CreateDispatchMisc1LinkProperties {
27
+ }
28
+ /**
29
+ * CreateDispatchMisc1Link
30
+ *
31
+ * @actionType CREATE - Creates a new WorkOrder record
32
+ * @module FieldServiceModule
33
+ * @entity WorkOrder
34
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
35
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link
36
+ * @permission schema.action.createdispatchmisc1link.trigger
37
+ * @benchmark This action is tracked for performance benchmarks
38
+ */
39
+ export declare class CreateDispatchMisc1LinkDto extends OdinRecordCreateDto<CreateDispatchMisc1LinkProperties> {
40
+ /** Used by SDK generators to identify action type */
41
+ static readonly ACTION_TYPE = "CREATE";
42
+ static readonly ACTION_KEY = "CreateDispatchMisc1Link";
43
+ static readonly MODULE_NAME = "FieldServiceModule";
44
+ static readonly ENTITIES: string[];
45
+ static readonly ENTITY_TYPE = "DISPATCH_AMCO";
46
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link";
47
+ static readonly PERMISSION = "schema.action.createdispatchmisc1link.trigger";
48
+ /** Step metadata - entity this action targets */
49
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
50
+ static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
51
+ static readonly STEP_SCHEMA_ACTION_ID = "5b8ab046-5218-49cf-8514-4f3fd233f385";
52
+ static readonly STEP_SCHEMA_TYPE_ID = "1732c195-96a8-4884-866d-de30b806e8b9";
53
+ static readonly STEP_TYPE = "DISPATCH_AMCO";
54
+ static readonly AUTO_LINK_PARENT = true;
55
+ readonly actionName: string;
56
+ readonly schemaActionId: string;
57
+ readonly entity: string;
58
+ constructor(properties: CreateDispatchMisc1LinkProperties, options?: {
59
+ journeyId?: string;
60
+ });
61
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * CreateDispatchMisc1Link Action DTO
4
+ *
5
+ * CreateDispatchMisc1Link
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType DISPATCH_AMCO
10
+ * @actionKey CreateDispatchMisc1Link
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateDispatchMisc1LinkDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateDispatchMisc1Link
20
+ *
21
+ * @actionType CREATE - Creates a new WorkOrder record
22
+ * @module FieldServiceModule
23
+ * @entity WorkOrder
24
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
25
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link
26
+ * @permission schema.action.createdispatchmisc1link.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateDispatchMisc1LinkDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'FieldServiceModule:WorkOrder',
33
+ type: 'DISPATCH_AMCO',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateDispatchMisc1Link';
38
+ this.schemaActionId = '5b8ab046-5218-49cf-8514-4f3fd233f385';
39
+ this.entity = 'FieldServiceModule:WorkOrder';
40
+ }
41
+ }
42
+ exports.CreateDispatchMisc1LinkDto = CreateDispatchMisc1LinkDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateDispatchMisc1LinkDto.ACTION_TYPE = 'CREATE';
45
+ CreateDispatchMisc1LinkDto.ACTION_KEY = 'CreateDispatchMisc1Link';
46
+ CreateDispatchMisc1LinkDto.MODULE_NAME = 'FieldServiceModule';
47
+ CreateDispatchMisc1LinkDto.ENTITIES = ['WorkOrder'];
48
+ CreateDispatchMisc1LinkDto.ENTITY_TYPE = 'DISPATCH_AMCO';
49
+ CreateDispatchMisc1LinkDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchMisc1Link';
50
+ CreateDispatchMisc1LinkDto.PERMISSION = 'schema.action.createdispatchmisc1link.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ CreateDispatchMisc1LinkDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
53
+ CreateDispatchMisc1LinkDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
54
+ CreateDispatchMisc1LinkDto.STEP_SCHEMA_ACTION_ID = '5b8ab046-5218-49cf-8514-4f3fd233f385';
55
+ CreateDispatchMisc1LinkDto.STEP_SCHEMA_TYPE_ID = '1732c195-96a8-4884-866d-de30b806e8b9';
56
+ CreateDispatchMisc1LinkDto.STEP_TYPE = 'DISPATCH_AMCO';
57
+ CreateDispatchMisc1LinkDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * CreateDispatchRouterLink Action DTO
3
+ *
4
+ * CreateDispatchRouterLink
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType DISPATCH_AMCO
9
+ * @actionKey CreateDispatchRouterLink
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink
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 CreateDispatchRouterLink created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink
19
+ */
20
+ export interface CreateDispatchRouterLinkMessage extends OdinRecordCreatedEvent<CreateDispatchRouterLinkDto, CreateDispatchRouterLinkProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateDispatchRouterLink action
24
+ *
25
+ */
26
+ export interface CreateDispatchRouterLinkProperties {
27
+ }
28
+ /**
29
+ * CreateDispatchRouterLink
30
+ *
31
+ * @actionType CREATE - Creates a new WorkOrder record
32
+ * @module FieldServiceModule
33
+ * @entity WorkOrder
34
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
35
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink
36
+ * @permission schema.action.createdispatchrouterlink.trigger
37
+ * @benchmark This action is tracked for performance benchmarks
38
+ */
39
+ export declare class CreateDispatchRouterLinkDto extends OdinRecordCreateDto<CreateDispatchRouterLinkProperties> {
40
+ /** Used by SDK generators to identify action type */
41
+ static readonly ACTION_TYPE = "CREATE";
42
+ static readonly ACTION_KEY = "CreateDispatchRouterLink";
43
+ static readonly MODULE_NAME = "FieldServiceModule";
44
+ static readonly ENTITIES: string[];
45
+ static readonly ENTITY_TYPE = "DISPATCH_AMCO";
46
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink";
47
+ static readonly PERMISSION = "schema.action.createdispatchrouterlink.trigger";
48
+ /** Step metadata - entity this action targets */
49
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
50
+ static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
51
+ static readonly STEP_SCHEMA_ACTION_ID = "9267f12e-a2bd-4156-a786-0685b6eea9ae";
52
+ static readonly STEP_SCHEMA_TYPE_ID = "1732c195-96a8-4884-866d-de30b806e8b9";
53
+ static readonly STEP_TYPE = "DISPATCH_AMCO";
54
+ static readonly AUTO_LINK_PARENT = true;
55
+ readonly actionName: string;
56
+ readonly schemaActionId: string;
57
+ readonly entity: string;
58
+ constructor(properties: CreateDispatchRouterLinkProperties, options?: {
59
+ journeyId?: string;
60
+ });
61
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * CreateDispatchRouterLink Action DTO
4
+ *
5
+ * CreateDispatchRouterLink
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType DISPATCH_AMCO
10
+ * @actionKey CreateDispatchRouterLink
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateDispatchRouterLinkDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateDispatchRouterLink
20
+ *
21
+ * @actionType CREATE - Creates a new WorkOrder record
22
+ * @module FieldServiceModule
23
+ * @entity WorkOrder
24
+ * @entityType DISPATCH_AMCO (3PL Dispatch)
25
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink
26
+ * @permission schema.action.createdispatchrouterlink.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateDispatchRouterLinkDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'FieldServiceModule:WorkOrder',
33
+ type: 'DISPATCH_AMCO',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateDispatchRouterLink';
38
+ this.schemaActionId = '9267f12e-a2bd-4156-a786-0685b6eea9ae';
39
+ this.entity = 'FieldServiceModule:WorkOrder';
40
+ }
41
+ }
42
+ exports.CreateDispatchRouterLinkDto = CreateDispatchRouterLinkDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateDispatchRouterLinkDto.ACTION_TYPE = 'CREATE';
45
+ CreateDispatchRouterLinkDto.ACTION_KEY = 'CreateDispatchRouterLink';
46
+ CreateDispatchRouterLinkDto.MODULE_NAME = 'FieldServiceModule';
47
+ CreateDispatchRouterLinkDto.ENTITIES = ['WorkOrder'];
48
+ CreateDispatchRouterLinkDto.ENTITY_TYPE = 'DISPATCH_AMCO';
49
+ CreateDispatchRouterLinkDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateDispatchRouterLink';
50
+ CreateDispatchRouterLinkDto.PERMISSION = 'schema.action.createdispatchrouterlink.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ CreateDispatchRouterLinkDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
53
+ CreateDispatchRouterLinkDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
54
+ CreateDispatchRouterLinkDto.STEP_SCHEMA_ACTION_ID = '9267f12e-a2bd-4156-a786-0685b6eea9ae';
55
+ CreateDispatchRouterLinkDto.STEP_SCHEMA_TYPE_ID = '1732c195-96a8-4884-866d-de30b806e8b9';
56
+ CreateDispatchRouterLinkDto.STEP_TYPE = 'DISPATCH_AMCO';
57
+ CreateDispatchRouterLinkDto.AUTO_LINK_PARENT = true;
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
13
- import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
14
14
  /**
15
15
  * RabbitMQ message payload for EditFieldServiceProduct updated events
16
16
  *
@@ -68,6 +68,105 @@ export interface EditFieldServiceProductProperties {
68
68
  */
69
69
  Active?: boolean | null;
70
70
  }
71
+ /**
72
+ * Builder for EditFieldServiceProduct action
73
+ *
74
+ * Provides fluent API for adding associations before executing the action.
75
+ * Use .link*() methods to add associations, then call .execute() to run.
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * await record.editFieldServiceProduct({ ...properties })
80
+ * .linkAssociation_1784122361085({ id: '...', entity: '...' })
81
+ * .execute();
82
+ * ```
83
+ */
84
+ export declare class EditFieldServiceProductBuilder {
85
+ private _associations;
86
+ private _properties;
87
+ private _pendingLinks;
88
+ private _options?;
89
+ private _record;
90
+ private _provider?;
91
+ private _moduleName?;
92
+ private _entityName?;
93
+ private _clearPendingLinks?;
94
+ private _externalId?;
95
+ private _externalAppId?;
96
+ private _groups?;
97
+ constructor(record: {
98
+ id: string;
99
+ entity: string;
100
+ type?: string;
101
+ }, properties: EditFieldServiceProductProperties, pendingLinks: OdinRecordLinkDto[], options?: {
102
+ journeyId?: string;
103
+ stageKey?: string;
104
+ });
105
+ /**
106
+ * Link FieldServiceProduct__CompatibleProducts
107
+ * @schemaAssociationId 50581980-779e-4b98-9c27-f2f628b0fb9f
108
+ * @param target - The record to link
109
+ * @returns this (for method chaining)
110
+ */
111
+ linkAssociation_1784122361085(target: OdinRecord<any> | {
112
+ id: string;
113
+ entity: string;
114
+ }): this;
115
+ /**
116
+ * Set an external system identifier for this record.
117
+ * Links the record to a corresponding entry in an external application.
118
+ * @param externalId - The ID in the external system
119
+ * @param externalAppId - The external application identifier
120
+ * @returns this (for chaining)
121
+ */
122
+ withExternalId(externalId: string, externalAppId: string): this;
123
+ /**
124
+ * Set security/access groups for this record.
125
+ * @param groups - Array of group names
126
+ * @returns this (for chaining)
127
+ */
128
+ withGroups(groups: string[]): this;
129
+ /**
130
+ * Get the action payload without executing
131
+ * @returns The action data that would be sent
132
+ */
133
+ getData(): {
134
+ id: string;
135
+ entity: string;
136
+ type?: string;
137
+ actionName: string;
138
+ properties: EditFieldServiceProductProperties;
139
+ associations?: OdinRecordLinkDto[];
140
+ journeyId?: string;
141
+ stageKey?: string;
142
+ externalId?: string;
143
+ externalAppId?: string;
144
+ groups?: string[];
145
+ };
146
+ /**
147
+ * Inject execution context (called by record wrapper)
148
+ * @internal
149
+ */
150
+ withProvider(provider: {
151
+ _applyAction(moduleName: string, entityName: string, payload: any): Promise<any>;
152
+ }, moduleName: string, entityName: string, clearPendingLinks: () => void): this;
153
+ /**
154
+ * Execute the action
155
+ * @returns The result from the API
156
+ * @throws Error if withProvider() has not been called
157
+ */
158
+ execute(): Promise<any>;
159
+ /**
160
+ * Returns the request payload without executing (for debugging)
161
+ * @returns The request payload that would be sent to the API
162
+ */
163
+ dryRun(): Record<string, any>;
164
+ /**
165
+ * Prevents accidental `await builder` without .execute()
166
+ * @throws Error always - use .execute() or .dryRun() instead
167
+ */
168
+ then(): never;
169
+ }
71
170
  /**
72
171
  * EditFieldServiceProduct
73
172
  *
@@ -91,6 +190,15 @@ export declare class EditFieldServiceProductDto extends OdinRecordUpdateDto<Edit
91
190
  static readonly STEP_SCHEMA_ID = "1c437c1a-d6d7-403d-a36e-4dd3cd2d82b9";
92
191
  static readonly STEP_SCHEMA_ACTION_ID = "1b212b50-55cb-4110-88fe-0502669a5b89";
93
192
  static readonly AUTO_LINK_PARENT = false;
193
+ static readonly HAS_ASSOCIATIONS = true;
194
+ static readonly HAS_REQUIRED_ASSOCIATIONS = false;
195
+ static readonly BUILDER_CLASS = "EditFieldServiceProductBuilder";
196
+ static readonly ASSOCIATION_FIELDS: readonly [{
197
+ readonly name: "Association_1784122361085";
198
+ readonly methodName: "linkAssociation_1784122361085";
199
+ readonly required: false;
200
+ readonly schemaAssociationId: "50581980-779e-4b98-9c27-f2f628b0fb9f";
201
+ }];
94
202
  readonly actionName: string;
95
203
  readonly schemaActionId: string;
96
204
  readonly entity: string;
@@ -11,9 +11,125 @@
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
14
23
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EditFieldServiceProductDto = void 0;
24
+ exports.EditFieldServiceProductDto = exports.EditFieldServiceProductBuilder = void 0;
16
25
  const core_1 = require("@d19n/odin-types/dist/core");
26
+ /**
27
+ * Builder for EditFieldServiceProduct action
28
+ *
29
+ * Provides fluent API for adding associations before executing the action.
30
+ * Use .link*() methods to add associations, then call .execute() to run.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * await record.editFieldServiceProduct({ ...properties })
35
+ * .linkAssociation_1784122361085({ id: '...', entity: '...' })
36
+ * .execute();
37
+ * ```
38
+ */
39
+ class EditFieldServiceProductBuilder {
40
+ constructor(record, properties, pendingLinks, options) {
41
+ this._associations = [];
42
+ this._record = record;
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_1784122361085(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({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EditFieldServiceProduct', 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.EditFieldServiceProductBuilder = EditFieldServiceProductBuilder;
17
133
  /**
18
134
  * EditFieldServiceProduct
19
135
  *
@@ -52,3 +168,7 @@ EditFieldServiceProductDto.STEP_ENTITY = 'FieldServiceModule:FieldServiceProduct
52
168
  EditFieldServiceProductDto.STEP_SCHEMA_ID = '1c437c1a-d6d7-403d-a36e-4dd3cd2d82b9';
53
169
  EditFieldServiceProductDto.STEP_SCHEMA_ACTION_ID = '1b212b50-55cb-4110-88fe-0502669a5b89';
54
170
  EditFieldServiceProductDto.AUTO_LINK_PARENT = false;
171
+ EditFieldServiceProductDto.HAS_ASSOCIATIONS = true;
172
+ EditFieldServiceProductDto.HAS_REQUIRED_ASSOCIATIONS = false;
173
+ EditFieldServiceProductDto.BUILDER_CLASS = 'EditFieldServiceProductBuilder';
174
+ EditFieldServiceProductDto.ASSOCIATION_FIELDS = [{ "name": "Association_1784122361085", "methodName": "linkAssociation_1784122361085", "required": false, "schemaAssociationId": "50581980-779e-4b98-9c27-f2f628b0fb9f" }];
@@ -19,17 +19,17 @@ export declare class FieldServiceProductApi extends ApiProvider {
19
19
  private sourceRecord;
20
20
  private _product?;
21
21
  private _fieldservicedispatchedproduct?;
22
- private _workorder__fieldserviceproduct_mesh?;
23
- private _workorder_fieldserviceproduct_misc_item_1?;
24
22
  private _workorder__fieldserviceproduct_router?;
25
23
  private _workorder_fieldserviceproduct_misc_item_2?;
24
+ private _workorder__fieldserviceproduct_mesh?;
25
+ private _workorder_fieldserviceproduct_misc_item_1?;
26
26
  constructor(authParams?: OauthParams, authToken?: string);
27
27
  get product(): ApiRecordLinkManager;
28
28
  get fieldservicedispatchedproduct(): ApiRecordLinkManager;
29
- get workorder__fieldserviceproduct_mesh(): ApiRecordLinkManager;
30
- get workorder_fieldserviceproduct_misc_item_1(): ApiRecordLinkManager;
31
29
  get workorder__fieldserviceproduct_router(): ApiRecordLinkManager;
32
30
  get workorder_fieldserviceproduct_misc_item_2(): ApiRecordLinkManager;
31
+ get workorder__fieldserviceproduct_mesh(): ApiRecordLinkManager;
32
+ get workorder_fieldserviceproduct_misc_item_1(): ApiRecordLinkManager;
33
33
  setRecord(sourceRecord: any): void;
34
34
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
35
35
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<FieldServiceProductProperties>>>;