glitch-javascript-sdk 0.7.2 → 0.7.3

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/dist/index.d.ts CHANGED
@@ -2669,6 +2669,20 @@ declare class Glitch {
2669
2669
  IN_PERSON: 2;
2670
2670
  HYBRID: 3;
2671
2671
  }>;
2672
+ CampaignObjective: {
2673
+ BrandAwareness: number;
2674
+ AudienceEngagement: number;
2675
+ LeadGeneration: number;
2676
+ SalesConversion: number;
2677
+ BrandIdentityReputation: number;
2678
+ CustomerLoyaltyRetention: number;
2679
+ ContentAmplificationDiversity: number;
2680
+ MarketFeedbackInsight: number;
2681
+ EducatingAudience: number;
2682
+ CommunityBuilding: number;
2683
+ DrivingWebTraffic: number;
2684
+ SEOBenefits: number;
2685
+ };
2672
2686
  CompetitionTypes: Readonly<{
2673
2687
  SINGLE_ELIMINATION: 1;
2674
2688
  DOUBLE_ELIMINATION: 2;
@@ -2689,6 +2703,18 @@ declare class Glitch {
2689
2703
  REMOVED: 5;
2690
2704
  DELETED: 6;
2691
2705
  }>;
2706
+ InfluencerCampaignType: {
2707
+ SponsoredContent: number;
2708
+ AffiliateMarketing: number;
2709
+ ProductGifting: number;
2710
+ BrandAmbassador: number;
2711
+ SocialMediaTakeover: number;
2712
+ ContestsGiveaways: number;
2713
+ EventCoverage: number;
2714
+ CoCreationOfProducts: number;
2715
+ InfluencerWhitelisting: number;
2716
+ SocialIssuesCauseCampaigns: number;
2717
+ };
2692
2718
  Modes: typeof Modes;
2693
2719
  PostTypes: Readonly<{
2694
2720
  TEXT: "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -95,7 +95,7 @@ class Campaigns {
95
95
  */
96
96
  public static createCampaignLink<T>(campaign_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
97
97
 
98
- return Requests.processRoute(CampaignsRoute.routes.createCampaign, data, { campaign_id: campaign_id }, params);
98
+ return Requests.processRoute(CampaignsRoute.routes.createCampaignLink, data, { campaign_id: campaign_id }, params);
99
99
  }
100
100
 
101
101
  /**
@@ -110,7 +110,7 @@ class Campaigns {
110
110
  */
111
111
  public static updateCampaignLink<T>(campaign_id: string, link_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
112
112
 
113
- return Requests.processRoute(CampaignsRoute.routes.updateCampaign, data, { campaign_id: campaign_id, link_id: link_id }, params);
113
+ return Requests.processRoute(CampaignsRoute.routes.updateCampaignLink, data, { campaign_id: campaign_id, link_id: link_id }, params);
114
114
  }
115
115
 
116
116
  /**
@@ -0,0 +1,16 @@
1
+ const CampaignObjective = {
2
+ BrandAwareness : 1, // Increasing visibility and recognition of the brand.
3
+ AudienceEngagement : 2, // Boosting interactions like likes, comments, and shares.
4
+ LeadGeneration : 3, // Collecting potential customer information for nurturing leads.
5
+ SalesConversion : 4, // Directly driving sales of products or services.
6
+ BrandIdentityReputation : 5, // Shaping brand perception and reputation.
7
+ CustomerLoyaltyRetention : 6, // Encouraging repeat business and customer loyalty.
8
+ ContentAmplificationDiversity :7, // Enriching content strategy with influencer content.
9
+ MarketFeedbackInsight : 8, // Gathering product feedback and market insights.
10
+ EducatingAudience : 9, // Informing about product features and benefits.
11
+ CommunityBuilding : 10, // Creating or enhancing a community around the brand.
12
+ DrivingWebTraffic : 11, // Increasing visitors to the brand’s website or landing pages.
13
+ SEOBenefits : 12 // Enhancing search engine optimization through online presence.
14
+ }
15
+
16
+ export default CampaignObjective;
@@ -0,0 +1,14 @@
1
+ const InfluencerCampaignType = {
2
+ SponsoredContent : 1, // Sponsored Content Campaigns: Brands pay influencers to create content featuring their products or services.
3
+ AffiliateMarketing : 2, // Affiliate Marketing: Influencers promote products with a unique link or code, earning a commission per sale.
4
+ ProductGifting : 3, // Product Gifting: Brands send free products to influencers, hoping for them to be featured in their content.
5
+ BrandAmbassador : 4, // Brand Ambassador Programs: Influencers have a long-term relationship with a brand, consistently promoting its products.
6
+ SocialMediaTakeover : 5, // Social Media Takeovers: Influencers take over a brand's social media account for a period, creating and sharing content.
7
+ ContestsGiveaways : 6, // Contests and Giveaways: Collaborations for hosting contests or giveaways, engaging audiences of both parties.
8
+ EventCoverage : 7, // Event Coverage: Influencers are invited to events to cover them on their platforms.
9
+ CoCreationOfProducts : 8, // Co-Creation of Products: Collaboration between brands and influencers to create a product.
10
+ InfluencerWhitelisting : 9, // Influencer Whitelisting: Brands gain access to an influencer's account to run paid ads.
11
+ SocialIssuesCauseCampaigns : 10 // Social Issues and Cause Campaigns: Promoting social causes or charitable organizations.
12
+ }
13
+
14
+ export default InfluencerCampaignType;
package/src/index.ts CHANGED
@@ -32,8 +32,10 @@ import LabelManager from "./util/LabelManager";
32
32
 
33
33
  import { AcceptanceStatus } from "./constants/AcceptanceStatus";
34
34
  import AddressLocationType from "./constants/AddressLocationType";
35
+ import CampaignObjective from "./constants/CampaignObjective";
35
36
  import { ContentStatus } from "./constants/ContentStatus";
36
37
  import { CompetitionTypes } from "./constants/CompetitionTypes";
38
+ import InfluencerCampaignType from "./constants/InfluencerCampaignType";
37
39
  import { Modes } from "./constants/Modes";
38
40
  import { PostTypes } from "./constants/PostTypes";
39
41
  import { Roles } from "./constants/Roles";
@@ -83,8 +85,10 @@ class Glitch {
83
85
  public static constants = {
84
86
  AcceptanceStatus : AcceptanceStatus,
85
87
  AddressLocationType : AddressLocationType,
88
+ CampaignObjective :CampaignObjective,
86
89
  CompetitionTypes : CompetitionTypes,
87
90
  ContentStatus : ContentStatus,
91
+ InfluencerCampaignType : InfluencerCampaignType,
88
92
  Modes : Modes,
89
93
  PostTypes : PostTypes,
90
94
  Roles: Roles,