@parra/parra-js-sdk 0.3.92 → 0.3.93

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.
@@ -55,6 +55,16 @@ export interface TenantUserCollectionStub {
55
55
  name?: string | null;
56
56
  avatar?: ImageAssetStub;
57
57
  identity: string;
58
+ email?: string | null;
59
+ email_verified?: boolean | null;
60
+ phone_number?: string | null;
61
+ phone_number_verified?: boolean;
62
+ first_name?: string | null;
63
+ last_name?: string | null;
64
+ locale?: string | null;
65
+ signed_up_at?: string | null;
66
+ last_updated_at?: string | null;
67
+ last_seen_at?: string | null;
58
68
  }
59
69
  export interface TenantUser {
60
70
  id: string;
@@ -65,6 +75,16 @@ export interface TenantUser {
65
75
  name?: string | null;
66
76
  avatar?: ImageAssetStub;
67
77
  identity: string;
78
+ email?: string | null;
79
+ email_verified?: boolean | null;
80
+ phone_number?: string | null;
81
+ phone_number_verified?: boolean;
82
+ first_name?: string | null;
83
+ last_name?: string | null;
84
+ locale?: string | null;
85
+ signed_up_at?: string | null;
86
+ last_updated_at?: string | null;
87
+ last_seen_at?: string | null;
68
88
  properties: object;
69
89
  }
70
90
  export interface UserInfoResponse {
@@ -1083,6 +1103,61 @@ export interface UserTicketCollectionResponse {
1083
1103
  export interface AppRoadmapConfiguration {
1084
1104
  form: FeedbackFormDataStub;
1085
1105
  }
1106
+ export interface AppReleaseStub {
1107
+ id: string;
1108
+ created_at: string;
1109
+ updated_at: string;
1110
+ deleted_at?: string | null;
1111
+ name: string;
1112
+ version: string;
1113
+ description?: string | null;
1114
+ type: ReleaseType;
1115
+ tenant_id: string;
1116
+ release_number: number;
1117
+ status: ReleaseStatus;
1118
+ }
1119
+ export interface AppReleaseCollectionResponse {
1120
+ page: number;
1121
+ page_count: number;
1122
+ page_size: number;
1123
+ total_count: number;
1124
+ data: Array<AppReleaseStub>;
1125
+ }
1126
+ export interface AppReleaseItemStub {
1127
+ id: string;
1128
+ created_at: string;
1129
+ updated_at: string;
1130
+ deleted_at?: string | null;
1131
+ release_id: string;
1132
+ ticket_id: string;
1133
+ }
1134
+ export interface AppReleaseItem {
1135
+ id: string;
1136
+ created_at: string;
1137
+ updated_at: string;
1138
+ deleted_at?: string | null;
1139
+ release_id: string;
1140
+ ticket_id: string;
1141
+ ticket: Ticket;
1142
+ }
1143
+ export interface AppReleaseSection {
1144
+ title: string;
1145
+ items: Array<AppReleaseItem>;
1146
+ }
1147
+ export interface AppRelease {
1148
+ id: string;
1149
+ created_at: string;
1150
+ updated_at: string;
1151
+ deleted_at?: string | null;
1152
+ name: string;
1153
+ version: string;
1154
+ description?: string | null;
1155
+ type: ReleaseType;
1156
+ tenant_id: string;
1157
+ release_number: number;
1158
+ status: ReleaseStatus;
1159
+ sections: Array<AppReleaseSection>;
1160
+ }
1086
1161
  export interface UpdateAppVersionRequestBody {
1087
1162
  version_string: string;
1088
1163
  description?: string | null;
@@ -1739,6 +1814,11 @@ declare class ParraAPI {
1739
1814
  filter?: string;
1740
1815
  }) => Promise<UserTicketCollectionResponse>;
1741
1816
  getRoadmapForTenantApplication: (tenant_id: string, application_id: string) => Promise<AppRoadmapConfiguration>;
1817
+ paginateReleasesForTenantApplication: (tenant_id: string, application_id: string, query?: {
1818
+ limit?: number;
1819
+ offset?: number;
1820
+ }) => Promise<AppReleaseCollectionResponse>;
1821
+ getReleaseForTenantApplication: (tenant_id: string, application_id: string, release_id: string) => Promise<AppRelease>;
1742
1822
  createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody) => Promise<AppVersion>;
1743
1823
  listVersionsForTenantApplication: (tenant_id: string, application_id: string) => Promise<Array<AppVersion>>;
1744
1824
  getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
package/dist/ParraAPI.js CHANGED
@@ -708,6 +708,17 @@ var ParraAPI = /** @class */ (function () {
708
708
  method: "get",
709
709
  });
710
710
  };
711
+ this.paginateReleasesForTenantApplication = function (tenant_id, application_id, query) {
712
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), {
713
+ method: "get",
714
+ query: query,
715
+ });
716
+ };
717
+ this.getReleaseForTenantApplication = function (tenant_id, application_id, release_id) {
718
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), {
719
+ method: "get",
720
+ });
721
+ };
711
722
  this.createVersionForTenantApplication = function (tenant_id, application_id, body) {
712
723
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
713
724
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.92",
3
+ "version": "0.3.93",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",