@parra/parra-js-sdk 0.3.426 → 0.3.427

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.
@@ -669,7 +669,7 @@ export interface Link {
669
669
  short_link: string;
670
670
  title?: string | null;
671
671
  description?: string | null;
672
- utm_parameters?: LinkUtmParameters | null;
672
+ utm?: LinkUtmParameters | null;
673
673
  proxy: boolean;
674
674
  rewrite: boolean;
675
675
  }
@@ -3104,11 +3104,22 @@ export interface SubdomainAvailabilityResponse {
3104
3104
  valid: boolean;
3105
3105
  message?: string | null;
3106
3106
  }
3107
+ export interface LinkCollectionResponse {
3108
+ page: number;
3109
+ page_count: number;
3110
+ page_size: number;
3111
+ total_count: number;
3112
+ data: Array<Link>;
3113
+ }
3107
3114
  export interface CreateLinkRequestBody {
3108
3115
  domain: string;
3109
3116
  key: string;
3110
3117
  url: string;
3111
- utm_parameters?: LinkUtmParameters | null;
3118
+ utm_source?: string | null;
3119
+ utm_medium?: string | null;
3120
+ utm_campaign?: string | null;
3121
+ utm_term?: string | null;
3122
+ utm_content?: string | null;
3112
3123
  proxy?: boolean;
3113
3124
  rewrite?: boolean;
3114
3125
  title?: string;
@@ -4837,6 +4848,15 @@ declare class ParraAPI {
4837
4848
  deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
4838
4849
  checkExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
4839
4850
  checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
4851
+ paginateLinksForTenantById: (tenant_id: string, query?: {
4852
+ $select?: string;
4853
+ $top?: number;
4854
+ $skip?: number;
4855
+ $orderby?: string;
4856
+ $filter?: string;
4857
+ $expand?: string;
4858
+ $search?: string;
4859
+ }, options?: Options) => Promise<LinkCollectionResponse>;
4840
4860
  createLinkForTenantById: (tenant_id: string, body: CreateLinkRequestBody, options?: Options) => Promise<Link>;
4841
4861
  updateLinkByIdForTenantById: (tenant_id: string, link_id: string, body?: UpdateLinkRequestBody, options?: Options) => Promise<Link>;
4842
4862
  deleteLinkByIdForTenantById: (tenant_id: string, link_id: string, options?: Options) => Promise<Response>;
package/dist/ParraAPI.js CHANGED
@@ -1630,6 +1630,10 @@ var ParraAPI = /** @class */ (function () {
1630
1630
  "content-type": "application/json",
1631
1631
  } }, options));
1632
1632
  };
1633
+ this.paginateLinksForTenantById = function (tenant_id, query, options) {
1634
+ if (options === void 0) { options = {}; }
1635
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), __assign({ method: "get", query: query }, options));
1636
+ };
1633
1637
  this.createLinkForTenantById = function (tenant_id, body, options) {
1634
1638
  if (options === void 0) { options = {}; }
1635
1639
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), __assign({ method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.426",
3
+ "version": "0.3.427",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",