@d19n/youfibre-odin-sdk 1.0.354 → 1.0.355

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 CHANGED
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
351
351
 
352
352
  ## Actions
353
353
 
354
- This SDK includes **538** actions.
354
+ This SDK includes **539** actions.
355
355
 
356
356
  ### Action Types
357
357
 
@@ -1117,6 +1117,7 @@ This SDK includes **538** actions.
1117
1117
  | Action | Type | Event |
1118
1118
  |--------|------|-------|
1119
1119
  | `CreateContact` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContact |
1120
+ | `CreateContactFromBrsk` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk |
1120
1121
  | `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
1121
1122
  | `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
1122
1123
  | `UpdateReferralCode` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateReferralCode |
@@ -0,0 +1,107 @@
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
+ }
@@ -0,0 +1,52 @@
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;
@@ -360,7 +360,9 @@ export declare enum ContactPropertyKeys {
360
360
  /** The date that the customer signed up or registered to the customer platforms (Sales - Contact) */
361
361
  ActivationDate = "ActivationDate",
362
362
  /** Is the customer medically dependant on their broadband (Sales - Contact) */
363
- MedicallyDependant = "MedicallyDependant"
363
+ MedicallyDependant = "MedicallyDependant",
364
+ /** External Reference */
365
+ ExternalReference = "ExternalReference"
364
366
  }
365
367
  /**
366
368
  * Properties for Contact records
@@ -679,6 +681,11 @@ export interface ContactProperties {
679
681
  * @default FALSE
680
682
  */
681
683
  MedicallyDependant: boolean;
684
+ /** External Reference
685
+ *
686
+ * @type {TEXT}
687
+ */
688
+ ExternalReference: string;
682
689
  }
683
690
  /**
684
691
  * Contact entity from CrmModule
@@ -344,6 +344,8 @@ var ContactPropertyKeys;
344
344
  ContactPropertyKeys["ActivationDate"] = "ActivationDate";
345
345
  /** Is the customer medically dependant on their broadband (Sales - Contact) */
346
346
  ContactPropertyKeys["MedicallyDependant"] = "MedicallyDependant";
347
+ /** External Reference */
348
+ ContactPropertyKeys["ExternalReference"] = "ExternalReference";
347
349
  })(ContactPropertyKeys = exports.ContactPropertyKeys || (exports.ContactPropertyKeys = {}));
348
350
  /**
349
351
  * Contact entity from CrmModule
@@ -24,6 +24,7 @@ import { ContactProperties } from '../entities-v2/Contact';
24
24
  import { CreateCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
25
25
  import { AssignCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
26
26
  import { CreateContactProperties } from '../actions-v2/CreateContactDto';
27
+ import { CreateContactFromBrskProperties } from '../actions-v2/CreateContactFromBrskDto';
27
28
  import { UpdateAdditionalCareProperties } from '../actions-v2/UpdateAdditionalCareDto';
28
29
  import { UpdateContactProperties } from '../actions-v2/UpdateContactDto';
29
30
  import { UpdateReferralCodeProperties } from '../actions-v2/UpdateReferralCodeDto';
@@ -724,6 +725,34 @@ export declare class ContactRecord<TProps = ContactProperties> {
724
725
  journeyId?: string;
725
726
  stageKey?: string;
726
727
  }): ActionBuilder;
728
+ /**
729
+ * CreateContactFromBrsk
730
+ *
731
+ * Creates a new Contact record with the specified properties.
732
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
733
+ *
734
+ * @param properties - The properties for the new record
735
+ * @param options - Optional settings
736
+ * @param options.type - Override the record type
737
+ * @param options.journeyId - Associate with a journey
738
+ * @param options.stageKey - Set initial pipeline stage
739
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
740
+ *
741
+ * @example
742
+ * ```typescript
743
+ * // Create with properties
744
+ * const record = odinClient.contacts.new();
745
+ * await record.createContactFromBrsk({ ... }).execute();
746
+ *
747
+ * // Dry run (for debugging)
748
+ * const payload = record.createContactFromBrsk({ ... }).dryRun();
749
+ * ```
750
+ */
751
+ createContactFromBrsk(properties?: CreateContactFromBrskProperties, options?: {
752
+ type?: string;
753
+ journeyId?: string;
754
+ stageKey?: string;
755
+ }): ActionBuilder;
727
756
  /**
728
757
  * CreateCaseFromContact
729
758
  *
@@ -1118,6 +1118,42 @@ class ContactRecord {
1118
1118
  };
1119
1119
  return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1120
1120
  }
1121
+ /**
1122
+ * CreateContactFromBrsk
1123
+ *
1124
+ * Creates a new Contact record with the specified properties.
1125
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
1126
+ *
1127
+ * @param properties - The properties for the new record
1128
+ * @param options - Optional settings
1129
+ * @param options.type - Override the record type
1130
+ * @param options.journeyId - Associate with a journey
1131
+ * @param options.stageKey - Set initial pipeline stage
1132
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
1133
+ *
1134
+ * @example
1135
+ * ```typescript
1136
+ * // Create with properties
1137
+ * const record = odinClient.contacts.new();
1138
+ * await record.createContactFromBrsk({ ... }).execute();
1139
+ *
1140
+ * // Dry run (for debugging)
1141
+ * const payload = record.createContactFromBrsk({ ... }).dryRun();
1142
+ * ```
1143
+ */
1144
+ createContactFromBrsk(properties, options) {
1145
+ var _a, _b;
1146
+ const payload = {
1147
+ entity: 'CrmModule:Contact',
1148
+ type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
1149
+ actionName: 'CreateContactFromBrsk',
1150
+ properties: properties || {},
1151
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
1152
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
1153
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
1154
+ };
1155
+ return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1156
+ }
1121
1157
  // ============================================
1122
1158
  // UPDATE ACTIONS (require existing record)
1123
1159
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "1.0.354",
3
+ "version": "1.0.355",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",