@d19n/youfibre-odin-sdk 2.0.356 → 2.0.358

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
@@ -394,7 +394,7 @@ This SDK includes **201** entities across **13** modules.
394
394
 
395
395
  ## Actions
396
396
 
397
- This SDK includes **932** actions.
397
+ This SDK includes **933** actions.
398
398
 
399
399
  ### Action Types
400
400
 
@@ -502,6 +502,7 @@ This SDK includes **932** actions.
502
502
  | `CompleteServiceWorkOrderFlow` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteServiceWorkOrder |
503
503
  | `CompleteServiceWorkOrderFlowSupplier` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlowSupplier |
504
504
  | `CreateCancelCollectionAmco` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCancelCollectionAmco |
505
+ | `CreateCollectionAmcoFollowOnWorkOrder` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder |
505
506
  | `CreateCollectionAmcoReplacementWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoReplacementWorkOrder |
506
507
  | `CreateCollectionAmcoReplacementWorkOrderFromWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoReplacementWorkOrder |
507
508
  | `CreateCollectionAmcoWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoWorkOrder |
@@ -0,0 +1,68 @@
1
+ /**
2
+ * CreateCollectionAmcoFollowOnWorkOrder Action DTO
3
+ *
4
+ * Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType COLLECTION_AMCO
9
+ * @actionKey CreateCollectionAmcoFollowOnWorkOrder
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateCollectionAmcoFollowOnWorkOrder updated events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
19
+ */
20
+ export interface CreateCollectionAmcoFollowOnWorkOrderMessage extends OdinRecordUpdatedEvent<CreateCollectionAmcoFollowOnWorkOrderDto, CreateCollectionAmcoFollowOnWorkOrderProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateCollectionAmcoFollowOnWorkOrder action
24
+ *
25
+ */
26
+ export interface CreateCollectionAmcoFollowOnWorkOrderProperties {
27
+ }
28
+ /**
29
+ * Send Another Bag
30
+ *
31
+ * Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
32
+ *
33
+ * @actionType UPDATE - Updates an existing WorkOrder record
34
+ * @module FieldServiceModule
35
+ * @entity WorkOrder
36
+ * @entityType COLLECTION_AMCO ( 3PL Collection)
37
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
38
+ * @permission schema.action.createcollectionamcofollowonworkorder.trigger
39
+ * @benchmark This action is tracked for performance benchmarks
40
+ */
41
+ export declare class CreateCollectionAmcoFollowOnWorkOrderDto extends OdinRecordUpdateDto<CreateCollectionAmcoFollowOnWorkOrderProperties> {
42
+ /** Used by SDK generators to identify action type */
43
+ static readonly ACTION_TYPE = "UPDATE";
44
+ static readonly ACTION_KEY = "CreateCollectionAmcoFollowOnWorkOrder";
45
+ static readonly MODULE_NAME = "FieldServiceModule";
46
+ static readonly ENTITIES: string[];
47
+ static readonly ENTITY_TYPE = "COLLECTION_AMCO";
48
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder";
49
+ static readonly PERMISSION = "schema.action.createcollectionamcofollowonworkorder.trigger";
50
+ /** Step metadata - entity this action targets */
51
+ static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
52
+ static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
53
+ static readonly STEP_SCHEMA_ACTION_ID = "faed01ae-c0e8-4c97-b439-edf71dbf492e";
54
+ static readonly STEP_SCHEMA_TYPE_ID = "0bf773b2-9054-457e-a282-5ae8fdfa7f7c";
55
+ static readonly STEP_TYPE = "COLLECTION_AMCO";
56
+ static readonly AUTO_LINK_PARENT = false;
57
+ readonly actionName: string;
58
+ readonly schemaActionId: string;
59
+ readonly entity: string;
60
+ constructor(record: OdinRecord<any> | {
61
+ id: string;
62
+ entity: string;
63
+ type?: string;
64
+ }, properties: CreateCollectionAmcoFollowOnWorkOrderProperties, options?: {
65
+ journeyId?: string;
66
+ stageKey?: string;
67
+ });
68
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCollectionAmcoFollowOnWorkOrder Action DTO
4
+ *
5
+ * Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType COLLECTION_AMCO
10
+ * @actionKey CreateCollectionAmcoFollowOnWorkOrder
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateCollectionAmcoFollowOnWorkOrderDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * Send Another Bag
20
+ *
21
+ * Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
22
+ *
23
+ * @actionType UPDATE - Updates an existing WorkOrder record
24
+ * @module FieldServiceModule
25
+ * @entity WorkOrder
26
+ * @entityType COLLECTION_AMCO ( 3PL Collection)
27
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
28
+ * @permission schema.action.createcollectionamcofollowonworkorder.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateCollectionAmcoFollowOnWorkOrderDto extends core_1.OdinRecordUpdateDto {
32
+ constructor(record, properties, options) {
33
+ super({
34
+ id: record.id,
35
+ entity: record.entity,
36
+ type: record.type,
37
+ properties,
38
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
40
+ });
41
+ this.actionName = 'CreateCollectionAmcoFollowOnWorkOrder';
42
+ this.schemaActionId = 'faed01ae-c0e8-4c97-b439-edf71dbf492e';
43
+ this.entity = 'FieldServiceModule:WorkOrder';
44
+ }
45
+ }
46
+ exports.CreateCollectionAmcoFollowOnWorkOrderDto = CreateCollectionAmcoFollowOnWorkOrderDto;
47
+ /** Used by SDK generators to identify action type */
48
+ CreateCollectionAmcoFollowOnWorkOrderDto.ACTION_TYPE = 'UPDATE';
49
+ CreateCollectionAmcoFollowOnWorkOrderDto.ACTION_KEY = 'CreateCollectionAmcoFollowOnWorkOrder';
50
+ CreateCollectionAmcoFollowOnWorkOrderDto.MODULE_NAME = 'FieldServiceModule';
51
+ CreateCollectionAmcoFollowOnWorkOrderDto.ENTITIES = ['WorkOrder'];
52
+ CreateCollectionAmcoFollowOnWorkOrderDto.ENTITY_TYPE = 'COLLECTION_AMCO';
53
+ CreateCollectionAmcoFollowOnWorkOrderDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder';
54
+ CreateCollectionAmcoFollowOnWorkOrderDto.PERMISSION = 'schema.action.createcollectionamcofollowonworkorder.trigger';
55
+ /** Step metadata - entity this action targets */
56
+ CreateCollectionAmcoFollowOnWorkOrderDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
57
+ CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
58
+ CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_ACTION_ID = 'faed01ae-c0e8-4c97-b439-edf71dbf492e';
59
+ CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_TYPE_ID = '0bf773b2-9054-457e-a282-5ae8fdfa7f7c';
60
+ CreateCollectionAmcoFollowOnWorkOrderDto.STEP_TYPE = 'COLLECTION_AMCO';
61
+ CreateCollectionAmcoFollowOnWorkOrderDto.AUTO_LINK_PARENT = false;
@@ -23,7 +23,7 @@ export interface CreateEquipmentReturnItemMessage extends OdinRecordCreatedEvent
23
23
  * Properties for CreateEquipmentReturnItem action
24
24
  *
25
25
  * @property Required fields: 3
26
- * @property Optional fields: 9
26
+ * @property Optional fields: 10
27
27
  */
28
28
  export interface CreateEquipmentReturnItemProperties {
29
29
  /**
@@ -113,6 +113,13 @@ export interface CreateEquipmentReturnItemProperties {
113
113
  * @type {ENUM}
114
114
  */
115
115
  Grade?: string | null;
116
+ /**
117
+ * Stands In For Device Id
118
+ *
119
+ * On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row
120
+ * @type {TEXT}
121
+ */
122
+ StandsInForDeviceId?: string | null;
116
123
  }
117
124
  /**
118
125
  * Create Equipment Return Item
@@ -108,7 +108,9 @@ export declare enum EquipmentReturnItemPropertyKeys {
108
108
  /** The tick. Always true on an additional row — it is in the box by definition */
109
109
  Returned = "Returned",
110
110
  /** Condition as inspected. Same option set as Returns.Cpe{n}Grade. Only meaningful when Returned is true */
111
- Grade = "Grade"
111
+ Grade = "Grade",
112
+ /** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row */
113
+ StandsInForDeviceId = "StandsInForDeviceId"
112
114
  }
113
115
  /**
114
116
  * Properties for EquipmentReturnItem records
@@ -192,6 +194,12 @@ export interface EquipmentReturnItemProperties {
192
194
  * @enum {EquipmentReturnItemGrade}
193
195
  */
194
196
  Grade: EquipmentReturnItemGrade;
197
+ /** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row
198
+ *
199
+ * @type {TEXT}
200
+ * @default
201
+ */
202
+ StandsInForDeviceId: string;
195
203
  }
196
204
  /**
197
205
  * EquipmentReturnItem entity from FieldServiceModule
@@ -114,6 +114,8 @@ var EquipmentReturnItemPropertyKeys;
114
114
  EquipmentReturnItemPropertyKeys["Returned"] = "Returned";
115
115
  /** Condition as inspected. Same option set as Returns.Cpe{n}Grade. Only meaningful when Returned is true */
116
116
  EquipmentReturnItemPropertyKeys["Grade"] = "Grade";
117
+ /** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row */
118
+ EquipmentReturnItemPropertyKeys["StandsInForDeviceId"] = "StandsInForDeviceId";
117
119
  })(EquipmentReturnItemPropertyKeys = exports.EquipmentReturnItemPropertyKeys || (exports.EquipmentReturnItemPropertyKeys = {}));
118
120
  /**
119
121
  * EquipmentReturnItem entity from FieldServiceModule
@@ -41,6 +41,7 @@ import { RemediationOutcomeFormProperties } from '../actions-v2/CompleteRemediat
41
41
  import { CompleteServiceWorkOrderProperties } from '../actions-v2/CompleteServiceWorkOrderDto';
42
42
  import { CreateYfFieldVisitOutcomeFormProperties } from '../actions-v2/CompleteServiceWorkOrderFlowDto';
43
43
  import { CreateCancelCollectionAmcoProperties } from '../actions-v2/CreateCancelCollectionAmcoDto';
44
+ import { CreateCollectionAmcoFollowOnWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoFollowOnWorkOrderDto';
44
45
  import { CreateCollectionAmcoReplacementWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoReplacementWorkOrderDto';
45
46
  import { CreateCollectionAmcoReplacementWorkOrderBuilder } from '../actions-v2/CreateCollectionAmcoReplacementWorkOrderDto';
46
47
  import { CreateCollectionAmcoWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoWorkOrderDto';
@@ -5143,6 +5144,33 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
5143
5144
  completeServiceWorkOrderFlowSupplier(options?: {
5144
5145
  journeyId?: string;
5145
5146
  }): ActionBuilder;
5147
+ /**
5148
+ * CreateCollectionAmcoFollowOnWorkOrder
5149
+ *
5150
+ * Updates this WorkOrder record.
5151
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
5152
+ *
5153
+ * @param propertiesOrOptions - Properties to update, or options object
5154
+ * @param options - Optional settings (journeyId, stageKey)
5155
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
5156
+ * @throws Error if called on a new (unsaved) record
5157
+ *
5158
+ * @example
5159
+ * ```typescript
5160
+ * const record = await odinClient.workOrders.get(id);
5161
+ * await record.createCollectionAmcoFollowOnWorkOrder({ ... }).execute();
5162
+ *
5163
+ * // Dry run (for debugging)
5164
+ * const payload = record.createCollectionAmcoFollowOnWorkOrder({ ... }).dryRun();
5165
+ * ```
5166
+ */
5167
+ createCollectionAmcoFollowOnWorkOrder(propertiesOrOptions?: CreateCollectionAmcoFollowOnWorkOrderProperties | {
5168
+ journeyId?: string;
5169
+ stageKey?: string;
5170
+ }, options?: {
5171
+ journeyId?: string;
5172
+ stageKey?: string;
5173
+ }): ActionBuilder;
5146
5174
  /**
5147
5175
  * CreateCollectionAmcoReplacementWorkOrderFromWorkOrder
5148
5176
  *
@@ -7877,6 +7877,43 @@ class WorkOrderRecord {
7877
7877
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CompleteServiceWorkOrderFlowSupplier', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'WorkOrderStageDone' }, options);
7878
7878
  return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
7879
7879
  }
7880
+ /**
7881
+ * CreateCollectionAmcoFollowOnWorkOrder
7882
+ *
7883
+ * Updates this WorkOrder record.
7884
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
7885
+ *
7886
+ * @param propertiesOrOptions - Properties to update, or options object
7887
+ * @param options - Optional settings (journeyId, stageKey)
7888
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
7889
+ * @throws Error if called on a new (unsaved) record
7890
+ *
7891
+ * @example
7892
+ * ```typescript
7893
+ * const record = await odinClient.workOrders.get(id);
7894
+ * await record.createCollectionAmcoFollowOnWorkOrder({ ... }).execute();
7895
+ *
7896
+ * // Dry run (for debugging)
7897
+ * const payload = record.createCollectionAmcoFollowOnWorkOrder({ ... }).dryRun();
7898
+ * ```
7899
+ */
7900
+ createCollectionAmcoFollowOnWorkOrder(propertiesOrOptions, options) {
7901
+ var _a;
7902
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
7903
+ throw new Error('createCollectionAmcoFollowOnWorkOrder requires an existing record. Use accessor.get() first.');
7904
+ let properties = {};
7905
+ let opts = options;
7906
+ if (propertiesOrOptions) {
7907
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
7908
+ opts = propertiesOrOptions;
7909
+ }
7910
+ else {
7911
+ properties = propertiesOrOptions;
7912
+ }
7913
+ }
7914
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CreateCollectionAmcoFollowOnWorkOrder', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
7915
+ return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
7916
+ }
7880
7917
  /**
7881
7918
  * CreateCollectionAmcoReplacementWorkOrderFromWorkOrder
7882
7919
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.356",
3
+ "version": "2.0.358",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",