@pax2pay/model-banking 0.1.245 → 0.1.246
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/Client/Labels.ts +19 -0
- package/Client/index.ts +3 -2
- package/Label.ts +19 -0
- package/dist/Client/Labels.d.ts +12 -0
- package/dist/Client/Labels.js +19 -0
- package/dist/Client/Labels.js.map +1 -0
- package/dist/Client/index.d.ts +3 -2
- package/dist/Client/index.js +3 -2
- package/dist/Client/index.js.map +1 -1
- package/dist/Label.d.ts +18 -0
- package/dist/Label.js +15 -0
- package/dist/Label.js.map +1 -0
- package/dist/pax2pay.d.ts +1 -1
- package/dist/pax2pay.js +1 -1
- package/dist/pax2pay.js.map +1 -1
- package/package.json +1 -1
- package/pax2pay.ts +1 -1
- package/Client/Flags.ts +0 -19
- package/Flag.ts +0 -8
- package/dist/Client/Flags.d.ts +0 -11
- package/dist/Client/Flags.js +0 -18
- package/dist/Client/Flags.js.map +0 -1
- package/dist/Flag.d.ts +0 -7
- package/dist/Flag.js +0 -3
- package/dist/Flag.js.map +0 -1
package/Client/Labels.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Label } from "../Label"
|
|
4
|
+
|
|
5
|
+
export class Labels {
|
|
6
|
+
constructor(private readonly client: http.Client, readonly type: Label.Type) {}
|
|
7
|
+
async create(label: Label): Promise<Label | gracely.Error> {
|
|
8
|
+
return this.client.post<Label>(`/label/${this.type}`, label)
|
|
9
|
+
}
|
|
10
|
+
async replace(label: Label): Promise<Label | gracely.Error> {
|
|
11
|
+
return this.client.put<Label>(`/label/${this.type}`, label)
|
|
12
|
+
}
|
|
13
|
+
async list(): Promise<Label[] | gracely.Error> {
|
|
14
|
+
return this.client.get<Label[]>(`/label/${this.type}`)
|
|
15
|
+
}
|
|
16
|
+
async remove(name: string): Promise<Label | gracely.Error> {
|
|
17
|
+
return this.client.delete(`/label/${this.type}/${name}`)
|
|
18
|
+
}
|
|
19
|
+
}
|
package/Client/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { rest } from "cloudly-rest"
|
|
|
5
5
|
import { Accounts } from "./Accounts"
|
|
6
6
|
import { Cards } from "./Cards"
|
|
7
7
|
import { Exchanges } from "./Exchanges"
|
|
8
|
-
import {
|
|
8
|
+
import { Labels } from "./Labels"
|
|
9
9
|
import { Operations } from "./Operations"
|
|
10
10
|
import { Organizations } from "./Organizations"
|
|
11
11
|
import { Reports } from "./Reports"
|
|
@@ -28,7 +28,8 @@ export class Client extends rest.Client<gracely.Error> {
|
|
|
28
28
|
readonly settlements = new Settlements(this.client)
|
|
29
29
|
readonly transactions = new Transactions(this.client)
|
|
30
30
|
readonly treasury = new Treasury(this.client)
|
|
31
|
-
readonly flags = new
|
|
31
|
+
readonly flags = new Labels(this.client, "flag")
|
|
32
|
+
readonly groups = new Labels(this.client, "group")
|
|
32
33
|
readonly userwidgets = (server: string, application: string) =>
|
|
33
34
|
new userwidgets.ClientCollection(new http.Client(server), { application })
|
|
34
35
|
readonly version = new Version(this.client)
|
package/Label.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export interface Label {
|
|
4
|
+
name: string
|
|
5
|
+
color: string
|
|
6
|
+
description: string
|
|
7
|
+
}
|
|
8
|
+
export namespace Label {
|
|
9
|
+
export const type = isly.object<Label>({ name: isly.string(), color: isly.string(), description: isly.string() })
|
|
10
|
+
export const is = type.is
|
|
11
|
+
export const flaw = type.flaw
|
|
12
|
+
export type Type = typeof Type.values[number]
|
|
13
|
+
export namespace Type {
|
|
14
|
+
export const values = ["flag", "group"] as const
|
|
15
|
+
export const type = isly.string(values)
|
|
16
|
+
export const is = type.is
|
|
17
|
+
export const flaw = type.flaw
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Label } from "../Label";
|
|
4
|
+
export declare class Labels {
|
|
5
|
+
private readonly client;
|
|
6
|
+
readonly type: Label.Type;
|
|
7
|
+
constructor(client: http.Client, type: Label.Type);
|
|
8
|
+
create(label: Label): Promise<Label | gracely.Error>;
|
|
9
|
+
replace(label: Label): Promise<Label | gracely.Error>;
|
|
10
|
+
list(): Promise<Label[] | gracely.Error>;
|
|
11
|
+
remove(name: string): Promise<Label | gracely.Error>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class Labels {
|
|
2
|
+
constructor(client, type) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
this.type = type;
|
|
5
|
+
}
|
|
6
|
+
async create(label) {
|
|
7
|
+
return this.client.post(`/label/${this.type}`, label);
|
|
8
|
+
}
|
|
9
|
+
async replace(label) {
|
|
10
|
+
return this.client.put(`/label/${this.type}`, label);
|
|
11
|
+
}
|
|
12
|
+
async list() {
|
|
13
|
+
return this.client.get(`/label/${this.type}`);
|
|
14
|
+
}
|
|
15
|
+
async remove(name) {
|
|
16
|
+
return this.client.delete(`/label/${this.type}/${name}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Labels.js","sourceRoot":"../","sources":["Client/Labels.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IAClB,YAA6B,MAAmB,EAAW,IAAgB;QAA9C,WAAM,GAAN,MAAM,CAAa;QAAW,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAC/E,KAAK,CAAC,MAAM,CAAC,KAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAQ,UAAU,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;IAC7D,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,KAAY;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAQ,UAAU,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;IAC5D,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,UAAU,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAA;IACzD,CAAC;CACD"}
|
package/dist/Client/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { rest } from "cloudly-rest";
|
|
|
5
5
|
import { Accounts } from "./Accounts";
|
|
6
6
|
import { Cards } from "./Cards";
|
|
7
7
|
import { Exchanges } from "./Exchanges";
|
|
8
|
-
import {
|
|
8
|
+
import { Labels } from "./Labels";
|
|
9
9
|
import { Operations } from "./Operations";
|
|
10
10
|
import { Organizations } from "./Organizations";
|
|
11
11
|
import { Reports } from "./Reports";
|
|
@@ -27,7 +27,8 @@ export declare class Client extends rest.Client<gracely.Error> {
|
|
|
27
27
|
readonly settlements: Settlements;
|
|
28
28
|
readonly transactions: Transactions;
|
|
29
29
|
readonly treasury: Treasury;
|
|
30
|
-
readonly flags:
|
|
30
|
+
readonly flags: Labels;
|
|
31
|
+
readonly groups: Labels;
|
|
31
32
|
readonly userwidgets: (server: string, application: string) => userwidgets.ClientCollection;
|
|
32
33
|
readonly version: Version;
|
|
33
34
|
static create<T = Record<string, any>>(server: string, key?: string, load?: (client: http.Client) => T): Client & T;
|
package/dist/Client/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { rest } from "cloudly-rest";
|
|
|
4
4
|
import { Accounts } from "./Accounts";
|
|
5
5
|
import { Cards } from "./Cards";
|
|
6
6
|
import { Exchanges } from "./Exchanges";
|
|
7
|
-
import {
|
|
7
|
+
import { Labels } from "./Labels";
|
|
8
8
|
import { Operations } from "./Operations";
|
|
9
9
|
import { Organizations } from "./Organizations";
|
|
10
10
|
import { Reports } from "./Reports";
|
|
@@ -26,7 +26,8 @@ export class Client extends rest.Client {
|
|
|
26
26
|
this.settlements = new Settlements(this.client);
|
|
27
27
|
this.transactions = new Transactions(this.client);
|
|
28
28
|
this.treasury = new Treasury(this.client);
|
|
29
|
-
this.flags = new
|
|
29
|
+
this.flags = new Labels(this.client, "flag");
|
|
30
|
+
this.groups = new Labels(this.client, "group");
|
|
30
31
|
this.userwidgets = (server, application) => new userwidgets.ClientCollection(new http.Client(server), { application });
|
|
31
32
|
this.version = new Version(this.client);
|
|
32
33
|
}
|
package/dist/Client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,E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,CAAC,CAAA;QACvC,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACzC,gBAAW,GAAG,CAAC,MAAc,EAAE,WAAmB,EAAE,EAAE,CAC9D,IAAI,WAAW,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAA;QAClE,YAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAa5C,CAAC;IAXA,MAAM,CAAC,MAAM,CAA0B,MAAc,EAAE,GAAY,EAAE,IAAiC;QACrG,IAAI,UAAsC,CAAA;QAC1C,MAAM,MAAM,GAAW,IAAI,MAAM,CAChC,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAgB,MAAM,EAAE,GAAG,EAAE;YACzD,YAAY,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAC,CACH,CAAA;QACD,IAAI,IAAI;YACP,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;QACxC,OAAO,MAAoB,CAAA;IAC5B,CAAC;CACD"}
|
package/dist/Label.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export interface Label {
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Label {
|
|
8
|
+
const type: isly.object.ExtendableType<Label>;
|
|
9
|
+
const is: isly.Type.IsFunction<Label>;
|
|
10
|
+
const flaw: isly.Type.FlawFunction;
|
|
11
|
+
type Type = typeof Type.values[number];
|
|
12
|
+
namespace Type {
|
|
13
|
+
const values: readonly ["flag", "group"];
|
|
14
|
+
const type: isly.Type<"group" | "flag">;
|
|
15
|
+
const is: isly.Type.IsFunction<"group" | "flag">;
|
|
16
|
+
const flaw: isly.Type.FlawFunction;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/Label.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var Label;
|
|
3
|
+
(function (Label) {
|
|
4
|
+
Label.type = isly.object({ name: isly.string(), color: isly.string(), description: isly.string() });
|
|
5
|
+
Label.is = Label.type.is;
|
|
6
|
+
Label.flaw = Label.type.flaw;
|
|
7
|
+
let Type;
|
|
8
|
+
(function (Type) {
|
|
9
|
+
Type.values = ["flag", "group"];
|
|
10
|
+
Type.type = isly.string(Type.values);
|
|
11
|
+
Type.is = Type.type.is;
|
|
12
|
+
Type.flaw = Type.type.flaw;
|
|
13
|
+
})(Type = Label.Type || (Label.Type = {}));
|
|
14
|
+
})(Label || (Label = {}));
|
|
15
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"../","sources":["Label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,KAAK,CAWrB;AAXD,WAAiB,KAAK;IACR,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACpG,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;IACZ,UAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAA;IAE7B,IAAiB,IAAI,CAKpB;IALD,WAAiB,IAAI;QACP,WAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAA;QACnC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;QAC1B,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;QACZ,SAAI,GAAG,KAAA,IAAI,CAAC,IAAI,CAAA;IAC9B,CAAC,EALgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAKpB;AACF,CAAC,EAXgB,KAAK,KAAL,KAAK,QAWrB"}
|
package/dist/pax2pay.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier";
|
|
|
20
20
|
export { Amount } from "./Amount";
|
|
21
21
|
export { Amounts } from "./Amounts";
|
|
22
22
|
export { Report } from "./Report";
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label";
|
|
24
24
|
export { Identity } from "./Identity";
|
|
25
25
|
export { Key } from "./Key";
|
|
26
26
|
export { Exchange } from "./Exchange";
|
package/dist/pax2pay.js
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier";
|
|
|
20
20
|
export { Amount } from "./Amount";
|
|
21
21
|
export { Amounts } from "./Amounts";
|
|
22
22
|
export { Report } from "./Report";
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label";
|
|
24
24
|
export { Identity } from "./Identity";
|
|
25
25
|
export { Key } from "./Key";
|
|
26
26
|
export { Exchange } from "./Exchange";
|
package/dist/pax2pay.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pax2pay.js","sourceRoot":"../","sources":["pax2pay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE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AM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
package/package.json
CHANGED
package/pax2pay.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier"
|
|
|
20
20
|
export { Amount } from "./Amount"
|
|
21
21
|
export { Amounts } from "./Amounts"
|
|
22
22
|
export { Report } from "./Report"
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label"
|
|
24
24
|
export { Identity } from "./Identity"
|
|
25
25
|
export { Key } from "./Key"
|
|
26
26
|
export { Exchange } from "./Exchange"
|
package/Client/Flags.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely"
|
|
2
|
-
import { http } from "cloudly-http"
|
|
3
|
-
import { Flag } from "../Flag"
|
|
4
|
-
|
|
5
|
-
export class Flags {
|
|
6
|
-
constructor(private readonly client: http.Client) {}
|
|
7
|
-
async create(flag: Flag): Promise<Flag | gracely.Error> {
|
|
8
|
-
return this.client.post<Flag>("/flag", flag)
|
|
9
|
-
}
|
|
10
|
-
async replace(flag: Flag): Promise<Flag | gracely.Error> {
|
|
11
|
-
return this.client.put<Flag>("/flag", flag)
|
|
12
|
-
}
|
|
13
|
-
async list(): Promise<Flag[] | gracely.Error> {
|
|
14
|
-
return this.client.get<Flag[]>("/flag")
|
|
15
|
-
}
|
|
16
|
-
async remove(name: string): Promise<Flag | gracely.Error> {
|
|
17
|
-
return this.client.delete(`/flag/${name}`)
|
|
18
|
-
}
|
|
19
|
-
}
|
package/Flag.ts
DELETED
package/dist/Client/Flags.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely";
|
|
2
|
-
import { http } from "cloudly-http";
|
|
3
|
-
import { Flag } from "../Flag";
|
|
4
|
-
export declare class Flags {
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: http.Client);
|
|
7
|
-
create(flag: Flag): Promise<Flag | gracely.Error>;
|
|
8
|
-
replace(flag: Flag): Promise<Flag | gracely.Error>;
|
|
9
|
-
list(): Promise<Flag[] | gracely.Error>;
|
|
10
|
-
remove(name: string): Promise<Flag | gracely.Error>;
|
|
11
|
-
}
|
package/dist/Client/Flags.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class Flags {
|
|
2
|
-
constructor(client) {
|
|
3
|
-
this.client = client;
|
|
4
|
-
}
|
|
5
|
-
async create(flag) {
|
|
6
|
-
return this.client.post("/flag", flag);
|
|
7
|
-
}
|
|
8
|
-
async replace(flag) {
|
|
9
|
-
return this.client.put("/flag", flag);
|
|
10
|
-
}
|
|
11
|
-
async list() {
|
|
12
|
-
return this.client.get("/flag");
|
|
13
|
-
}
|
|
14
|
-
async remove(name) {
|
|
15
|
-
return this.client.delete(`/flag/${name}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=Flags.js.map
|
package/dist/Client/Flags.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flags.js","sourceRoot":"../","sources":["Client/Flags.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,IAAU;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAU;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,OAAO,CAAC,CAAA;IACxC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;IAC3C,CAAC;CACD"}
|
package/dist/Flag.d.ts
DELETED
package/dist/Flag.js
DELETED
package/dist/Flag.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flag.js","sourceRoot":"../","sources":["Flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAO,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA"}
|