@d19n/youfibre-odin-sdk 2.0.266 → 2.0.270
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 +9 -2
- package/dist/actions-v2/InvoiceUpdateDto.d.ts +9 -1
- package/dist/actions-v2/PauseCallRecordingDto.d.ts +73 -0
- package/dist/actions-v2/PauseCallRecordingDto.js +56 -0
- package/dist/actions-v2/ResumeCallRecordingDto.d.ts +73 -0
- package/dist/actions-v2/ResumeCallRecordingDto.js +56 -0
- package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +12 -10
- package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.d.ts +80 -0
- package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.js +56 -0
- package/dist/actions-v2/UpdateCampaignCallExternalIdDto.d.ts +73 -0
- package/dist/actions-v2/UpdateCampaignCallExternalIdDto.js +56 -0
- package/dist/actions-v2/UpdateCaseFromLinkedCallDto.d.ts +79 -0
- package/dist/actions-v2/UpdateCaseFromLinkedCallDto.js +56 -0
- package/dist/actions-v2/UpdateContactDto.d.ts +8 -1
- package/dist/actions-v2/VisitCreateSalesAppDto.d.ts +67 -0
- package/dist/actions-v2/VisitCreateSalesAppDto.js +54 -0
- package/dist/api-sdk-v2/AddressApi.d.ts +2 -2
- package/dist/api-sdk-v2/AddressApi.js +6 -6
- package/dist/api-sdk-v2/ContactApi.d.ts +4 -4
- package/dist/api-sdk-v2/ContactApi.js +12 -12
- package/dist/api-sdk-v2/FileApi.d.ts +2 -0
- package/dist/api-sdk-v2/FileApi.js +6 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
- package/dist/api-sdk-v2/YfWifiSurveyApi.d.ts +50 -0
- package/dist/api-sdk-v2/YfWifiSurveyApi.js +161 -0
- package/dist/db-sdk-v2/AddressDb.d.ts +2 -2
- package/dist/db-sdk-v2/AddressDb.js +6 -6
- package/dist/db-sdk-v2/ContactDb.d.ts +4 -4
- package/dist/db-sdk-v2/ContactDb.js +12 -12
- package/dist/db-sdk-v2/FileDb.d.ts +2 -0
- package/dist/db-sdk-v2/FileDb.js +6 -0
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
- package/dist/db-sdk-v2/YfWifiSurveyDb.d.ts +122 -0
- package/dist/db-sdk-v2/YfWifiSurveyDb.js +210 -0
- package/dist/entities-v2/Address.d.ts +3 -3
- package/dist/entities-v2/Contact.d.ts +52 -46
- package/dist/entities-v2/Contact.js +26 -26
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +7 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +6 -0
- package/dist/entities-v2/File.d.ts +3 -0
- package/dist/entities-v2/Order.d.ts +7 -0
- package/dist/entities-v2/Order.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +19 -0
- package/dist/entities-v2/PaymentMethodRefund.js +8 -0
- package/dist/entities-v2/WorkOrder.d.ts +7 -0
- package/dist/entities-v2/WorkOrder.js +5 -1
- package/dist/entities-v2/YfWifiSurvey.d.ts +164 -0
- package/dist/entities-v2/YfWifiSurvey.js +102 -0
- package/dist/records-v2/AddressRecord.d.ts +20 -20
- package/dist/records-v2/AddressRecord.js +33 -33
- package/dist/records-v2/CallRecord.d.ts +108 -0
- package/dist/records-v2/CallRecord.js +116 -0
- package/dist/records-v2/CaseRecord.d.ts +28 -0
- package/dist/records-v2/CaseRecord.js +37 -0
- package/dist/records-v2/ContactRecord.d.ts +26 -27
- package/dist/records-v2/ContactRecord.js +40 -48
- package/dist/records-v2/VisitRecord.d.ts +29 -0
- package/dist/records-v2/VisitRecord.js +36 -0
- package/package.json +3 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCaseFromLinkedCall Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Carries the handling agent and the caller across from a Call onto the Case it is being linked to. Deliberately not AssignCase: that is case assignment (OwnerId/TeamId) with its own downstream meaning, and it has no ContactId. Both fields are optional because the caller fires this whenever EITHER the agent or the contact resolved from the call.
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey UpdateCaseFromLinkedCall
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCaseFromLinkedCall updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCaseFromLinkedCallMessage extends OdinRecordUpdatedEvent<UpdateCaseFromLinkedCallDto, UpdateCaseFromLinkedCallProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCaseFromLinkedCall action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 2
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCaseFromLinkedCallProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Owner (handling agent)
|
|
30
|
+
*
|
|
31
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
32
|
+
* @type {LOOKUP}
|
|
33
|
+
*/
|
|
34
|
+
OwnerId?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Contact (caller)
|
|
37
|
+
*
|
|
38
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
39
|
+
* @type {LOOKUP}
|
|
40
|
+
*/
|
|
41
|
+
ContactId?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Apply call details to case
|
|
45
|
+
*
|
|
46
|
+
* Carries the handling agent and the caller across from a Call onto the Case it is being linked to. Deliberately not AssignCase: that is case assignment (OwnerId/TeamId) with its own downstream meaning, and it has no ContactId. Both fields are optional because the caller fires this whenever EITHER the agent or the contact resolved from the call.
|
|
47
|
+
*
|
|
48
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
49
|
+
* @module SupportModule
|
|
50
|
+
* @entity Case
|
|
51
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall
|
|
52
|
+
* @permission schema.action.updatecasefromlinkedcall.trigger
|
|
53
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
54
|
+
*/
|
|
55
|
+
export declare class UpdateCaseFromLinkedCallDto extends OdinRecordUpdateDto<UpdateCaseFromLinkedCallProperties> {
|
|
56
|
+
/** Used by SDK generators to identify action type */
|
|
57
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
58
|
+
static readonly ACTION_KEY = "UpdateCaseFromLinkedCall";
|
|
59
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
60
|
+
static readonly ENTITIES: string[];
|
|
61
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall";
|
|
62
|
+
static readonly PERMISSION = "schema.action.updatecasefromlinkedcall.trigger";
|
|
63
|
+
/** Step metadata - entity this action targets */
|
|
64
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
65
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
66
|
+
static readonly STEP_SCHEMA_ACTION_ID = "82e5877e-1c06-4fd7-9055-f7afcdf463a3";
|
|
67
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
68
|
+
readonly actionName: string;
|
|
69
|
+
readonly schemaActionId: string;
|
|
70
|
+
readonly entity: string;
|
|
71
|
+
constructor(record: OdinRecord<any> | {
|
|
72
|
+
id: string;
|
|
73
|
+
entity: string;
|
|
74
|
+
type?: string;
|
|
75
|
+
}, properties: UpdateCaseFromLinkedCallProperties, options?: {
|
|
76
|
+
journeyId?: string;
|
|
77
|
+
stageKey?: string;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCaseFromLinkedCall Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Carries the handling agent and the caller across from a Call onto the Case it is being linked to. Deliberately not AssignCase: that is case assignment (OwnerId/TeamId) with its own downstream meaning, and it has no ContactId. Both fields are optional because the caller fires this whenever EITHER the agent or the contact resolved from the call.
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey UpdateCaseFromLinkedCall
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCaseFromLinkedCallDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Apply call details to case
|
|
19
|
+
*
|
|
20
|
+
* Carries the handling agent and the caller across from a Call onto the Case it is being linked to. Deliberately not AssignCase: that is case assignment (OwnerId/TeamId) with its own downstream meaning, and it has no ContactId. Both fields are optional because the caller fires this whenever EITHER the agent or the contact resolved from the call.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall
|
|
26
|
+
* @permission schema.action.updatecasefromlinkedcall.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCaseFromLinkedCallDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateCaseFromLinkedCall';
|
|
40
|
+
this.schemaActionId = '82e5877e-1c06-4fd7-9055-f7afcdf463a3';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCaseFromLinkedCallDto = UpdateCaseFromLinkedCallDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCaseFromLinkedCallDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCaseFromLinkedCallDto.ACTION_KEY = 'UpdateCaseFromLinkedCall';
|
|
48
|
+
UpdateCaseFromLinkedCallDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
UpdateCaseFromLinkedCallDto.ENTITIES = ['Case'];
|
|
50
|
+
UpdateCaseFromLinkedCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseFromLinkedCall';
|
|
51
|
+
UpdateCaseFromLinkedCallDto.PERMISSION = 'schema.action.updatecasefromlinkedcall.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCaseFromLinkedCallDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
UpdateCaseFromLinkedCallDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
55
|
+
UpdateCaseFromLinkedCallDto.STEP_SCHEMA_ACTION_ID = '82e5877e-1c06-4fd7-9055-f7afcdf463a3';
|
|
56
|
+
UpdateCaseFromLinkedCallDto.AUTO_LINK_PARENT = false;
|
|
@@ -22,7 +22,7 @@ export interface UpdateContactMessage extends OdinRecordUpdatedEvent<UpdateConta
|
|
|
22
22
|
* Properties for UpdateContact action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 3
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 14
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateContactProperties {
|
|
28
28
|
/**
|
|
@@ -49,6 +49,13 @@ export interface UpdateContactProperties {
|
|
|
49
49
|
* @required
|
|
50
50
|
*/
|
|
51
51
|
LastName: string;
|
|
52
|
+
/**
|
|
53
|
+
* Account Status
|
|
54
|
+
*
|
|
55
|
+
* NONE if haven't started registering, INACTIVE if started registering but haven't finished yet, or ACTIVE if successfully registered (Sales - Contact)
|
|
56
|
+
* @type {ENUM}
|
|
57
|
+
*/
|
|
58
|
+
AccountStatus?: string | null;
|
|
52
59
|
/**
|
|
53
60
|
* Phone
|
|
54
61
|
*
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisitCreateSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create Visit through the Sales App
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Visit
|
|
8
|
+
* @actionKey VisitCreateSalesApp
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp
|
|
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 VisitCreateSalesApp created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp
|
|
18
|
+
*/
|
|
19
|
+
export interface VisitCreateSalesAppMessage extends OdinRecordCreatedEvent<VisitCreateSalesAppDto, VisitCreateSalesAppProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for VisitCreateSalesApp action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface VisitCreateSalesAppProperties {
|
|
28
|
+
/**
|
|
29
|
+
* outcome
|
|
30
|
+
*
|
|
31
|
+
* outcome of the visit (Sales - Visit)
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
*/
|
|
34
|
+
Outcome?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* VisitCreateSalesApp
|
|
38
|
+
*
|
|
39
|
+
* Create Visit through the Sales App
|
|
40
|
+
*
|
|
41
|
+
* @actionType CREATE - Creates a new Visit record
|
|
42
|
+
* @module CrmModule
|
|
43
|
+
* @entity Visit
|
|
44
|
+
* @event k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp
|
|
45
|
+
* @permission schema.action.visitcreatesalesapp.trigger
|
|
46
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
47
|
+
*/
|
|
48
|
+
export declare class VisitCreateSalesAppDto extends OdinRecordCreateDto<VisitCreateSalesAppProperties> {
|
|
49
|
+
/** Used by SDK generators to identify action type */
|
|
50
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
51
|
+
static readonly ACTION_KEY = "VisitCreateSalesApp";
|
|
52
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
53
|
+
static readonly ENTITIES: string[];
|
|
54
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp";
|
|
55
|
+
static readonly PERMISSION = "schema.action.visitcreatesalesapp.trigger";
|
|
56
|
+
/** Step metadata - entity this action targets */
|
|
57
|
+
static readonly STEP_ENTITY = "CrmModule:Visit";
|
|
58
|
+
static readonly STEP_SCHEMA_ID = "56005630-b689-45f5-936b-abf0fc2ef8b4";
|
|
59
|
+
static readonly STEP_SCHEMA_ACTION_ID = "c934b232-804d-441d-9e56-f85356a776db";
|
|
60
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
61
|
+
readonly actionName: string;
|
|
62
|
+
readonly schemaActionId: string;
|
|
63
|
+
readonly entity: string;
|
|
64
|
+
constructor(properties: VisitCreateSalesAppProperties, options?: {
|
|
65
|
+
journeyId?: string;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisitCreateSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Create Visit through the Sales App
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Visit
|
|
9
|
+
* @actionKey VisitCreateSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.VisitCreateSalesAppDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* VisitCreateSalesApp
|
|
19
|
+
*
|
|
20
|
+
* Create Visit through the Sales App
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Visit record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Visit
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp
|
|
26
|
+
* @permission schema.action.visitcreatesalesapp.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class VisitCreateSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'CrmModule:Visit',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'VisitCreateSalesApp';
|
|
38
|
+
this.schemaActionId = 'c934b232-804d-441d-9e56-f85356a776db';
|
|
39
|
+
this.entity = 'CrmModule:Visit';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.VisitCreateSalesAppDto = VisitCreateSalesAppDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
VisitCreateSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
VisitCreateSalesAppDto.ACTION_KEY = 'VisitCreateSalesApp';
|
|
46
|
+
VisitCreateSalesAppDto.MODULE_NAME = 'CrmModule';
|
|
47
|
+
VisitCreateSalesAppDto.ENTITIES = ['Visit'];
|
|
48
|
+
VisitCreateSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Visit.Create.VisitCreateSalesApp';
|
|
49
|
+
VisitCreateSalesAppDto.PERMISSION = 'schema.action.visitcreatesalesapp.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
VisitCreateSalesAppDto.STEP_ENTITY = 'CrmModule:Visit';
|
|
52
|
+
VisitCreateSalesAppDto.STEP_SCHEMA_ID = '56005630-b689-45f5-936b-abf0fc2ef8b4';
|
|
53
|
+
VisitCreateSalesAppDto.STEP_SCHEMA_ACTION_ID = 'c934b232-804d-441d-9e56-f85356a776db';
|
|
54
|
+
VisitCreateSalesAppDto.AUTO_LINK_PARENT = true;
|
|
@@ -23,8 +23,8 @@ export declare class AddressApi extends ApiProvider {
|
|
|
23
23
|
private _account?;
|
|
24
24
|
private _order?;
|
|
25
25
|
private _customerdeviceont?;
|
|
26
|
-
private _contact?;
|
|
27
26
|
private _customerdevicerouter?;
|
|
27
|
+
private _contact?;
|
|
28
28
|
private _yftoolaudit?;
|
|
29
29
|
private _workorder__alternative_address?;
|
|
30
30
|
private _workorder__address?;
|
|
@@ -47,8 +47,8 @@ export declare class AddressApi extends ApiProvider {
|
|
|
47
47
|
get account(): ApiRecordLinkManager;
|
|
48
48
|
get order(): ApiRecordLinkManager;
|
|
49
49
|
get customerdeviceont(): ApiRecordLinkManager;
|
|
50
|
-
get contact(): ApiRecordLinkManager;
|
|
51
50
|
get customerdevicerouter(): ApiRecordLinkManager;
|
|
51
|
+
get contact(): ApiRecordLinkManager;
|
|
52
52
|
get yftoolaudit(): ApiRecordLinkManager;
|
|
53
53
|
get workorder__alternative_address(): ApiRecordLinkManager;
|
|
54
54
|
get workorder__address(): ApiRecordLinkManager;
|
|
@@ -69,18 +69,18 @@ class AddressApi extends api_provider_1.ApiProvider {
|
|
|
69
69
|
}
|
|
70
70
|
return this._customerdeviceont;
|
|
71
71
|
}
|
|
72
|
-
get contact() {
|
|
73
|
-
if (!this._contact) {
|
|
74
|
-
this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Address', 'CrmModule:Contact', 'Contact__Address');
|
|
75
|
-
}
|
|
76
|
-
return this._contact;
|
|
77
|
-
}
|
|
78
72
|
get customerdevicerouter() {
|
|
79
73
|
if (!this._customerdevicerouter) {
|
|
80
74
|
this._customerdevicerouter = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Address', 'ServiceModule:CustomerDeviceRouter', 'Address__CustomerDeviceRouter');
|
|
81
75
|
}
|
|
82
76
|
return this._customerdevicerouter;
|
|
83
77
|
}
|
|
78
|
+
get contact() {
|
|
79
|
+
if (!this._contact) {
|
|
80
|
+
this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Address', 'CrmModule:Contact', 'Contact__Address');
|
|
81
|
+
}
|
|
82
|
+
return this._contact;
|
|
83
|
+
}
|
|
84
84
|
get yftoolaudit() {
|
|
85
85
|
if (!this._yftoolaudit) {
|
|
86
86
|
this._yftoolaudit = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Address', 'FieldServiceModule:YfToolAudit', 'YfToolAudit_Address');
|
|
@@ -37,7 +37,6 @@ export declare class ContactApi extends ApiProvider {
|
|
|
37
37
|
private _fingerprint?;
|
|
38
38
|
private _case?;
|
|
39
39
|
private _organization?;
|
|
40
|
-
private _address?;
|
|
41
40
|
private _smsmessage?;
|
|
42
41
|
private _billingrequest?;
|
|
43
42
|
private _contact?;
|
|
@@ -45,14 +44,15 @@ export declare class ContactApi extends ApiProvider {
|
|
|
45
44
|
private _paymentmethodrefund?;
|
|
46
45
|
private _email?;
|
|
47
46
|
private _reward?;
|
|
47
|
+
private _address?;
|
|
48
48
|
private _contractbuyout?;
|
|
49
49
|
private _workorder__contact?;
|
|
50
50
|
private _workorder__alternative_contact?;
|
|
51
51
|
private _impersonationtracker?;
|
|
52
52
|
private _accountcredit?;
|
|
53
53
|
private _affiliatecode?;
|
|
54
|
-
private _npssurvey?;
|
|
55
54
|
private _order?;
|
|
55
|
+
private _npssurvey?;
|
|
56
56
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
57
57
|
get note(): ApiRecordLinkManager;
|
|
58
58
|
get lead(): ApiRecordLinkManager;
|
|
@@ -74,7 +74,6 @@ export declare class ContactApi extends ApiProvider {
|
|
|
74
74
|
get fingerprint(): ApiRecordLinkManager;
|
|
75
75
|
get case(): ApiRecordLinkManager;
|
|
76
76
|
get organization(): ApiRecordLinkManager;
|
|
77
|
-
get address(): ApiRecordLinkManager;
|
|
78
77
|
get smsmessage(): ApiRecordLinkManager;
|
|
79
78
|
get billingrequest(): ApiRecordLinkManager;
|
|
80
79
|
get contact(): ApiRecordLinkManager;
|
|
@@ -82,14 +81,15 @@ export declare class ContactApi extends ApiProvider {
|
|
|
82
81
|
get paymentmethodrefund(): ApiRecordLinkManager;
|
|
83
82
|
get email(): ApiRecordLinkManager;
|
|
84
83
|
get reward(): ApiRecordLinkManager;
|
|
84
|
+
get address(): ApiRecordLinkManager;
|
|
85
85
|
get contractbuyout(): ApiRecordLinkManager;
|
|
86
86
|
get workorder__contact(): ApiRecordLinkManager;
|
|
87
87
|
get workorder__alternative_contact(): ApiRecordLinkManager;
|
|
88
88
|
get impersonationtracker(): ApiRecordLinkManager;
|
|
89
89
|
get accountcredit(): ApiRecordLinkManager;
|
|
90
90
|
get affiliatecode(): ApiRecordLinkManager;
|
|
91
|
-
get npssurvey(): ApiRecordLinkManager;
|
|
92
91
|
get order(): ApiRecordLinkManager;
|
|
92
|
+
get npssurvey(): ApiRecordLinkManager;
|
|
93
93
|
setRecord(sourceRecord: any): void;
|
|
94
94
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
95
95
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ContactProperties>>>;
|
|
@@ -153,12 +153,6 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
153
153
|
}
|
|
154
154
|
return this._organization;
|
|
155
155
|
}
|
|
156
|
-
get address() {
|
|
157
|
-
if (!this._address) {
|
|
158
|
-
this._address = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
|
|
159
|
-
}
|
|
160
|
-
return this._address;
|
|
161
|
-
}
|
|
162
156
|
get smsmessage() {
|
|
163
157
|
if (!this._smsmessage) {
|
|
164
158
|
this._smsmessage = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
|
|
@@ -201,6 +195,12 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
201
195
|
}
|
|
202
196
|
return this._reward;
|
|
203
197
|
}
|
|
198
|
+
get address() {
|
|
199
|
+
if (!this._address) {
|
|
200
|
+
this._address = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
|
|
201
|
+
}
|
|
202
|
+
return this._address;
|
|
203
|
+
}
|
|
204
204
|
get contractbuyout() {
|
|
205
205
|
if (!this._contractbuyout) {
|
|
206
206
|
this._contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
|
|
@@ -237,18 +237,18 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
237
237
|
}
|
|
238
238
|
return this._affiliatecode;
|
|
239
239
|
}
|
|
240
|
-
get npssurvey() {
|
|
241
|
-
if (!this._npssurvey) {
|
|
242
|
-
this._npssurvey = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'CrmModule:NpsSurvey', 'Contact__NpsSurvey');
|
|
243
|
-
}
|
|
244
|
-
return this._npssurvey;
|
|
245
|
-
}
|
|
246
240
|
get order() {
|
|
247
241
|
if (!this._order) {
|
|
248
242
|
this._order = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
|
|
249
243
|
}
|
|
250
244
|
return this._order;
|
|
251
245
|
}
|
|
246
|
+
get npssurvey() {
|
|
247
|
+
if (!this._npssurvey) {
|
|
248
|
+
this._npssurvey = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'CrmModule:NpsSurvey', 'Contact__NpsSurvey');
|
|
249
|
+
}
|
|
250
|
+
return this._npssurvey;
|
|
251
|
+
}
|
|
252
252
|
// ============================================
|
|
253
253
|
// STANDARD METHODS (Unchanged API)
|
|
254
254
|
// ============================================
|
|
@@ -79,6 +79,7 @@ export declare class FileApi extends ApiProvider {
|
|
|
79
79
|
private _ohretroaudit?;
|
|
80
80
|
private _uginprogressaudit?;
|
|
81
81
|
private _pgdirectdebitfile?;
|
|
82
|
+
private _yfwifisurvey?;
|
|
82
83
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
83
84
|
get servicevisitaudit(): ApiRecordLinkManager;
|
|
84
85
|
get blockagea55(): ApiRecordLinkManager;
|
|
@@ -142,6 +143,7 @@ export declare class FileApi extends ApiProvider {
|
|
|
142
143
|
get ohretroaudit(): ApiRecordLinkManager;
|
|
143
144
|
get uginprogressaudit(): ApiRecordLinkManager;
|
|
144
145
|
get pgdirectdebitfile(): ApiRecordLinkManager;
|
|
146
|
+
get yfwifisurvey(): ApiRecordLinkManager;
|
|
145
147
|
setRecord(sourceRecord: any): void;
|
|
146
148
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
147
149
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<FileProperties>>>;
|
|
@@ -405,6 +405,12 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
405
405
|
}
|
|
406
406
|
return this._pgdirectdebitfile;
|
|
407
407
|
}
|
|
408
|
+
get yfwifisurvey() {
|
|
409
|
+
if (!this._yfwifisurvey) {
|
|
410
|
+
this._yfwifisurvey = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SchemaModule:File', 'FieldServiceModule:YfWifiSurvey', 'YfWifiSurvey__File');
|
|
411
|
+
}
|
|
412
|
+
return this._yfwifisurvey;
|
|
413
|
+
}
|
|
408
414
|
// ============================================
|
|
409
415
|
// STANDARD METHODS (Unchanged API)
|
|
410
416
|
// ============================================
|
|
@@ -84,6 +84,7 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
84
84
|
private _sitespecificriskassessmentoutcomeform?;
|
|
85
85
|
private _dataissue?;
|
|
86
86
|
private _order?;
|
|
87
|
+
private _yfwifisurvey?;
|
|
87
88
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
88
89
|
get workorder_servicevisitaudit(): ApiRecordLinkManager;
|
|
89
90
|
get servicevisitaudit_workorder(): ApiRecordLinkManager;
|
|
@@ -152,6 +153,7 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
152
153
|
get sitespecificriskassessmentoutcomeform(): ApiRecordLinkManager;
|
|
153
154
|
get dataissue(): ApiRecordLinkManager;
|
|
154
155
|
get order(): ApiRecordLinkManager;
|
|
156
|
+
get yfwifisurvey(): ApiRecordLinkManager;
|
|
155
157
|
setRecord(sourceRecord: any): void;
|
|
156
158
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
157
159
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<WorkOrderProperties>>>;
|
|
@@ -435,6 +435,12 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
435
435
|
}
|
|
436
436
|
return this._order;
|
|
437
437
|
}
|
|
438
|
+
get yfwifisurvey() {
|
|
439
|
+
if (!this._yfwifisurvey) {
|
|
440
|
+
this._yfwifisurvey = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'FieldServiceModule:WorkOrder', 'FieldServiceModule:YfWifiSurvey', 'WorkOrder__YfWifiSurvey');
|
|
441
|
+
}
|
|
442
|
+
return this._yfwifisurvey;
|
|
443
|
+
}
|
|
438
444
|
// ============================================
|
|
439
445
|
// STANDARD METHODS (Unchanged API)
|
|
440
446
|
// ============================================
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
4
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
5
|
+
import { YfWifiSurveyProperties } from '../entities-v2/YfWifiSurvey';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new YfWifiSurveyApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.yfwifisurvey.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class YfWifiSurveyApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _workorder?;
|
|
21
|
+
private _file?;
|
|
22
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
23
|
+
get workorder(): ApiRecordLinkManager;
|
|
24
|
+
get file(): ApiRecordLinkManager;
|
|
25
|
+
setRecord(sourceRecord: any): void;
|
|
26
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
27
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>>>;
|
|
28
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>>>;
|
|
29
|
+
reIndex(body: {
|
|
30
|
+
id: string;
|
|
31
|
+
schemaId: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
get(yfWifiSurveyId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>>;
|
|
34
|
+
getMany(yfWifiSurveyIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>[]>;
|
|
35
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
36
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
37
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
38
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
39
|
+
delete(yfWifiSurveyId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
40
|
+
deleteMany(yfWifiSurveyIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
41
|
+
restore(yfWifiSurveyIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
42
|
+
applyAction(dto: any): Promise<any[]>;
|
|
43
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
44
|
+
getVersions(): Promise<{
|
|
45
|
+
[key: string]: Record<string, any>;
|
|
46
|
+
}>;
|
|
47
|
+
getRevisionTimeline(): Promise<{
|
|
48
|
+
[key: string]: Record<string, any>[];
|
|
49
|
+
}>;
|
|
50
|
+
}
|