@d19n/youfibre-odin-sdk 1.0.281 → 1.0.282-beta.0

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.
@@ -0,0 +1,68 @@
1
+ /**
2
+ * UpdateReferralCode Action DTO
3
+ *
4
+ * Set referral code for a contact
5
+ *
6
+ * @module CrmModule
7
+ * @entity Contact
8
+ * @actionKey UpdateReferralCode
9
+ * @event ReferralCodeUpdated
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * Properties for UpdateReferralCode action
16
+ *
17
+ * @property Required fields: 1
18
+ * @property Optional fields: 0
19
+ */
20
+ export interface UpdateReferralCodeProperties {
21
+ /**
22
+ * ReferralCode
23
+ *
24
+ * Referral Code (Sales - Contact)
25
+ * @type {TEXT}
26
+ * @required
27
+ */
28
+ ReferralCode: string;
29
+ }
30
+ /**
31
+ * UpdateReferralCode
32
+ *
33
+ * Set referral code for a contact
34
+ *
35
+ * @actionType UPDATE - Updates an existing Contact record
36
+ * @module CrmModule
37
+ * @entity Contact
38
+ * @event CrmModule.Contact.Update.UpdateReferralCode
39
+ * @permission schema.action.updatereferralcode.trigger
40
+ * @benchmark This action is tracked for performance benchmarks
41
+ */
42
+ export declare class UpdateReferralCodeDto extends OdinRecordUpdateDto<UpdateReferralCodeProperties> {
43
+ /** Used by SDK generators to identify action type */
44
+ static readonly ACTION_TYPE = "UPDATE";
45
+ static readonly ACTION_KEY = "UpdateReferralCode";
46
+ static readonly MODULE_NAME = "CrmModule";
47
+ static readonly ENTITIES: string[];
48
+ static readonly EVENT_NAME = "CrmModule.Contact.Update.UpdateReferralCode";
49
+ static readonly PERMISSION = "schema.action.updatereferralcode.trigger";
50
+ readonly actionName: string;
51
+ readonly schemaActionId: string;
52
+ readonly entity: string;
53
+ constructor(record: OdinRecord<any> | {
54
+ id: string;
55
+ entity: string;
56
+ type?: string;
57
+ }, properties: UpdateReferralCodeProperties, options?: {
58
+ journeyId?: string;
59
+ stageKey?: string;
60
+ });
61
+ }
62
+ /**
63
+ * RabbitMQ message payload for UpdateReferralCode updated events
64
+ *
65
+ * @event CrmModule.Contact.Update.UpdateReferralCode
66
+ */
67
+ export interface UpdateReferralCodeMessage extends OdinRecordUpdatedEvent<UpdateReferralCodeDto, UpdateReferralCodeProperties> {
68
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateReferralCode Action DTO
4
+ *
5
+ * Set referral code for a contact
6
+ *
7
+ * @module CrmModule
8
+ * @entity Contact
9
+ * @actionKey UpdateReferralCode
10
+ * @event ReferralCodeUpdated
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateReferralCodeDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateReferralCode
19
+ *
20
+ * Set referral code for a contact
21
+ *
22
+ * @actionType UPDATE - Updates an existing Contact record
23
+ * @module CrmModule
24
+ * @entity Contact
25
+ * @event CrmModule.Contact.Update.UpdateReferralCode
26
+ * @permission schema.action.updatereferralcode.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateReferralCodeDto 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 = 'UpdateReferralCode';
40
+ this.schemaActionId = '1b4f41b7-c146-49d8-8f3e-a9be184d2a0b';
41
+ this.entity = 'CrmModule:Contact';
42
+ }
43
+ }
44
+ exports.UpdateReferralCodeDto = UpdateReferralCodeDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateReferralCodeDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateReferralCodeDto.ACTION_KEY = 'UpdateReferralCode';
48
+ UpdateReferralCodeDto.MODULE_NAME = 'CrmModule';
49
+ UpdateReferralCodeDto.ENTITIES = ['Contact'];
50
+ UpdateReferralCodeDto.EVENT_NAME = 'CrmModule.Contact.Update.UpdateReferralCode';
51
+ UpdateReferralCodeDto.PERMISSION = 'schema.action.updatereferralcode.trigger';
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
23
23
  * Use these constants instead of string literals for type safety
24
24
  */
25
25
  export declare enum ConfigPropertyKeys {
26
- /** the name of the app this config relates to (Platform - Config) */
27
- AppName = "AppName",
26
+ /** Data field for Config records. Used by Platform team. */
27
+ Test = "Test",
28
28
  /** object of { key: value } mappings (Platform - Config) */
29
29
  Mappings = "Mappings",
30
- /** Data field for Config records. Used by Platform team. */
31
- Test = "Test"
30
+ /** the name of the app this config relates to (Platform - Config) */
31
+ AppName = "AppName"
32
32
  }
