@d19n/youfibre-odin-sdk 1.0.304 → 1.0.305-beta.0

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
@@ -346,7 +346,7 @@ This SDK includes **158** entities across **12** modules.
346
346
 
347
347
  ## Actions
348
348
 
349
- This SDK includes **490** actions.
349
+ This SDK includes **492** actions.
350
350
 
351
351
  ### Action Types
352
352
 
@@ -451,6 +451,8 @@ This SDK includes **490** actions.
451
451
  | `CreateRemediationWorkOrder` | CREATE | FieldServiceModule.WorkOrder.Create.CreateRemediationWorkOrder |
452
452
  | `CreateServiceWorkOrder` | CREATE | FieldServiceModule.WorkOrder.Create.CreateServiceWorkOrder |
453
453
  | `CreateWayleaveWorkOrder` | CREATE | FieldServiceModule.WorkOrder.Create.CreateWayleaveWorkOrder |
454
+ | `CreateWorkOrderAddressLink` | CREATE | FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink |
455
+ | `CreateWorkOrderContactLink` | CREATE | FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink |
454
456
  | `DefaultInstallWorkOrderEditForm` | UPDATE | FieldServiceModule.WorkOrder.Update.DefaultInstallWorkOrderEditForm |
455
457
  | `DefaultServiceWorkOrderEditForm` | UPDATE | FieldServiceModule.WorkOrder.Update.DefaultServiceWorkOrderEditForm |
456
458
  | `EditCollectionAmcoWorkOrder` | UPDATE | FieldServiceModule.WorkOrder.Update.EditCollectionAmcoWorkOrder |
