@spaciv/sdk 0.1.12 → 0.1.14
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/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/dist/apis/FilesApi.d.ts +37 -4
- package/dist/apis/FilesApi.js +69 -2
- package/dist/esm/apis/FilesApi.d.ts +37 -4
- package/dist/esm/apis/FilesApi.js +69 -2
- package/dist/esm/models/ClientMessage.d.ts +67 -0
- package/dist/esm/models/ClientMessage.js +55 -0
- package/dist/esm/models/EntityChangeActor.d.ts +61 -0
- package/dist/esm/models/EntityChangeActor.js +52 -0
- package/dist/esm/models/EntityChangedEvent.d.ts +84 -0
- package/dist/esm/models/EntityChangedEvent.js +57 -0
- package/dist/esm/models/ModelRecord.d.ts +1 -1
- package/dist/esm/models/ServerMessage.d.ts +92 -0
- package/dist/esm/models/ServerMessage.js +67 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ClientMessage.d.ts +67 -0
- package/dist/models/ClientMessage.js +63 -0
- package/dist/models/EntityChangeActor.d.ts +61 -0
- package/dist/models/EntityChangeActor.js +60 -0
- package/dist/models/EntityChangedEvent.d.ts +84 -0
- package/dist/models/EntityChangedEvent.js +65 -0
- package/dist/models/ModelRecord.d.ts +1 -1
- package/dist/models/ServerMessage.d.ts +92 -0
- package/dist/models/ServerMessage.js +75 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +113 -4
- package/src/models/ClientMessage.ts +114 -0
- package/src/models/EntityChangeActor.ts +108 -0
- package/src/models/EntityChangedEvent.ts +149 -0
- package/src/models/ModelRecord.ts +1 -1
- package/src/models/ServerMessage.ts +151 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EntityChangeActor
|
|
16
|
+
*/
|
|
17
|
+
export interface EntityChangeActor {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EntityChangeActor
|
|
23
|
+
*/
|
|
24
|
+
clientId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EntityChangeActor
|
|
29
|
+
*/
|
|
30
|
+
session: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EntityChangeActor
|
|
35
|
+
*/
|
|
36
|
+
type: EntityChangeActorTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof EntityChangeActor
|
|
41
|
+
*/
|
|
42
|
+
user: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const EntityChangeActorTypeEnum: {
|
|
48
|
+
readonly User: "user";
|
|
49
|
+
readonly System: "system";
|
|
50
|
+
readonly Anonymous: "anonymous";
|
|
51
|
+
readonly Unknown: "unknown";
|
|
52
|
+
};
|
|
53
|
+
export type EntityChangeActorTypeEnum = typeof EntityChangeActorTypeEnum[keyof typeof EntityChangeActorTypeEnum];
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the EntityChangeActor interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfEntityChangeActor(value: object): value is EntityChangeActor;
|
|
58
|
+
export declare function EntityChangeActorFromJSON(json: any): EntityChangeActor;
|
|
59
|
+
export declare function EntityChangeActorFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityChangeActor;
|
|
60
|
+
export declare function EntityChangeActorToJSON(json: any): EntityChangeActor;
|
|
61
|
+
export declare function EntityChangeActorToJSONTyped(value?: EntityChangeActor | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EntityChangeActorTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfEntityChangeActor = instanceOfEntityChangeActor;
|
|
18
|
+
exports.EntityChangeActorFromJSON = EntityChangeActorFromJSON;
|
|
19
|
+
exports.EntityChangeActorFromJSONTyped = EntityChangeActorFromJSONTyped;
|
|
20
|
+
exports.EntityChangeActorToJSON = EntityChangeActorToJSON;
|
|
21
|
+
exports.EntityChangeActorToJSONTyped = EntityChangeActorToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.EntityChangeActorTypeEnum = {
|
|
26
|
+
User: 'user',
|
|
27
|
+
System: 'system',
|
|
28
|
+
Anonymous: 'anonymous',
|
|
29
|
+
Unknown: 'unknown'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the EntityChangeActor interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfEntityChangeActor(value) {
|
|
35
|
+
if (!('session' in value) || value['session'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function EntityChangeActorFromJSON(json) {
|
|
44
|
+
return EntityChangeActorFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EntityChangeActorFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return Object.assign(Object.assign({}, json), { 'clientId': json['clientId'] == null ? undefined : json['clientId'], 'session': json['session'], 'type': json['type'], 'user': json['user'] });
|
|
51
|
+
}
|
|
52
|
+
function EntityChangeActorToJSON(json) {
|
|
53
|
+
return EntityChangeActorToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function EntityChangeActorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return Object.assign(Object.assign({}, value), { 'clientId': value['clientId'], 'session': value['session'], 'type': value['type'], 'user': value['user'] });
|
|
60
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { EntityChangeActor } from './EntityChangeActor';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EntityChangedEvent
|
|
17
|
+
*/
|
|
18
|
+
export interface EntityChangedEvent {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof EntityChangedEvent
|
|
24
|
+
*/
|
|
25
|
+
account: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {EntityChangeActor}
|
|
29
|
+
* @memberof EntityChangedEvent
|
|
30
|
+
*/
|
|
31
|
+
actor: EntityChangeActor;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof EntityChangedEvent
|
|
36
|
+
*/
|
|
37
|
+
at: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof EntityChangedEvent
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof EntityChangedEvent
|
|
48
|
+
*/
|
|
49
|
+
op: EntityChangedEventOpEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof EntityChangedEvent
|
|
54
|
+
*/
|
|
55
|
+
project?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof EntityChangedEvent
|
|
60
|
+
*/
|
|
61
|
+
type: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof EntityChangedEvent
|
|
66
|
+
*/
|
|
67
|
+
version?: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const EntityChangedEventOpEnum: {
|
|
73
|
+
readonly Upsert: "upsert";
|
|
74
|
+
readonly Delete: "delete";
|
|
75
|
+
};
|
|
76
|
+
export type EntityChangedEventOpEnum = typeof EntityChangedEventOpEnum[keyof typeof EntityChangedEventOpEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the EntityChangedEvent interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfEntityChangedEvent(value: object): value is EntityChangedEvent;
|
|
81
|
+
export declare function EntityChangedEventFromJSON(json: any): EntityChangedEvent;
|
|
82
|
+
export declare function EntityChangedEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityChangedEvent;
|
|
83
|
+
export declare function EntityChangedEventToJSON(json: any): EntityChangedEvent;
|
|
84
|
+
export declare function EntityChangedEventToJSONTyped(value?: EntityChangedEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EntityChangedEventOpEnum = void 0;
|
|
17
|
+
exports.instanceOfEntityChangedEvent = instanceOfEntityChangedEvent;
|
|
18
|
+
exports.EntityChangedEventFromJSON = EntityChangedEventFromJSON;
|
|
19
|
+
exports.EntityChangedEventFromJSONTyped = EntityChangedEventFromJSONTyped;
|
|
20
|
+
exports.EntityChangedEventToJSON = EntityChangedEventToJSON;
|
|
21
|
+
exports.EntityChangedEventToJSONTyped = EntityChangedEventToJSONTyped;
|
|
22
|
+
const EntityChangeActor_1 = require("./EntityChangeActor");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.EntityChangedEventOpEnum = {
|
|
27
|
+
Upsert: 'upsert',
|
|
28
|
+
Delete: 'delete'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the EntityChangedEvent interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfEntityChangedEvent(value) {
|
|
34
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('op' in value) || value['op'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function EntityChangedEventFromJSON(json) {
|
|
49
|
+
return EntityChangedEventFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function EntityChangedEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return Object.assign(Object.assign({}, json), { 'account': json['account'], 'actor': (0, EntityChangeActor_1.EntityChangeActorFromJSON)(json['actor']), 'at': json['at'], 'id': json['id'], 'op': json['op'], 'project': json['project'] == null ? undefined : json['project'], 'type': json['type'], 'version': json['version'] == null ? undefined : json['version'] });
|
|
56
|
+
}
|
|
57
|
+
function EntityChangedEventToJSON(json) {
|
|
58
|
+
return EntityChangedEventToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function EntityChangedEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return Object.assign(Object.assign({}, value), { 'account': value['account'], 'actor': (0, EntityChangeActor_1.EntityChangeActorToJSON)(value['actor']), 'at': value['at'], 'id': value['id'], 'op': value['op'], 'project': value['project'], 'type': value['type'], 'version': value['version'] });
|
|
65
|
+
}
|
|
@@ -28,7 +28,7 @@ export interface ModelRecord {
|
|
|
28
28
|
*/
|
|
29
29
|
id: string;
|
|
30
30
|
/**
|
|
31
|
-
* Media type detected from the file's contents
|
|
31
|
+
* Media type detected from the file's contents when they were last stored, rather than from its name or the type the client declared.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ModelRecord
|
|
34
34
|
*/
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { EntityChangedEvent } from './EntityChangedEvent';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ServerMessage
|
|
17
|
+
*/
|
|
18
|
+
export interface ServerMessage {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ServerMessage
|
|
24
|
+
*/
|
|
25
|
+
code?: ServerMessageCodeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<EntityChangedEvent>}
|
|
29
|
+
* @memberof ServerMessage
|
|
30
|
+
*/
|
|
31
|
+
events?: Array<EntityChangedEvent>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ServerMessage
|
|
36
|
+
*/
|
|
37
|
+
message?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ServerMessage
|
|
42
|
+
*/
|
|
43
|
+
topic?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ServerMessage
|
|
48
|
+
*/
|
|
49
|
+
type: ServerMessageTypeEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof ServerMessage
|
|
54
|
+
*/
|
|
55
|
+
v: ServerMessageVEnum;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const ServerMessageCodeEnum: {
|
|
61
|
+
readonly InvalidTopic: "invalid_topic";
|
|
62
|
+
readonly Forbidden: "forbidden";
|
|
63
|
+
readonly NotFound: "not_found";
|
|
64
|
+
readonly TooManySubscriptions: "too_many_subscriptions";
|
|
65
|
+
readonly Unavailable: "unavailable";
|
|
66
|
+
};
|
|
67
|
+
export type ServerMessageCodeEnum = typeof ServerMessageCodeEnum[keyof typeof ServerMessageCodeEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const ServerMessageTypeEnum: {
|
|
72
|
+
readonly Changed: "changed";
|
|
73
|
+
readonly Subscribed: "subscribed";
|
|
74
|
+
readonly Resync: "resync";
|
|
75
|
+
readonly Error: "error";
|
|
76
|
+
};
|
|
77
|
+
export type ServerMessageTypeEnum = typeof ServerMessageTypeEnum[keyof typeof ServerMessageTypeEnum];
|
|
78
|
+
/**
|
|
79
|
+
* @export
|
|
80
|
+
*/
|
|
81
|
+
export declare const ServerMessageVEnum: {
|
|
82
|
+
readonly NUMBER_1: 1;
|
|
83
|
+
};
|
|
84
|
+
export type ServerMessageVEnum = typeof ServerMessageVEnum[keyof typeof ServerMessageVEnum];
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ServerMessage interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfServerMessage(value: object): value is ServerMessage;
|
|
89
|
+
export declare function ServerMessageFromJSON(json: any): ServerMessage;
|
|
90
|
+
export declare function ServerMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerMessage;
|
|
91
|
+
export declare function ServerMessageToJSON(json: any): ServerMessage;
|
|
92
|
+
export declare function ServerMessageToJSONTyped(value?: ServerMessage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ServerMessageVEnum = exports.ServerMessageTypeEnum = exports.ServerMessageCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfServerMessage = instanceOfServerMessage;
|
|
18
|
+
exports.ServerMessageFromJSON = ServerMessageFromJSON;
|
|
19
|
+
exports.ServerMessageFromJSONTyped = ServerMessageFromJSONTyped;
|
|
20
|
+
exports.ServerMessageToJSON = ServerMessageToJSON;
|
|
21
|
+
exports.ServerMessageToJSONTyped = ServerMessageToJSONTyped;
|
|
22
|
+
const EntityChangedEvent_1 = require("./EntityChangedEvent");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ServerMessageCodeEnum = {
|
|
27
|
+
InvalidTopic: 'invalid_topic',
|
|
28
|
+
Forbidden: 'forbidden',
|
|
29
|
+
NotFound: 'not_found',
|
|
30
|
+
TooManySubscriptions: 'too_many_subscriptions',
|
|
31
|
+
Unavailable: 'unavailable'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.ServerMessageTypeEnum = {
|
|
37
|
+
Changed: 'changed',
|
|
38
|
+
Subscribed: 'subscribed',
|
|
39
|
+
Resync: 'resync',
|
|
40
|
+
Error: 'error'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.ServerMessageVEnum = {
|
|
46
|
+
NUMBER_1: 1
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ServerMessage interface.
|
|
50
|
+
*/
|
|
51
|
+
function instanceOfServerMessage(value) {
|
|
52
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('v' in value) || value['v'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function ServerMessageFromJSON(json) {
|
|
59
|
+
return ServerMessageFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ServerMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return Object.assign(Object.assign({}, json), { 'code': json['code'] == null ? undefined : json['code'], 'events': json['events'] == null ? undefined : (json['events'].map(EntityChangedEvent_1.EntityChangedEventFromJSON)), 'message': json['message'] == null ? undefined : json['message'], 'topic': json['topic'] == null ? undefined : json['topic'], 'type': json['type'], 'v': json['v'] });
|
|
66
|
+
}
|
|
67
|
+
function ServerMessageToJSON(json) {
|
|
68
|
+
return ServerMessageToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ServerMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return Object.assign(Object.assign({}, value), { 'code': value['code'], 'events': value['events'] == null ? undefined : (value['events'].map(EntityChangedEvent_1.EntityChangedEventToJSON)), 'message': value['message'], 'topic': value['topic'], 'type': value['type'], 'v': value['v'] });
|
|
75
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export * from './CalcTreeValue';
|
|
|
81
81
|
export * from './CalcTypeSingleValue';
|
|
82
82
|
export * from './ChangelogOption';
|
|
83
83
|
export * from './ChangelogValueOption';
|
|
84
|
+
export * from './ClientMessage';
|
|
84
85
|
export * from './ConfidentialityData';
|
|
85
86
|
export * from './Contribution';
|
|
86
87
|
export * from './ContributionChangelogBody';
|
|
@@ -166,6 +167,8 @@ export * from './DatasetDataOneOf2';
|
|
|
166
167
|
export * from './DatasetModify';
|
|
167
168
|
export * from './DatasetRes';
|
|
168
169
|
export * from './DaysOffData';
|
|
170
|
+
export * from './EntityChangeActor';
|
|
171
|
+
export * from './EntityChangedEvent';
|
|
169
172
|
export * from './EntryPatch';
|
|
170
173
|
export * from './EntryPatchPropertiesValue';
|
|
171
174
|
export * from './ErrorDetail';
|
|
@@ -319,6 +322,7 @@ export * from './ScriptUsageResBody';
|
|
|
319
322
|
export * from './ScriptWebhookResBody';
|
|
320
323
|
export * from './SendPasswordPutReqBody';
|
|
321
324
|
export * from './SerializedEvent';
|
|
325
|
+
export * from './ServerMessage';
|
|
322
326
|
export * from './SingleSelectChangelogData';
|
|
323
327
|
export * from './SingleSelectContributionData';
|
|
324
328
|
export * from './SingleSelectData';
|
package/dist/models/index.js
CHANGED
|
@@ -99,6 +99,7 @@ __exportStar(require("./CalcTreeValue"), exports);
|
|
|
99
99
|
__exportStar(require("./CalcTypeSingleValue"), exports);
|
|
100
100
|
__exportStar(require("./ChangelogOption"), exports);
|
|
101
101
|
__exportStar(require("./ChangelogValueOption"), exports);
|
|
102
|
+
__exportStar(require("./ClientMessage"), exports);
|
|
102
103
|
__exportStar(require("./ConfidentialityData"), exports);
|
|
103
104
|
__exportStar(require("./Contribution"), exports);
|
|
104
105
|
__exportStar(require("./ContributionChangelogBody"), exports);
|
|
@@ -184,6 +185,8 @@ __exportStar(require("./DatasetDataOneOf2"), exports);
|
|
|
184
185
|
__exportStar(require("./DatasetModify"), exports);
|
|
185
186
|
__exportStar(require("./DatasetRes"), exports);
|
|
186
187
|
__exportStar(require("./DaysOffData"), exports);
|
|
188
|
+
__exportStar(require("./EntityChangeActor"), exports);
|
|
189
|
+
__exportStar(require("./EntityChangedEvent"), exports);
|
|
187
190
|
__exportStar(require("./EntryPatch"), exports);
|
|
188
191
|
__exportStar(require("./EntryPatchPropertiesValue"), exports);
|
|
189
192
|
__exportStar(require("./ErrorDetail"), exports);
|
|
@@ -337,6 +340,7 @@ __exportStar(require("./ScriptUsageResBody"), exports);
|
|
|
337
340
|
__exportStar(require("./ScriptWebhookResBody"), exports);
|
|
338
341
|
__exportStar(require("./SendPasswordPutReqBody"), exports);
|
|
339
342
|
__exportStar(require("./SerializedEvent"), exports);
|
|
343
|
+
__exportStar(require("./ServerMessage"), exports);
|
|
340
344
|
__exportStar(require("./SingleSelectChangelogData"), exports);
|
|
341
345
|
__exportStar(require("./SingleSelectContributionData"), exports);
|
|
342
346
|
__exportStar(require("./SingleSelectData"), exports);
|