@d19n/youfibre-odin-sdk 2.0.39 → 2.0.41
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/CrmDataset.d.ts +23 -1
- package/dist/entities-v2/CrmDataset.js +2 -0
- package/dist/entities-v2/Lead.d.ts +0 -7
- package/dist/entities-v2/Lead.js +0 -2
- package/dist/entities-v2/ServiceAppointmentConfig.d.ts +6 -3
- package/dist/entities-v2/ServiceAppointmentConfig.js +6 -3
- 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
|
@@ -78,7 +78,6 @@ export { ReturnsRecord, isReturnsRecord } from './ReturnsRecord';
|
|
|
78
78
|
export { OneTouchSwitchRecord, isOneTouchSwitchRecord } from './OneTouchSwitchRecord';
|
|
79
79
|
export { CampaignRecord, isCampaignRecord } from './CampaignRecord';
|
|
80
80
|
export { OrderCheckRecord, isOrderCheckRecord } from './OrderCheckRecord';
|
|
81
|
-
export { OrderItemRecord, isOrderItemRecord } from './OrderItemRecord';
|
|
82
81
|
export { OrderKciRecord, isOrderKciRecord } from './OrderKciRecord';
|
|
83
82
|
export { ReferralRecord, isReferralRecord } from './ReferralRecord';
|
|
84
83
|
export { SmsMessageRecord, isSmsMessageRecord } from './SmsMessageRecord';
|
|
@@ -94,8 +93,8 @@ export { PgTransactionRecord, isPgTransactionRecord } from './PgTransactionRecor
|
|
|
94
93
|
export { PgAccountValidationRecord, isPgAccountValidationRecord } from './PgAccountValidationRecord';
|
|
95
94
|
export { PgWebhookAttemptRecord, isPgWebhookAttemptRecord } from './PgWebhookAttemptRecord';
|
|
96
95
|
export { PgWebhookRecord, isPgWebhookRecord } from './PgWebhookRecord';
|
|
97
|
-
export { PhoneNumberRecord, isPhoneNumberRecord } from './PhoneNumberRecord';
|
|
98
96
|
export { PushNotificationRecord, isPushNotificationRecord } from './PushNotificationRecord';
|
|
97
|
+
export { OrderItemRecord, isOrderItemRecord } from './OrderItemRecord';
|
|
99
98
|
export { VoiceConfigurationRecord, isVoiceConfigurationRecord } from './VoiceConfigurationRecord';
|
|
100
99
|
export { SalesTerritoryRecord, isSalesTerritoryRecord } from './SalesTerritoryRecord';
|
|
101
100
|
export { TeamRecord, isTeamRecord } from './TeamRecord';
|
package/dist/records-v2/index.js
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.isOhInProgressAuditRecord = exports.OhInProgressAuditRecord = exports.isOhAuditOfInstallationRecord = exports.OhAuditOfInstallationRecord = exports.isUgRetroAuditRecord = exports.UgRetroAuditRecord = exports.isUgInProgressAuditRecord = exports.UgInProgressAuditRecord = exports.isUgInstallationAuditRecord = exports.UgInstallationAuditRecord = exports.isUgAuditOfInstallationRecord = exports.UgAuditOfInstallationRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isCaseRecord = exports.CaseRecord = exports.isAddressRecord = exports.AddressRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
|
|
15
15
|
exports.isConfigRecord = exports.ConfigRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallTransferRecord = exports.CallTransferRecord = exports.isCallEventRecord = exports.CallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isServiceVisitAuditRecord = exports.ServiceVisitAuditRecord = exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isInternalInstallAuditRecord = exports.InternalInstallAuditRecord = exports.isSweeperMaintenanceAuditRecord = exports.SweeperMaintenanceAuditRecord = exports.isBlockageA55Record = exports.BlockageA55Record = exports.isOhRetroAuditRecord = exports.OhRetroAuditRecord = exports.isOhInstallationAuditRecord = exports.OhInstallationAuditRecord = void 0;
|
|
16
|
-
exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.
|
|
17
|
-
exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isYfStockAuditRecord = exports.YfStockAuditRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTestEntityForVisualBuilderRecord = exports.TestEntityForVisualBuilderRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.
|
|
18
|
-
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isUserRecord = exports.UserRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isCallRecord = exports.CallRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord =
|
|
16
|
+
exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = void 0;
|
|
17
|
+
exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isYfStockAuditRecord = exports.YfStockAuditRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTestEntityForVisualBuilderRecord = exports.TestEntityForVisualBuilderRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = void 0;
|
|
18
|
+
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isUserRecord = exports.UserRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isCallRecord = exports.CallRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = void 0;
|
|
19
19
|
var OrderRecord_1 = require("./OrderRecord");
|
|
20
20
|
Object.defineProperty(exports, "OrderRecord", { enumerable: true, get: function () { return OrderRecord_1.OrderRecord; } });
|
|
21
21
|
Object.defineProperty(exports, "isOrderRecord", { enumerable: true, get: function () { return OrderRecord_1.isOrderRecord; } });
|
|
@@ -223,9 +223,6 @@ Object.defineProperty(exports, "isCampaignRecord", { enumerable: true, get: func
|
|
|
223
223
|
var OrderCheckRecord_1 = require("./OrderCheckRecord");
|
|
224
224
|
Object.defineProperty(exports, "OrderCheckRecord", { enumerable: true, get: function () { return OrderCheckRecord_1.OrderCheckRecord; } });
|
|
225
225
|
Object.defineProperty(exports, "isOrderCheckRecord", { enumerable: true, get: function () { return OrderCheckRecord_1.isOrderCheckRecord; } });
|
|
226
|
-
var OrderItemRecord_1 = require("./OrderItemRecord");
|
|
227
|
-
Object.defineProperty(exports, "OrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.OrderItemRecord; } });
|
|
228
|
-
Object.defineProperty(exports, "isOrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.isOrderItemRecord; } });
|
|
229
226
|
var OrderKciRecord_1 = require("./OrderKciRecord");
|
|
230
227
|
Object.defineProperty(exports, "OrderKciRecord", { enumerable: true, get: function () { return OrderKciRecord_1.OrderKciRecord; } });
|
|
231
228
|
Object.defineProperty(exports, "isOrderKciRecord", { enumerable: true, get: function () { return OrderKciRecord_1.isOrderKciRecord; } });
|
|
@@ -271,12 +268,12 @@ Object.defineProperty(exports, "isPgWebhookAttemptRecord", { enumerable: true, g
|
|
|
271
268
|
var PgWebhookRecord_1 = require("./PgWebhookRecord");
|
|
272
269
|
Object.defineProperty(exports, "PgWebhookRecord", { enumerable: true, get: function () { return PgWebhookRecord_1.PgWebhookRecord; } });
|
|
273
270
|
Object.defineProperty(exports, "isPgWebhookRecord", { enumerable: true, get: function () { return PgWebhookRecord_1.isPgWebhookRecord; } });
|
|
274
|
-
var PhoneNumberRecord_1 = require("./PhoneNumberRecord");
|
|
275
|
-
Object.defineProperty(exports, "PhoneNumberRecord", { enumerable: true, get: function () { return PhoneNumberRecord_1.PhoneNumberRecord; } });
|
|
276
|
-
Object.defineProperty(exports, "isPhoneNumberRecord", { enumerable: true, get: function () { return PhoneNumberRecord_1.isPhoneNumberRecord; } });
|
|
277
271
|
var PushNotificationRecord_1 = require("./PushNotificationRecord");
|
|
278
272
|
Object.defineProperty(exports, "PushNotificationRecord", { enumerable: true, get: function () { return PushNotificationRecord_1.PushNotificationRecord; } });
|
|
279
273
|
Object.defineProperty(exports, "isPushNotificationRecord", { enumerable: true, get: function () { return PushNotificationRecord_1.isPushNotificationRecord; } });
|
|
274
|
+
var OrderItemRecord_1 = require("./OrderItemRecord");
|
|
275
|
+
Object.defineProperty(exports, "OrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.OrderItemRecord; } });
|
|
276
|
+
Object.defineProperty(exports, "isOrderItemRecord", { enumerable: true, get: function () { return OrderItemRecord_1.isOrderItemRecord; } });
|
|
280
277
|
var VoiceConfigurationRecord_1 = require("./VoiceConfigurationRecord");
|
|
281
278
|
Object.defineProperty(exports, "VoiceConfigurationRecord", { enumerable: true, get: function () { return VoiceConfigurationRecord_1.VoiceConfigurationRecord; } });
|
|
282
279
|
Object.defineProperty(exports, "isVoiceConfigurationRecord", { enumerable: true, get: function () { return VoiceConfigurationRecord_1.isVoiceConfigurationRecord; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"typescript": "4.8.4"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@d19n/odin-sdk-generator": "^3.0.
|
|
14
|
+
"@d19n/odin-sdk-generator": "^3.0.233",
|
|
15
15
|
"@d19n/odin-types": "^3.0.31"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PhoneNumber Accessor
|
|
3
|
-
*
|
|
4
|
-
* Provides typed access to PhoneNumber records via API.
|
|
5
|
-
* Returns wrapped records with typed action methods.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* // Get existing record
|
|
10
|
-
* const record = await accessor.get(id);
|
|
11
|
-
* await record.updatePhoneNumber({ ... });
|
|
12
|
-
*
|
|
13
|
-
* // Create new record
|
|
14
|
-
* const newRecord = accessor.new();
|
|
15
|
-
* await newRecord.createPhoneNumber({ ... });
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
|
-
*/
|
|
20
|
-
import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
|
|
21
|
-
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
22
|
-
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
23
|
-
import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
|
|
24
|
-
import { PhoneNumberProperties } from '../entities-v2/PhoneNumber';
|
|
25
|
-
import { PhoneNumberRecord } from '../records-v2/PhoneNumberRecord';
|
|
26
|
-
/** List response with wrapped records */
|
|
27
|
-
export interface PhoneNumberListResponse {
|
|
28
|
-
data: PhoneNumberRecord[];
|
|
29
|
-
hasMore: boolean;
|
|
30
|
-
totalRecords: number;
|
|
31
|
-
}
|
|
32
|
-
/** Search response with wrapped records */
|
|
33
|
-
export interface PhoneNumberSearchResponse {
|
|
34
|
-
records: PhoneNumberRecord[];
|
|
35
|
-
totalRecords: number;
|
|
36
|
-
hasMore: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare class PhoneNumberAccessor {
|
|
39
|
-
private readonly _provider;
|
|
40
|
-
private readonly _moduleName;
|
|
41
|
-
private readonly _entityName;
|
|
42
|
-
constructor(provider: ApiProvider);
|
|
43
|
-
constructor(authParams: OauthParams);
|
|
44
|
-
constructor(authToken: string, host?: string);
|
|
45
|
-
get moduleName(): string;
|
|
46
|
-
get entityName(): string;
|
|
47
|
-
/**
|
|
48
|
-
* Create a new empty PhoneNumber record instance for create operations.
|
|
49
|
-
* Pre-generates an ID that can be referenced before the record is saved.
|
|
50
|
-
*
|
|
51
|
-
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
52
|
-
* @returns A new record wrapper with pre-generated ID
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```typescript
|
|
56
|
-
* // Auto-generated ID
|
|
57
|
-
* const note = odinClient.notes.new();
|
|
58
|
-
* console.log(note.id); // UUID available immediately
|
|
59
|
-
*
|
|
60
|
-
* // Custom ID
|
|
61
|
-
* const order = odinClient.orders.new("custom-id-123");
|
|
62
|
-
*
|
|
63
|
-
* // Reference ID before save
|
|
64
|
-
* const account = odinClient.accounts.new();
|
|
65
|
-
* const contact = odinClient.contacts.new();
|
|
66
|
-
* await contact
|
|
67
|
-
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
68
|
-
* .createContact({ FirstName: "John" });
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
new(id?: string): PhoneNumberRecord;
|
|
72
|
-
/**
|
|
73
|
-
* Get a single PhoneNumber record by ID
|
|
74
|
-
*/
|
|
75
|
-
get(id: string): Promise<PhoneNumberRecord>;
|
|
76
|
-
/**
|
|
77
|
-
* Get multiple PhoneNumber records by IDs
|
|
78
|
-
*/
|
|
79
|
-
getMany(ids: string[]): Promise<PhoneNumberRecord[]>;
|
|
80
|
-
/**
|
|
81
|
-
* Search PhoneNumber records
|
|
82
|
-
*/
|
|
83
|
-
search(params: Partial<OdinSearchV2>): Promise<PhoneNumberSearchResponse>;
|
|
84
|
-
/**
|
|
85
|
-
* Search all PhoneNumber records with automatic pagination
|
|
86
|
-
*/
|
|
87
|
-
searchAll(params: Partial<OdinSearchV2>): Promise<PhoneNumberRecord[]>;
|
|
88
|
-
/**
|
|
89
|
-
* Async generator for paginating through all matching records.
|
|
90
|
-
* Yields batches of wrapped records.
|
|
91
|
-
*/
|
|
92
|
-
paginate(params: Partial<OdinSearchV2>): AsyncGenerator<PhoneNumberRecord[]>;
|
|
93
|
-
/**
|
|
94
|
-
* Create a fluent query builder for PhoneNumber records
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```typescript
|
|
98
|
-
* const results = await accessor
|
|
99
|
-
* .query()
|
|
100
|
-
* .where('Status', 'in', ['Active', 'Pending'])
|
|
101
|
-
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
102
|
-
* .select('id', 'title', 'properties.*')
|
|
103
|
-
* .sortBy('createdAt', 'desc')
|
|
104
|
-
* .limit(100)
|
|
105
|
-
* .execute();
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
query(): QueryBuilder<PhoneNumberProperties, PhoneNumberRecord>;
|
|
109
|
-
/** Access the underlying ApiProvider */
|
|
110
|
-
get provider(): ApiProvider;
|
|
111
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* PhoneNumber Accessor
|
|
4
|
-
*
|
|
5
|
-
* Provides typed access to PhoneNumber records via API.
|
|
6
|
-
* Returns wrapped records with typed action methods.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* // Get existing record
|
|
11
|
-
* const record = await accessor.get(id);
|
|
12
|
-
* await record.updatePhoneNumber({ ... });
|
|
13
|
-
*
|
|
14
|
-
* // Create new record
|
|
15
|
-
* const newRecord = accessor.new();
|
|
16
|
-
* await newRecord.createPhoneNumber({ ... });
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
|
-
*/
|
|
21
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
31
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
32
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
33
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
34
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
35
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
36
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
37
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
38
|
-
function fulfill(value) { resume("next", value); }
|
|
39
|
-
function reject(value) { resume("throw", value); }
|
|
40
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.PhoneNumberAccessor = void 0;
|
|
44
|
-
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
45
|
-
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
46
|
-
const PhoneNumberRecord_1 = require("../records-v2/PhoneNumberRecord");
|
|
47
|
-
class PhoneNumberAccessor {
|
|
48
|
-
constructor(providerOrAuth, host) {
|
|
49
|
-
this._moduleName = 'CrmModule';
|
|
50
|
-
this._entityName = 'PhoneNumber';
|
|
51
|
-
if (providerOrAuth instanceof api_provider_1.ApiProvider) {
|
|
52
|
-
this._provider = providerOrAuth;
|
|
53
|
-
}
|
|
54
|
-
else if (typeof providerOrAuth === 'string') {
|
|
55
|
-
// Auth token provided
|
|
56
|
-
this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
// OauthParams provided
|
|
60
|
-
this._provider = new api_provider_1.ApiProvider(providerOrAuth);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
get moduleName() { return this._moduleName; }
|
|
64
|
-
get entityName() { return this._entityName; }
|
|
65
|
-
// ============================================
|
|
66
|
-
// RECORD CREATION
|
|
67
|
-
// ============================================
|
|
68
|
-
/**
|
|
69
|
-
* Create a new empty PhoneNumber record instance for create operations.
|
|
70
|
-
* Pre-generates an ID that can be referenced before the record is saved.
|
|
71
|
-
*
|
|
72
|
-
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
73
|
-
* @returns A new record wrapper with pre-generated ID
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```typescript
|
|
77
|
-
* // Auto-generated ID
|
|
78
|
-
* const note = odinClient.notes.new();
|
|
79
|
-
* console.log(note.id); // UUID available immediately
|
|
80
|
-
*
|
|
81
|
-
* // Custom ID
|
|
82
|
-
* const order = odinClient.orders.new("custom-id-123");
|
|
83
|
-
*
|
|
84
|
-
* // Reference ID before save
|
|
85
|
-
* const account = odinClient.accounts.new();
|
|
86
|
-
* const contact = odinClient.contacts.new();
|
|
87
|
-
* await contact
|
|
88
|
-
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
89
|
-
* .createContact({ FirstName: "John" });
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
new(id) {
|
|
93
|
-
return new PhoneNumberRecord_1.PhoneNumberRecord(null, this._provider, id);
|
|
94
|
-
}
|
|
95
|
-
// ============================================
|
|
96
|
-
// RECORD RETRIEVAL
|
|
97
|
-
// ============================================
|
|
98
|
-
/**
|
|
99
|
-
* Get a single PhoneNumber record by ID
|
|
100
|
-
*/
|
|
101
|
-
get(id) {
|
|
102
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
|
|
104
|
-
return new PhoneNumberRecord_1.PhoneNumberRecord(record, this._provider);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Get multiple PhoneNumber records by IDs
|
|
109
|
-
*/
|
|
110
|
-
getMany(ids) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
if (ids.length === 0)
|
|
113
|
-
return [];
|
|
114
|
-
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
|
|
115
|
-
return records.map((r) => new PhoneNumberRecord_1.PhoneNumberRecord(r, this._provider));
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
// ============================================
|
|
119
|
-
// SEARCH OPERATIONS
|
|
120
|
-
// ============================================
|
|
121
|
-
/**
|
|
122
|
-
* Search PhoneNumber records
|
|
123
|
-
*/
|
|
124
|
-
search(params) {
|
|
125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
-
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
|
|
127
|
-
return {
|
|
128
|
-
records: result.records.map((r) => new PhoneNumberRecord_1.PhoneNumberRecord(r, this._provider)),
|
|
129
|
-
totalRecords: result.totalRecords,
|
|
130
|
-
hasMore: result.hasMore,
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Search all PhoneNumber records with automatic pagination
|
|
136
|
-
*/
|
|
137
|
-
searchAll(params) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
|
|
140
|
-
return result.records.map((r) => new PhoneNumberRecord_1.PhoneNumberRecord(r, this._provider));
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Async generator for paginating through all matching records.
|
|
145
|
-
* Yields batches of wrapped records.
|
|
146
|
-
*/
|
|
147
|
-
paginate(params) {
|
|
148
|
-
var _a;
|
|
149
|
-
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
150
|
-
let hasMore = true;
|
|
151
|
-
let searchAfter;
|
|
152
|
-
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
153
|
-
while (hasMore) {
|
|
154
|
-
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
|
|
155
|
-
if (result.records.length > 0) {
|
|
156
|
-
yield yield __await(result.records.map((r) => new PhoneNumberRecord_1.PhoneNumberRecord(r, this._provider)));
|
|
157
|
-
const lastRecord = result.records[result.records.length - 1];
|
|
158
|
-
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
159
|
-
}
|
|
160
|
-
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
// ============================================
|
|
165
|
-
// QUERY BUILDER
|
|
166
|
-
// ============================================
|
|
167
|
-
/**
|
|
168
|
-
* Create a fluent query builder for PhoneNumber records
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* ```typescript
|
|
172
|
-
* const results = await accessor
|
|
173
|
-
* .query()
|
|
174
|
-
* .where('Status', 'in', ['Active', 'Pending'])
|
|
175
|
-
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
176
|
-
* .select('id', 'title', 'properties.*')
|
|
177
|
-
* .sortBy('createdAt', 'desc')
|
|
178
|
-
* .limit(100)
|
|
179
|
-
* .execute();
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
query() {
|
|
183
|
-
return (0, query_builder_1.createQueryBuilder)(this);
|
|
184
|
-
}
|
|
185
|
-
/** Access the underlying ApiProvider */
|
|
186
|
-
get provider() {
|
|
187
|
-
return this._provider;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
exports.PhoneNumberAccessor = PhoneNumberAccessor;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CreateAccountFromBrsk Action DTO
|
|
3
|
-
*
|
|
4
|
-
* Create Account From Brsk Data
|
|
5
|
-
*
|
|
6
|
-
* @module CrmModule
|
|
7
|
-
* @entity Account
|
|
8
|
-
* @actionKey CreateAccountFromBrsk
|
|
9
|
-
* @event k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk
|
|
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 CreateAccountFromBrsk created events
|
|
16
|
-
*
|
|
17
|
-
* @event k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateAccountFromBrskMessage extends OdinRecordCreatedEvent<CreateAccountFromBrskDto, CreateAccountFromBrskProperties> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Properties for CreateAccountFromBrsk action
|
|
23
|
-
*
|
|
24
|
-
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields: 6
|
|
26
|
-
*/
|
|
27
|
-
export interface CreateAccountFromBrskProperties {
|
|
28
|
-
/**
|
|
29
|
-
* Billing address
|
|
30
|
-
*
|
|
31
|
-
* the billing address (Sales - Account)
|
|
32
|
-
* @type {LOOKUP}
|
|
33
|
-
*/
|
|
34
|
-
AddressId?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* External Reference
|
|
37
|
-
*
|
|
38
|
-
* External Reference
|
|
39
|
-
* @type {TEXT}
|
|
40
|
-
*/
|
|
41
|
-
ExternalReference?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* status
|
|
44
|
-
*
|
|
45
|
-
* account status (Sales - Account)
|
|
46
|
-
* @type {ENUM}
|
|
47
|
-
*/
|
|
48
|
-
Status?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* type
|
|
51
|
-
*
|
|
52
|
-
* Type of accounts (Sales - Account)
|
|
53
|
-
* @type {ENUM}
|
|
54
|
-
*/
|
|
55
|
-
Type?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* Contact Name (please type)
|
|
58
|
-
*
|
|
59
|
-
* The id of the contact (Sales - Account)
|
|
60
|
-
* @type {LOOKUP}
|
|
61
|
-
*/
|
|
62
|
-
ContactId?: string | null;
|
|
63
|
-
/**
|
|
64
|
-
* group billing
|
|
65
|
-
*
|
|
66
|
-
* this will group all billable orders where applicable into a single invoice (Sales - Account)
|
|
67
|
-
* @type {ENUM}
|
|
68
|
-
*/
|
|
69
|
-
GroupBilling?: string | null;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* CreateAccountFromBrsk
|
|
73
|
-
*
|
|
74
|
-
* Create Account From Brsk Data
|
|
75
|
-
*
|
|
76
|
-
* @actionType CREATE - Creates a new Account record
|
|
77
|
-
* @module CrmModule
|
|
78
|
-
* @entity Account
|
|
79
|
-
* @event k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk
|
|
80
|
-
* @permission schema.action.createaccountfrombrsk.trigger
|
|
81
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
82
|
-
*/
|
|
83
|
-
export declare class CreateAccountFromBrskDto extends OdinRecordCreateDto<CreateAccountFromBrskProperties> {
|
|
84
|
-
/** Used by SDK generators to identify action type */
|
|
85
|
-
static readonly ACTION_TYPE = "CREATE";
|
|
86
|
-
static readonly ACTION_KEY = "CreateAccountFromBrsk";
|
|
87
|
-
static readonly MODULE_NAME = "CrmModule";
|
|
88
|
-
static readonly ENTITIES: string[];
|
|
89
|
-
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk";
|
|
90
|
-
static readonly PERMISSION = "schema.action.createaccountfrombrsk.trigger";
|
|
91
|
-
/** Step metadata - entity this action targets */
|
|
92
|
-
static readonly STEP_ENTITY = "CrmModule:Account";
|
|
93
|
-
static readonly STEP_SCHEMA_ID = "5e717925-728c-4572-b798-f90335ad2ded";
|
|
94
|
-
static readonly STEP_SCHEMA_ACTION_ID = "693e69b7-1098-4ba1-8c7e-e22c7403aedc";
|
|
95
|
-
static readonly AUTO_LINK_PARENT = true;
|
|
96
|
-
readonly actionName: string;
|
|
97
|
-
readonly schemaActionId: string;
|
|
98
|
-
readonly entity: string;
|
|
99
|
-
constructor(properties: CreateAccountFromBrskProperties, options?: {
|
|
100
|
-
journeyId?: string;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CreateAccountFromBrsk Action DTO
|
|
4
|
-
*
|
|
5
|
-
* Create Account From Brsk Data
|
|
6
|
-
*
|
|
7
|
-
* @module CrmModule
|
|
8
|
-
* @entity Account
|
|
9
|
-
* @actionKey CreateAccountFromBrsk
|
|
10
|
-
* @event k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateAccountFromBrskDto = void 0;
|
|
16
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* CreateAccountFromBrsk
|
|
19
|
-
*
|
|
20
|
-
* Create Account From Brsk Data
|
|
21
|
-
*
|
|
22
|
-
* @actionType CREATE - Creates a new Account record
|
|
23
|
-
* @module CrmModule
|
|
24
|
-
* @entity Account
|
|
25
|
-
* @event k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk
|
|
26
|
-
* @permission schema.action.createaccountfrombrsk.trigger
|
|
27
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
-
*/
|
|
29
|
-
class CreateAccountFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
30
|
-
constructor(properties, options) {
|
|
31
|
-
super({
|
|
32
|
-
entity: 'CrmModule:Account',
|
|
33
|
-
type: undefined,
|
|
34
|
-
properties,
|
|
35
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
-
});
|
|
37
|
-
this.actionName = 'CreateAccountFromBrsk';
|
|
38
|
-
this.schemaActionId = '693e69b7-1098-4ba1-8c7e-e22c7403aedc';
|
|
39
|
-
this.entity = 'CrmModule:Account';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.CreateAccountFromBrskDto = CreateAccountFromBrskDto;
|
|
43
|
-
/** Used by SDK generators to identify action type */
|
|
44
|
-
CreateAccountFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
45
|
-
CreateAccountFromBrskDto.ACTION_KEY = 'CreateAccountFromBrsk';
|
|
46
|
-
CreateAccountFromBrskDto.MODULE_NAME = 'CrmModule';
|
|
47
|
-
CreateAccountFromBrskDto.ENTITIES = ['Account'];
|
|
48
|
-
CreateAccountFromBrskDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Account.Create.CreateAccountFromBrsk';
|
|
49
|
-
CreateAccountFromBrskDto.PERMISSION = 'schema.action.createaccountfrombrsk.trigger';
|
|
50
|
-
/** Step metadata - entity this action targets */
|
|
51
|
-
CreateAccountFromBrskDto.STEP_ENTITY = 'CrmModule:Account';
|
|
52
|
-
CreateAccountFromBrskDto.STEP_SCHEMA_ID = '5e717925-728c-4572-b798-f90335ad2ded';
|
|
53
|
-
CreateAccountFromBrskDto.STEP_SCHEMA_ACTION_ID = '693e69b7-1098-4ba1-8c7e-e22c7403aedc';
|
|
54
|
-
CreateAccountFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CreateContactFromBrsk Action DTO
|
|
3
|
-
*
|
|
4
|
-
* CreateContactFromBrsk
|
|
5
|
-
*
|
|
6
|
-
* @module CrmModule
|
|
7
|
-
* @entity Contact
|
|
8
|
-
* @actionKey CreateContactFromBrsk
|
|
9
|
-
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
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 CreateContactFromBrsk created events
|
|
16
|
-
*
|
|
17
|
-
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateContactFromBrskMessage extends OdinRecordCreatedEvent<CreateContactFromBrskDto, CreateContactFromBrskProperties> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Properties for CreateContactFromBrsk action
|
|
23
|
-
*
|
|
24
|
-
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields: 7
|
|
26
|
-
*/
|
|
27
|
-
export interface CreateContactFromBrskProperties {
|
|
28
|
-
/**
|
|
29
|
-
* External Reference
|
|
30
|
-
*
|
|
31
|
-
* External Reference
|
|
32
|
-
* @type {TEXT}
|
|
33
|
-
*/
|
|
34
|
-
ExternalReference?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* email address
|
|
37
|
-
*
|
|
38
|
-
* Contacts Email Address (Sales - Contact)
|
|
39
|
-
* @type {EMAIL}
|
|
40
|
-
*/
|
|
41
|
-
EmailAddress?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* first name
|
|
44
|
-
*
|
|
45
|
-
* Contacts First Name (Sales - Contact)
|
|
46
|
-
* @type {TEXT}
|
|
47
|
-
*/
|
|
48
|
-
FirstName?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* last name
|
|
51
|
-
*
|
|
52
|
-
* Contacts Last Name (Sales - Contact)
|
|
53
|
-
* @type {TEXT}
|
|
54
|
-
*/
|
|
55
|
-
LastName?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* phone
|
|
58
|
-
*
|
|
59
|
-
* Phone number (Sales - Contact)
|
|
60
|
-
* @type {PHONE_NUMBER}
|
|
61
|
-
*/
|
|
62
|
-
Phone?: string | null;
|
|
63
|
-
/**
|
|
64
|
-
* Additional Care Required?
|
|
65
|
-
*
|
|
66
|
-
* Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
|
|
67
|
-
* @type {BOOLEAN}
|
|
68
|
-
*/
|
|
69
|
-
AdditionalCareRequired?: boolean | null;
|
|
70
|
-
/**
|
|
71
|
-
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
72
|
-
*
|
|
73
|
-
* Marketing Consent (Sales - Contact)
|
|
74
|
-
* @type {BOOLEAN}
|
|
75
|
-
*/
|
|
76
|
-
MarketingConsent?: boolean | null;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* CreateContactFromBrsk
|
|
80
|
-
*
|
|
81
|
-
* @actionType CREATE - Creates a new Contact record
|
|
82
|
-
* @module CrmModule
|
|
83
|
-
* @entity Contact
|
|
84
|
-
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
85
|
-
* @permission schema.action.createcontactfrombrsk.trigger
|
|
86
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
87
|
-
*/
|
|
88
|
-
export declare class CreateContactFromBrskDto extends OdinRecordCreateDto<CreateContactFromBrskProperties> {
|
|
89
|
-
/** Used by SDK generators to identify action type */
|
|
90
|
-
static readonly ACTION_TYPE = "CREATE";
|
|
91
|
-
static readonly ACTION_KEY = "CreateContactFromBrsk";
|
|
92
|
-
static readonly MODULE_NAME = "CrmModule";
|
|
93
|
-
static readonly ENTITIES: string[];
|
|
94
|
-
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk";
|
|
95
|
-
static readonly PERMISSION = "schema.action.createcontactfrombrsk.trigger";
|
|
96
|
-
/** Step metadata - entity this action targets */
|
|
97
|
-
static readonly STEP_ENTITY = "CrmModule:Contact";
|
|
98
|
-
static readonly STEP_SCHEMA_ID = "ff4313f0-9929-4481-bdf4-c90ff9624014";
|
|
99
|
-
static readonly STEP_SCHEMA_ACTION_ID = "d559c9ed-5798-4eb9-b315-3e0a602283a7";
|
|
100
|
-
static readonly AUTO_LINK_PARENT = true;
|
|
101
|
-
readonly actionName: string;
|
|
102
|
-
readonly schemaActionId: string;
|
|
103
|
-
readonly entity: string;
|
|
104
|
-
constructor(properties: CreateContactFromBrskProperties, options?: {
|
|
105
|
-
journeyId?: string;
|
|
106
|
-
});
|
|
107
|
-
}
|