@@ -0,0 +1,56 @@
1
+ /**
2
+ * CreateWorkOrderAddressLink Action DTO
3
+ *
4
+ * CreateWorkOrderAddressLink
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @actionKey CreateWorkOrderAddressLink
9
+ * @event CreateWorkOrderAddressLink
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateWorkOrderAddressLink created events
16
+ *
17
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink
18
+ */
19
+ export interface CreateWorkOrderAddressLinkMessage extends OdinRecordCreatedEvent<CreateWorkOrderAddressLinkDto, CreateWorkOrderAddressLinkProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateWorkOrderAddressLink action
23
+ *
24
+ */
25
+ export interface CreateWorkOrderAddressLinkProperties {
26
+ }
27
+ /**
28
+ * CreateWorkOrderAddressLink
29
+ *
30
+ * @actionType CREATE - Creates a new WorkOrder record
31
+ * @module FieldServiceModule
32
+ * @entity WorkOrder
33
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink
34
+ * @permission schema.action.createworkorderaddresslink.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ export declare class CreateWorkOrderAddressLinkDto extends OdinRecordCreateDto<CreateWorkOrderAddressLinkProperties> {
38
+ /** Used by SDK generators to identify action type */
39
+ static readonly ACTION_TYPE = "CREATE";
40
+ static readonly ACTION_KEY = "CreateWorkOrderAddressLink";
41
+ static readonly MODULE_NAME = "FieldServiceModule";
42
+ static readonly ENTITIES: string[];
43
+ static readonly EVENT_NAME = "FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink";
44
+ static readonly PERMISSION = "schema.action.createworkorderaddresslink.trigger";
45
+ /** Step metadata - entity this action targets */
46
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
47
+ static readonly STEP_SCHEMA_ID = "813cdda2-c52e-4ea7-b873-a7c5cd058c91";
48
+ static readonly STEP_SCHEMA_ACTION_ID = "bc89b5a8-46be-4daf-8dec-34f025abb703";
49
+ static readonly AUTO_LINK_PARENT = true;
50
+ readonly actionName: string;
51
+ readonly schemaActionId: string;
52
+ readonly entity: string;
53
+ constructor(properties: CreateWorkOrderAddressLinkProperties, options?: {
54
+ journeyId?: string;
55
+ });
56
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * CreateWorkOrderAddressLink Action DTO
4
+ *
5
+ * CreateWorkOrderAddressLink
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @actionKey CreateWorkOrderAddressLink
10
+ * @event CreateWorkOrderAddressLink
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateWorkOrderAddressLinkDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateWorkOrderAddressLink
19
+ *
20
+ * @actionType CREATE - Creates a new WorkOrder record
21
+ * @module FieldServiceModule
22
+ * @entity WorkOrder
23
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink
24
+ * @permission schema.action.createworkorderaddresslink.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class CreateWorkOrderAddressLinkDto extends core_1.OdinRecordCreateDto {
28
+ constructor(properties, options) {
29
+ super({
30
+ entity: 'FieldServiceModule:WorkOrder',
31
+ type: undefined,
32
+ properties,
33
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
34
+ });
35
+ this.actionName = 'CreateWorkOrderAddressLink';
36
+ this.schemaActionId = 'bc89b5a8-46be-4daf-8dec-34f025abb703';
37
+ this.entity = 'FieldServiceModule:WorkOrder';
38
+ }
39
+ }
40
+ exports.CreateWorkOrderAddressLinkDto = CreateWorkOrderAddressLinkDto;
41
+ /** Used by SDK generators to identify action type */
42
+ CreateWorkOrderAddressLinkDto.ACTION_TYPE = 'CREATE';
43
+ CreateWorkOrderAddressLinkDto.ACTION_KEY = 'CreateWorkOrderAddressLink';
44
+ CreateWorkOrderAddressLinkDto.MODULE_NAME = 'FieldServiceModule';
45
+ CreateWorkOrderAddressLinkDto.ENTITIES = ['WorkOrder'];
46
+ CreateWorkOrderAddressLinkDto.EVENT_NAME = 'FieldServiceModule.WorkOrder.Create.CreateWorkOrderAddressLink';
47
+ CreateWorkOrderAddressLinkDto.PERMISSION = 'schema.action.createworkorderaddresslink.trigger';
48
+ /** Step metadata - entity this action targets */
49
+ CreateWorkOrderAddressLinkDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
50
+ CreateWorkOrderAddressLinkDto.STEP_SCHEMA_ID = '813cdda2-c52e-4ea7-b873-a7c5cd058c91';
51
+ CreateWorkOrderAddressLinkDto.STEP_SCHEMA_ACTION_ID = 'bc89b5a8-46be-4daf-8dec-34f025abb703';
52
+ CreateWorkOrderAddressLinkDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * CreateWorkOrderContactLink Action DTO
3
+ *
4
+ * CreateWorkOrderContactLink
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @actionKey CreateWorkOrderContactLink
9
+ * @event CreateWorkOrderContactLink
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateWorkOrderContactLink created events
16
+ *
17
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink
18
+ */
19
+ export interface CreateWorkOrderContactLinkMessage extends OdinRecordCreatedEvent<CreateWorkOrderContactLinkDto, CreateWorkOrderContactLinkProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateWorkOrderContactLink action
23
+ *
24
+ */
25
+ export interface CreateWorkOrderContactLinkProperties {
26
+ }
27
+ /**
28
+ * CreateWorkOrderContactLink
29
+ *
30
+ * @actionType CREATE - Creates a new WorkOrder record
31
+ * @module FieldServiceModule
32
+ * @entity WorkOrder
33
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink
34
+ * @permission schema.action.createworkordercontactlink.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ export declare class CreateWorkOrderContactLinkDto extends OdinRecordCreateDto<CreateWorkOrderContactLinkProperties> {
38
+ /** Used by SDK generators to identify action type */
39
+ static readonly ACTION_TYPE = "CREATE";
40
+ static readonly ACTION_KEY = "CreateWorkOrderContactLink";
41
+ static readonly MODULE_NAME = "FieldServiceModule";
42
+ static readonly ENTITIES: string[];
43
+ static readonly EVENT_NAME = "FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink";
44
+ static readonly PERMISSION = "schema.action.createworkordercontactlink.trigger";
45
+ /** Step metadata - entity this action targets */
46
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
47
+ static readonly STEP_SCHEMA_ID = "813cdda2-c52e-4ea7-b873-a7c5cd058c91";
48
+ static readonly STEP_SCHEMA_ACTION_ID = "b35f72f3-cb15-4a26-8d6c-7f5c12408ce0";
49
+ static readonly AUTO_LINK_PARENT = true;
50
+ readonly actionName: string;
51
+ readonly schemaActionId: string;
52
+ readonly entity: string;
53
+ constructor(properties: CreateWorkOrderContactLinkProperties, options?: {
54
+ journeyId?: string;
55
+ });
56
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * CreateWorkOrderContactLink Action DTO
4
+ *
5
+ * CreateWorkOrderContactLink
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @actionKey CreateWorkOrderContactLink
10
+ * @event CreateWorkOrderContactLink
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateWorkOrderContactLinkDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateWorkOrderContactLink
19
+ *
20
+ * @actionType CREATE - Creates a new WorkOrder record
21
+ * @module FieldServiceModule
22
+ * @entity WorkOrder
23
+ * @event FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink
24
+ * @permission schema.action.createworkordercontactlink.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class CreateWorkOrderContactLinkDto extends core_1.OdinRecordCreateDto {
28
+ constructor(properties, options) {
29
+ super({
30
+ entity: 'FieldServiceModule:WorkOrder',
31
+ type: undefined,
32
+ properties,
33
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
34
+ });
35
+ this.actionName = 'CreateWorkOrderContactLink';
36
+ this.schemaActionId = 'b35f72f3-cb15-4a26-8d6c-7f5c12408ce0';
37
+ this.entity = 'FieldServiceModule:WorkOrder';
38
+ }
39
+ }
40
+ exports.CreateWorkOrderContactLinkDto = CreateWorkOrderContactLinkDto;
41
+ /** Used by SDK generators to identify action type */
42
+ CreateWorkOrderContactLinkDto.ACTION_TYPE = 'CREATE';
43
+ CreateWorkOrderContactLinkDto.ACTION_KEY = 'CreateWorkOrderContactLink';
44
+ CreateWorkOrderContactLinkDto.MODULE_NAME = 'FieldServiceModule';
45
+ CreateWorkOrderContactLinkDto.ENTITIES = ['WorkOrder'];
46
+ CreateWorkOrderContactLinkDto.EVENT_NAME = 'FieldServiceModule.WorkOrder.Create.CreateWorkOrderContactLink';
47
+ CreateWorkOrderContactLinkDto.PERMISSION = 'schema.action.createworkordercontactlink.trigger';
48
+ /** Step metadata - entity this action targets */
49
+ CreateWorkOrderContactLinkDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
50
+ CreateWorkOrderContactLinkDto.STEP_SCHEMA_ID = '813cdda2-c52e-4ea7-b873-a7c5cd058c91';
51
+ CreateWorkOrderContactLinkDto.STEP_SCHEMA_ACTION_ID = 'b35f72f3-cb15-4a26-8d6c-7f5c12408ce0';
52
+ CreateWorkOrderContactLinkDto.AUTO_LINK_PARENT = true;
@@ -68,6 +68,8 @@ import { CreateRemediationWorkOrderProperties } from '../actions-v2/CreateLinked
68
68
  import { CreateServiceWorkOrderProperties } from '../actions-v2/CreateServiceWorkOrderDto';
