@parra/parra-js-sdk 0.2.63 → 0.2.67

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.
@@ -195,7 +195,7 @@ export interface TenantInvitation {
195
195
  member_id?: string | null;
196
196
  name: string;
197
197
  email: string;
198
- code?: string;
198
+ code: string;
199
199
  expires_at?: string;
200
200
  accepted_at?: string | null;
201
201
  }
@@ -258,12 +258,12 @@ export declare enum QuestionKind {
258
258
  }
259
259
  export interface MutableChoiceQuestionOption {
260
260
  title: string | null;
261
- value?: string | null;
261
+ value: string | null;
262
262
  is_other?: boolean | null;
263
263
  }
264
264
  export interface ChoiceQuestionOption {
265
265
  title: string | null;
266
- value?: string | null;
266
+ value: string | null;
267
267
  is_other?: boolean | null;
268
268
  id: string | null;
269
269
  }
@@ -340,7 +340,7 @@ export interface ChoiceQuestionMetricsBody {
340
340
  }
341
341
  export interface ChoiceQuestionMetricsOption {
342
342
  title: string | null;
343
- value?: string | null;
343
+ value: string | null;
344
344
  is_other?: boolean | null;
345
345
  id: string | null;
346
346
  answer_count: number;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import 'isomorphic-fetch';
2
1
  import { AuthorizationProvider, HTTPInterceptor } from '@parra/http-client';
2
+ import 'isomorphic-fetch';
3
3
  import { default as ParraAPI } from './ParraAPI';
4
+ export { HTTPRequestBody, HTTPUrlComponent, HTTPResponse, HTTPHeaders, HTTPQuery, HTTPMethod, HTTPLogger, HTTPOptions, HTTPRequest, HTTPRequestWithoutMethod, HTTPClient, HTTPInterceptor, Authorization, AuthFunctionProvider, AuthPromiseProvider, AuthorizationProvider, AuthInterceptor } from '@parra/http-client';
4
5
  export * from './ParraAPI';
5
- export * from '@parra/http-client';
6
6
  export { ParraAPI };
7
7
  export declare type ParraAPIType = typeof ParraAPI;
8
8
  export interface ParraAPIOptions {
package/dist/index.js CHANGED
@@ -17,13 +17,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.ParraAPI = void 0;
21
- require("isomorphic-fetch");
20
+ exports.ParraAPI = exports.AuthInterceptor = exports.HTTPClient = void 0;
22
21
  var http_client_1 = require("@parra/http-client");
22
+ require("isomorphic-fetch");
23
23
  var ParraAPI_1 = __importDefault(require("./ParraAPI"));
24
24
  Object.defineProperty(exports, "ParraAPI", { enumerable: true, get: function () { return ParraAPI_1.default; } });
25
+ var http_client_2 = require("@parra/http-client");
26
+ Object.defineProperty(exports, "HTTPClient", { enumerable: true, get: function () { return http_client_2.HTTPClient; } });
27
+ Object.defineProperty(exports, "AuthInterceptor", { enumerable: true, get: function () { return http_client_2.AuthInterceptor; } });
25
28
  __exportStar(require("./ParraAPI"), exports);
26
- __exportStar(require("@parra/http-client"), exports);
27
29
  function default_1(options) {
28
30
  if (options === void 0) { options = {}; }
29
31
  var baseUrl = options.baseUrl || 'https://api.parra.io';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.63",
3
+ "version": "0.2.67",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "typescript": "^4.6.4"
23
23
  },
24
24
  "dependencies": {
25
- "@parra/http-client": "0.2.5",
25
+ "@parra/http-client": "0.2.6",
26
26
  "isomorphic-fetch": "^3.0.0"
27
27
  }
28
28
  }