@tolinax/ayoune-interfaces 2024.7.1 → 2024.9.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.
@@ -57,12 +57,16 @@ export interface IAd extends IDefaultFields {
57
57
  isHijacked: boolean;
58
58
  isPossiblyHijacked: boolean;
59
59
  isFriend: boolean;
60
+ params: any;
61
+ awin_number: string;
60
62
  redirectChain: {
61
63
  url: string;
62
64
  domain: string;
63
65
  isTool: boolean;
64
66
  tool: string;
65
67
  isAffiliate: boolean;
68
+ params: any;
69
+ awin_number: string;
66
70
  }[];
67
71
  };
68
72
  siteLinks?: {
@@ -0,0 +1,10 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ export interface IAdHijacker extends IDefaultFields {
3
+ archived?: boolean;
4
+ _customerID: ObjectId;
5
+ _consumerID: ObjectId;
6
+ _clientID?: ObjectId[];
7
+ _subID?: ObjectId[];
8
+ _ad: String;
9
+ _adResults: String[];
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ import { IAdHijackingInfo } from "./IAdHijackingInfo";
3
+ export interface IAdHijackerCheck extends IDefaultFields {
4
+ archived?: boolean;
5
+ _customerID: ObjectId;
6
+ _consumerID: ObjectId;
7
+ _clientID?: ObjectId[];
8
+ _subID?: ObjectId[];
9
+ from?: Date;
10
+ to?: Date;
11
+ compareFrom?: Date;
12
+ compareTo?: Date;
13
+ newAdHijackers?: IAdHijackingInfo[];
14
+ removedAdHijackers?: IAdHijackingInfo[];
15
+ continuousAdHijackers?: IAdHijackingInfo[];
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IAdHijackingInfo {
2
+ _consumerID?: ObjectId;
3
+ adsCount?: number;
4
+ terms?: string[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,202 @@ import { IDemographics } from "./IDemographics";
2
2
  import { IAttributeValue } from "./IAttributeValue";
3
3
  import { IDefaultFields } from "./IDefaultFields";
4
4
  import { IFreeFields } from "./IFreeFields";
5
+ interface IExperience {
6
+ _company: ObjectId;
7
+ from: Date;
8
+ to: Date;
9
+ current: boolean;
10
+ location: string;
11
+ position: string;
12
+ description: string;
13
+ }
14
+ interface IPreferredItem {
15
+ item: ObjectId;
16
+ count?: number;
17
+ }
18
+ interface IExternalId {
19
+ id?: string;
20
+ source?: string;
21
+ link?: string;
22
+ }
23
+ interface IAuthDetail {
24
+ id?: string;
25
+ token?: string;
26
+ tokenSecret?: string;
27
+ }
28
+ interface IAuth {
29
+ google?: IAuthDetail;
30
+ telegram?: IAuthDetail;
31
+ facebook?: IAuthDetail;
32
+ xing?: IAuthDetail;
33
+ linkedin?: IAuthDetail;
34
+ }
35
+ interface IReceiverDetail {
36
+ cp?: ObjectId;
37
+ medium?: string;
38
+ cc?: string;
39
+ }
40
+ interface IContactDetail {
41
+ linkid?: string;
42
+ url?: string;
43
+ }
44
+ interface ISocialConnections {
45
+ facebook?: IContactDetail;
46
+ twitter?: IContactDetail;
47
+ }
48
+ interface ISalepsychology {
49
+ competing?: boolean;
50
+ demanding?: boolean;
51
+ dtrong?: boolean;
52
+ directly?: boolean;
53
+ dominant?: boolean;
54
+ straight?: boolean;
55
+ authoritarian?: boolean;
56
+ pressurizes?: boolean;
57
+ opinionated?: boolean;
58
+ blackwhite?: boolean;
59
+ aggressive?: boolean;
60
+ resultOriented?: boolean;
61
+ reliable?: boolean;
62
+ logical?: boolean;
63
+ analytically?: boolean;
64
+ Detailed?: boolean;
65
+ precise?: boolean;
66
+ cool?: boolean;
67
+ regulated?: boolean;
68
+ distant?: boolean;
69
+ quiet?: boolean;
70
+ controlled?: boolean;
71
+ diplomatic?: boolean;
72
+ factOriented?: boolean;
73
+ sensitive?: boolean;
74
+ calm?: boolean;
75
+ careful?: boolean;
76
+ modest?: boolean;
77
+ listensPatiently?: boolean;
78
+ principle?: boolean;
79
+ trustworthy?: boolean;
80
+ supportive?: boolean;
81
+ irresolute?: boolean;
82
+ restrained?: boolean;
83
+ serviceOriented?: boolean;
84
+ optimistic?: boolean;
85
+ expressive?: boolean;
86
+ talkative?: boolean;
87
+ inspiring?: boolean;
88
+ impulsive?: boolean;
89
+ compliant?: boolean;
90
+ emotionally?: boolean;
91
+ unorganized?: boolean;
92
+ open?: boolean;
93
+ sweeping?: boolean;
94
+ negligent?: boolean;
95
+ related?: boolean;
96
+ red?: number;
97
+ blue?: number;
98
+ green?: number;
99
+ yellow?: number;
100
+ }
101
+ interface IReceiver {
102
+ general?: IReceiverDetail;
103
+ offer?: IReceiverDetail;
104
+ order?: IReceiverDetail;
105
+ invoice?: IReceiverDetail;
106
+ delivery?: IReceiverDetail;
107
+ reminder?: IReceiverDetail;
108
+ copies?: IReceiverDetail;
109
+ requests?: IReceiverDetail;
110
+ }
111
+ interface INotifications {
112
+ email?: boolean;
113
+ telegram?: boolean;
114
+ interface?: boolean;
115
+ }
116
+ interface IConsumerToDo {
117
+ name?: string;
118
+ description?: string;
119
+ severity?: string;
120
+ entity?: string;
121
+ connectedId?: ObjectId;
122
+ connectedGroup?: ObjectId;
123
+ done?: boolean;
124
+ pending?: boolean;
125
+ toCheck?: boolean;
126
+ review?: boolean;
127
+ declined?: boolean;
128
+ declinedReason?: string;
129
+ }
130
+ interface IConsumerSocial {
131
+ fb?: string;
132
+ fbp?: string;
133
+ foursquare?: string;
134
+ twitter?: string;
135
+ telegram?: string;
136
+ gp?: string;
137
+ gpp?: string;
138
+ instagram?: string;
139
+ pinterest?: string;
140
+ tumblr?: string;
141
+ xing?: string;
142
+ xingCompany?: string;
143
+ linkedin?: string;
144
+ linkedincompany?: string;
145
+ other?: string;
146
+ youtube?: string;
147
+ owler?: string;
148
+ flickr?: string;
149
+ klout?: string;
150
+ crunchbasecompany?: string;
151
+ gravatar?: string;
152
+ }
153
+ interface IPurchasedProducts {
154
+ name?: string;
155
+ _product?: ObjectId;
156
+ _assignment?: ObjectId;
157
+ _invoice?: ObjectId;
158
+ _contract?: ObjectId;
159
+ sku?: string;
160
+ price?: string;
161
+ }
162
+ interface IConsumerAddOns {
163
+ t?: string;
164
+ desc?: string;
165
+ amount?: number;
166
+ }
167
+ interface IConsumerConnections {
168
+ t?: string;
169
+ st?: string;
170
+ consumer?: ObjectId;
171
+ consumerSearch?: string;
172
+ }
173
+ interface IEducation {
174
+ _institution?: ObjectId;
175
+ from: Date;
176
+ to: Date;
177
+ location: string;
178
+ description: string;
179
+ education: string;
180
+ }
181
+ interface IConsumerSkill {
182
+ skill?: String;
183
+ verified?: boolean;
184
+ verifications?: number;
185
+ }
186
+ interface IConsumerEndorsment {
187
+ _endorser?: ObjectId;
188
+ verified?: boolean;
189
+ verifications?: number;
190
+ }
191
+ interface IConsumerCertificate {
192
+ certificate?: string;
193
+ institute?: string;
194
+ verified?: boolean;
195
+ image?: string;
196
+ }
197
+ interface IInterestedInCompanies {
198
+ _company?: ObjectId;
199
+ companyName?: string;
200
+ }
5
201
  export interface IConsumer extends IDefaultFields, IFreeFields {
6
202
  _companyRef?: ObjectId;
7
203
  shortID: string;
@@ -13,6 +209,8 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
13
209
  maintype?: "main" | "cp";
14
210
  mainAP?: ObjectId;
15
211
  private_business?: "private" | "business";
212
+ isCorporation?: boolean;
213
+ _corporation?: ObjectId;
16
214
  tags?: string[];
17
215
  interestchannels?: string[];
18
216
  brands?: string[];
@@ -20,15 +218,12 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
20
218
  exchangeId?: string;
21
219
  restrict_exchange_sync?: boolean;
22
220
  preferredBrand?: string;
23
- preferredBrands?: {
24
- brand: ObjectId;
25
- count?: number;
26
- }[];
221
+ preferredBrands?: IPreferredItem[];
222
+ preferredManufacturers?: IPreferredItem[];
223
+ external_ids?: IExternalId[];
224
+ auth?: IAuth;
225
+ receiver?: IReceiver;
27
226
  preferredManufacturer?: string;
28
- preferredManufacturers?: {
29
- manufacturer: ObjectId;
30
- count?: number;
31
- }[];
32
227
  score?: number;
33
228
  happiness?: number;
34
229
  engagement?: number;
@@ -50,11 +245,6 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
50
245
  preferredChannel?: string;
51
246
  preferredTimeFrom?: number;
52
247
  preferredTimeTo?: number;
53
- external_ids?: {
54
- id?: string;
55
- source?: string;
56
- link?: string;
57
- }[];
58
248
  ayoune_ac?: string;
59
249
  editor?: ObjectId;
60
250
  currentCommunicationEditor?: ObjectId;
@@ -137,8 +327,13 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
137
327
  cell_business?: string;
138
328
  privacy_date?: Date;
139
329
  privacy_ip?: string;
330
+ brand_bidder?: boolean;
140
331
  brand_bidding_stage?: string;
141
332
  last_brand_bidding?: Date;
333
+ ad_hijacker?: boolean;
334
+ ad_hijacking_stage?: string;
335
+ last_ad_hijacking?: Date;
336
+ awin_number?: string;
142
337
  last_active?: Date;
143
338
  last_login?: Date;
144
339
  last_open?: Date;
@@ -293,6 +488,10 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
293
488
  ayoune_dashboard?: string;
294
489
  ayoune_landingpage?: string;
295
490
  ayoune_newsletter?: string;
491
+ ayoune_agency?: string;
492
+ ayoune_partner?: string;
493
+ ayoune_form?: ObjectId;
494
+ ayoune_formName?: string;
296
495
  iban?: string;
297
496
  bic?: string;
298
497
  accountholder?: string;
@@ -342,178 +541,12 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
342
541
  fbChat?: boolean;
343
542
  waid?: string;
344
543
  last_auth_provider?: string;
345
- auth?: {
346
- google?: {
347
- id?: string;
348
- token?: string;
349
- tokenSecret?: string;
350
- };
351
- telegram?: {
352
- id?: number;
353
- hash?: string;
354
- auth_date?: string;
355
- username?: string;
356
- };
357
- facebook?: {
358
- id?: string;
359
- token?: string;
360
- tokenSecret?: string;
361
- };
362
- xing?: {
363
- id?: string;
364
- token?: string;
365
- tokenSecret?: string;
366
- };
367
- linkedin?: {
368
- id?: string;
369
- token?: string;
370
- tokenSecret?: string;
371
- };
372
- };
373
- todos?: {
374
- name?: string;
375
- description?: string;
376
- severity?: string;
377
- entity?: string;
378
- connectedId?: ObjectId;
379
- connectedGroup?: ObjectId;
380
- done?: boolean;
381
- pending?: boolean;
382
- toCheck?: boolean;
383
- review?: boolean;
384
- declined?: boolean;
385
- declinedReason?: string;
386
- }[];
544
+ todos?: IConsumerToDo[];
387
545
  agent?: ObjectId;
388
- receiver?: {
389
- general?: {
390
- cp?: ObjectId;
391
- medium?: string;
392
- cc?: string;
393
- };
394
- offer?: {
395
- cp?: ObjectId;
396
- medium?: string;
397
- cc?: string;
398
- };
399
- order?: {
400
- cp?: ObjectId;
401
- medium?: string;
402
- cc?: string;
403
- };
404
- invoice?: {
405
- cp?: ObjectId;
406
- medium?: string;
407
- cc?: string;
408
- };
409
- delivery?: {
410
- cp?: ObjectId;
411
- medium?: string;
412
- cc?: string;
413
- };
414
- reminder?: {
415
- cp?: ObjectId;
416
- medium?: string;
417
- cc?: string;
418
- };
419
- copies?: {
420
- cp?: ObjectId;
421
- medium?: string;
422
- cc?: string;
423
- };
424
- requests?: {
425
- cp?: ObjectId;
426
- medium?: string;
427
- cc?: string;
428
- };
429
- };
430
- social?: {
431
- fb?: string;
432
- fbp?: string;
433
- foursquare?: string;
434
- twitter?: string;
435
- telegram?: string;
436
- gp?: string;
437
- gpp?: string;
438
- instagram?: string;
439
- pinterest?: string;
440
- tumblr?: string;
441
- xing?: string;
442
- xingCompany?: string;
443
- linkedin?: string;
444
- linkedincompany?: string;
445
- other?: string;
446
- youtube?: string;
447
- owler?: string;
448
- flickr?: string;
449
- klout?: string;
450
- crunchbasecompany?: string;
451
- gravatar?: string;
452
- };
546
+ social?: IConsumerSocial;
453
547
  demographic?: IDemographics;
454
- socialConnections?: {
455
- facebook?: {
456
- linkid?: string;
457
- url?: string;
458
- };
459
- twitter?: {
460
- linkid?: string;
461
- url?: string;
462
- };
463
- };
464
- salepsychology?: {
465
- competing?: boolean;
466
- demanding?: boolean;
467
- dtrong?: boolean;
468
- directly?: boolean;
469
- dominant?: boolean;
470
- straight?: boolean;
471
- authoritarian?: boolean;
472
- pressurizes?: boolean;
473
- opinionated?: boolean;
474
- blackwhite?: boolean;
475
- aggressive?: boolean;
476
- resultOriented?: boolean;
477
- reliable?: boolean;
478
- logical?: boolean;
479
- analytically?: boolean;
480
- Detailed?: boolean;
481
- precise?: boolean;
482
- cool?: boolean;
483
- regulated?: boolean;
484
- distant?: boolean;
485
- quiet?: boolean;
486
- controlled?: boolean;
487
- diplomatic?: boolean;
488
- factOriented?: boolean;
489
- sensitive?: boolean;
490
- calm?: boolean;
491
- careful?: boolean;
492
- modest?: boolean;
493
- listensPatiently?: boolean;
494
- principle?: boolean;
495
- trustworthy?: boolean;
496
- supportive?: boolean;
497
- irresolute?: boolean;
498
- restrained?: boolean;
499
- serviceOriented?: boolean;
500
- optimistic?: boolean;
501
- expressive?: boolean;
502
- talkative?: boolean;
503
- inspiring?: boolean;
504
- impulsive?: boolean;
505
- compliant?: boolean;
506
- emotionally?: boolean;
507
- unorganized?: boolean;
508
- open?: boolean;
509
- sweeping?: boolean;
510
- negligent?: boolean;
511
- related?: boolean;
512
- red?: number;
513
- blue?: number;
514
- green?: number;
515
- yellow?: number;
516
- };
548
+ socialConnections?: ISocialConnections;
549
+ salepsychology?: ISalepsychology;
517
550
  commissiongroup?: ObjectId;
518
551
  parent_parent?: ObjectId;
519
552
  parent?: ObjectId;
@@ -523,26 +556,9 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
523
556
  logo?: string;
524
557
  bcImage?: string;
525
558
  bcImageBackside?: string;
526
- addons?: Array<{
527
- t?: string;
528
- desc?: string;
529
- amount?: number;
530
- }>;
531
- connections?: Array<{
532
- t?: string;
533
- st?: string;
534
- consumer?: ObjectId;
535
- consumerSearch?: string;
536
- }>;
537
- purchasedProducts?: Array<{
538
- name?: string;
539
- _product?: ObjectId;
540
- _assignment?: ObjectId;
541
- _invoice?: ObjectId;
542
- _contract?: ObjectId;
543
- sku?: string;
544
- price?: string;
545
- }>;
559
+ addons?: IConsumerAddOns[];
560
+ connections?: IConsumerConnections[];
561
+ purchasedProducts?: IPurchasedProducts[];
546
562
  deliveryblock?: boolean;
547
563
  insolvent?: boolean;
548
564
  construction_cleaning_service?: boolean;
@@ -573,8 +589,6 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
573
589
  postoptin?: boolean;
574
590
  approvedDataMerge?: boolean;
575
591
  privacy?: boolean;
576
- ayoune_agency?: string;
577
- ayoune_partner?: string;
578
592
  mailsCount?: number;
579
593
  bounceCount?: number;
580
594
  openCount?: number;
@@ -591,8 +605,6 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
591
605
  clickCount?: number;
592
606
  mailClickCount?: number;
593
607
  newsletterClickCount?: number;
594
- ayoune_form?: ObjectId;
595
- ayoune_formName?: string;
596
608
  webViewCount?: number;
597
609
  verificationCode?: string;
598
610
  verified?: boolean;
@@ -604,15 +616,18 @@ export interface IConsumer extends IDefaultFields, IFreeFields {
604
616
  needsOnboarding?: boolean;
605
617
  onboardingChecklist?: ObjectId;
606
618
  onboardingDone?: boolean;
607
- notifications?: {
608
- email?: boolean;
609
- telegram?: boolean;
610
- interface?: boolean;
611
- };
619
+ notifications?: INotifications;
612
620
  isLocked?: boolean;
613
621
  adressFormated?: string;
614
622
  latitude?: number;
615
623
  longitude?: number;
616
624
  age?: number;
617
625
  userimage?: string;
626
+ experiences?: IExperience[];
627
+ educations?: IEducation[];
628
+ skills?: IConsumerSkill[];
629
+ endorsements?: IConsumerEndorsment[];
630
+ certificates?: IConsumerCertificate[];
631
+ interestedInCompanies?: IInterestedInCompanies[];
618
632
  }
633
+ export {};
@@ -8,6 +8,8 @@ export * from "./IAd";
8
8
  export * from "./IAdAccount";
9
9
  export * from "./IAdCampaign";
10
10
  export * from "./IAdGroup";
11
+ export * from "./IAdHijacker";
12
+ export * from "./IAdHijackerCheck";
11
13
  export * from "./IAdResult";
12
14
  export * from "./IAdType";
13
15
  export * from "./IAdvertisement";
@@ -24,6 +24,8 @@ __exportStar(require("./IAd"), exports);
24
24
  __exportStar(require("./IAdAccount"), exports);
25
25
  __exportStar(require("./IAdCampaign"), exports);
26
26
  __exportStar(require("./IAdGroup"), exports);
27
+ __exportStar(require("./IAdHijacker"), exports);
28
+ __exportStar(require("./IAdHijackerCheck"), exports);
27
29
  __exportStar(require("./IAdResult"), exports);
28
30
  __exportStar(require("./IAdType"), exports);
29
31
  __exportStar(require("./IAdvertisement"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.7.1",
3
+ "version": "2024.9.0",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",