69
69
  import { CreateWayleaveWorkOrderProperties } from '../actions-v2/CreateWayleaveWorkOrderDto';
70
70
  import { WayleaveAuditCreateProperties } from '../actions-v2/CreateWayleaveWorkOrderFlowDto';
71
+ import { CreateWorkOrderAddressLinkProperties } from '../actions-v2/CreateWorkOrderAddressLinkDto';
72
+ import { CreateWorkOrderContactLinkProperties } from '../actions-v2/CreateWorkOrderContactLinkDto';
71
73
  import { DefaultInstallWorkOrderEditFormProperties } from '../actions-v2/DefaultInstallWorkOrderEditFormDto';
72
74
  import { DefaultServiceWorkOrderEditFormProperties } from '../actions-v2/DefaultServiceWorkOrderEditFormDto';
73
75
  import { EditCollectionAmcoWorkOrderProperties } from '../actions-v2/EditCollectionAmcoWorkOrderDto';
@@ -4398,6 +4400,66 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
4398
4400
  journeyId?: string;
4399
4401
  stageKey?: string;
4400
4402
  }): Promise<IDbRecordCreateUpdateRes[]>;
4403
+ /**
4404
+ * CreateWorkOrderAddressLink
4405
+ *
4406
+ * Creates a new WorkOrder record with the specified properties.
4407
+ * Can be chained with .link() to create associations.
4408
+ *
4409
+ * @param properties - The properties for the new record
4410
+ * @param options - Optional settings
4411
+ * @param options.type - Override the record type
4412
+ * @param options.journeyId - Associate with a journey
4413
+ * @param options.stageKey - Set initial pipeline stage
4414
+ * @returns The created record(s)
4415
+ *
4416
+ * @example
4417
+ * ```typescript
4418
+ * // Create with properties
4419
+ * const record = odinClient.workOrders.new();
4420
+ * await record.createWorkOrderAddressLink({ ... });
4421
+ *
4422
+ * // Create with link to parent
4423
+ * await odinClient.workOrders.new()
4424
+ * .link({ id: parentId, entity: "Module:Entity" })
4425
+ * .createWorkOrderAddressLink({ ... });
4426
+ * ```
4427
+ */
4428
+ createWorkOrderAddressLink(properties?: CreateWorkOrderAddressLinkProperties, options?: {
4429
+ type?: string;
4430
+ journeyId?: string;
4431
+ stageKey?: string;
4432
+ }): Promise<IDbRecordCreateUpdateRes[]>;
4433
+ /**
4434
+ * CreateWorkOrderContactLink
4435
+ *
4436
+ * Creates a new WorkOrder record with the specified properties.
4437
+ * Can be chained with .link() to create associations.
4438
+ *
4439
+ * @param properties - The properties for the new record
4440
+ * @param options - Optional settings
4441
+ * @param options.type - Override the record type
4442
+ * @param options.journeyId - Associate with a journey
4443
+ * @param options.stageKey - Set initial pipeline stage
4444
+ * @returns The created record(s)
4445
+ *
4446
+ * @example
4447
+ * ```typescript
4448
+ * // Create with properties
4449
+ * const record = odinClient.workOrders.new();
4450
+ * await record.createWorkOrderContactLink({ ... });
4451
+ *
4452
+ * // Create with link to parent
4453
+ * await odinClient.workOrders.new()
4454
+ * .link({ id: parentId, entity: "Module:Entity" })
4455
+ * .createWorkOrderContactLink({ ... });
4456
+ * ```
4457
+ */
4458
+ createWorkOrderContactLink(properties?: CreateWorkOrderContactLinkProperties, options?: {
4459
+ type?: string;
4460
+ journeyId?: string;
4461
+ stageKey?: string;
4462
+ }): Promise<IDbRecordCreateUpdateRes[]>;
4401
4463
  /**
4402
4464
  * MoveCollectionWorkOrderToComplete
4403
4465
  *
@@ -7311,6 +7311,88 @@ class WorkOrderRecord {
7311
7311
  return result;
7312
7312
  });
7313
7313
  }
7314
+ /**
7315
+ * CreateWorkOrderAddressLink
7316
+ *
7317
+ * Creates a new WorkOrder record with the specified properties.
7318
+ * Can be chained with .link() to create associations.
7319
+ *
7320
+ * @param properties - The properties for the new record
7321
+ * @param options - Optional settings
7322
+ * @param options.type - Override the record type
7323
+ * @param options.journeyId - Associate with a journey
7324
+ * @param options.stageKey - Set initial pipeline stage
7325
+ * @returns The created record(s)
7326
+ *
7327
+ * @example
7328
+ * ```typescript
7329
+ * // Create with properties
7330
+ * const record = odinClient.workOrders.new();
7331
+ * await record.createWorkOrderAddressLink({ ... });
7332
+ *
7333
+ * // Create with link to parent
7334
+ * await odinClient.workOrders.new()
7335
+ * .link({ id: parentId, entity: "Module:Entity" })
7336
+ * .createWorkOrderAddressLink({ ... });
7337
+ * ```
7338
+ */
7339
+ createWorkOrderAddressLink(properties, options) {
7340
+ var _a, _b;
7341
+ return __awaiter(this, void 0, void 0, function* () {
7342
+ const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', {
7343
+ entity: 'FieldServiceModule:WorkOrder',
7344
+ type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
7345
+ actionName: 'CreateWorkOrderAddressLink',
7346
+ properties: properties || {},
7347
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
7348
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
7349
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
7350
+ });
7351
+ this._pendingLinks = [];
7352
+ return result;
7353
+ });
7354
+ }
7355
+ /**
7356
+ * CreateWorkOrderContactLink
7357
+ *
7358
+ * Creates a new WorkOrder record with the specified properties.
7359
+ * Can be chained with .link() to create associations.
7360
+ *
7361
+ * @param properties - The properties for the new record
7362
+ * @param options - Optional settings
7363
+ * @param options.type - Override the record type
7364
+ * @param options.journeyId - Associate with a journey
7365
+ * @param options.stageKey - Set initial pipeline stage
7366
+ * @returns The created record(s)
7367
+ *
7368
+ * @example
7369
+ * ```typescript
7370
+ * // Create with properties
7371
+ * const record = odinClient.workOrders.new();
7372
+ * await record.createWorkOrderContactLink({ ... });
7373
+ *
7374
+ * // Create with link to parent
7375
+ * await odinClient.workOrders.new()
7376
+ * .link({ id: parentId, entity: "Module:Entity" })
7377
+ * .createWorkOrderContactLink({ ... });
7378
+ * ```
7379
+ */
7380
+ createWorkOrderContactLink(properties, options) {
7381
+ var _a, _b;
7382
+ return __awaiter(this, void 0, void 0, function* () {
7383
+ const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', {
7384
+ entity: 'FieldServiceModule:WorkOrder',
7385
+ type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
7386
+ actionName: 'CreateWorkOrderContactLink',
7387
+ properties: properties || {},
7388
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
7389
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
7390
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
7391
+ });
7392
+ this._pendingLinks = [];
7393
+ return result;
7394
+ });
7395
+ }
7314
7396
  /**
7315
7397
  * MoveCollectionWorkOrderToComplete
7316
7398
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "1.0.304",
3
+ "version": "1.0.305-beta.0",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",