@merkl/api 1.7.2 → 1.7.4

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.
@@ -2,6 +2,7 @@ import { treaty } from "@elysiajs/eden";
2
2
  import type { CampaignType } from "@package/resources/enums";
3
3
  import type { App } from "../index";
4
4
  import type { CampaignWithParams } from "../modules/v4/campaign/campaign.model";
5
+ import type { OpportunityFormatter } from "../modules/v4/opportunity/opportunity.formatter";
5
6
  import type { OpportunityResourceModel } from "../modules/v4/opportunity/opportunity.model";
6
7
  export type { InteractionTarget, UserTransaction } from "../modules/v4/interaction/interaction.model";
7
8
  export type { OpportunityDeleteOverrideModel, OpportunityOverrideModel, } from "../modules/v4/opportunity/opportunity.model";
@@ -17143,6 +17144,9 @@ export type FromPromise<R extends (...args: any) => Promise<{
17143
17144
  type RouteType<V extends ApiModuleVersion, R extends ApiModuleRoute<V>> = Awaited<ReturnType<"get" extends keyof Api[V][R] ? (Api[V][R]["get"] extends (...args: any) => any ? Api[V][R]["get"] : never) : never>>;
17144
17145
  export type Opportunity = OpportunityResourceModel;
17145
17146
  export type Campaign = FromPromise<Api["v4"]["campaigns"]["get"]>;
17147
+ export type CampaignWithOpportunity = Campaign & {
17148
+ Opportunity: ReturnType<typeof OpportunityFormatter.formatWithoutRecords>;
17149
+ };
17146
17150
  export type CampaignParams<C extends CampaignType> = CampaignWithParams<C>["params"];
17147
17151
  export type Carousel = FromPromise<Api["v4"]["carousels"]["get"]>;
17148
17152
  export type Program = FromPromise<Api["v4"]["programs"]["get"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../apps/api/src/eden/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAaxC,MAAM,CAAC,MAAM,QAAQ,GAAuB,MAAW,CAAC;AAGxD,sCAAsC;AAEtC,MAAM,IAAI,GAAG,MAAM,CAAM,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../apps/api/src/eden/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAcxC,MAAM,CAAC,MAAM,QAAQ,GAAuB,MAAW,CAAC;AAGxD,sCAAsC;AAEtC,MAAM,IAAI,GAAG,MAAM,CAAM,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "version": "1.7.2"
35
+ "version": "1.7.4"
36
36
  }