@retter/sdk 0.2.24 → 0.2.25

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.
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { AxiosResponse } from 'axios';
3
+ import { JSONSchema7 } from 'json-schema';
3
4
  import { Unsubscribe } from '@firebase/util';
4
5
  export interface RetterClientConfig {
5
6
  projectId: string;
@@ -109,11 +110,17 @@ export interface RetterCloudObjectItem extends RetterCloudObject {
109
110
  unsubscribers: Unsubscribe[];
110
111
  }
111
112
  export declare type RetterCallResponse<T> = Omit<AxiosResponse<T>, 'config' | 'request'>;
113
+ export interface RetterCloudObjectModel {
114
+ name: string;
115
+ schema: JSONSchema7;
116
+ }
112
117
  export interface RetterCloudObjectMethod {
113
118
  tag?: string;
114
119
  name: string;
115
120
  sync?: boolean;
116
121
  readonly?: boolean;
122
+ inputModel?: RetterCloudObjectModel;
123
+ outputModel?: RetterCloudObjectModel;
117
124
  }
118
125
  export interface RetterCloudObjectState {
119
126
  role: {
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAaA,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,qDAAO,CAAA;IACP,6DAAW,CAAA;AACf,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAOD,UAAU;AAEV,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,kDAAiC,CAAA;IACjC,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;AACjC,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAmBD,OAAO;AAEP,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,2CAAuB,CAAA;IACvB,yDAAqC,CAAA;IACrC,6CAAyB,CAAA;IACzB,+CAA2B,CAAA;AAC/B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAcA,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,qDAAO,CAAA;IACP,6DAAW,CAAA;AACf,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAOD,UAAU;AAEV,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,kDAAiC,CAAA;IACjC,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;AACjC,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAmBD,OAAO;AAEP,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,2CAAuB,CAAA;IACvB,yDAAqC,CAAA;IACrC,6CAAyB,CAAA;IACzB,+CAA2B,CAAA;AAC/B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retter/sdk",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "Client sdk for retter.io",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  "license": "ISC",
20
20
  "dependencies": {
21
21
  "@react-native-async-storage/async-storage": "^1.15.14",
22
+ "@types/json-schema": "^7.0.9",
22
23
  "@types/node": "^17.0.8",
23
24
  "axios": "^0.24.0",
24
25
  "firebase": "^9.6.2",