@d19n/youfibre-odin-sdk 2.0.169 → 2.0.170

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.
@@ -21,19 +21,19 @@ export declare class OfferDb extends DbProvider {
21
21
  private readonly moduleName;
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
- private _lead__offer?;
25
- private _orderitem__offer?;
26
- private _offer__offer?;
27
- private _pricebook__offer?;
24
+ private _lead?;
28
25
  private _discount?;
26
+ private _orderitem?;
29
27
  private _product?;
28
+ private _offer?;
29
+ private _pricebook?;
30
30
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
31
- get lead__offer(): DbRecordLinkManager;
32
- get orderitem__offer(): DbRecordLinkManager;
33
- get offer__offer(): DbRecordLinkManager;
34
- get pricebook__offer(): DbRecordLinkManager;
31
+ get lead(): DbRecordLinkManager;
35
32
  get discount(): DbRecordLinkManager;
33
+ get orderitem(): DbRecordLinkManager;
36
34
  get product(): DbRecordLinkManager;
35
+ get offer(): DbRecordLinkManager;
36
+ get pricebook(): DbRecordLinkManager;
37
37
  setRecord(sourceRecord: any): void;
38
38
  /**
39
39
  * Search records with manual pagination control
@@ -38,29 +38,11 @@ class OfferDb extends db_provider_1.DbProvider {
38
38
  // LAZY-LOADED LINK MANAGERS (Public Getters)
39
39
  // ============================================
40
40
  // Usage remains identical: db.address.list(recordId)
41
- get lead__offer() {
42
- if (!this._lead__offer) {
43
- this._lead__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
41
+ get lead() {
42
+ if (!this._lead) {
43
+ this._lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
44
44
  }
45
- return this._lead__offer;
46
- }
47
- get orderitem__offer() {
48
- if (!this._orderitem__offer) {
49
- this._orderitem__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
50
- }
51
- return this._orderitem__offer;
52
- }
53
- get offer__offer() {
54
- if (!this._offer__offer) {
55
- this._offer__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
56
- }
57
- return this._offer__offer;
58
- }
59
- get pricebook__offer() {
60
- if (!this._pricebook__offer) {
61
- this._pricebook__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
62
- }
63
- return this._pricebook__offer;
45
+ return this._lead;
64
46
  }
65
47
  get discount() {
66
48
  if (!this._discount) {
@@ -68,12 +50,30 @@ class OfferDb extends db_provider_1.DbProvider {
68
50
  }
69
51
  return this._discount;
70
52
  }
53
+ get orderitem() {
54
+ if (!this._orderitem) {
55
+ this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
56
+ }
57
+ return this._orderitem;
58
+ }
71
59
  get product() {
72
60
  if (!this._product) {
73
61
  this._product = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
74
62
  }
75
63
  return this._product;
76
64
  }
65
+ get offer() {
66
+ if (!this._offer) {
67
+ this._offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
68
+ }
69
+ return this._offer;
70
+ }
71
+ get pricebook() {
72
+ if (!this._pricebook) {
73
+ this._pricebook = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
74
+ }
75
+ return this._pricebook;
76
+ }
77
77
  // ============================================
78
78
  // STANDARD METHODS
79
79
  // ============================================
@@ -1498,6 +1498,8 @@ export declare enum WorkOrderPropertyKeys {
1498
1498
  OrderId = "OrderId",
1499
1499
  /** Contact information field for WorkOrder. Used by Field Operations team for communication. */
1500
1500
  AlternativeAddressPostCode = "AlternativeAddressPostCode",
1501
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis. */
1502
+ ScheduledForDate = "ScheduledForDate",
1501
1503
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder) */
1502
1504
  Type = "Type"
1503
1505
  }
