Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c8osdkangular

Package Overview
Dependencies
Maintainers
1
Versions
416
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8osdkangular - npm Package Compare versions

Comparing version 2.1.36 to 2.1.37

2

package.json
{
"name": "c8osdkangular",
"version": "2.1.36",
"version": "2.1.37",
"description": "convertigo's MBaaS client API service",

@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js",

@@ -82,3 +82,3 @@ import "rxjs/Rx";

handleCallException(c8oExceptionListener: C8oExceptionListener, requestParameters: Object, exception: Error): void;
get_attachment(id: string, attachment_name: string): Promise<any>;
get_attachment(id: string, attachment_name: string, database_name?: string): Promise<any>;
addFullSyncChangeListener(db: string, listener: C8oFullSyncChangeListener): void;

@@ -85,0 +85,0 @@ removeFullSyncChangeListener(db: string, listener: C8oFullSyncChangeListener): void;

@@ -400,6 +400,9 @@ "use strict";

};
C8o.prototype.get_attachment = function (id, attachment_name) {
C8o.prototype.get_attachment = function (id, attachment_name, database_name) {
var _this = this;
return new Promise(function (resolve) {
var fullsyncdb = _this.c8oFullSync.getOrCreateFullSyncDatabase(_this.defaultDatabaseName);
if (database_name == null) {
database_name = _this.defaultDatabaseName;
}
var fullsyncdb = _this.c8oFullSync.getOrCreateFullSyncDatabase(database_name);
fullsyncdb.getdatabase.getAttachment(id, attachment_name).then(function (buffer) {

@@ -406,0 +409,0 @@ resolve(buffer);

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"C8o":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./c8oBase.service","name":"C8oBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./c8oUtils.service","name":"C8oUtils"},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"FullSyncPolicy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":788,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":667,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":682,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":697,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":738,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":794,"character":16}}}},"FullSyncPostDocumentParameter":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_SUBKEY_SEPARATOR"}]}}}}},{"__symbolic":"module","version":1,"metadata":{"C8o":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./c8oBase.service","name":"C8oBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./c8oUtils.service","name":"C8oUtils"},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"FullSyncPolicy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":788,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":667,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":682,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":697,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":738,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":794,"character":16}}}},"FullSyncPostDocumentParameter":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_SUBKEY_SEPARATOR"}]}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"C8o":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./c8oBase.service","name":"C8oBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./c8oUtils.service","name":"C8oUtils"},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"FullSyncPolicy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":791,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":670,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":685,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":700,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":741,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":797,"character":16}}}},"FullSyncPostDocumentParameter":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_SUBKEY_SEPARATOR"}]}}}}},{"__symbolic":"module","version":1,"metadata":{"C8o":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./c8oBase.service","name":"C8oBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./c8oUtils.service","name":"C8oUtils"},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"FullSyncPolicy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":791,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":670,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":685,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":700,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":741,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":797,"character":16}}}},"FullSyncPostDocumentParameter":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FullSyncPostDocumentParameter"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"C8o"},"member":"FS_SUBKEY_SEPARATOR"}]}}}}}]

@@ -1,1 +0,1 @@

