@geolonia/geonicdb-sdk 0.15.0 → 0.16.0

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/geonicdb.mjs CHANGED
@@ -46,7 +46,7 @@ var RECONNECT_MAX_ATTEMPTS = 10;
46
46
  var RECONNECT_BASE_MS = 1e3;
47
47
  var RECONNECT_MAX_DELAY_MS = 3e4;
48
48
  var SUB_PROTOCOL = "access_token";
49
- var NGSI_LD_CORE_CONTEXT = "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld";
49
+ var NGSI_LD_CORE_CONTEXT = "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.9.jsonld";
50
50
  var SDK_CACHE_MAX_ENTRIES_DEFAULT = 1e3;
51
51
  var SDK_POLL_INTERVAL_MS_DEFAULT = 5e3;
52
52
  var DPOP_IDB_NAME = "geonicdb-sdk";
@@ -1931,7 +1931,13 @@ var GeonicDB = class extends EventEmitter {
1931
1931
  return { deleted: true };
1932
1932
  }
1933
1933
  // --- Types / Attributes Discovery ---
1934
- /** List all entity types. */
1934
+ /**
1935
+ * List all entity types.
1936
+ *
1937
+ * `details` 未指定の `GET /types` は ETSI OpenAPI v1.8.1 準拠の
1938
+ * `EntityTypeList` オブジェクト(`{ id, type: 'EntityTypeList', typeList }`)を返す。
1939
+ * 型名の一覧は `typeList` から取得する。
1940
+ */
1935
1941
  async getTypes() {
1936
1942
  return this._jsonGet("/ngsi-ld/v1/types", "Types query failed");
1937
1943
  }
@@ -1942,7 +1948,13 @@ var GeonicDB = class extends EventEmitter {
1942
1948
  "Type not found"
1943
1949
  );
1944
1950
  }
1945
- /** List all attributes. */
1951
+ /**
1952
+ * List all attributes.
1953
+ *
1954
+ * `details` 未指定の `GET /attributes` は ETSI OpenAPI v1.8.1 準拠の
1955
+ * `AttributeList` オブジェクト(`{ id, type: 'AttributeList', attributeList }`)を返す。
1956
+ * 属性名の一覧は `attributeList` から取得する。
1957
+ */
1946
1958
  async getAttributes() {
1947
1959
  return this._jsonGet("/ngsi-ld/v1/attributes", "Attributes query failed");
1948
1960
  }