lz-api-client
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -1,2 +0,2 @@ | ||
import type { Journey, CampaignStatus, CreateCampaignBody, SearchFieldsBody, UpdateCampaignBody } from 'lz-schema'; | ||
import type { CampaignStatus, CreateCampaignBody, SearchFieldsBody, UpdateCampaignBody } from 'lz-schema'; | ||
import type { Client } from '../Client'; | ||
@@ -35,2 +35,3 @@ export declare class CampaignService { | ||
} | null; | ||
journeyIds: string[]; | ||
workspaceId: string; | ||
@@ -70,2 +71,3 @@ to?: number | undefined; | ||
} | null; | ||
journeyIds: string[]; | ||
workspaceId: string; | ||
@@ -99,10 +101,2 @@ to?: number | undefined; | ||
}): Promise<unknown>; | ||
/** | ||
* Get all journeys of a specific campaign | ||
* @throws { ClientError } | ||
* @throws { ServerError } | ||
*/ | ||
getJourneys({ campaignId }: { | ||
campaignId: string; | ||
}): Promise<Journey[]>; | ||
} |
@@ -61,12 +61,4 @@ "use strict"; | ||
} | ||
/** | ||
* Get all journeys of a specific campaign | ||
* @throws { ClientError } | ||
* @throws { ServerError } | ||
*/ | ||
getJourneys({ campaignId }) { | ||
return this.client.get(`/campaigns/${campaignId}/journeys`, {}); | ||
} | ||
} | ||
exports.CampaignService = CampaignService; | ||
//# sourceMappingURL=CampaignService.js.map |
@@ -1,2 +0,2 @@ | ||
import type { Layer, SearchFieldsBody } from 'lz-schema'; | ||
import type { SearchFieldsBody } from 'lz-schema'; | ||
import type { Client } from '../Client'; | ||
@@ -13,3 +13,25 @@ export declare class LayerService { | ||
id: string; | ||
}): Promise<Layer>; | ||
}): Promise<{ | ||
id: string; | ||
name: string; | ||
createdAt: number; | ||
updatedAt: number; | ||
workspaceId: string; | ||
srcUrl: string; | ||
horizontalSize: number; | ||
verticalSize: number; | ||
sizeUnit: import("lz-schema").LayerSizeUnit; | ||
borderRadius: number; | ||
borderRadiusUnit: import("lz-schema").LayerSizeUnit; | ||
overlay: boolean; | ||
overlayTransparency: number; | ||
overlayColor: string; | ||
hideCloseBtn: boolean; | ||
placement: import("lz-schema").Placement; | ||
animationIn: import("lz-schema").LayerAnimation; | ||
animationOut: import("lz-schema").LayerAnimation; | ||
createdById: string; | ||
updatedById: string; | ||
bgColor?: string | undefined; | ||
}>; | ||
/** | ||
@@ -21,3 +43,25 @@ * Search layers by name. | ||
*/ | ||
search(params: SearchFieldsBody): Promise<Layer[]>; | ||
search(params: SearchFieldsBody): Promise<{ | ||
id: string; | ||
name: string; | ||
createdAt: number; | ||
updatedAt: number; | ||
workspaceId: string; | ||
srcUrl: string; | ||
horizontalSize: number; | ||
verticalSize: number; | ||
sizeUnit: import("lz-schema").LayerSizeUnit; | ||
borderRadius: number; | ||
borderRadiusUnit: import("lz-schema").LayerSizeUnit; | ||
overlay: boolean; | ||
overlayTransparency: number; | ||
overlayColor: string; | ||
hideCloseBtn: boolean; | ||
placement: import("lz-schema").Placement; | ||
animationIn: import("lz-schema").LayerAnimation; | ||
animationOut: import("lz-schema").LayerAnimation; | ||
createdById: string; | ||
updatedById: string; | ||
bgColor?: string | undefined; | ||
}[]>; | ||
} |
{ | ||
"name": "lz-api-client", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "client sdk for layerZ api", | ||
@@ -34,4 +34,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"lz-schema": "^0.10.6" | ||
"lz-schema": "^0.11.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
69946
1282
+ Addedlz-schema@0.11.1(transitive)
- Removedlz-schema@0.10.6(transitive)
Updatedlz-schema@^0.11.0