ad2app-lib 1.0.0 → 1.0.2

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,6 @@
1
+ export declare enum I_MediaStatus {
2
+ UPLOADED = "uploaded",
3
+ ADJUSTMENT_REQUIRED = "adjustmentRequired",
4
+ REJECTED = "rejected",
5
+ ACCEPTED = "accepted"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.I_MediaStatus = void 0;
4
+ var I_MediaStatus;
5
+ (function (I_MediaStatus) {
6
+ I_MediaStatus["UPLOADED"] = "uploaded";
7
+ I_MediaStatus["ADJUSTMENT_REQUIRED"] = "adjustmentRequired";
8
+ I_MediaStatus["REJECTED"] = "rejected";
9
+ I_MediaStatus["ACCEPTED"] = "accepted";
10
+ })(I_MediaStatus || (exports.I_MediaStatus = I_MediaStatus = {}));
@@ -1,6 +1,6 @@
1
- import { I_Agency } from "./I_Agency";
2
- import { I_Campaign } from "./I_Campaign";
3
- import { I_Influencer } from "./I_Influencer";
1
+ import { I_Agency } from './I_Agency';
2
+ import { I_Campaign } from './I_Campaign';
3
+ import { I_Influencer } from './I_Influencer';
4
4
  export declare class I_Offer {
5
5
  id?: string;
6
6
  agency?: I_Agency;
@@ -10,7 +10,7 @@ export declare class I_Offer {
10
10
  action?: OfferActions;
11
11
  constructor(data?: I_Offer);
12
12
  }
13
- export type OfferActions = "create" | "delete" | "confirm" | "reject" | "negotiate" | "accept";
13
+ export type OfferActions = 'create' | 'delete' | 'confirm' | 'reject' | 'negotiate' | 'accept';
14
14
  export declare enum I_OfferStatus {
15
15
  DRAFT = "draft",
16
16
  SENT = "sent",
@@ -28,7 +28,6 @@ export declare class I_OfferGetDTO {
28
28
  }
29
29
  export declare class I_GetOffersDTO {
30
30
  campaignId?: string;
31
- influencerId?: string;
32
31
  }
33
32
  export declare class I_OfferRemoveDTO {
34
33
  id: number;
@@ -41,23 +40,27 @@ export declare class I_OfferEditDTO {
41
40
  }
42
41
  export declare class I_SendOfferDTO {
43
42
  price: number;
44
- offerId: I_Offer["id"];
43
+ offerId: I_Offer['id'];
45
44
  constructor(data?: Partial<I_SendOfferDTO>);
46
45
  }
46
+ export declare class I_NegotiateOfferDTO {
47
+ price: number;
48
+ offerId: I_Offer['id'];
49
+ }
47
50
  export declare class I_CreateDraftOfferDTO {
48
- influencerId: I_Influencer["id"];
49
- campaignId: I_Campaign["id"];
51
+ influencerId: I_Influencer['id'];
52
+ campaignId: I_Campaign['id'];
50
53
  constructor(data: I_CreateDraftOfferDTO);
51
54
  }
52
55
  export declare class I_RejectOfferDTO {
53
- offerId: I_Offer["id"];
56
+ offerId: I_Offer['id'];
54
57
  constructor(data?: Partial<I_RejectOfferDTO>);
55
58
  }
56
59
  export declare class I_AcceptOfferDTO {
57
- offerId: I_Offer["id"];
60
+ offerId: I_Offer['id'];
58
61
  constructor(data?: Partial<I_AcceptOfferDTO>);
59
62
  }
60
63
  export declare class I_ConfirmOfferDTO {
61
- offerId: I_Offer["id"];
64
+ offerId: I_Offer['id'];
62
65
  constructor(data?: Partial<I_ConfirmOfferDTO>);
63
66
  }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.I_ConfirmOfferDTO = exports.I_AcceptOfferDTO = exports.I_RejectOfferDTO = exports.I_CreateDraftOfferDTO = exports.I_SendOfferDTO = exports.I_GetOffersDTO = exports.I_OfferStatus = exports.I_Offer = void 0;
12
+ exports.I_ConfirmOfferDTO = exports.I_AcceptOfferDTO = exports.I_RejectOfferDTO = exports.I_CreateDraftOfferDTO = exports.I_NegotiateOfferDTO = exports.I_SendOfferDTO = exports.I_GetOffersDTO = exports.I_OfferStatus = exports.I_Offer = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class I_Offer {
15
15
  constructor(data) {
@@ -41,10 +41,6 @@ __decorate([
41
41
  (0, class_validator_1.IsOptional)(),
42
42
  __metadata("design:type", String)
43
43
  ], I_GetOffersDTO.prototype, "campaignId", void 0);
44
- __decorate([
45
- (0, class_validator_1.IsOptional)(),
46
- __metadata("design:type", String)
47
- ], I_GetOffersDTO.prototype, "influencerId", void 0);
48
44
  class I_SendOfferDTO {
49
45
  constructor(data) {
50
46
  this.price = data?.price ?? null;
@@ -52,6 +48,9 @@ class I_SendOfferDTO {
52
48
  }
53
49
  }
54
50
  exports.I_SendOfferDTO = I_SendOfferDTO;
51
+ class I_NegotiateOfferDTO {
52
+ }
53
+ exports.I_NegotiateOfferDTO = I_NegotiateOfferDTO;
55
54
  class I_CreateDraftOfferDTO {
56
55
  constructor(data) {
57
56
  this.influencerId = data.influencerId;
@@ -1,31 +1,32 @@
1
- export * from "./I_TikTokUser";
2
- export * from "./I_Queue";
3
- export * from "./I_Campaign";
4
- export * from "./I_Influencer";
5
- export * from "./I_InfluencersLists";
6
- export * from "./I_InfluencersCategories";
7
- export * from "./I_InfluencersProperties";
8
- export * from "./I_Item";
9
- export * from "./I_List";
10
- export * from "./I_PaginatedList";
11
- export * from "./I_Pagination";
12
- export * from "./I_TIkTokRaports";
13
- export * from "./I_Tag";
14
- export * from "./I_TikTokPost";
15
- export * from "./I_User";
16
- export * from "./I_UserTikTokStatistic";
17
- export * from "./I_ScrappingAccount";
18
- export * from "./global";
19
- export * from "./I_Scrappers";
20
- export * from "./I_ScrappingServiceMessages";
21
- export * from "./I_ScrappingMachine";
22
- export * from "./I_ScrappingMachineProcess";
23
- export * from "./T_FetchStatus";
24
- export * from "./I_ResponseMessage";
25
- export * from "./I_ScrapperLog";
26
- export * from "./I_CampaignGoal";
27
- export * from "./I_CampaignCollaborationMethod";
28
- export * from "./I_TikTokReport";
29
- export * from "./I_Offer";
30
- export * from "./I_CampaignDeadline";
31
- export * from "./I_Agency";
1
+ export * from './I_TikTokUser';
2
+ export * from './I_Queue';
3
+ export * from './I_Campaign';
4
+ export * from './I_Influencer';
5
+ export * from './I_InfluencersLists';
6
+ export * from './I_InfluencersCategories';
7
+ export * from './I_InfluencersProperties';
8
+ export * from './I_Item';
9
+ export * from './I_List';
10
+ export * from './I_PaginatedList';
11
+ export * from './I_Pagination';
12
+ export * from './I_TIkTokRaports';
13
+ export * from './I_Tag';
14
+ export * from './I_TikTokPost';
15
+ export * from './I_User';
16
+ export * from './I_UserTikTokStatistic';
17
+ export * from './I_ScrappingAccount';
18
+ export * from './global';
19
+ export * from './I_Scrappers';
20
+ export * from './I_ScrappingServiceMessages';
21
+ export * from './I_ScrappingMachine';
22
+ export * from './I_ScrappingMachineProcess';
23
+ export * from './T_FetchStatus';
24
+ export * from './I_ResponseMessage';
25
+ export * from './I_ScrapperLog';
26
+ export * from './I_CampaignGoal';
27
+ export * from './I_CampaignCollaborationMethod';
28
+ export * from './I_TikTokReport';
29
+ export * from './I_Offer';
30
+ export * from './I_CampaignDeadline';
31
+ export * from './I_Agency';
32
+ export * from './I_Media';
@@ -45,3 +45,4 @@ __exportStar(require("./I_TikTokReport"), exports);
45
45
  __exportStar(require("./I_Offer"), exports);
46
46
  __exportStar(require("./I_CampaignDeadline"), exports);
47
47
  __exportStar(require("./I_Agency"), exports);
48
+ __exportStar(require("./I_Media"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ad2app-lib",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -0,0 +1,6 @@
1
+ export enum I_MediaStatus {
2
+ UPLOADED = 'uploaded',
3
+ ADJUSTMENT_REQUIRED = 'adjustmentRequired',
4
+ REJECTED = 'rejected',
5
+ ACCEPTED = 'accepted',
6
+ }
@@ -1,7 +1,7 @@
1
- import { IsOptional } from "class-validator";
2
- import { I_Agency } from "./I_Agency";
3
- import { I_Campaign } from "./I_Campaign";
4
- import { I_Influencer } from "./I_Influencer";
1
+ import { IsOptional } from 'class-validator';
2
+ import { I_Agency } from './I_Agency';
3
+ import { I_Campaign } from './I_Campaign';
4
+ import { I_Influencer } from './I_Influencer';
5
5
 
6
6
  export class I_Offer {
7
7
  id?: string;
@@ -22,23 +22,23 @@ export class I_Offer {
22
22
  }
23
23
 
24
24
  export type OfferActions =
25
- | "create"
26
- | "delete"
27
- | "confirm"
28
- | "reject"
29
- | "negotiate"
30
- | "accept";
25
+ | 'create'
26
+ | 'delete'
27
+ | 'confirm'
28
+ | 'reject'
29
+ | 'negotiate'
30
+ | 'accept';
31
31
 
32
32
  export enum I_OfferStatus {
33
- DRAFT = "draft",
34
- SENT = "sent",
35
- DELETED = "deleted",
36
- ACCEPTED = "accepted",
37
- REJECTED = "rejected",
38
- INFLUENCER_NEGOTIATED = "influencerNegotiated",
39
- AGENCY_NEGOTIATED = "agencyNegotiated",
40
- CONFIRMED = "confirmed",
41
- ALTERNATIVE_SUGGESTED = "alternativeSuggested",
33
+ DRAFT = 'draft',
34
+ SENT = 'sent',
35
+ DELETED = 'deleted',
36
+ ACCEPTED = 'accepted',
37
+ REJECTED = 'rejected',
38
+ INFLUENCER_NEGOTIATED = 'influencerNegotiated',
39
+ AGENCY_NEGOTIATED = 'agencyNegotiated',
40
+ CONFIRMED = 'confirmed',
41
+ ALTERNATIVE_SUGGESTED = 'alternativeSuggested',
42
42
  }
43
43
 
44
44
  export declare class I_OfferGetDTO {
@@ -49,9 +49,6 @@ export declare class I_OfferGetDTO {
49
49
  export class I_GetOffersDTO {
50
50
  @IsOptional()
51
51
  campaignId?: string;
52
-
53
- @IsOptional()
54
- influencerId?: string;
55
52
  }
56
53
 
57
54
  export declare class I_OfferRemoveDTO {
@@ -66,16 +63,21 @@ export declare class I_OfferEditDTO {
66
63
 
67
64
  export class I_SendOfferDTO {
68
65
  price: number;
69
- offerId: I_Offer["id"];
66
+ offerId: I_Offer['id'];
70
67
  constructor(data?: Partial<I_SendOfferDTO>) {
71
68
  this.price = data?.price ?? null;
72
69
  this.offerId = data?.offerId ?? null;
73
70
  }
74
71
  }
75
72
 
73
+ export class I_NegotiateOfferDTO {
74
+ price: number;
75
+ offerId: I_Offer['id'];
76
+ }
77
+
76
78
  export class I_CreateDraftOfferDTO {
77
- influencerId: I_Influencer["id"];
78
- campaignId: I_Campaign["id"];
79
+ influencerId: I_Influencer['id'];
80
+ campaignId: I_Campaign['id'];
79
81
 
80
82
  constructor(data: I_CreateDraftOfferDTO) {
81
83
  this.influencerId = data.influencerId;
@@ -84,21 +86,21 @@ export class I_CreateDraftOfferDTO {
84
86
  }
85
87
 
86
88
  export class I_RejectOfferDTO {
87
- offerId: I_Offer["id"];
89
+ offerId: I_Offer['id'];
88
90
  constructor(data?: Partial<I_RejectOfferDTO>) {
89
91
  this.offerId = data?.offerId ?? null;
90
92
  }
91
93
  }
92
94
 
93
95
  export class I_AcceptOfferDTO {
94
- offerId: I_Offer["id"];
96
+ offerId: I_Offer['id'];
95
97
  constructor(data?: Partial<I_AcceptOfferDTO>) {
96
98
  this.offerId = data?.offerId ?? null;
97
99
  }
98
100
  }
99
101
 
100
102
  export class I_ConfirmOfferDTO {
101
- offerId: I_Offer["id"];
103
+ offerId: I_Offer['id'];
102
104
  constructor(data?: Partial<I_ConfirmOfferDTO>) {
103
105
  this.offerId = data?.offerId ?? null;
104
106
  }
@@ -1,31 +1,32 @@
1
- export * from "./I_TikTokUser";
2
- export * from "./I_Queue";
3
- export * from "./I_Campaign";
4
- export * from "./I_Influencer";
5
- export * from "./I_InfluencersLists";
6
- export * from "./I_InfluencersCategories";
7
- export * from "./I_InfluencersProperties";
8
- export * from "./I_Item";
9
- export * from "./I_List";
10
- export * from "./I_PaginatedList";
11
- export * from "./I_Pagination";
12
- export * from "./I_TIkTokRaports";
13
- export * from "./I_Tag";
14
- export * from "./I_TikTokPost";
15
- export * from "./I_User";
16
- export * from "./I_UserTikTokStatistic";
17
- export * from "./I_ScrappingAccount";
18
- export * from "./global";
19
- export * from "./I_Scrappers";
20
- export * from "./I_ScrappingServiceMessages";
21
- export * from "./I_ScrappingMachine";
22
- export * from "./I_ScrappingMachineProcess";
23
- export * from "./T_FetchStatus";
24
- export * from "./I_ResponseMessage";
25
- export * from "./I_ScrapperLog";
26
- export * from "./I_CampaignGoal";
27
- export * from "./I_CampaignCollaborationMethod";
28
- export * from "./I_TikTokReport";
29
- export * from "./I_Offer";
30
- export * from "./I_CampaignDeadline";
31
- export * from "./I_Agency";
1
+ export * from './I_TikTokUser';
2
+ export * from './I_Queue';
3
+ export * from './I_Campaign';
4
+ export * from './I_Influencer';
5
+ export * from './I_InfluencersLists';
6
+ export * from './I_InfluencersCategories';
7
+ export * from './I_InfluencersProperties';
8
+ export * from './I_Item';
9
+ export * from './I_List';
10
+ export * from './I_PaginatedList';
11
+ export * from './I_Pagination';
12
+ export * from './I_TIkTokRaports';
13
+ export * from './I_Tag';
14
+ export * from './I_TikTokPost';
15
+ export * from './I_User';
16
+ export * from './I_UserTikTokStatistic';
17
+ export * from './I_ScrappingAccount';
18
+ export * from './global';
19
+ export * from './I_Scrappers';
20
+ export * from './I_ScrappingServiceMessages';
21
+ export * from './I_ScrappingMachine';
22
+ export * from './I_ScrappingMachineProcess';
23
+ export * from './T_FetchStatus';
24
+ export * from './I_ResponseMessage';
25
+ export * from './I_ScrapperLog';
26
+ export * from './I_CampaignGoal';
27
+ export * from './I_CampaignCollaborationMethod';
28
+ export * from './I_TikTokReport';
29
+ export * from './I_Offer';
30
+ export * from './I_CampaignDeadline';
31
+ export * from './I_Agency';
32
+ export * from './I_Media';