33
33
  /**
34
34
  * Properties for Config records
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
36
36
  * @see SchemaModule:Config
37
37
  */
38
38
  export interface ConfigProperties {
39
- /** the name of the app this config relates to (Platform - Config)
39
+ /** Data field for Config records. Used by Platform team.
40
40
  *
41
41
  * @type {TEXT}
42
42
  */
43
- AppName: string;
43
+ Test: string;
44
44
  /** object of { key: value } mappings (Platform - Config)
45
45
  *
46
46
  * @type {JSON}
47
47
  */
48
48
  Mappings: string;
49
- /** Data field for Config records. Used by Platform team.
49
+ /** the name of the app this config relates to (Platform - Config)
50
50
  *
51
51
  * @type {TEXT}
52
52
  */
53
- Test: string;
53
+ AppName: string;
54
54
  }
55
55
  /**
56
56
  * Config entity from SchemaModule
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
28
28
  */
29
29
  var ConfigPropertyKeys;
30
30
  (function (ConfigPropertyKeys) {
31
- /** the name of the app this config relates to (Platform - Config) */
32
- ConfigPropertyKeys["AppName"] = "AppName";
33
- /** object of { key: value } mappings (Platform - Config) */
34
- ConfigPropertyKeys["Mappings"] = "Mappings";
35
31
  /** Data field for Config records. Used by Platform team. */
36
32
  ConfigPropertyKeys["Test"] = "Test";
33
+ /** object of { key: value } mappings (Platform - Config) */
34
+ ConfigPropertyKeys["Mappings"] = "Mappings";
35
+ /** the name of the app this config relates to (Platform - Config) */
36
+ ConfigPropertyKeys["AppName"] = "AppName";
37
37
  })(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
38
38
  /**
39
39
  * Config entity from SchemaModule
@@ -323,12 +323,12 @@ export declare enum ContactPropertyKeys {
323
323
  Phone = "Phone",
324
324
  /** previous other (Sales - Contact) */
325
325
  PreviousProviderOther = "PreviousProviderOther",
326
- /** Referral Code (Sales - Contact) */
327
- ReferralCode = "ReferralCode",
328
326
  /** the referral link from Aklamio (Sales - Contact) */
329
327
  ReferralLink = "ReferralLink",
330
328
  /** is the phone number verified by twilio (Sales - Contact) */
331
329
  TwilioVerifiedPhone = "TwilioVerifiedPhone",
330
+ /** Referral Code (Sales - Contact) */
331
+ ReferralCode = "ReferralCode",
332
332
  /** FingerprintID (Sales - Contact) */
333
333
  FingerprintId = "FingerprintID",
334
334
  /** Send if true otherwise they have opted-out if false (Sales - Contact) */
@@ -565,12 +565,6 @@ export interface ContactProperties {
565
565
  * @hidden This field is hidden in the UI
566
566
  */
567
567
  PreviousProviderOther: string;
568
- /** Referral Code (Sales - Contact)
569
- *
570
- * @type {TEXT}
571
- * @hidden This field is hidden in the UI
572
- */
573
- ReferralCode: string;
574
568
  /** the referral link from Aklamio (Sales - Contact)
575
569
  *
576
570
  * @type {TEXT}
@@ -583,6 +577,11 @@ export interface ContactProperties {
583
577
  * @hidden This field is hidden in the UI
584
578
  */
585
579
  TwilioVerifiedPhone: boolean;
580
+ /** Referral Code (Sales - Contact)
581
+ *
582
+ * @type {TEXT}
583
+ */
584
+ ReferralCode: string;
586
585
  /** FingerprintID (Sales - Contact)
587
586
  *
588
587
  * @type {TEXT}
@@ -307,12 +307,12 @@ var ContactPropertyKeys;
307
307
  ContactPropertyKeys["Phone"] = "Phone";
308
308
  /** previous other (Sales - Contact) */
309
309
  ContactPropertyKeys["PreviousProviderOther"] = "PreviousProviderOther";
310
- /** Referral Code (Sales - Contact) */
311
- ContactPropertyKeys["ReferralCode"] = "ReferralCode";
312
310
  /** the referral link from Aklamio (Sales - Contact) */
313
311
  ContactPropertyKeys["ReferralLink"] = "ReferralLink";
314
312
  /** is the phone number verified by twilio (Sales - Contact) */
315
313
  ContactPropertyKeys["TwilioVerifiedPhone"] = "TwilioVerifiedPhone";
314
+ /** Referral Code (Sales - Contact) */
315
+ ContactPropertyKeys["ReferralCode"] = "ReferralCode";
316
316
  /** FingerprintID (Sales - Contact) */
317
317
  ContactPropertyKeys["FingerprintId"] = "FingerprintID";
318
318
  /** Send if true otherwise they have opted-out if false (Sales - Contact) */