vasat-gms-sdk 0.0.0-stage → 1.0.1
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/favicon.ico +0 -0
- package/gms-sdk.css +2 -0
- package/gms-sdk.es.js +238 -0
- package/gms-sdk.umd.js +1 -0
- package/package.json +23 -4
- package/types/CesiumMap.vue.d.ts +3 -0
- package/types/Dev.vue.d.ts +3 -0
- package/types/FilesetBrowser.vue.d.ts +4 -0
- package/types/main.d.ts +2 -0
- package/types/models/gms.d.ts +134 -0
- package/types/service/gms-sdk-service.d.ts +26 -0
- package/types/umd.lib.d.ts +16 -0
- package/README.md +0 -3
package/favicon.ico
ADDED
|
Binary file
|
package/gms-sdk.css
ADDED
package/gms-sdk.es.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, onBeforeUnmount as n, onMounted as r, openBlock as i, ref as a } from "vue";
|
|
2
|
+
import { Cartesian3 as o, Viewer as s } from "cesium";
|
|
3
|
+
import { AsClass as c, VasatModel as l } from "vasat";
|
|
4
|
+
import { BehaviorSubject as u, Subject as d, forkJoin as f, map as p, tap as m } from "rxjs";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/CesiumMap.vue
|
|
7
|
+
var h = /*#__PURE__*/ ((e, t) => {
|
|
8
|
+
let n = e.__vccOpts || e;
|
|
9
|
+
for (let [e, r] of t) n[e] = r;
|
|
10
|
+
return n;
|
|
11
|
+
})(/* @__PURE__ */ t({
|
|
12
|
+
__name: "CesiumMap",
|
|
13
|
+
setup(t) {
|
|
14
|
+
let c = a(null), l = null;
|
|
15
|
+
return r(() => {
|
|
16
|
+
c.value && (l = new s(c.value, {
|
|
17
|
+
animation: !1,
|
|
18
|
+
timeline: !1,
|
|
19
|
+
baseLayerPicker: !1,
|
|
20
|
+
navigationHelpButton: !1,
|
|
21
|
+
geocoder: !1,
|
|
22
|
+
homeButton: !1
|
|
23
|
+
}), l.camera.setView({ destination: o.fromDegrees(12.4964, 41.9028, 2500) }));
|
|
24
|
+
}), n(() => {
|
|
25
|
+
l &&= (l.destroy(), null);
|
|
26
|
+
}), (t, n) => (i(), e("div", {
|
|
27
|
+
ref_key: "cesiumContainer",
|
|
28
|
+
ref: c,
|
|
29
|
+
class: "cesium-container"
|
|
30
|
+
}, null, 512));
|
|
31
|
+
}
|
|
32
|
+
}), [["__scopeId", "data-v-1be03b11"]]);
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorate.js
|
|
35
|
+
function g(e, t, n, r) {
|
|
36
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
37
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
38
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
39
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/models/gms.ts
|
|
43
|
+
var _ = [
|
|
44
|
+
"queued",
|
|
45
|
+
"plucked",
|
|
46
|
+
"fetching",
|
|
47
|
+
"processing",
|
|
48
|
+
"writing",
|
|
49
|
+
"failed",
|
|
50
|
+
"reforge",
|
|
51
|
+
"cancel"
|
|
52
|
+
], v = class extends l {
|
|
53
|
+
firstName;
|
|
54
|
+
lastName;
|
|
55
|
+
email;
|
|
56
|
+
jobTitle;
|
|
57
|
+
invited;
|
|
58
|
+
uiSettings;
|
|
59
|
+
constructor(e) {
|
|
60
|
+
super(e, "User");
|
|
61
|
+
}
|
|
62
|
+
}, y = class extends l {
|
|
63
|
+
subtitle;
|
|
64
|
+
uiSettings;
|
|
65
|
+
constructor(e) {
|
|
66
|
+
super(e, "Account");
|
|
67
|
+
}
|
|
68
|
+
isOwner() {
|
|
69
|
+
return this.acl?.indexOf("*") != -1;
|
|
70
|
+
}
|
|
71
|
+
}, b = class extends l {
|
|
72
|
+
metaFields = [];
|
|
73
|
+
fileExtensions;
|
|
74
|
+
jobs;
|
|
75
|
+
constructor(e) {
|
|
76
|
+
super(e, "FileType");
|
|
77
|
+
}
|
|
78
|
+
}, x = class extends l {
|
|
79
|
+
parent;
|
|
80
|
+
account;
|
|
81
|
+
startDate;
|
|
82
|
+
endDate;
|
|
83
|
+
folderType;
|
|
84
|
+
gmsSettings;
|
|
85
|
+
bounds;
|
|
86
|
+
geom;
|
|
87
|
+
mode;
|
|
88
|
+
icon;
|
|
89
|
+
deleted;
|
|
90
|
+
seq;
|
|
91
|
+
meta;
|
|
92
|
+
constructor(e) {
|
|
93
|
+
super(e, "Folder");
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
g([c(x)], x.prototype, "parent", void 0), g([c(y)], x.prototype, "account", void 0), g([c(b)], x.prototype, "folderType", void 0);
|
|
97
|
+
var S = class extends l {
|
|
98
|
+
description;
|
|
99
|
+
fileType;
|
|
100
|
+
bounds;
|
|
101
|
+
folder;
|
|
102
|
+
gmsSettings;
|
|
103
|
+
fields;
|
|
104
|
+
config;
|
|
105
|
+
status;
|
|
106
|
+
dateCollected;
|
|
107
|
+
progress;
|
|
108
|
+
primaryFile;
|
|
109
|
+
errors;
|
|
110
|
+
storagePath;
|
|
111
|
+
deleted;
|
|
112
|
+
seq;
|
|
113
|
+
startDate;
|
|
114
|
+
endDate;
|
|
115
|
+
fileSize;
|
|
116
|
+
constructor(e) {
|
|
117
|
+
super(e, "Fileset");
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
g([c(b)], S.prototype, "fileType", void 0), g([c(x)], S.prototype, "folder", void 0);
|
|
121
|
+
var C = class extends l {
|
|
122
|
+
description;
|
|
123
|
+
referenceFile;
|
|
124
|
+
notes;
|
|
125
|
+
geom;
|
|
126
|
+
category;
|
|
127
|
+
fileset;
|
|
128
|
+
dateCollected;
|
|
129
|
+
vectorType;
|
|
130
|
+
geomType;
|
|
131
|
+
area;
|
|
132
|
+
gmsSettings;
|
|
133
|
+
meta;
|
|
134
|
+
seq;
|
|
135
|
+
startDate;
|
|
136
|
+
endDate;
|
|
137
|
+
constructor(e) {
|
|
138
|
+
super(e, "VectorData");
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
g([c(S)], C.prototype, "fileset", void 0);
|
|
142
|
+
var w = class extends l {
|
|
143
|
+
_modelPath = "/processing/api/v2";
|
|
144
|
+
status;
|
|
145
|
+
tag;
|
|
146
|
+
jobType;
|
|
147
|
+
fields;
|
|
148
|
+
commands;
|
|
149
|
+
config;
|
|
150
|
+
preZippedFile;
|
|
151
|
+
gmsSettings;
|
|
152
|
+
constructor(e) {
|
|
153
|
+
super(e, "JobConfig");
|
|
154
|
+
}
|
|
155
|
+
}, T = class extends l {
|
|
156
|
+
_modelPath = "/processing/api/v2";
|
|
157
|
+
status;
|
|
158
|
+
account;
|
|
159
|
+
folder;
|
|
160
|
+
fileset;
|
|
161
|
+
config;
|
|
162
|
+
notifications;
|
|
163
|
+
inputFiles;
|
|
164
|
+
meta;
|
|
165
|
+
timeStarted;
|
|
166
|
+
timeStopped;
|
|
167
|
+
tag;
|
|
168
|
+
progress;
|
|
169
|
+
errors;
|
|
170
|
+
target;
|
|
171
|
+
constructor(e) {
|
|
172
|
+
super(e, "Job");
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
g([c(w)], T.prototype, "config", void 0);
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/service/gms-sdk-service.ts
|
|
178
|
+
var E = 5e3, D = 6e4, O = class {
|
|
179
|
+
vasat;
|
|
180
|
+
jobs = new u([]);
|
|
181
|
+
jobChange = new d();
|
|
182
|
+
fileTypes = new u([]);
|
|
183
|
+
jobTypes = new u([]);
|
|
184
|
+
pollHandle;
|
|
185
|
+
constructor(e) {
|
|
186
|
+
this.vasat = e, this.pollHandle = setInterval(() => this.refreshJobs().subscribe(), E);
|
|
187
|
+
}
|
|
188
|
+
init() {
|
|
189
|
+
return f([this.vasat.searchByObject(b).useCache(!0).limit(9999).query().pipe(m((e) => this.fileTypes.next(e.items))), this.vasat.searchByObject(w).useCache(!0).limit(9999).query().pipe(m((e) => this.jobTypes.next(e.items)))]);
|
|
190
|
+
}
|
|
191
|
+
refreshJobs() {
|
|
192
|
+
let e = { or: [{ status: { in: _ } }, { and: [{ status: { eq: "finished" } }, { dateUpdated: { gt: Date.now() - D } }] }] };
|
|
193
|
+
return this.vasat.searchByObject(T).complexQuery(e).query().pipe(m((e) => {
|
|
194
|
+
let t = e.items.filter((e) => {
|
|
195
|
+
let t = this.jobs.value.find((t) => t.id == e.id);
|
|
196
|
+
return !t || t.status != e.status;
|
|
197
|
+
});
|
|
198
|
+
this.jobs.next(e.items), t.forEach((e) => this.jobChange.next(e));
|
|
199
|
+
}), p((e) => e.items));
|
|
200
|
+
}
|
|
201
|
+
destroy() {
|
|
202
|
+
this.pollHandle && clearInterval(this.pollHandle);
|
|
203
|
+
}
|
|
204
|
+
}, k = class {
|
|
205
|
+
_service = void 0;
|
|
206
|
+
_credentials = {};
|
|
207
|
+
get service() {
|
|
208
|
+
return this._service;
|
|
209
|
+
}
|
|
210
|
+
registerService(e) {
|
|
211
|
+
this._service = e;
|
|
212
|
+
}
|
|
213
|
+
registerCredential(e, t) {
|
|
214
|
+
this._credentials[e] = t;
|
|
215
|
+
}
|
|
216
|
+
getCredential(e) {
|
|
217
|
+
return this._credentials[e];
|
|
218
|
+
}
|
|
219
|
+
initService(e) {
|
|
220
|
+
return this._service = new O(e), this._service;
|
|
221
|
+
}
|
|
222
|
+
}, A = new k(), j = {
|
|
223
|
+
Fileset: S,
|
|
224
|
+
Folder: x,
|
|
225
|
+
Account: y,
|
|
226
|
+
VectorData: C,
|
|
227
|
+
JobConfig: w,
|
|
228
|
+
Job: T,
|
|
229
|
+
GMSSDKService: O,
|
|
230
|
+
serviceProvider: new class {
|
|
231
|
+
currentConfig = new u(void 0);
|
|
232
|
+
currentScope = new u(void 0);
|
|
233
|
+
messages = new d();
|
|
234
|
+
}(),
|
|
235
|
+
cesiumView: h
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
export { y as Account, b as FileType, S as Fileset, x as Folder, O as GMSSDKService, _ as JOB_STATUSES, T as Job, w as JobConfig, k as ServiceProvider, v as User, C as VectorData, j as default, A as serviceProvider };
|
package/gms-sdk.umd.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue"),require("cesium"),require("vasat"),require("rxjs")):typeof define==`function`&&define.amd?define([`exports`,`vue`,`cesium`,`vasat`,`rxjs`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.GMS={},e.Vue,e.Cesium,e.V,e.rxjs))})(this,function(e,t,n,r,i){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var a=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,t.defineComponent)({__name:`CesiumMap`,setup(e){let r=(0,t.ref)(null),i=null;return(0,t.onMounted)(()=>{r.value&&(i=new n.Viewer(r.value,{animation:!1,timeline:!1,baseLayerPicker:!1,navigationHelpButton:!1,geocoder:!1,homeButton:!1}),i.camera.setView({destination:n.Cartesian3.fromDegrees(12.4964,41.9028,2500)}))}),(0,t.onBeforeUnmount)(()=>{i&&=(i.destroy(),null)}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`cesiumContainer`,ref:r,class:`cesium-container`},null,512))}}),[[`__scopeId`,`data-v-1be03b11`]]);function o(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var s=[`queued`,`plucked`,`fetching`,`processing`,`writing`,`failed`,`reforge`,`cancel`],c=class extends r.VasatModel{firstName;lastName;email;jobTitle;invited;uiSettings;constructor(e){super(e,`User`)}},l=class extends r.VasatModel{subtitle;uiSettings;constructor(e){super(e,`Account`)}isOwner(){return this.acl?.indexOf(`*`)!=-1}},u=class extends r.VasatModel{metaFields=[];fileExtensions;jobs;constructor(e){super(e,`FileType`)}},d=class extends r.VasatModel{parent;account;startDate;endDate;folderType;gmsSettings;bounds;geom;mode;icon;deleted;seq;meta;constructor(e){super(e,`Folder`)}};o([(0,r.AsClass)(d)],d.prototype,`parent`,void 0),o([(0,r.AsClass)(l)],d.prototype,`account`,void 0),o([(0,r.AsClass)(u)],d.prototype,`folderType`,void 0);var f=class extends r.VasatModel{description;fileType;bounds;folder;gmsSettings;fields;config;status;dateCollected;progress;primaryFile;errors;storagePath;deleted;seq;startDate;endDate;fileSize;constructor(e){super(e,`Fileset`)}};o([(0,r.AsClass)(u)],f.prototype,`fileType`,void 0),o([(0,r.AsClass)(d)],f.prototype,`folder`,void 0);var p=class extends r.VasatModel{description;referenceFile;notes;geom;category;fileset;dateCollected;vectorType;geomType;area;gmsSettings;meta;seq;startDate;endDate;constructor(e){super(e,`VectorData`)}};o([(0,r.AsClass)(f)],p.prototype,`fileset`,void 0);var m=class extends r.VasatModel{_modelPath=`/processing/api/v2`;status;tag;jobType;fields;commands;config;preZippedFile;gmsSettings;constructor(e){super(e,`JobConfig`)}},h=class extends r.VasatModel{_modelPath=`/processing/api/v2`;status;account;folder;fileset;config;notifications;inputFiles;meta;timeStarted;timeStopped;tag;progress;errors;target;constructor(e){super(e,`Job`)}};o([(0,r.AsClass)(m)],h.prototype,`config`,void 0);var g=5e3,_=6e4,v=class{vasat;jobs=new i.BehaviorSubject([]);jobChange=new i.Subject;fileTypes=new i.BehaviorSubject([]);jobTypes=new i.BehaviorSubject([]);pollHandle;constructor(e){this.vasat=e,this.pollHandle=setInterval(()=>this.refreshJobs().subscribe(),g)}init(){return(0,i.forkJoin)([this.vasat.searchByObject(u).useCache(!0).limit(9999).query().pipe((0,i.tap)(e=>this.fileTypes.next(e.items))),this.vasat.searchByObject(m).useCache(!0).limit(9999).query().pipe((0,i.tap)(e=>this.jobTypes.next(e.items)))])}refreshJobs(){let e={or:[{status:{in:s}},{and:[{status:{eq:`finished`}},{dateUpdated:{gt:Date.now()-_}}]}]};return this.vasat.searchByObject(h).complexQuery(e).query().pipe((0,i.tap)(e=>{let t=e.items.filter(e=>{let t=this.jobs.value.find(t=>t.id==e.id);return!t||t.status!=e.status});this.jobs.next(e.items),t.forEach(e=>this.jobChange.next(e))}),(0,i.map)(e=>e.items))}destroy(){this.pollHandle&&clearInterval(this.pollHandle)}},y=class{_service=void 0;_credentials={};get service(){return this._service}registerService(e){this._service=e}registerCredential(e,t){this._credentials[e]=t}getCredential(e){return this._credentials[e]}initService(e){return this._service=new v(e),this._service}},b=new y,x={Fileset:f,Folder:d,Account:l,VectorData:p,JobConfig:m,Job:h,GMSSDKService:v,serviceProvider:new class{currentConfig=new i.BehaviorSubject(void 0);currentScope=new i.BehaviorSubject(void 0);messages=new i.Subject},cesiumView:a};e.Account=l,e.FileType=u,e.Fileset=f,e.Folder=d,e.GMSSDKService=v,e.JOB_STATUSES=s,e.Job=h,e.JobConfig=m,e.ServiceProvider=y,e.User=c,e.VectorData=p,e.default=x,e.serviceProvider=b});
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasat-gms-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "GMS SDK to access GMS components",
|
|
6
|
+
"homepage": "https://vasat.io/gms",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git@gitlab.correllink.com:gms/gms-sdk.git"
|
|
10
|
+
},
|
|
11
|
+
"module": "gms-sdk.es.js",
|
|
12
|
+
"types": "src/umd.lib.d.ts",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "CorrelLink",
|
|
15
|
+
"email": "dev@correllink.com"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"vasat"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"rxjs": "^7.8.2",
|
|
22
|
+
"vasat": "^3.6.2",
|
|
23
|
+
"vue": "^3.5.40"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import 'leaflet/dist/leaflet.css';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
package/types/main.d.ts
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { VasatModel, type VasatConnection } from 'vasat';
|
|
2
|
+
export declare const JOB_STATUSES: string[];
|
|
3
|
+
export interface UISettings {
|
|
4
|
+
useSquareLogoFile?: string;
|
|
5
|
+
useBannerLogoFile?: string;
|
|
6
|
+
primaryColour?: string;
|
|
7
|
+
useIcon?: string;
|
|
8
|
+
meta?: any;
|
|
9
|
+
unlockMenu?: boolean;
|
|
10
|
+
darkMode?: boolean;
|
|
11
|
+
language?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UISettingable {
|
|
14
|
+
uiSettings?: UISettings;
|
|
15
|
+
}
|
|
16
|
+
export declare class User extends VasatModel<User> implements UISettingable {
|
|
17
|
+
firstName?: string;
|
|
18
|
+
lastName?: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
jobTitle?: string;
|
|
21
|
+
invited?: boolean;
|
|
22
|
+
uiSettings?: UISettings;
|
|
23
|
+
constructor(v: VasatConnection);
|
|
24
|
+
}
|
|
25
|
+
export declare class Account extends VasatModel<Account> implements UISettingable {
|
|
26
|
+
subtitle?: string;
|
|
27
|
+
uiSettings?: UISettings;
|
|
28
|
+
constructor(v: VasatConnection);
|
|
29
|
+
isOwner(): boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface GMSSettings {
|
|
32
|
+
name?: string;
|
|
33
|
+
category?: string;
|
|
34
|
+
dataType?: string;
|
|
35
|
+
dataVariation?: string;
|
|
36
|
+
meta?: any;
|
|
37
|
+
hidden?: boolean;
|
|
38
|
+
heightRange?: [number, number];
|
|
39
|
+
seq?: number;
|
|
40
|
+
bounds?: any;
|
|
41
|
+
}
|
|
42
|
+
export declare class FileType extends VasatModel<FileType> {
|
|
43
|
+
metaFields: any[];
|
|
44
|
+
fileExtensions?: string[];
|
|
45
|
+
jobs?: string[];
|
|
46
|
+
constructor(v: VasatConnection);
|
|
47
|
+
}
|
|
48
|
+
export declare class Folder extends VasatModel<Folder> {
|
|
49
|
+
parent: Folder;
|
|
50
|
+
account?: Account;
|
|
51
|
+
startDate?: number;
|
|
52
|
+
endDate?: number;
|
|
53
|
+
folderType?: FileType;
|
|
54
|
+
gmsSettings?: GMSSettings;
|
|
55
|
+
bounds?: any;
|
|
56
|
+
geom?: any;
|
|
57
|
+
mode?: string;
|
|
58
|
+
icon?: string;
|
|
59
|
+
deleted?: boolean;
|
|
60
|
+
seq?: number;
|
|
61
|
+
meta?: {
|
|
62
|
+
[k: string]: any;
|
|
63
|
+
};
|
|
64
|
+
constructor(v: VasatConnection);
|
|
65
|
+
}
|
|
66
|
+
export declare class Fileset extends VasatModel<Fileset> {
|
|
67
|
+
description?: string;
|
|
68
|
+
fileType?: FileType;
|
|
69
|
+
bounds?: any;
|
|
70
|
+
folder?: Folder;
|
|
71
|
+
gmsSettings?: any;
|
|
72
|
+
fields?: any;
|
|
73
|
+
config?: any;
|
|
74
|
+
status?: string;
|
|
75
|
+
dateCollected?: number;
|
|
76
|
+
progress?: number;
|
|
77
|
+
primaryFile?: string;
|
|
78
|
+
errors?: any[];
|
|
79
|
+
storagePath?: string;
|
|
80
|
+
deleted?: boolean;
|
|
81
|
+
seq?: number;
|
|
82
|
+
startDate?: number;
|
|
83
|
+
endDate?: number;
|
|
84
|
+
fileSize?: number;
|
|
85
|
+
constructor(v: VasatConnection);
|
|
86
|
+
}
|
|
87
|
+
export declare class VectorData extends VasatModel<VectorData> {
|
|
88
|
+
description?: string;
|
|
89
|
+
referenceFile?: string;
|
|
90
|
+
notes?: string;
|
|
91
|
+
geom?: any;
|
|
92
|
+
category?: string;
|
|
93
|
+
fileset?: Fileset;
|
|
94
|
+
dateCollected?: number;
|
|
95
|
+
vectorType?: string;
|
|
96
|
+
geomType?: string;
|
|
97
|
+
area?: number;
|
|
98
|
+
gmsSettings?: GMSSettings;
|
|
99
|
+
meta?: any;
|
|
100
|
+
seq?: number;
|
|
101
|
+
startDate?: number;
|
|
102
|
+
endDate?: number;
|
|
103
|
+
constructor(v: VasatConnection);
|
|
104
|
+
}
|
|
105
|
+
export declare class JobConfig extends VasatModel<JobConfig> {
|
|
106
|
+
_modelPath?: string | undefined;
|
|
107
|
+
status?: string;
|
|
108
|
+
tag?: string;
|
|
109
|
+
jobType?: string;
|
|
110
|
+
fields?: any[];
|
|
111
|
+
commands?: string[];
|
|
112
|
+
config?: any;
|
|
113
|
+
preZippedFile?: string;
|
|
114
|
+
gmsSettings?: any;
|
|
115
|
+
constructor(v: VasatConnection);
|
|
116
|
+
}
|
|
117
|
+
export declare class Job extends VasatModel<Job> {
|
|
118
|
+
_modelPath?: string | undefined;
|
|
119
|
+
status?: string;
|
|
120
|
+
account?: string;
|
|
121
|
+
folder?: string;
|
|
122
|
+
fileset?: string;
|
|
123
|
+
config?: JobConfig;
|
|
124
|
+
notifications?: string[];
|
|
125
|
+
inputFiles?: any[];
|
|
126
|
+
meta?: any;
|
|
127
|
+
timeStarted?: number;
|
|
128
|
+
timeStopped?: number;
|
|
129
|
+
tag?: string;
|
|
130
|
+
progress?: any;
|
|
131
|
+
errors?: any[];
|
|
132
|
+
target?: any;
|
|
133
|
+
constructor(v: VasatConnection);
|
|
134
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FileType, Job, JobConfig, User } from '@/models/gms';
|
|
2
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
|
+
import type { Vasat } from 'vasat';
|
|
4
|
+
export declare class GMSSDKService {
|
|
5
|
+
vasat: Vasat<User>;
|
|
6
|
+
readonly jobs: BehaviorSubject<Job[]>;
|
|
7
|
+
readonly jobChange: Subject<Job>;
|
|
8
|
+
readonly fileTypes: BehaviorSubject<FileType[]>;
|
|
9
|
+
readonly jobTypes: BehaviorSubject<JobConfig[]>;
|
|
10
|
+
private pollHandle?;
|
|
11
|
+
constructor(vasat: Vasat<User>);
|
|
12
|
+
init(): import("rxjs").Observable<[import("vasat").SearchResults<FileType>, import("vasat").SearchResults<JobConfig>]>;
|
|
13
|
+
refreshJobs(): import("rxjs").Observable<Job[]>;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
export type GSMKey = 'mapbox' | 'ion' | string;
|
|
17
|
+
export declare class ServiceProvider {
|
|
18
|
+
private _service?;
|
|
19
|
+
private _credentials;
|
|
20
|
+
get service(): GMSSDKService | undefined;
|
|
21
|
+
registerService(s: GMSSDKService): void;
|
|
22
|
+
registerCredential(key: GSMKey, value: any): void;
|
|
23
|
+
getCredential(key: GSMKey): any | undefined;
|
|
24
|
+
initService(v: Vasat<User>): GMSSDKService;
|
|
25
|
+
}
|
|
26
|
+
export declare const serviceProvider: ServiceProvider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Account, Fileset, Folder, Job, JobConfig, VectorData } from '@/models/gms.ts';
|
|
2
|
+
import { GMSSDKService } from '@/service/gms-sdk-service.ts';
|
|
3
|
+
export * from '@/service/gms-sdk-service.ts';
|
|
4
|
+
export * from '@/models/gms.ts';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
Fileset: typeof Fileset;
|
|
7
|
+
Folder: typeof Folder;
|
|
8
|
+
Account: typeof Account;
|
|
9
|
+
VectorData: typeof VectorData;
|
|
10
|
+
JobConfig: typeof JobConfig;
|
|
11
|
+
Job: typeof Job;
|
|
12
|
+
GMSSDKService: typeof GMSSDKService;
|
|
13
|
+
serviceProvider: import("vasat-vibe/src/service-provider").VasatEmitter;
|
|
14
|
+
cesiumView: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/README.md
DELETED