@@ -2232,6 +2234,12 @@ export interface WorkOrderProperties {
2232
2234
  * @type {TEXT}
2233
2235
  */
2234
2236
  AlternativeAddressPostCode: string;
2237
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
2238
+ *
2239
+ * @type {DATE}
2240
+ * @default
2241
+ */
2242
+ ScheduledForDate: string;
2235
2243
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
2236
2244
  *
2237
2245
  * @type {TEXT}
@@ -2970,6 +2978,12 @@ export interface CollectionWorkOrderProperties {
2970
2978
  * @type {TEXT}
2971
2979
  */
2972
2980
  AlternativeAddressPostCode: string;
2981
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
2982
+ *
2983
+ * @type {DATE}
2984
+ * @default
2985
+ */
2986
+ ScheduledForDate: string;
2973
2987
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
2974
2988
  *
2975
2989
  * @type {TEXT}
@@ -3708,6 +3722,12 @@ export interface CollectionAmcoWorkOrderProperties {
3708
3722
  * @type {TEXT}
3709
3723
  */
3710
3724
  AlternativeAddressPostCode: string;
3725
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
3726
+ *
3727
+ * @type {DATE}
3728
+ * @default
3729
+ */
3730
+ ScheduledForDate: string;
3711
3731
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
3712
3732
  *
3713
3733
  * @type {TEXT}
@@ -4446,6 +4466,12 @@ export interface DispatchAmcoWorkOrderProperties {
4446
4466
  * @type {TEXT}
4447
4467
  */
4448
4468
  AlternativeAddressPostCode: string;
4469
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
4470
+ *
4471
+ * @type {DATE}
4472
+ * @default
4473
+ */
4474
+ ScheduledForDate: string;
4449
4475
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
4450
4476
  *
4451
4477
  * @type {TEXT}
@@ -5184,6 +5210,12 @@ export interface FinanceWorkOrderProperties {
5184
5210
  * @type {TEXT}
5185
5211
  */
5186
5212
  AlternativeAddressPostCode: string;
5213
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
5214
+ *
5215
+ * @type {DATE}
5216
+ * @default
5217
+ */
5218
+ ScheduledForDate: string;
5187
5219
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
5188
5220
  *
5189
5221
  * @type {TEXT}
@@ -5922,6 +5954,12 @@ export interface InspectionWorkOrderProperties {
5922
5954
  * @type {TEXT}
5923
5955
  */
5924
5956
  AlternativeAddressPostCode: string;
5957
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
5958
+ *
5959
+ * @type {DATE}
5960
+ * @default
5961
+ */
5962
+ ScheduledForDate: string;
5925
5963
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
5926
5964
  *
5927
5965
  * @type {TEXT}
@@ -6660,6 +6698,12 @@ export interface InstallWorkOrderProperties {
6660
6698
  * @type {TEXT}
6661
6699
  */
6662
6700
  AlternativeAddressPostCode: string;
6701
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
6702
+ *
6703
+ * @type {DATE}
6704
+ * @default
6705
+ */
6706
+ ScheduledForDate: string;
6663
6707
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
6664
6708
  *
6665
6709
  * @type {TEXT}
@@ -7398,6 +7442,12 @@ export interface InstallBusinessWorkOrderProperties {
7398
7442
  * @type {TEXT}
7399
7443
  */
7400
7444
  AlternativeAddressPostCode: string;
7445
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
7446
+ *
7447
+ * @type {DATE}
7448
+ * @default
7449
+ */
7450
+ ScheduledForDate: string;
7401
7451
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
7402
7452
  *
7403
7453
  * @type {TEXT}
@@ -8136,6 +8186,12 @@ export interface InstallServiceWorkOrderProperties {
8136
8186
  * @type {TEXT}
8137
8187
  */
8138
8188
  AlternativeAddressPostCode: string;
8189
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
8190
+ *
8191
+ * @type {DATE}
8192
+ * @default
8193
+ */
8194
+ ScheduledForDate: string;
8139
8195
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
8140
8196
  *
8141
8197
  * @type {TEXT}
@@ -8874,6 +8930,12 @@ export interface NetworkAdjustmentWorkOrderProperties {
8874
8930
  * @type {TEXT}
8875
8931
  */
8876
8932
  AlternativeAddressPostCode: string;
8933
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
8934
+ *
8935
+ * @type {DATE}
8936
+ * @default
8937
+ */
8938
+ ScheduledForDate: string;
8877
8939
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
8878
8940
  *
8879
8941
  * @type {TEXT}
@@ -9612,6 +9674,12 @@ export interface PlanningWorkOrderProperties {
9612
9674
  * @type {TEXT}
9613
9675
  */
9614
9676
  AlternativeAddressPostCode: string;
9677
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
9678
+ *
9679
+ * @type {DATE}
9680
+ * @default
9681
+ */
9682
+ ScheduledForDate: string;
9615
9683
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
9616
9684
  *
9617
9685
  * @type {TEXT}
@@ -10350,6 +10418,12 @@ export interface PrePullWorkOrderProperties {
10350
10418
  * @type {TEXT}
10351
10419
  */
10352
10420
  AlternativeAddressPostCode: string;
10421
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
10422
+ *
10423
+ * @type {DATE}
10424
+ * @default
10425
+ */
10426
+ ScheduledForDate: string;
10353
10427
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
10354
10428
  *
10355
10429
  * @type {TEXT}
@@ -11088,6 +11162,12 @@ export interface RemediationWorkOrderProperties {
11088
11162
  * @type {TEXT}
11089
11163
  */
11090
11164
  AlternativeAddressPostCode: string;
11165
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
11166
+ *
11167
+ * @type {DATE}
11168
+ * @default
11169
+ */
11170
+ ScheduledForDate: string;
11091
11171
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
11092
11172
  *
11093
11173
  * @type {TEXT}
@@ -11826,6 +11906,12 @@ export interface ReplacementAmcoWorkOrderProperties {
11826
11906
  * @type {TEXT}
11827
11907
  */
11828
11908
  AlternativeAddressPostCode: string;
11909
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
11910
+ *
11911
+ * @type {DATE}
11912
+ * @default
11913
+ */
11914
+ ScheduledForDate: string;
11829
11915
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
11830
11916
  *
11831
11917
  * @type {TEXT}
@@ -12564,6 +12650,12 @@ export interface ServiceWorkOrderProperties {
12564
12650
  * @type {TEXT}
12565
12651
  */
12566
12652
  AlternativeAddressPostCode: string;
12653
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
12654
+ *
12655
+ * @type {DATE}
12656
+ * @default
12657
+ */
12658
+ ScheduledForDate: string;
12567
12659
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
12568
12660
  *
12569
12661
  * @type {TEXT}
@@ -13302,6 +13394,12 @@ export interface WayleaveWorkOrderProperties {
13302
13394
  * @type {TEXT}
13303
13395
  */
13304
13396
  AlternativeAddressPostCode: string;
13397
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis.
13398
+ *
13399
+ * @type {DATE}
13400
+ * @default
13401
+ */
13402
+ ScheduledForDate: string;
13305
13403
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder)
13306
13404
  *
13307
13405
  * @type {TEXT}
@@ -1501,6 +1501,8 @@ var WorkOrderPropertyKeys;
1501
1501
  WorkOrderPropertyKeys["OrderId"] = "OrderId";
1502
1502
  /** Contact information field for WorkOrder. Used by Field Operations team for communication. */
1503
1503
  WorkOrderPropertyKeys["AlternativeAddressPostCode"] = "AlternativeAddressPostCode";
1504
+ /** Frozen field-visit date the WO was scheduled for (from the ServiceAppointment) while in Scheduled stage. Stamped nightly + on create; immutable thereafter so the day-D cohort survives reschedule/cancel/remediation. Powers "did everything scheduled for today get handled" + shift analysis. */
1505
+ WorkOrderPropertyKeys["ScheduledForDate"] = "ScheduledForDate";
1504
1506
  /** Deprecated. replaced by native entity types (Field Operations - WorkOrder) */
1505
1507
  WorkOrderPropertyKeys["Type"] = "Type";
1506
1508
  })(WorkOrderPropertyKeys = exports.WorkOrderPropertyKeys || (exports.WorkOrderPropertyKeys = {}));
@@ -32,6 +32,7 @@ import { UpdateAgentCallLegOnIncomingCallFailedProperties } from '../actions-v2/
32
32
  import { UpdateAgentCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallNoAnswerDto';
33
33
  import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
34
34
  import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
35
+ import { UpdateAgentCallLegOnOutboundCallEndProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallEndDto';
35
36
  import { UpdateAgentCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto';
36
37
  import { UpdateAgentCallLegOnOutboundDialActionProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundDialActionDto';
37
38
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
@@ -448,6 +449,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
448
449
  journeyId?: string;
449
450
  stageKey?: string;
450
451
  }): ActionBuilder;
452
+ /**
453
+ * UpdateAgentCallLegOnOutboundCallEnd
454
+ *
455
+ * Updates this CallLeg record with the specified properties.
456
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
457
+ *
458
+ * @param properties - Required properties for this action
459
+ * @param options - Optional settings
460
+ * @param options.journeyId - Associate with a journey
461
+ * @param options.stageKey - Transition to pipeline stage
462
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
463
+ * @throws Error if called on a new (unsaved) record
464
+ *
465
+ * @example
466
+ * ```typescript
467
+ * const record = await odinClient.callLegs.get(id);
468
+ * await record.updateAgentCallLegOnOutboundCallEnd({ ... }).execute();
469
+ *
470
+ * // Dry run (for debugging)
471
+ * const payload = record.updateAgentCallLegOnOutboundCallEnd({ ... }).dryRun();
472
+ * ```
473
+ */
474
+ updateAgentCallLegOnOutboundCallEnd(properties: UpdateAgentCallLegOnOutboundCallEndProperties, options?: {
475
+ journeyId?: string;
476
+ stageKey?: string;
477
+ }): ActionBuilder;
451
478
  /**
452
479
  * UpdateAgentCallLegOnOutboundCallRinging
453
480
  *
@@ -539,6 +539,35 @@ class CallLegRecord {
539
539
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
540
540
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
541
541
  }
542
+ /**
543
+ * UpdateAgentCallLegOnOutboundCallEnd
544
+ *
545
+ * Updates this CallLeg record with the specified properties.
546
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
547
+ *
548
+ * @param properties - Required properties for this action
549
+ * @param options - Optional settings
550
+ * @param options.journeyId - Associate with a journey
551
+ * @param options.stageKey - Transition to pipeline stage
552
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
553
+ * @throws Error if called on a new (unsaved) record
554
+ *
555
+ * @example
556
+ * ```typescript
557
+ * const record = await odinClient.callLegs.get(id);
558
+ * await record.updateAgentCallLegOnOutboundCallEnd({ ... }).execute();
559
+ *
560
+ * // Dry run (for debugging)
561
+ * const payload = record.updateAgentCallLegOnOutboundCallEnd({ ... }).dryRun();
562
+ * ```
563
+ */
564
+ updateAgentCallLegOnOutboundCallEnd(properties, options) {
565
+ var _a;
566
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
567
+ throw new Error('updateAgentCallLegOnOutboundCallEnd requires an existing record. Use accessor.get() first.');
568
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallEnd', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
569
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
570
+ }
542
571
  /**
543
572
  * UpdateAgentCallLegOnOutboundCallRinging
544
573
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.169",
3
+ "version": "2.0.170",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",