{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":2,"members":[]}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbol":3,"members":[]},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}}],"lifecycleHooks":[]}}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[null,{"__symbolic":"error","message":"Expression form not supported","line":788,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":667,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":682,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":697,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":738,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":794,"character":16}}}}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[null]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbol":5,"members":[]},"arguments":[{"__symbolic":"select","expression":{"__symbol":0,"members":[]},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbol":5,"members":[]},"arguments":[{"__symbolic":"select","expression":{"__symbol":0,"members":[]},"member":"FS_SUBKEY_SEPARATOR"}]}}}}],"symbols":[{"__symbol":0,"name":"C8o","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"},{"__symbol":1,"name":"C8oBase","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8oBase.service.d.ts"},{"__symbol":2,"name":"Http","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/node_modules/@angular/http/http.d.ts"},{"__symbol":3,"name":"C8oUtils","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8oUtils.service.d.ts"},{"__symbol":4,"name":"FullSyncPolicy","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"},{"__symbol":5,"name":"FullSyncPostDocumentParameter","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"toString":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":2,"members":[]}]}],"init":[{"__symbolic":"method"}],"finalizeInit":[{"__symbolic":"method"}],"extractendpoint":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"_call":[{"__symbolic":"method"}],"callJsonObject":[{"__symbolic":"method"}],"callJson":[{"__symbolic":"method"}],"handleCallException":[{"__symbolic":"method"}],"get_attachment":[{"__symbolic":"method"}],"addFullSyncChangeListener":[{"__symbolic":"method"}],"removeFullSyncChangeListener":[{"__symbolic":"method"}],"addLive":[{"__symbolic":"method"}],"cancelLive":[{"__symbolic":"method"}]},"statics":{"RE_REQUESTABLE":{"__symbolic":"error","message":"Expression form not supported","line":44,"character":36},"RE_ENDPOINT":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":33},"ENGINE_PARAMETER_PROJECT":"__project","ENGINE_PARAMETER_SEQUENCE":"__sequence","ENGINE_PARAMETER_CONNECTOR":"__connector","ENGINE_PARAMETER_TRANSACTION":"__transaction","ENGINE_PARAMETER_ENCODED":"__encoded","ENGINE_PARAMETER_DEVICE_UUID":"__uuid","ENGINE_PARAMETER_PROGRESS":"__progress","ENGINE_PARAMETER_FROM_LIVE":"__fromLive","FS_POLICY":"_use_policy","FS_POLICY_NONE":"none","FS_POLICY_CREATE":"create","FS_POLICY_OVERRIDE":"override","FS_POLICY_MERGE":"merge","FS_SUBKEY_SEPARATOR":"_use_subkey_separator","FS_LIVE":"__live","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE":"response","LOCAL_CACHE_DOCUMENT_KEY_RESPONSE_TYPE":"responseType","LOCAL_CACHE_DOCUMENT_KEY_EXPIRATION_DATE":"expirationDate","LOCAL_CACHE_DATABASE_NAME":"c8olocalcache","RESPONSE_TYPE_XML":"pxml","RESPONSE_TYPE_JSON":"json","deviceUUID":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbol":3,"members":[]},"member":"getNewGUIDString"}},"getSdkVersion":{"__symbolic":"function","parameters":[],"value":"2.1.30"}}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}}],"lifecycleHooks":[]}}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[null,{"__symbolic":"error","message":"Expression form not supported","line":791,"character":39}]}]},"statics":{"NONE":{"__symbolic":"error","message":"Function call not supported","line":670,"character":80},"CREATE":{"__symbolic":"error","message":"Function call not supported","line":685,"character":84},"OVERRIDE":{"__symbolic":"error","message":"Function call not supported","line":700,"character":88},"MERGE":{"__symbolic":"error","message":"Function call not supported","line":741,"character":82},"values":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Expression form not supported","line":797,"character":16}}}}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[null]}]},"statics":{"POLICY":{"__symbolic":"new","expression":{"__symbol":5,"members":[]},"arguments":[{"__symbolic":"select","expression":{"__symbol":0,"members":[]},"member":"FS_POLICY"}]},"SUBKEY_SEPARATOR":{"__symbolic":"new","expression":{"__symbol":5,"members":[]},"arguments":[{"__symbolic":"select","expression":{"__symbol":0,"members":[]},"member":"FS_SUBKEY_SEPARATOR"}]}}}}],"symbols":[{"__symbol":0,"name":"C8o","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"},{"__symbol":1,"name":"C8oBase","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8oBase.service.d.ts"},{"__symbol":2,"name":"Http","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/node_modules/@angular/http/http.d.ts"},{"__symbol":3,"name":"C8oUtils","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8oUtils.service.d.ts"},{"__symbol":4,"name":"FullSyncPolicy","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"},{"__symbol":5,"name":"FullSyncPostDocumentParameter","filePath":"C:/DEV_CG/TYPESCRIPT/ANGULAR/C8oSDKAngular2/src/c8o/c8o.service.d.ts"}]}

@@ -606,5 +606,8 @@ import {Injectable} from "@angular/core";

*/
public get_attachment(id: string, attachment_name: string): Promise<any> {
public get_attachment(id: string, attachment_name: string, database_name?: string): Promise<any> {
return new Promise((resolve) => {
let fullsyncdb = (this.c8oFullSync as C8oFullSyncCbl).getOrCreateFullSyncDatabase(this.defaultDatabaseName);
if(database_name == null){
database_name = this.defaultDatabaseName;
}
let fullsyncdb = (this.c8oFullSync as C8oFullSyncCbl).getOrCreateFullSyncDatabase(database_name);
fullsyncdb.getdatabase.getAttachment(id, attachment_name).then((buffer) => {

@@ -611,0 +614,0 @@ resolve(buffer);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc