@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
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CreateContactFromBrsk Action DTO
|
|
4
|
-
*
|
|
5
|
-
* CreateContactFromBrsk
|
|
6
|
-
*
|
|
7
|
-
* @module CrmModule
|
|
8
|
-
* @entity Contact
|
|
9
|
-
* @actionKey CreateContactFromBrsk
|
|
10
|
-
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateContactFromBrskDto = void 0;
|
|
16
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* CreateContactFromBrsk
|
|
19
|
-
*
|
|
20
|
-
* @actionType CREATE - Creates a new Contact record
|
|
21
|
-
* @module CrmModule
|
|
22
|
-
* @entity Contact
|
|
23
|
-
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
24
|
-
* @permission schema.action.createcontactfrombrsk.trigger
|
|
25
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
-
*/
|
|
27
|
-
class CreateContactFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
-
constructor(properties, options) {
|
|
29
|
-
super({
|
|
30
|
-
entity: 'CrmModule:Contact',
|
|
31
|
-
type: undefined,
|
|
32
|
-
properties,
|
|
33
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
-
});
|
|
35
|
-
this.actionName = 'CreateContactFromBrsk';
|
|
36
|
-
this.schemaActionId = 'd559c9ed-5798-4eb9-b315-3e0a602283a7';
|
|
37
|
-
this.entity = 'CrmModule:Contact';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CreateContactFromBrskDto = CreateContactFromBrskDto;
|
|
41
|
-
/** Used by SDK generators to identify action type */
|
|
42
|
-
CreateContactFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
-
CreateContactFromBrskDto.ACTION_KEY = 'CreateContactFromBrsk';
|
|
44
|
-
CreateContactFromBrskDto.MODULE_NAME = 'CrmModule';
|
|
45
|
-
CreateContactFromBrskDto.ENTITIES = ['Contact'];
|
|
46
|
-
CreateContactFromBrskDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk';
|
|
47
|
-
CreateContactFromBrskDto.PERMISSION = 'schema.action.createcontactfrombrsk.trigger';
|
|
48
|
-
/** Step metadata - entity this action targets */
|
|
49
|
-
CreateContactFromBrskDto.STEP_ENTITY = 'CrmModule:Contact';
|
|
50
|
-
CreateContactFromBrskDto.STEP_SCHEMA_ID = 'ff4313f0-9929-4481-bdf4-c90ff9624014';
|
|
51
|
-
CreateContactFromBrskDto.STEP_SCHEMA_ACTION_ID = 'd559c9ed-5798-4eb9-b315-3e0a602283a7';
|
|
52
|
-
CreateContactFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CreateLeadFromBrsk Action DTO
|
|
3
|
-
*
|
|
4
|
-
* CreateLeadFromBrsk
|
|
5
|
-
*
|
|
6
|
-
* @module CrmModule
|
|
7
|
-
* @entity Lead
|
|
8
|
-
* @actionKey CreateLeadFromBrsk
|
|
9
|
-
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk
|
|
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 CreateLeadFromBrsk created events
|
|
16
|
-
*
|
|
17
|
-
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateLeadFromBrskMessage extends OdinRecordCreatedEvent<CreateLeadFromBrskDto, CreateLeadFromBrskProperties> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Properties for CreateLeadFromBrsk action
|
|
23
|
-
*
|
|
24
|
-
* @property Required fields: 4
|
|
25
|
-
* @property Optional fields: 4
|
|
26
|
-
*/
|
|
27
|
-
export interface CreateLeadFromBrskProperties {
|
|
28
|
-
/**
|
|
29
|
-
* EmailAddress
|
|
30
|
-
*
|
|
31
|
-
* email address (Sales - Lead)
|
|
32
|
-
* @type {EMAIL}
|
|
33
|
-
* @required
|
|
34
|
-
*/
|
|
35
|
-
EmailAddress: string;
|
|
36
|
-
/**
|
|
37
|
-
* ExternalReference
|
|
38
|
-
*
|
|
39
|
-
* External Reference
|
|
40
|
-
* @type {TEXT}
|
|
41
|
-
* @required
|
|
42
|
-
*/
|
|
43
|
-
ExternalReference: string;
|
|
44
|
-
/**
|
|
45
|
-
* Type
|
|
46
|
-
*
|
|
47
|
-
* Type of lead (Sales - Lead)
|
|
48
|
-
* @type {ENUM}
|
|
49
|
-
* @required
|
|
50
|
-
*/
|
|
51
|
-
Type: string;
|
|
52
|
-
/**
|
|
53
|
-
* source
|
|
54
|
-
*
|
|
55
|
-
* Lead source (Sales - Lead)
|
|
56
|
-
* @type {ENUM}
|
|
57
|
-
* @required
|
|
58
|
-
*/
|
|
59
|
-
Source: string;
|
|
60
|
-
/**
|
|
61
|
-
* FirstName
|
|
62
|
-
*
|
|
63
|
-
* Display name/title for Lead records. Primary identifier for Sales team.
|
|
64
|
-
* @type {TEXT}
|
|
65
|
-
*/
|
|
66
|
-
FirstName?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* LastName
|
|
69
|
-
*
|
|
70
|
-
* Display name/title for Lead records. Primary identifier for Sales team.
|
|
71
|
-
* @type {TEXT}
|
|
72
|
-
*/
|
|
73
|
-
LastName?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* name
|
|
76
|
-
*
|
|
77
|
-
* Display name/title for Lead records. Primary identifier for Sales team.
|
|
78
|
-
* @type {TEXT}
|
|
79
|
-
*/
|
|
80
|
-
Name?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* TitleName
|
|
83
|
-
*
|
|
84
|
-
* TitleName
|
|
85
|
-
* @type {TEXT}
|
|
86
|
-
*/
|
|
87
|
-
TitleName?: string | null;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* CreateLeadFromBrsk
|
|
91
|
-
*
|
|
92
|
-
* @actionType CREATE - Creates a new Lead record
|
|
93
|
-
* @module CrmModule
|
|
94
|
-
* @entity Lead
|
|
95
|
-
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk
|
|
96
|
-
* @permission schema.action.createleadfrombrsk.trigger
|
|
97
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
98
|
-
*/
|
|
99
|
-
export declare class CreateLeadFromBrskDto extends OdinRecordCreateDto<CreateLeadFromBrskProperties> {
|
|
100
|
-
/** Used by SDK generators to identify action type */
|
|
101
|
-
static readonly ACTION_TYPE = "CREATE";
|
|
102
|
-
static readonly ACTION_KEY = "CreateLeadFromBrsk";
|
|
103
|
-
static readonly MODULE_NAME = "CrmModule";
|
|
104
|
-
static readonly ENTITIES: string[];
|
|
105
|
-
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk";
|
|
106
|
-
static readonly PERMISSION = "schema.action.createleadfrombrsk.trigger";
|
|
107
|
-
/** Step metadata - entity this action targets */
|
|
108
|
-
static readonly STEP_ENTITY = "CrmModule:Lead";
|
|
109
|
-
static readonly STEP_SCHEMA_ID = "af31abc1-5d28-4a12-ba22-2da7d44febba";
|
|
110
|
-
static readonly STEP_SCHEMA_ACTION_ID = "35f1933e-5bec-499f-8600-25d5813e7553";
|
|
111
|
-
static readonly AUTO_LINK_PARENT = true;
|
|
112
|
-
readonly actionName: string;
|
|
113
|
-
readonly schemaActionId: string;
|
|
114
|
-
readonly entity: string;
|
|
115
|
-
constructor(properties: CreateLeadFromBrskProperties, options?: {
|
|
116
|
-
journeyId?: string;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CreateLeadFromBrsk Action DTO
|
|
4
|
-
*
|
|
5
|
-
* CreateLeadFromBrsk
|
|
6
|
-
*
|
|
7
|
-
* @module CrmModule
|
|
8
|
-
* @entity Lead
|
|
9
|
-
* @actionKey CreateLeadFromBrsk
|
|
10
|
-
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateLeadFromBrskDto = void 0;
|
|
16
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* CreateLeadFromBrsk
|
|
19
|
-
*
|
|
20
|
-
* @actionType CREATE - Creates a new Lead record
|
|
21
|
-
* @module CrmModule
|
|
22
|
-
* @entity Lead
|
|
23
|
-
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk
|
|
24
|
-
* @permission schema.action.createleadfrombrsk.trigger
|
|
25
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
-
*/
|
|
27
|
-
class CreateLeadFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
-
constructor(properties, options) {
|
|
29
|
-
super({
|
|
30
|
-
entity: 'CrmModule:Lead',
|
|
31
|
-
type: undefined,
|
|
32
|
-
properties,
|
|
33
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
-
});
|
|
35
|
-
this.actionName = 'CreateLeadFromBrsk';
|
|
36
|
-
this.schemaActionId = '35f1933e-5bec-499f-8600-25d5813e7553';
|
|
37
|
-
this.entity = 'CrmModule:Lead';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CreateLeadFromBrskDto = CreateLeadFromBrskDto;
|
|
41
|
-
/** Used by SDK generators to identify action type */
|
|
42
|
-
CreateLeadFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
-
CreateLeadFromBrskDto.ACTION_KEY = 'CreateLeadFromBrsk';
|
|
44
|
-
CreateLeadFromBrskDto.MODULE_NAME = 'CrmModule';
|
|
45
|
-
CreateLeadFromBrskDto.ENTITIES = ['Lead'];
|
|
46
|
-
CreateLeadFromBrskDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromBrsk';
|
|
47
|
-
CreateLeadFromBrskDto.PERMISSION = 'schema.action.createleadfrombrsk.trigger';
|
|
48
|
-
/** Step metadata - entity this action targets */
|
|
49
|
-
CreateLeadFromBrskDto.STEP_ENTITY = 'CrmModule:Lead';
|
|
50
|
-
CreateLeadFromBrskDto.STEP_SCHEMA_ID = 'af31abc1-5d28-4a12-ba22-2da7d44febba';
|
|
51
|
-
CreateLeadFromBrskDto.STEP_SCHEMA_ACTION_ID = '35f1933e-5bec-499f-8600-25d5813e7553';
|
|
52
|
-
CreateLeadFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CreateOrderFromBrsk Action DTO
|
|
3
|
-
*
|
|
4
|
-
* CreateOrderFromBrsk
|
|
5
|
-
*
|
|
6
|
-
* @module OrderModule
|
|
7
|
-
* @entity Order
|
|
8
|
-
* @actionKey CreateOrderFromBrsk
|
|
9
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
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 CreateOrderFromBrsk created events
|
|
16
|
-
*
|
|
17
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateOrderFromBrskMessage extends OdinRecordCreatedEvent<CreateOrderFromBrskDto, CreateOrderFromBrskProperties> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Properties for CreateOrderFromBrsk action
|
|
23
|
-
*
|
|
24
|
-
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields: 11
|
|
26
|
-
*/
|
|
27
|
-
export interface CreateOrderFromBrskProperties {
|
|
28
|
-
/**
|
|
29
|
-
* activation status
|
|
30
|
-
*
|
|
31
|
-
* status of the order (must be activated for billing) (Sales - Order)
|
|
32
|
-
* @type {ENUM}
|
|
33
|
-
*/
|
|
34
|
-
ActivationStatus?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* billing terms
|
|
37
|
-
*
|
|
38
|
-
* Billing terms i.e NET 15,30 (Sales - Order)
|
|
39
|
-
* @type {ENUM}
|
|
40
|
-
*/
|
|
41
|
-
BillingTerms?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* ExternalReference
|
|
44
|
-
*
|
|
45
|
-
* ExternalReference
|
|
46
|
-
* @type {TEXT}
|
|
47
|
-
*/
|
|
48
|
-
ExternalReference?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* name
|
|
51
|
-
*
|
|
52
|
-
* Display name/title for Order records. Primary identifier for Sales team.
|
|
53
|
-
* @type {TEXT}
|
|
54
|
-
*/
|
|
55
|
-
Name?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* address
|
|
58
|
-
*
|
|
59
|
-
* Reference identifier for Order relationships. Used for data integrity.
|
|
60
|
-
* @type {LOOKUP}
|
|
61
|
-
*/
|
|
62
|
-
AddressId?: string | null;
|
|
63
|
-
/**
|
|
64
|
-
* contract start date
|
|
65
|
-
*
|
|
66
|
-
* the date the contract start (Sales - Order)
|
|
67
|
-
* @type {DATE}
|
|
68
|
-
* @format DD/MM/YYYY
|
|
69
|
-
*/
|
|
70
|
-
ContractStartDate?: string | null;
|
|
71
|
-
/**
|
|
72
|
-
* billing start date
|
|
73
|
-
*
|
|
74
|
-
* Billing start date (Sales - Order)
|
|
75
|
-
* @type {DATE}
|
|
76
|
-
* @format DD/MM/YYYY
|
|
77
|
-
*/
|
|
78
|
-
BillingStartDate?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* source
|
|
81
|
-
*
|
|
82
|
-
* Data field for Order records. Used by Sales team.
|
|
83
|
-
* @type {TEXT}
|
|
84
|
-
*/
|
|
85
|
-
Source?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* provider
|
|
88
|
-
*
|
|
89
|
-
* network provider (Sales - Order)
|
|
90
|
-
* @type {ENUM}
|
|
91
|
-
*/
|
|
92
|
-
Provider?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* contract end date
|
|
95
|
-
*
|
|
96
|
-
* the date the contract will end (Sales - Order)
|
|
97
|
-
* @type {DATE}
|
|
98
|
-
* @format DD/MM/YYYY
|
|
99
|
-
*/
|
|
100
|
-
ContractEndDate?: string | null;
|
|
101
|
-
/**
|
|
102
|
-
* Desired Billing Day
|
|
103
|
-
*
|
|
104
|
-
* Desired Billing Day (Sales - Order)
|
|
105
|
-
* @type {NUMBER}
|
|
106
|
-
*/
|
|
107
|
-
DesiredBillingDay?: number | null;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* CreateOrderFromBrsk
|
|
111
|
-
*
|
|
112
|
-
* @actionType CREATE - Creates a new Order record
|
|
113
|
-
* @module OrderModule
|
|
114
|
-
* @entity Order
|
|
115
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
116
|
-
* @permission schema.action.createorderfrombrsk.trigger
|
|
117
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
118
|
-
*/
|
|
119
|
-
export declare class CreateOrderFromBrskDto extends OdinRecordCreateDto<CreateOrderFromBrskProperties> {
|
|
120
|
-
/** Used by SDK generators to identify action type */
|
|
121
|
-
static readonly ACTION_TYPE = "CREATE";
|
|
122
|
-
static readonly ACTION_KEY = "CreateOrderFromBrsk";
|
|
123
|
-
static readonly MODULE_NAME = "OrderModule";
|
|
124
|
-
static readonly ENTITIES: string[];
|
|
125
|
-
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk";
|
|
126
|
-
static readonly PERMISSION = "schema.action.createorderfrombrsk.trigger";
|
|
127
|
-
/** Step metadata - entity this action targets */
|
|
128
|
-
static readonly STEP_ENTITY = "OrderModule:Order";
|
|
129
|
-
static readonly STEP_SCHEMA_ID = "a5fc0677-e439-4d6f-81e9-e7c05e2fa36c";
|
|
130
|
-
static readonly STEP_SCHEMA_ACTION_ID = "e10a79c8-827a-4720-8715-aa0585bbf973";
|
|
131
|
-
static readonly AUTO_LINK_PARENT = true;
|
|
132
|
-
readonly actionName: string;
|
|
133
|
-
readonly schemaActionId: string;
|
|
134
|
-
readonly entity: string;
|
|
135
|
-
constructor(properties: CreateOrderFromBrskProperties, options?: {
|
|
136
|
-
journeyId?: string;
|
|
137
|
-
});
|
|
138
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CreateOrderFromBrsk Action DTO
|
|
4
|
-
*
|
|
5
|
-
* CreateOrderFromBrsk
|
|
6
|
-
*
|
|
7
|
-
* @module OrderModule
|
|
8
|
-
* @entity Order
|
|
9
|
-
* @actionKey CreateOrderFromBrsk
|
|
10
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateOrderFromBrskDto = void 0;
|
|
16
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* CreateOrderFromBrsk
|
|
19
|
-
*
|
|
20
|
-
* @actionType CREATE - Creates a new Order record
|
|
21
|
-
* @module OrderModule
|
|
22
|
-
* @entity Order
|
|
23
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
24
|
-
* @permission schema.action.createorderfrombrsk.trigger
|
|
25
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
-
*/
|
|
27
|
-
class CreateOrderFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
-
constructor(properties, options) {
|
|
29
|
-
super({
|
|
30
|
-
entity: 'OrderModule:Order',
|
|
31
|
-
type: undefined,
|
|
32
|
-
properties,
|
|
33
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
-
});
|
|
35
|
-
this.actionName = 'CreateOrderFromBrsk';
|
|
36
|
-
this.schemaActionId = 'e10a79c8-827a-4720-8715-aa0585bbf973';
|
|
37
|
-
this.entity = 'OrderModule:Order';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CreateOrderFromBrskDto = CreateOrderFromBrskDto;
|
|
41
|
-
/** Used by SDK generators to identify action type */
|
|
42
|
-
CreateOrderFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
-
CreateOrderFromBrskDto.ACTION_KEY = 'CreateOrderFromBrsk';
|
|
44
|
-
CreateOrderFromBrskDto.MODULE_NAME = 'OrderModule';
|
|
45
|
-
CreateOrderFromBrskDto.ENTITIES = ['Order'];
|
|
46
|
-
CreateOrderFromBrskDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk';
|
|
47
|
-
CreateOrderFromBrskDto.PERMISSION = 'schema.action.createorderfrombrsk.trigger';
|
|
48
|
-
/** Step metadata - entity this action targets */
|
|
49
|
-
CreateOrderFromBrskDto.STEP_ENTITY = 'OrderModule:Order';
|
|
50
|
-
CreateOrderFromBrskDto.STEP_SCHEMA_ID = 'a5fc0677-e439-4d6f-81e9-e7c05e2fa36c';
|
|
51
|
-
CreateOrderFromBrskDto.STEP_SCHEMA_ACTION_ID = 'e10a79c8-827a-4720-8715-aa0585bbf973';
|
|
52
|
-
CreateOrderFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CreateOrderItemFromBrsk Action DTO
|
|
3
|
-
*
|
|
4
|
-
* CreateOrderItemFromBrsk
|
|
5
|
-
*
|
|
6
|
-
* @module OrderModule
|
|
7
|
-
* @entity OrderItem
|
|
8
|
-
* @actionKey CreateOrderItemFromBrsk
|
|
9
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk
|
|
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 CreateOrderItemFromBrsk created events
|
|
16
|
-
*
|
|
17
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateOrderItemFromBrskMessage extends OdinRecordCreatedEvent<CreateOrderItemFromBrskDto, CreateOrderItemFromBrskProperties> {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Properties for CreateOrderItemFromBrsk action
|
|
23
|
-
*
|
|
24
|
-
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields: 20
|
|
26
|
-
*/
|
|
27
|
-
export interface CreateOrderItemFromBrskProperties {
|
|
28
|
-
/**
|
|
29
|
-
* ExternalReference
|
|
30
|
-
*
|
|
31
|
-
* ExternalReference
|
|
32
|
-
* @type {TEXT}
|
|
33
|
-
*/
|
|
34
|
-
ExternalReference?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* activation status
|
|
37
|
-
*
|
|
38
|
-
* status of the order item (must be closed for billing) (Sales - OrderItem)
|
|
39
|
-
* @type {ENUM}
|
|
40
|
-
*/
|
|
41
|
-
ActivationStatus?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* total price
|
|
44
|
-
*
|
|
45
|
-
* total price for the line item (Sales - OrderItem)
|
|
46
|
-
* @type {CURRENCY}
|
|
47
|
-
*/
|
|
48
|
-
TotalPrice?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* description
|
|
51
|
-
*
|
|
52
|
-
* description of the order item (Sales - OrderItem)
|
|
53
|
-
* @type {TEXT}
|
|
54
|
-
*/
|
|
55
|
-
Description?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* Discount2Length
|
|
58
|
-
*
|
|
59
|
-
* Discount2Length (Sales - OrderItem)
|
|
60
|
-
* @type {NUMBER}
|
|
61
|
-
*/
|
|
62
|
-
Discount2Length?: number | null;
|
|
63
|
-
/**
|
|
64
|
-
* taxable
|
|
65
|
-
*
|
|
66
|
-
* is the item taxable (Sales - OrderItem)
|
|
67
|
-
* @type {ENUM}
|
|
68
|
-
*/
|
|
69
|
-
Taxable?: string | null;
|
|
70
|
-
/**
|
|
71
|
-
* tax rate
|
|
72
|
-
*
|
|
73
|
-
* tax rate for the item (Sales - OrderItem)
|
|
74
|
-
* @type {NUMBER}
|
|
75
|
-
*/
|
|
76
|
-
TaxRate?: number | null;
|
|
77
|
-
/**
|
|
78
|
-
* Is tax included
|
|
79
|
-
*
|
|
80
|
-
* is tax included in the UnitPrice (Sales - OrderItem)
|
|
81
|
-
* @type {ENUM}
|
|
82
|
-
*/
|
|
83
|
-
TaxIncluded?: string | null;
|
|
84
|
-
/**
|
|
85
|
-
* discount 2 type
|
|
86
|
-
*
|
|
87
|
-
* the type of discount (Sales - OrderItem)
|
|
88
|
-
* @type {ENUM}
|
|
89
|
-
*/
|
|
90
|
-
Discount2Type?: string | null;
|
|
91
|
-
/**
|
|
92
|
-
* unit price
|
|
93
|
-
*
|
|
94
|
-
* suggested retail price cost + markup (Sales - OrderItem)
|
|
95
|
-
* @type {CURRENCY}
|
|
96
|
-
*/
|
|
97
|
-
UnitPrice?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* Product Id
|
|
100
|
-
*
|
|
101
|
-
* id of the product (Sales - OrderItem)
|
|
102
|
-
* @type {UUID}
|
|
103
|
-
*/
|
|
104
|
-
ProductRef?: string | null;
|
|
105
|
-
/**
|
|
106
|
-
* ProductPbRelationId
|
|
107
|
-
*
|
|
108
|
-
* ProductPbRelationId (Sales - OrderItem)
|
|
109
|
-
* @type {UUID}
|
|
110
|
-
*/
|
|
111
|
-
ProductPbRelationId?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* product category
|
|
114
|
-
*
|
|
115
|
-
* category of the product being sold (Sales - OrderItem)
|
|
116
|
-
* @type {TEXT}
|
|
117
|
-
*/
|
|
118
|
-
ProductCategory?: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* product customer type
|
|
121
|
-
*
|
|
122
|
-
* product customer type (Sales - OrderItem)
|
|
123
|
-
* @type {TEXT}
|
|
124
|
-
*/
|
|
125
|
-
ProductCustomerType?: string | null;
|
|
126
|
-
/**
|
|
127
|
-
* product type
|
|
128
|
-
*
|
|
129
|
-
* the type of product being sold (Sales - OrderItem)
|
|
130
|
-
* @type {TEXT}
|
|
131
|
-
*/
|
|
132
|
-
ProductType?: string | null;
|
|
133
|
-
/**
|
|
134
|
-
* discount 2 value
|
|
135
|
-
*
|
|
136
|
-
* the value of the 2nd discount (Sales - OrderItem)
|
|
137
|
-
* @type {CURRENCY}
|
|
138
|
-
*/
|
|
139
|
-
Discount2Value?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* DiscountLength
|
|
142
|
-
*
|
|
143
|
-
* DiscountLength (Sales - OrderItem)
|
|
144
|
-
* @type {NUMBER}
|
|
145
|
-
*/
|
|
146
|
-
DiscountLength?: number | null;
|
|
147
|
-
/**
|
|
148
|
-
* discount type
|
|
149
|
-
*
|
|
150
|
-
* the type of discount (Sales - OrderItem)
|
|
151
|
-
* @type {ENUM}
|
|
152
|
-
*/
|
|
153
|
-
DiscountType?: string | null;
|
|
154
|
-
/**
|
|
155
|
-
* discount value
|
|
156
|
-
*
|
|
157
|
-
* the value to discount (Sales - OrderItem)
|
|
158
|
-
* @type {CURRENCY}
|
|
159
|
-
*/
|
|
160
|
-
DiscountValue?: string | null;
|
|
161
|
-
/**
|
|
162
|
-
* quantity
|
|
163
|
-
*
|
|
164
|
-
* quantity item (Sales - OrderItem)
|
|
165
|
-
* @type {NUMBER}
|
|
166
|
-
*/
|
|
167
|
-
Quantity?: number | null;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* CreateOrderItemFromBrsk
|
|
171
|
-
*
|
|
172
|
-
* @actionType CREATE - Creates a new OrderItem record
|
|
173
|
-
* @module OrderModule
|
|
174
|
-
* @entity OrderItem
|
|
175
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk
|
|
176
|
-
* @permission schema.action.createorderitemfrombrsk.trigger
|
|
177
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
178
|
-
*/
|
|
179
|
-
export declare class CreateOrderItemFromBrskDto extends OdinRecordCreateDto<CreateOrderItemFromBrskProperties> {
|
|
180
|
-
/** Used by SDK generators to identify action type */
|
|
181
|
-
static readonly ACTION_TYPE = "CREATE";
|
|
182
|
-
static readonly ACTION_KEY = "CreateOrderItemFromBrsk";
|
|
183
|
-
static readonly MODULE_NAME = "OrderModule";
|
|
184
|
-
static readonly ENTITIES: string[];
|
|
185
|
-
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk";
|
|
186
|
-
static readonly PERMISSION = "schema.action.createorderitemfrombrsk.trigger";
|
|
187
|
-
/** Step metadata - entity this action targets */
|
|
188
|
-
static readonly STEP_ENTITY = "OrderModule:OrderItem";
|
|
189
|
-
static readonly STEP_SCHEMA_ID = "4966152a-6468-462a-bd76-b48992e6769f";
|
|
190
|
-
static readonly STEP_SCHEMA_ACTION_ID = "c8c9e5d9-0c44-4248-962f-75c7720e15a7";
|
|
191
|
-
static readonly AUTO_LINK_PARENT = true;
|
|
192
|
-
readonly actionName: string;
|
|
193
|
-
readonly schemaActionId: string;
|
|
194
|
-
readonly entity: string;
|
|
195
|
-
constructor(properties: CreateOrderItemFromBrskProperties, options?: {
|
|
196
|
-
journeyId?: string;
|
|
197
|
-
});
|
|
198
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CreateOrderItemFromBrsk Action DTO
|
|
4
|
-
*
|
|
5
|
-
* CreateOrderItemFromBrsk
|
|
6
|
-
*
|
|
7
|
-
* @module OrderModule
|
|
8
|
-
* @entity OrderItem
|
|
9
|
-
* @actionKey CreateOrderItemFromBrsk
|
|
10
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateOrderItemFromBrskDto = void 0;
|
|
16
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* CreateOrderItemFromBrsk
|
|
19
|
-
*
|
|
20
|
-
* @actionType CREATE - Creates a new OrderItem record
|
|
21
|
-
* @module OrderModule
|
|
22
|
-
* @entity OrderItem
|
|
23
|
-
* @event k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk
|
|
24
|
-
* @permission schema.action.createorderitemfrombrsk.trigger
|
|
25
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
-
*/
|
|
27
|
-
class CreateOrderItemFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
-
constructor(properties, options) {
|
|
29
|
-
super({
|
|
30
|
-
entity: 'OrderModule:OrderItem',
|
|
31
|
-
type: undefined,
|
|
32
|
-
properties,
|
|
33
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
-
});
|
|
35
|
-
this.actionName = 'CreateOrderItemFromBrsk';
|
|
36
|
-
this.schemaActionId = 'c8c9e5d9-0c44-4248-962f-75c7720e15a7';
|
|
37
|
-
this.entity = 'OrderModule:OrderItem';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.CreateOrderItemFromBrskDto = CreateOrderItemFromBrskDto;
|
|
41
|
-
/** Used by SDK generators to identify action type */
|
|
42
|
-
CreateOrderItemFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
-
CreateOrderItemFromBrskDto.ACTION_KEY = 'CreateOrderItemFromBrsk';
|
|
44
|
-
CreateOrderItemFromBrskDto.MODULE_NAME = 'OrderModule';
|
|
45
|
-
CreateOrderItemFromBrskDto.ENTITIES = ['OrderItem'];
|
|
46
|
-
CreateOrderItemFromBrskDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.OrderItem.Create.CreateOrderItemFromBrsk';
|
|
47
|
-
CreateOrderItemFromBrskDto.PERMISSION = 'schema.action.createorderitemfrombrsk.trigger';
|
|
48
|
-
/** Step metadata - entity this action targets */
|
|
49
|
-
CreateOrderItemFromBrskDto.STEP_ENTITY = 'OrderModule:OrderItem';
|
|
50
|
-
CreateOrderItemFromBrskDto.STEP_SCHEMA_ID = '4966152a-6468-462a-bd76-b48992e6769f';
|
|
51
|
-
CreateOrderItemFromBrskDto.STEP_SCHEMA_ACTION_ID = 'c8c9e5d9-0c44-4248-962f-75c7720e15a7';
|
|
52
|
-
CreateOrderItemFromBrskDto.AUTO_LINK_PARENT = true;
|