@parra/parra-js-sdk 0.3.449 → 0.3.450

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.
Files changed (2) hide show
  1. package/dist/ParraAPI.d.ts +28 -14
  2. package/package.json +1 -1
@@ -3187,6 +3187,33 @@ export interface LinkCollectionResponse {
3187
3187
  data: Array<Link>;
3188
3188
  }
3189
3189
  export interface CreateLinkRequestBody {
3190
+ domain: string;
3191
+ key: string;
3192
+ url: string;
3193
+ utm_source?: string | null;
3194
+ utm_medium?: string | null;
3195
+ utm_campaign?: string | null;
3196
+ utm_term?: string | null;
3197
+ utm_content?: string | null;
3198
+ proxy?: boolean;
3199
+ rewrite?: boolean;
3200
+ title?: string;
3201
+ description?: string;
3202
+ }
3203
+ export interface UpdateLinkRequestBody {
3204
+ url?: string;
3205
+ short_link?: string;
3206
+ title?: string;
3207
+ description?: string;
3208
+ utm_source?: string | null;
3209
+ utm_medium?: string | null;
3210
+ utm_campaign?: string | null;
3211
+ utm_term?: string | null;
3212
+ utm_content?: string | null;
3213
+ proxy?: boolean;
3214
+ rewrite?: boolean;
3215
+ }
3216
+ export interface CreateClickRequestBody {
3190
3217
  url: string;
3191
3218
  continent: string;
3192
3219
  country: string;
@@ -3211,19 +3238,6 @@ export interface CreateLinkRequestBody {
3211
3238
  ip: string;
3212
3239
  qr: boolean;
3213
3240
  }
3214
- export interface UpdateLinkRequestBody {
3215
- url?: string;
3216
- short_link?: string;
3217
- title?: string;
3218
- description?: string;
3219
- utm_source?: string | null;
3220
- utm_medium?: string | null;
3221
- utm_campaign?: string | null;
3222
- utm_term?: string | null;
3223
- utm_content?: string | null;
3224
- proxy?: boolean;
3225
- rewrite?: boolean;
3226
- }
3227
3241
  export interface LoginTenantUserRequestBody {
3228
3242
  anonymous_token?: string | null;
3229
3243
  }
@@ -4978,7 +4992,7 @@ declare class ParraAPI {
4978
4992
  createLinkForTenantById: (tenant_id: string, body: CreateLinkRequestBody, options?: Options) => Promise<Link>;
4979
4993
  updateLinkByIdForTenantById: (tenant_id: string, link_id: string, body?: UpdateLinkRequestBody, options?: Options) => Promise<Link>;
4980
4994
  deleteLinkByIdForTenantById: (tenant_id: string, link_id: string, options?: Options) => Promise<Response>;
4981
- recordClickForLink: (tenant_id: string, link_id: string, body: CreateLinkRequestBody, options?: Options) => Promise<Response>;
4995
+ recordClickForLink: (tenant_id: string, link_id: string, body: CreateClickRequestBody, options?: Options) => Promise<Response>;
4982
4996
  loginUserForTenant: (tenant_id: string, body?: LoginTenantUserRequestBody, options?: Options) => Promise<TenantUserInfo>;
4983
4997
  getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
4984
4998
  logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<AuthLogoutResponseBody>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.449",
3
+ "version": "0.3.450",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",