@d19n/youfibre-odin-sdk 2.0.40 → 2.0.43
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 +11 -28
- package/dist/EntityRegistry.d.ts +0 -2
- package/dist/EntityRegistry.js +0 -2
- package/dist/OdinApiClient.d.ts +0 -4
- package/dist/OdinApiClient.js +0 -8
- package/dist/OdinDbClient.d.ts +0 -4
- package/dist/OdinDbClient.js +0 -8
- package/dist/accessors-v2/index.d.ts +0 -1
- package/dist/accessors-v2/index.js +2 -4
- package/dist/actions-v2/AssignCaseDto.d.ts +4 -4
- package/dist/actions-v2/AssignCaseWithNoteFlowDto.d.ts +4 -4
- package/dist/actions-v2/CreateAddressCrmDatasetDto.d.ts +116 -0
- package/dist/actions-v2/CreateAddressCrmDatasetDto.js +59 -0
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +4 -4
- package/dist/db-accessors-v2/index.d.ts +0 -1
- package/dist/db-accessors-v2/index.js +2 -4
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/CreditNote.d.ts +20 -20
- package/dist/entities-v2/CreditNote.js +6 -6
- package/dist/entities-v2/Lead.d.ts +0 -7
- package/dist/entities-v2/Lead.js +0 -2
- package/dist/entities-v2/WorkOrder.d.ts +3 -1
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/AccountRecord.d.ts +0 -29
- package/dist/records-v2/AccountRecord.js +0 -36
- package/dist/records-v2/AddressRecord.d.ts +0 -28
- package/dist/records-v2/AddressRecord.js +1 -45
- package/dist/records-v2/CaseRecord.js +8 -62
- package/dist/records-v2/ChurnRequestRecord.js +1 -7
- package/dist/records-v2/ContactRecord.d.ts +0 -49
- package/dist/records-v2/ContactRecord.js +1 -79
- package/dist/records-v2/ContractBuyOutRecord.js +2 -14
- package/dist/records-v2/CrmDatasetRecord.d.ts +29 -0
- package/dist/records-v2/CrmDatasetRecord.js +36 -0
- package/dist/records-v2/CustomerDeviceOntRecord.js +1 -7
- package/dist/records-v2/LeadRecord.d.ts +0 -29
- package/dist/records-v2/LeadRecord.js +0 -36
- package/dist/records-v2/OrderItemRecord.d.ts +0 -29
- package/dist/records-v2/OrderItemRecord.js +0 -36
- package/dist/records-v2/OrderRecord.d.ts +0 -99
- package/dist/records-v2/OrderRecord.js +8 -182
- package/dist/records-v2/PICRequestRecord.js +1 -7
- package/dist/records-v2/PaymentMethodRefundRecord.js +1 -6
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +1 -6
- package/dist/records-v2/WorkOrderRecord.js +41 -364
- package/dist/records-v2/index.d.ts +1 -2
- package/dist/records-v2/index.js +6 -9
- package/package.json +2 -2
- package/dist/accessors-v2/PhoneNumberAccessor.d.ts +0 -111
- package/dist/accessors-v2/PhoneNumberAccessor.js +0 -190
- package/dist/actions-v2/CreateAccountFromBrskDto.d.ts +0 -102
- package/dist/actions-v2/CreateAccountFromBrskDto.js +0 -54
- package/dist/actions-v2/CreateContactFromBrskDto.d.ts +0 -107
- package/dist/actions-v2/CreateContactFromBrskDto.js +0 -52
- package/dist/actions-v2/CreateLeadFromBrskDto.d.ts +0 -118
- package/dist/actions-v2/CreateLeadFromBrskDto.js +0 -52
- package/dist/actions-v2/CreateOrderFromBrskDto.d.ts +0 -138
- package/dist/actions-v2/CreateOrderFromBrskDto.js +0 -52
- package/dist/actions-v2/CreateOrderItemFromBrskDto.d.ts +0 -198
- package/dist/actions-v2/CreateOrderItemFromBrskDto.js +0 -52
- package/dist/actions-v2/CreatePhoneNumberFromBrskDto.d.ts +0 -67
- package/dist/actions-v2/CreatePhoneNumberFromBrskDto.js +0 -54
- package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.d.ts +0 -112
- package/dist/actions-v2/MoveOrderFromSupplyToActiveDto.js +0 -77
- package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.d.ts +0 -112
- package/dist/actions-v2/MoveOrderFromSupplyToCancelledDto.js +0 -77
- package/dist/actions-v2/UpdateAddressFromBrskDto.d.ts +0 -61
- package/dist/actions-v2/UpdateAddressFromBrskDto.js +0 -54
- package/dist/db-accessors-v2/PhoneNumberDbAccessor.d.ts +0 -149
- package/dist/db-accessors-v2/PhoneNumberDbAccessor.js +0 -227
- package/dist/records-v2/PhoneNumberRecord.d.ts +0 -205
- package/dist/records-v2/PhoneNumberRecord.js +0 -292
|
@@ -71,18 +71,18 @@ export declare enum CreditNoteReason {
|
|
|
71
71
|
* Use these constants instead of string literals for type safety
|
|
72
72
|
*/
|
|
73
73
|
export declare enum CreditNotePropertyKeys {
|
|
74
|
-
/** credit note
|
|
75
|
-
|
|
76
|
-
/** credit note status (Finance - CreditNote) */
|
|
77
|
-
Status = "Status",
|
|
74
|
+
/** amount of the credit note (Finance - CreditNote) */
|
|
75
|
+
Amount = "Amount",
|
|
78
76
|
/** description of the credit note (Finance - CreditNote) */
|
|
79
77
|
Description = "Description",
|
|
80
78
|
/** the record # of the invoice (Finance - CreditNote) */
|
|
81
79
|
InvoiceRef = "InvoiceRef",
|
|
80
|
+
/** credit note reason (Finance - CreditNote) */
|
|
81
|
+
Reason = "Reason",
|
|
82
82
|
/** reason code (Finance - CreditNote) */
|
|
83
83
|
ReasonCode = "ReasonCode",
|
|
84
|
-
/**
|
|
85
|
-
|
|
84
|
+
/** credit note status (Finance - CreditNote) */
|
|
85
|
+
Status = "Status"
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Properties for CreditNote records
|
|
@@ -90,18 +90,12 @@ export declare enum CreditNotePropertyKeys {
|
|
|
90
90
|
* @see BillingModule:CreditNote
|
|
91
91
|
*/
|
|
92
92
|
export interface CreditNoteProperties {
|
|
93
|
-
/** credit note
|
|
94
|
-
*
|
|
95
|
-
* @type {ENUM}
|
|
96
|
-
* @enum {CreditNoteReason}
|
|
97
|
-
*/
|
|
98
|
-
Reason: CreditNoteReason;
|
|
99
|
-
/** credit note status (Finance - CreditNote)
|
|
93
|
+
/** amount of the credit note (Finance - CreditNote)
|
|
100
94
|
*
|
|
101
|
-
* @type {
|
|
102
|
-
* @
|
|
95
|
+
* @type {CURRENCY}
|
|
96
|
+
* @default 0
|
|
103
97
|
*/
|
|
104
|
-
|
|
98
|
+
Amount: string;
|
|
105
99
|
/** description of the credit note (Finance - CreditNote)
|
|
106
100
|
*
|
|
107
101
|
* @type {TEXT_LONG}
|
|
@@ -112,18 +106,24 @@ export interface CreditNoteProperties {
|
|
|
112
106
|
* @type {TEXT}
|
|
113
107
|
*/
|
|
114
108
|
InvoiceRef: string;
|
|
109
|
+
/** credit note reason (Finance - CreditNote)
|
|
110
|
+
*
|
|
111
|
+
* @type {ENUM}
|
|
112
|
+
* @enum {CreditNoteReason}
|
|
113
|
+
*/
|
|
114
|
+
Reason: CreditNoteReason;
|
|
115
115
|
/** reason code (Finance - CreditNote)
|
|
116
116
|
*
|
|
117
117
|
* @type {TEXT}
|
|
118
118
|
* @hidden This field is hidden in the UI
|
|
119
119
|
*/
|
|
120
120
|
ReasonCode: string;
|
|
121
|
-
/**
|
|
121
|
+
/** credit note status (Finance - CreditNote)
|
|
122
122
|
*
|
|
123
|
-
* @type {
|
|
124
|
-
* @
|
|
123
|
+
* @type {TEXT}
|
|
124
|
+
* @hidden This field is hidden in the UI
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
Status: string;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* CreditNote entity from BillingModule
|
|
@@ -73,18 +73,18 @@ var CreditNoteReason;
|
|
|
73
73
|
*/
|
|
74
74
|
var CreditNotePropertyKeys;
|
|
75
75
|
(function (CreditNotePropertyKeys) {
|
|
76
|
-
/** credit note
|
|
77
|
-
CreditNotePropertyKeys["
|
|
78
|
-
/** credit note status (Finance - CreditNote) */
|
|
79
|
-
CreditNotePropertyKeys["Status"] = "Status";
|
|
76
|
+
/** amount of the credit note (Finance - CreditNote) */
|
|
77
|
+
CreditNotePropertyKeys["Amount"] = "Amount";
|
|
80
78
|
/** description of the credit note (Finance - CreditNote) */
|
|
81
79
|
CreditNotePropertyKeys["Description"] = "Description";
|
|
82
80
|
/** the record # of the invoice (Finance - CreditNote) */
|
|
83
81
|
CreditNotePropertyKeys["InvoiceRef"] = "InvoiceRef";
|
|
82
|
+
/** credit note reason (Finance - CreditNote) */
|
|
83
|
+
CreditNotePropertyKeys["Reason"] = "Reason";
|
|
84
84
|
/** reason code (Finance - CreditNote) */
|
|
85
85
|
CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
|
|
86
|
-
/**
|
|
87
|
-
CreditNotePropertyKeys["
|
|
86
|
+
/** credit note status (Finance - CreditNote) */
|
|
87
|
+
CreditNotePropertyKeys["Status"] = "Status";
|
|
88
88
|
})(CreditNotePropertyKeys = exports.CreditNotePropertyKeys || (exports.CreditNotePropertyKeys = {}));
|
|
89
89
|
/**
|
|
90
90
|
* CreditNote entity from BillingModule
|
|
@@ -201,8 +201,6 @@ export declare enum LeadPropertyKeys {
|
|
|
201
201
|
CompanyPosition = "CompanyPosition",
|
|
202
202
|
/** Data field for Lead records. Used by Sales team. */
|
|
203
203
|
Vat = "VAT",
|
|
204
|
-
/** TitleName */
|
|
205
|
-
TitleName = "TitleName",
|
|
206
204
|
/** External Reference */
|
|
207
205
|
ExternalReference = "ExternalReference",
|
|
208
206
|
/** Address */
|
|
@@ -410,11 +408,6 @@ export interface LeadProperties {
|
|
|
410
408
|
* @hidden This field is hidden in the UI
|
|
411
409
|
*/
|
|
412
410
|
Vat: number;
|
|
413
|
-
/** TitleName
|
|
414
|
-
*
|
|
415
|
-
* @type {TEXT}
|
|
416
|
-
*/
|
|
417
|
-
TitleName: string;
|
|
418
411
|
/** External Reference
|
|
419
412
|
*
|
|
420
413
|
* @type {TEXT}
|
package/dist/entities-v2/Lead.js
CHANGED
|
@@ -195,8 +195,6 @@ var LeadPropertyKeys;
|
|
|
195
195
|
LeadPropertyKeys["CompanyPosition"] = "CompanyPosition";
|
|
196
196
|
/** Data field for Lead records. Used by Sales team. */
|
|
197
197
|
LeadPropertyKeys["Vat"] = "VAT";
|
|
198
|
-
/** TitleName */
|
|
199
|
-
LeadPropertyKeys["TitleName"] = "TitleName";
|
|
200
198
|
/** External Reference */
|
|
201
199
|
LeadPropertyKeys["ExternalReference"] = "ExternalReference";
|
|
202
200
|
/** Address */
|
|
@@ -1092,12 +1092,14 @@ export declare enum WorkOrderLengthOfInsideOutCableUsed {
|
|
|
1092
1092
|
* - `CITYFIBRE` - CityFibre
|
|
1093
1093
|
* - `NETOMNIA` - Netomnia
|
|
1094
1094
|
* - `NETOMNIA_LEGACY` - Netomnia (Legacy)
|
|
1095
|
+
* - `PYOMNI` - PyOmni
|
|
1095
1096
|
*/
|
|
1096
1097
|
export declare enum WorkOrderProvider {
|
|
1097
1098
|
BRSK = "BRSK",
|
|
1098
1099
|
CITY_FIBRE = "CITYFIBRE",
|
|
1099
1100
|
NETOMNIA = "NETOMNIA",
|
|
1100
|
-
NETOMNIA_LEGACY = "NETOMNIA_LEGACY"
|
|
1101
|
+
NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
|
|
1102
|
+
PY_OMNI = "PYOMNI"
|
|
1101
1103
|
}
|
|
1102
1104
|
/**
|
|
1103
1105
|
* Valid values for WorkOrder.OutcomeOfServiceVisit
|
|
@@ -1089,6 +1089,7 @@ var WorkOrderLengthOfInsideOutCableUsed;
|
|
|
1089
1089
|
* - `CITYFIBRE` - CityFibre
|
|
1090
1090
|
* - `NETOMNIA` - Netomnia
|
|
1091
1091
|
* - `NETOMNIA_LEGACY` - Netomnia (Legacy)
|
|
1092
|
+
* - `PYOMNI` - PyOmni
|
|
1092
1093
|
*/
|
|
1093
1094
|
var WorkOrderProvider;
|
|
1094
1095
|
(function (WorkOrderProvider) {
|
|
@@ -1096,6 +1097,7 @@ var WorkOrderProvider;
|
|
|
1096
1097
|
WorkOrderProvider["CITY_FIBRE"] = "CITYFIBRE";
|
|
1097
1098
|
WorkOrderProvider["NETOMNIA"] = "NETOMNIA";
|
|
1098
1099
|
WorkOrderProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
|
|
1100
|
+
WorkOrderProvider["PY_OMNI"] = "PYOMNI";
|
|
1099
1101
|
})(WorkOrderProvider = exports.WorkOrderProvider || (exports.WorkOrderProvider = {}));
|
|
1100
1102
|
/**
|
|
1101
1103
|
* Valid values for WorkOrder.OutcomeOfServiceVisit
|
|
@@ -24,7 +24,6 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { AccountProperties, BusinessAccountProperties, MultipleAccountProperties, PrimaryAccountProperties, ResellerAccountProperties, ServiceAccountProperties } from '../entities-v2/Account';
|
|
26
26
|
import { ChangeBillingModeProperties } from '../actions-v2/ChangeBillingModeDto';
|
|
27
|
-
import { CreateAccountFromBrskProperties } from '../actions-v2/CreateAccountFromBrskDto';
|
|
28
27
|
import { CreateBusinessAccountProperties } from '../actions-v2/CreateBusinessAccountDto';
|
|
29
28
|
import { CreatePrimaryAccountProperties } from '../actions-v2/CreatePrimaryAccountDto';
|
|
30
29
|
import { CreateResellerAccountProperties } from '../actions-v2/CreateResellerAccountDto';
|
|
@@ -441,34 +440,6 @@ export declare class AccountRecord<TProps = AccountProperties> {
|
|
|
441
440
|
unlink(target: OdinRecord<any> | {
|
|
442
441
|
id: string;
|
|
443
442
|
} | string): Promise<void>;
|
|
444
|
-
/**
|
|
445
|
-
* CreateAccountFromBrsk
|
|
446
|
-
*
|
|
447
|
-
* Creates a new Account record with the specified properties.
|
|
448
|
-
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
449
|
-
*
|
|
450
|
-
* @param properties - The properties for the new record
|
|
451
|
-
* @param options - Optional settings
|
|
452
|
-
* @param options.type - Override the record type
|
|
453
|
-
* @param options.journeyId - Associate with a journey
|
|
454
|
-
* @param options.stageKey - Set initial pipeline stage
|
|
455
|
-
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
456
|
-
*
|
|
457
|
-
* @example
|
|
458
|
-
* ```typescript
|
|
459
|
-
* // Create with properties
|
|
460
|
-
* const record = odinClient.accounts.new();
|
|
461
|
-
* await record.createAccountFromBrsk({ ... }).execute();
|
|
462
|
-
*
|
|
463
|
-
* // Dry run (for debugging)
|
|
464
|
-
* const payload = record.createAccountFromBrsk({ ... }).dryRun();
|
|
465
|
-
* ```
|
|
466
|
-
*/
|
|
467
|
-
createAccountFromBrsk(properties?: CreateAccountFromBrskProperties, options?: {
|
|
468
|
-
type?: string;
|
|
469
|
-
journeyId?: string;
|
|
470
|
-
stageKey?: string;
|
|
471
|
-
}): ActionBuilder;
|
|
472
443
|
/**
|
|
473
444
|
* CreateBusinessAccount
|
|
474
445
|
*
|
|
@@ -603,42 +603,6 @@ class AccountRecord {
|
|
|
603
603
|
// ============================================
|
|
604
604
|
// CREATE ACTIONS (no existing record required)
|
|
605
605
|
// ============================================
|
|
606
|
-
/**
|
|
607
|
-
* CreateAccountFromBrsk
|
|
608
|
-
*
|
|
609
|
-
* Creates a new Account record with the specified properties.
|
|
610
|
-
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
611
|
-
*
|
|
612
|
-
* @param properties - The properties for the new record
|
|
613
|
-
* @param options - Optional settings
|
|
614
|
-
* @param options.type - Override the record type
|
|
615
|
-
* @param options.journeyId - Associate with a journey
|
|
616
|
-
* @param options.stageKey - Set initial pipeline stage
|
|
617
|
-
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
618
|
-
*
|
|
619
|
-
* @example
|
|
620
|
-
* ```typescript
|
|
621
|
-
* // Create with properties
|
|
622
|
-
* const record = odinClient.accounts.new();
|
|
623
|
-
* await record.createAccountFromBrsk({ ... }).execute();
|
|
624
|
-
*
|
|
625
|
-
* // Dry run (for debugging)
|
|
626
|
-
* const payload = record.createAccountFromBrsk({ ... }).dryRun();
|
|
627
|
-
* ```
|
|
628
|
-
*/
|
|
629
|
-
createAccountFromBrsk(properties, options) {
|
|
630
|
-
var _a, _b;
|
|
631
|
-
const payload = {
|
|
632
|
-
entity: 'CrmModule:Account',
|
|
633
|
-
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,
|
|
634
|
-
actionName: 'CreateAccountFromBrsk',
|
|
635
|
-
properties: properties || {},
|
|
636
|
-
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
637
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
638
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
639
|
-
};
|
|
640
|
-
return new ActionBuilder(this._provider, 'CrmModule', 'Account', payload, () => { this._pendingLinks = []; });
|
|
641
|
-
}
|
|
642
606
|
/**
|
|
643
607
|
* CreateBusinessAccount
|
|
644
608
|
*
|
|
@@ -25,7 +25,6 @@ import { AddressCreateProperties } from '../actions-v2/AddressCreateDto';
|
|
|
25
25
|
import { AddressUpdateProperties } from '../actions-v2/AddressUpdateDto';
|
|
26
26
|
import { CreateLeadProperties } from '../actions-v2/CreateLeadFromAddressDto';
|
|
27
27
|
import { CreateContactProperties } from '../actions-v2/CreateLeadFromAddressDto';
|
|
28
|
-
import { UpdateAddressFromBrskProperties } from '../actions-v2/UpdateAddressFromBrskDto';
|
|
29
28
|
import { OrderRecord } from './OrderRecord';
|
|
30
29
|
import { CustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
|
|
31
30
|
import { AppointmentRecord } from './AppointmentRecord';
|
|
@@ -602,33 +601,6 @@ export declare class AddressRecord<TProps = AddressProperties> {
|
|
|
602
601
|
createLeadFromAddress(options?: {
|
|
603
602
|
journeyId?: string;
|
|
604
603
|
}): CreateLeadFromAddressFlowBuilder;
|
|
605
|
-
/**
|
|
606
|
-
* UpdateAddressFromBrsk
|
|
607
|
-
*
|
|
608
|
-
* Updates this Address record.
|
|
609
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
610
|
-
*
|
|
611
|
-
* @param propertiesOrOptions - Properties to update, or options object
|
|
612
|
-
* @param options - Optional settings (journeyId, stageKey)
|
|
613
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
614
|
-
* @throws Error if called on a new (unsaved) record
|
|
615
|
-
*
|
|
616
|
-
* @example
|
|
617
|
-
* ```typescript
|
|
618
|
-
* const record = await odinClient.addresss.get(id);
|
|
619
|
-
* await record.updateAddressFromBrsk({ ... }).execute();
|
|
620
|
-
*
|
|
621
|
-
* // Dry run (for debugging)
|
|
622
|
-
* const payload = record.updateAddressFromBrsk({ ... }).dryRun();
|
|
623
|
-
* ```
|
|
624
|
-
*/
|
|
625
|
-
updateAddressFromBrsk(propertiesOrOptions?: UpdateAddressFromBrskProperties | {
|
|
626
|
-
journeyId?: string;
|
|
627
|
-
stageKey?: string;
|
|
628
|
-
}, options?: {
|
|
629
|
-
journeyId?: string;
|
|
630
|
-
stageKey?: string;
|
|
631
|
-
}): ActionBuilder;
|
|
632
604
|
}
|
|
633
605
|
/** Type guard to check if an object is a AddressRecord */
|
|
634
606
|
export declare function isAddressRecord(obj: any): obj is AddressRecord;
|
|
@@ -158,8 +158,6 @@ class CreateLeadFromAddressFlowBuilder {
|
|
|
158
158
|
actionName: 'CreateLead',
|
|
159
159
|
properties,
|
|
160
160
|
entity: 'CrmModule:Lead',
|
|
161
|
-
schemaId: 'af31abc1-5d28-4a12-ba22-2da7d44febba',
|
|
162
|
-
schemaActionId: '82822a02-ea89-49ad-9417-c6fcb4912bfb',
|
|
163
161
|
autoLinkParent: true,
|
|
164
162
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
165
163
|
groups: options === null || options === void 0 ? void 0 : options.groups,
|
|
@@ -178,8 +176,6 @@ class CreateLeadFromAddressFlowBuilder {
|
|
|
178
176
|
actionName: 'CreateContact',
|
|
179
177
|
properties,
|
|
180
178
|
entity: 'CrmModule:Contact',
|
|
181
|
-
schemaId: 'ff4313f0-9929-4481-bdf4-c90ff9624014',
|
|
182
|
-
schemaActionId: 'b6497532-cf9d-467c-9684-c1b19acb7ed1',
|
|
183
179
|
autoLinkParent: true,
|
|
184
180
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
185
181
|
groups: options === null || options === void 0 ? void 0 : options.groups,
|
|
@@ -235,9 +231,6 @@ class CreateLeadFromAddressFlowBuilder {
|
|
|
235
231
|
return {
|
|
236
232
|
entity: step.entity,
|
|
237
233
|
type: step.type,
|
|
238
|
-
schemaId: step.schemaId,
|
|
239
|
-
schemaActionId: step.schemaActionId,
|
|
240
|
-
schemaTypeId: step.schemaTypeId,
|
|
241
234
|
actionName: step.actionName,
|
|
242
235
|
properties: step.properties,
|
|
243
236
|
title: step.title,
|
|
@@ -246,7 +239,7 @@ class CreateLeadFromAddressFlowBuilder {
|
|
|
246
239
|
groups: step.groups,
|
|
247
240
|
};
|
|
248
241
|
});
|
|
249
|
-
return Object.assign(Object.assign(Object.assign({}, ((record === null || record === void 0 ? void 0 : record.id) && { id: record.id })), { entity: 'CrmModule:Address', actionName: 'CreateLeadFromAddress',
|
|
242
|
+
return Object.assign(Object.assign(Object.assign({}, ((record === null || record === void 0 ? void 0 : record.id) && { id: record.id })), { entity: 'CrmModule:Address', actionName: 'CreateLeadFromAddress', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }), this._options);
|
|
250
243
|
}
|
|
251
244
|
}
|
|
252
245
|
exports.CreateLeadFromAddressFlowBuilder = CreateLeadFromAddressFlowBuilder;
|
|
@@ -902,43 +895,6 @@ class AddressRecord {
|
|
|
902
895
|
createLeadFromAddress(options) {
|
|
903
896
|
return new CreateLeadFromAddressFlowBuilder(this, this._provider, this._pendingLinks, options);
|
|
904
897
|
}
|
|
905
|
-
/**
|
|
906
|
-
* UpdateAddressFromBrsk
|
|
907
|
-
*
|
|
908
|
-
* Updates this Address record.
|
|
909
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
910
|
-
*
|
|
911
|
-
* @param propertiesOrOptions - Properties to update, or options object
|
|
912
|
-
* @param options - Optional settings (journeyId, stageKey)
|
|
913
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
914
|
-
* @throws Error if called on a new (unsaved) record
|
|
915
|
-
*
|
|
916
|
-
* @example
|
|
917
|
-
* ```typescript
|
|
918
|
-
* const record = await odinClient.addresss.get(id);
|
|
919
|
-
* await record.updateAddressFromBrsk({ ... }).execute();
|
|
920
|
-
*
|
|
921
|
-
* // Dry run (for debugging)
|
|
922
|
-
* const payload = record.updateAddressFromBrsk({ ... }).dryRun();
|
|
923
|
-
* ```
|
|
924
|
-
*/
|
|
925
|
-
updateAddressFromBrsk(propertiesOrOptions, options) {
|
|
926
|
-
var _a;
|
|
927
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
928
|
-
throw new Error('updateAddressFromBrsk requires an existing record. Use accessor.get() first.');
|
|
929
|
-
let properties = {};
|
|
930
|
-
let opts = options;
|
|
931
|
-
if (propertiesOrOptions) {
|
|
932
|
-
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
933
|
-
opts = propertiesOrOptions;
|
|
934
|
-
}
|
|
935
|
-
else {
|
|
936
|
-
properties = propertiesOrOptions;
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAddressFromBrsk', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
940
|
-
return new ActionBuilder(this._provider, 'CrmModule', 'Address', payload, () => { this._pendingLinks = []; });
|
|
941
|
-
}
|
|
942
898
|
}
|
|
943
899
|
exports.AddressRecord = AddressRecord;
|
|
944
900
|
// ============================================
|
|
@@ -162,9 +162,6 @@ class AssignCaseWithNoteFlowFlowBuilder {
|
|
|
162
162
|
properties,
|
|
163
163
|
id,
|
|
164
164
|
entity: 'SupportModule:Case',
|
|
165
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
166
|
-
schemaActionId: '1b9ad25e-fe28-42fd-8198-b89d9df26bb1',
|
|
167
|
-
schemaTypeId: '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf',
|
|
168
165
|
type: 'DEFAULT',
|
|
169
166
|
autoLinkParent: false,
|
|
170
167
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -184,9 +181,6 @@ class AssignCaseWithNoteFlowFlowBuilder {
|
|
|
184
181
|
actionName: 'CreateNoteForCaseAssignment',
|
|
185
182
|
properties,
|
|
186
183
|
entity: 'SupportModule:Note',
|
|
187
|
-
schemaId: '39e849e9-bd95-4499-bca2-e88162062e09',
|
|
188
|
-
schemaActionId: '9ac8c98c-4e2d-4b45-851a-bfe818365d32',
|
|
189
|
-
schemaTypeId: '0d68c73f-4489-4d73-8482-f6146f87f460',
|
|
190
184
|
type: 'DEFAULT',
|
|
191
185
|
autoLinkParent: true,
|
|
192
186
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -245,9 +239,6 @@ class AssignCaseWithNoteFlowFlowBuilder {
|
|
|
245
239
|
return {
|
|
246
240
|
entity: step.entity,
|
|
247
241
|
type: step.type,
|
|
248
|
-
schemaId: step.schemaId,
|
|
249
|
-
schemaActionId: step.schemaActionId,
|
|
250
|
-
schemaTypeId: step.schemaTypeId,
|
|
251
242
|
actionName: step.actionName,
|
|
252
243
|
properties: step.properties,
|
|
253
244
|
title: step.title,
|
|
@@ -256,7 +247,7 @@ class AssignCaseWithNoteFlowFlowBuilder {
|
|
|
256
247
|
groups: step.groups,
|
|
257
248
|
};
|
|
258
249
|
});
|
|
259
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'AssignCaseWithNoteFlow',
|
|
250
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'AssignCaseWithNoteFlow', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options);
|
|
260
251
|
}
|
|
261
252
|
}
|
|
262
253
|
exports.AssignCaseWithNoteFlowFlowBuilder = AssignCaseWithNoteFlowFlowBuilder;
|
|
@@ -298,8 +289,6 @@ class CaseDefaultStageEscalatedFlowBuilder {
|
|
|
298
289
|
properties,
|
|
299
290
|
id,
|
|
300
291
|
entity: 'SupportModule:Case',
|
|
301
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
302
|
-
schemaActionId: 'fdc282dd-cdc3-49bd-8818-df217a3e226d',
|
|
303
292
|
autoLinkParent: false,
|
|
304
293
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
305
294
|
groups: options === null || options === void 0 ? void 0 : options.groups,
|
|
@@ -318,9 +307,6 @@ class CaseDefaultStageEscalatedFlowBuilder {
|
|
|
318
307
|
actionName: 'CreateNoteForCaseAssignment',
|
|
319
308
|
properties,
|
|
320
309
|
entity: 'SupportModule:Note',
|
|
321
|
-
schemaId: '39e849e9-bd95-4499-bca2-e88162062e09',
|
|
322
|
-
schemaActionId: '9ac8c98c-4e2d-4b45-851a-bfe818365d32',
|
|
323
|
-
schemaTypeId: '0d68c73f-4489-4d73-8482-f6146f87f460',
|
|
324
310
|
type: 'DEFAULT',
|
|
325
311
|
autoLinkParent: true,
|
|
326
312
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -379,9 +365,6 @@ class CaseDefaultStageEscalatedFlowBuilder {
|
|
|
379
365
|
return {
|
|
380
366
|
entity: step.entity,
|
|
381
367
|
type: step.type,
|
|
382
|
-
schemaId: step.schemaId,
|
|
383
|
-
schemaActionId: step.schemaActionId,
|
|
384
|
-
schemaTypeId: step.schemaTypeId,
|
|
385
368
|
actionName: step.actionName,
|
|
386
369
|
properties: step.properties,
|
|
387
370
|
title: step.title,
|
|
@@ -390,7 +373,7 @@ class CaseDefaultStageEscalatedFlowBuilder {
|
|
|
390
373
|
groups: step.groups,
|
|
391
374
|
};
|
|
392
375
|
});
|
|
393
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CaseDefaultStageEscalated',
|
|
376
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CaseDefaultStageEscalated', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options);
|
|
394
377
|
}
|
|
395
378
|
}
|
|
396
379
|
exports.CaseDefaultStageEscalatedFlowBuilder = CaseDefaultStageEscalatedFlowBuilder;
|
|
@@ -432,9 +415,6 @@ class CaseDefaultStageSolvedFlowBuilder {
|
|
|
432
415
|
properties,
|
|
433
416
|
id,
|
|
434
417
|
entity: 'SupportModule:Case',
|
|
435
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
436
|
-
schemaActionId: '5e215610-d78f-4654-a7c8-4504948936db',
|
|
437
|
-
schemaTypeId: '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf',
|
|
438
418
|
type: 'DEFAULT',
|
|
439
419
|
autoLinkParent: false,
|
|
440
420
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -493,9 +473,6 @@ class CaseDefaultStageSolvedFlowBuilder {
|
|
|
493
473
|
return {
|
|
494
474
|
entity: step.entity,
|
|
495
475
|
type: step.type,
|
|
496
|
-
schemaId: step.schemaId,
|
|
497
|
-
schemaActionId: step.schemaActionId,
|
|
498
|
-
schemaTypeId: step.schemaTypeId,
|
|
499
476
|
actionName: step.actionName,
|
|
500
477
|
properties: step.properties,
|
|
501
478
|
title: step.title,
|
|
@@ -504,7 +481,7 @@ class CaseDefaultStageSolvedFlowBuilder {
|
|
|
504
481
|
groups: step.groups,
|
|
505
482
|
};
|
|
506
483
|
});
|
|
507
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CaseDefaultStageSolved',
|
|
484
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CaseDefaultStageSolved', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageSolved' }, this._options);
|
|
508
485
|
}
|
|
509
486
|
}
|
|
510
487
|
exports.CaseDefaultStageSolvedFlowBuilder = CaseDefaultStageSolvedFlowBuilder;
|
|
@@ -546,9 +523,6 @@ class CasedefaultstageblockedFlowBuilder {
|
|
|
546
523
|
properties,
|
|
547
524
|
id,
|
|
548
525
|
entity: 'SupportModule:Case',
|
|
549
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
550
|
-
schemaActionId: 'e9420724-d4ea-4e08-8a63-1664f8202d34',
|
|
551
|
-
schemaTypeId: '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf',
|
|
552
526
|
type: 'DEFAULT',
|
|
553
527
|
autoLinkParent: false,
|
|
554
528
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -607,9 +581,6 @@ class CasedefaultstageblockedFlowBuilder {
|
|
|
607
581
|
return {
|
|
608
582
|
entity: step.entity,
|
|
609
583
|
type: step.type,
|
|
610
|
-
schemaId: step.schemaId,
|
|
611
|
-
schemaActionId: step.schemaActionId,
|
|
612
|
-
schemaTypeId: step.schemaTypeId,
|
|
613
584
|
actionName: step.actionName,
|
|
614
585
|
properties: step.properties,
|
|
615
586
|
title: step.title,
|
|
@@ -618,7 +589,7 @@ class CasedefaultstageblockedFlowBuilder {
|
|
|
618
589
|
groups: step.groups,
|
|
619
590
|
};
|
|
620
591
|
});
|
|
621
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'Casedefaultstageblocked',
|
|
592
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'Casedefaultstageblocked', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options);
|
|
622
593
|
}
|
|
623
594
|
}
|
|
624
595
|
exports.CasedefaultstageblockedFlowBuilder = CasedefaultstageblockedFlowBuilder;
|
|
@@ -660,8 +631,6 @@ class EscalateCaseTransitionFlowBuilder {
|
|
|
660
631
|
properties,
|
|
661
632
|
id,
|
|
662
633
|
entity: 'SupportModule:Case',
|
|
663
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
664
|
-
schemaActionId: 'fdc282dd-cdc3-49bd-8818-df217a3e226d',
|
|
665
634
|
autoLinkParent: false,
|
|
666
635
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
667
636
|
groups: options === null || options === void 0 ? void 0 : options.groups,
|
|
@@ -680,9 +649,6 @@ class EscalateCaseTransitionFlowBuilder {
|
|
|
680
649
|
actionName: 'CreateNoteForCaseAssignment',
|
|
681
650
|
properties,
|
|
682
651
|
entity: 'SupportModule:Note',
|
|
683
|
-
schemaId: '39e849e9-bd95-4499-bca2-e88162062e09',
|
|
684
|
-
schemaActionId: '9ac8c98c-4e2d-4b45-851a-bfe818365d32',
|
|
685
|
-
schemaTypeId: '0d68c73f-4489-4d73-8482-f6146f87f460',
|
|
686
652
|
type: 'DEFAULT',
|
|
687
653
|
autoLinkParent: true,
|
|
688
654
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -741,9 +707,6 @@ class EscalateCaseTransitionFlowBuilder {
|
|
|
741
707
|
return {
|
|
742
708
|
entity: step.entity,
|
|
743
709
|
type: step.type,
|
|
744
|
-
schemaId: step.schemaId,
|
|
745
|
-
schemaActionId: step.schemaActionId,
|
|
746
|
-
schemaTypeId: step.schemaTypeId,
|
|
747
710
|
actionName: step.actionName,
|
|
748
711
|
properties: step.properties,
|
|
749
712
|
title: step.title,
|
|
@@ -752,7 +715,7 @@ class EscalateCaseTransitionFlowBuilder {
|
|
|
752
715
|
groups: step.groups,
|
|
753
716
|
};
|
|
754
717
|
});
|
|
755
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'EscalateCaseTransition',
|
|
718
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'EscalateCaseTransition', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options);
|
|
756
719
|
}
|
|
757
720
|
}
|
|
758
721
|
exports.EscalateCaseTransitionFlowBuilder = EscalateCaseTransitionFlowBuilder;
|
|
@@ -794,9 +757,6 @@ class MoveCaseToBlockedTransitionFlowBuilder {
|
|
|
794
757
|
properties,
|
|
795
758
|
id,
|
|
796
759
|
entity: 'SupportModule:Case',
|
|
797
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
798
|
-
schemaActionId: 'e9420724-d4ea-4e08-8a63-1664f8202d34',
|
|
799
|
-
schemaTypeId: '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf',
|
|
800
760
|
type: 'DEFAULT',
|
|
801
761
|
autoLinkParent: false,
|
|
802
762
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -855,9 +815,6 @@ class MoveCaseToBlockedTransitionFlowBuilder {
|
|
|
855
815
|
return {
|
|
856
816
|
entity: step.entity,
|
|
857
817
|
type: step.type,
|
|
858
|
-
schemaId: step.schemaId,
|
|
859
|
-
schemaActionId: step.schemaActionId,
|
|
860
|
-
schemaTypeId: step.schemaTypeId,
|
|
861
818
|
actionName: step.actionName,
|
|
862
819
|
properties: step.properties,
|
|
863
820
|
title: step.title,
|
|
@@ -866,7 +823,7 @@ class MoveCaseToBlockedTransitionFlowBuilder {
|
|
|
866
823
|
groups: step.groups,
|
|
867
824
|
};
|
|
868
825
|
});
|
|
869
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToBlockedTransition',
|
|
826
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToBlockedTransition', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options);
|
|
870
827
|
}
|
|
871
828
|
}
|
|
872
829
|
exports.MoveCaseToBlockedTransitionFlowBuilder = MoveCaseToBlockedTransitionFlowBuilder;
|
|
@@ -908,9 +865,6 @@ class MoveCaseToPendingReviewTransitionFlowBuilder {
|
|
|
908
865
|
properties,
|
|
909
866
|
id,
|
|
910
867
|
entity: 'SupportModule:Case',
|
|
911
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
912
|
-
schemaActionId: 'ebbbc806-bd60-49e6-af50-6e5e859a8f04',
|
|
913
|
-
schemaTypeId: '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf',
|
|
914
868
|
type: 'DEFAULT',
|
|
915
869
|
autoLinkParent: false,
|
|
916
870
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
@@ -969,9 +923,6 @@ class MoveCaseToPendingReviewTransitionFlowBuilder {
|
|
|
969
923
|
return {
|
|
970
924
|
entity: step.entity,
|
|
971
925
|
type: step.type,
|
|
972
|
-
schemaId: step.schemaId,
|
|
973
|
-
schemaActionId: step.schemaActionId,
|
|
974
|
-
schemaTypeId: step.schemaTypeId,
|
|
975
926
|
actionName: step.actionName,
|
|
976
927
|
properties: step.properties,
|
|
977
928
|
title: step.title,
|
|
@@ -980,7 +931,7 @@ class MoveCaseToPendingReviewTransitionFlowBuilder {
|
|
|
980
931
|
groups: step.groups,
|
|
981
932
|
};
|
|
982
933
|
});
|
|
983
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToPendingReviewTransition',
|
|
934
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToPendingReviewTransition', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStagePendingReview' }, this._options);
|
|
984
935
|
}
|
|
985
936
|
}
|
|
986
937
|
exports.MoveCaseToPendingReviewTransitionFlowBuilder = MoveCaseToPendingReviewTransitionFlowBuilder;
|
|
@@ -1022,8 +973,6 @@ class MoveDefaultCaseFromOpenToClosedFlowBuilder {
|
|
|
1022
973
|
properties,
|
|
1023
974
|
id,
|
|
1024
975
|
entity: 'SupportModule:Case',
|
|
1025
|
-
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561',
|
|
1026
|
-
schemaActionId: 'c6d9e241-8cd8-44f4-a215-40be5979b996',
|
|
1027
976
|
autoLinkParent: false,
|
|
1028
977
|
associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
|
|
1029
978
|
groups: options === null || options === void 0 ? void 0 : options.groups,
|
|
@@ -1081,9 +1030,6 @@ class MoveDefaultCaseFromOpenToClosedFlowBuilder {
|
|
|
1081
1030
|
return {
|
|
1082
1031
|
entity: step.entity,
|
|
1083
1032
|
type: step.type,
|
|
1084
|
-
schemaId: step.schemaId,
|
|
1085
|
-
schemaActionId: step.schemaActionId,
|
|
1086
|
-
schemaTypeId: step.schemaTypeId,
|
|
1087
1033
|
actionName: step.actionName,
|
|
1088
1034
|
properties: step.properties,
|
|
1089
1035
|
title: step.title,
|
|
@@ -1092,7 +1038,7 @@ class MoveDefaultCaseFromOpenToClosedFlowBuilder {
|
|
|
1092
1038
|
groups: step.groups,
|
|
1093
1039
|
};
|
|
1094
1040
|
});
|
|
1095
|
-
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveDefaultCaseFromOpenToClosed',
|
|
1041
|
+
return Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveDefaultCaseFromOpenToClosed', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageClosed' }, this._options);
|
|
1096
1042
|
}
|
|
1097
1043
|
}
|
|
1098
1044
|
exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = MoveDefaultCaseFromOpenToClosedFlowBuilder;
|