@fossa-app/bridge 0.1.19 → 0.1.21
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/dist/Models/ApiModels/EnvelopeModels.d.ts +21 -0
- package/dist/Models/ApiModels/EnvelopeModels.js +34 -0
- package/dist/Models/ApiModels/EnvelopeModels.js.map +1 -0
- package/dist/Models/ApiModels/PayloadModels.d.ts +147 -0
- package/dist/Models/ApiModels/PayloadModels.js +286 -0
- package/dist/Models/ApiModels/PayloadModels.js.map +1 -0
- package/dist/Models/ApiModels/SharedModels.d.ts +41 -0
- package/dist/Models/ApiModels/SharedModels.js +79 -0
- package/dist/Models/ApiModels/SharedModels.js.map +1 -0
- package/dist/Services/Clients/BranchClient.d.ts +23 -0
- package/dist/Services/Clients/BranchClient.js +62 -0
- package/dist/Services/Clients/BranchClient.js.map +1 -0
- package/dist/Services/Clients/CompanyClient.d.ts +18 -0
- package/dist/Services/Clients/CompanyClient.js +45 -0
- package/dist/Services/Clients/CompanyClient.js.map +1 -0
- package/dist/Services/Clients/CompanyLicenseClient.d.ts +15 -0
- package/dist/Services/Clients/CompanyLicenseClient.js +31 -0
- package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
- package/dist/Services/Clients/CompanySettingsClient.d.ts +18 -0
- package/dist/Services/Clients/CompanySettingsClient.js +45 -0
- package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
- package/dist/Services/Clients/DepartmentClient.d.ts +23 -0
- package/dist/Services/Clients/DepartmentClient.js +62 -0
- package/dist/Services/Clients/DepartmentClient.js.map +1 -0
- package/dist/Services/Clients/EmployeeClient.d.ts +34 -0
- package/dist/Services/Clients/EmployeeClient.js +101 -0
- package/dist/Services/Clients/EmployeeClient.js.map +1 -0
- package/dist/Services/Clients/IBranchClient.d.ts +10 -0
- package/dist/Services/Clients/IBranchClient.js +2 -0
- package/dist/Services/Clients/IBranchClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyClient.d.ts +7 -0
- package/dist/Services/Clients/ICompanyClient.js +2 -0
- package/dist/Services/Clients/ICompanyClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyLicenseClient.d.ts +6 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js +2 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js.map +1 -0
- package/dist/Services/Clients/ICompanySettingsClient.d.ts +7 -0
- package/dist/Services/Clients/ICompanySettingsClient.js +2 -0
- package/dist/Services/Clients/ICompanySettingsClient.js.map +1 -0
- package/dist/Services/Clients/IDepartmentClient.d.ts +10 -0
- package/dist/Services/Clients/IDepartmentClient.js +2 -0
- package/dist/Services/Clients/IDepartmentClient.js.map +1 -0
- package/dist/Services/Clients/IEmployeeClient.d.ts +15 -0
- package/dist/Services/Clients/IEmployeeClient.js +2 -0
- package/dist/Services/Clients/IEmployeeClient.js.map +1 -0
- package/dist/Services/Clients/IIdentityClient.d.ts +4 -0
- package/dist/Services/Clients/IIdentityClient.js +2 -0
- package/dist/Services/Clients/IIdentityClient.js.map +1 -0
- package/dist/Services/Clients/ISystemLicenseClient.d.ts +5 -0
- package/dist/Services/Clients/ISystemLicenseClient.js +2 -0
- package/dist/Services/Clients/ISystemLicenseClient.js.map +1 -0
- package/dist/Services/Clients/IdentityClient.d.ts +12 -0
- package/dist/Services/Clients/IdentityClient.js +24 -0
- package/dist/Services/Clients/IdentityClient.js.map +1 -0
- package/dist/Services/Clients/SystemLicenseClient.d.ts +13 -0
- package/dist/Services/Clients/SystemLicenseClient.js +24 -0
- package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
- package/dist/Services/Endpoints.d.ts +10 -0
- package/dist/Services/Endpoints.js +11 -0
- package/dist/Services/Endpoints.js.map +1 -0
- package/dist/Services/IHttpTransport.d.ts +7 -0
- package/dist/Services/IHttpTransport.js +2 -0
- package/dist/Services/IHttpTransport.js.map +1 -0
- package/dist/Services/UrlHelpers.d.ts +23 -0
- package/dist/Services/UrlHelpers.js +66 -0
- package/dist/Services/UrlHelpers.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BranchModificationModel, BranchRetrievalModel, BranchQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
3
|
+
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
5
|
+
import { IBranchClient } from "./IBranchClient.ts";
|
|
6
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
7
|
+
export declare class BranchClient implements IBranchClient {
|
|
8
|
+
readonly transport: IHttpTransport;
|
|
9
|
+
constructor(transport: IHttpTransport);
|
|
10
|
+
GetBranchesAsync(query: BranchQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<BranchRetrievalModel>>;
|
|
11
|
+
GetBranchAsync(id: int64, cancellationToken: AbortSignal): Promise<BranchRetrievalModel>;
|
|
12
|
+
CreateBranchAsync(model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
13
|
+
UpdateBranchAsync(id: int64, model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
14
|
+
DeleteBranchAsync(id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare function BranchClient_$reflection(): TypeInfo;
|
|
17
|
+
export declare function BranchClient_$ctor_Z7C557C0(transport: IHttpTransport): BranchClient;
|
|
18
|
+
export declare function BranchClient__GetBranchesAsync_Z2141A234(_: BranchClient, query: BranchQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<BranchRetrievalModel>>;
|
|
19
|
+
export declare function BranchClient__GetBranchAsync_7C8D4A79(_: BranchClient, id: int64, cancellationToken: AbortSignal): Promise<BranchRetrievalModel>;
|
|
20
|
+
export declare function BranchClient__CreateBranchAsync_5D870989(_: BranchClient, model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
21
|
+
export declare function BranchClient__UpdateBranchAsync_Z2969DF8A(_: BranchClient, id: int64, model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
22
|
+
export declare function BranchClient__DeleteBranchAsync_7C8D4A79(_: BranchClient, id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
23
|
+
export declare function BranchClient__buildUrl_Z113C1396(this$: BranchClient, queryParams: BranchQueryRequestModel): string;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z524259A4, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { Branches } from "../Endpoints.js";
|
|
4
|
+
import { singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
import { singleton as singleton_1, empty as empty_1, map, isEmpty, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
|
|
6
|
+
import { nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
|
|
7
|
+
import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
|
|
8
|
+
export class BranchClient {
|
|
9
|
+
transport;
|
|
10
|
+
constructor(transport) {
|
|
11
|
+
this.transport = transport;
|
|
12
|
+
}
|
|
13
|
+
GetBranchesAsync(query, cancellationToken) {
|
|
14
|
+
const this$ = this;
|
|
15
|
+
return BranchClient__GetBranchesAsync_Z2141A234(this$, query, cancellationToken);
|
|
16
|
+
}
|
|
17
|
+
GetBranchAsync(id, cancellationToken) {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return BranchClient__GetBranchAsync_7C8D4A79(this$, id, cancellationToken);
|
|
20
|
+
}
|
|
21
|
+
CreateBranchAsync(model, cancellationToken) {
|
|
22
|
+
const this$ = this;
|
|
23
|
+
return BranchClient__CreateBranchAsync_5D870989(this$, model, cancellationToken);
|
|
24
|
+
}
|
|
25
|
+
UpdateBranchAsync(id, model, cancellationToken) {
|
|
26
|
+
const this$ = this;
|
|
27
|
+
return BranchClient__UpdateBranchAsync_Z2969DF8A(this$, id, model, cancellationToken);
|
|
28
|
+
}
|
|
29
|
+
DeleteBranchAsync(id, cancellationToken) {
|
|
30
|
+
const this$ = this;
|
|
31
|
+
return BranchClient__DeleteBranchAsync_7C8D4A79(this$, id, cancellationToken);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function BranchClient_$reflection() {
|
|
35
|
+
return class_type("Fossa.Bridge.Services.Clients.BranchClient", undefined, BranchClient);
|
|
36
|
+
}
|
|
37
|
+
export function BranchClient_$ctor_Z7C557C0(transport) {
|
|
38
|
+
return new BranchClient(transport);
|
|
39
|
+
}
|
|
40
|
+
export function BranchClient__GetBranchesAsync_Z2141A234(_, query, cancellationToken) {
|
|
41
|
+
return _.transport.GetAsync(BranchClient__buildUrl_Z113C1396(_, query), cancellationToken);
|
|
42
|
+
}
|
|
43
|
+
export function BranchClient__GetBranchAsync_7C8D4A79(_, id, cancellationToken) {
|
|
44
|
+
return _.transport.GetAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
45
|
+
}
|
|
46
|
+
export function BranchClient__CreateBranchAsync_5D870989(_, model, cancellationToken) {
|
|
47
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), empty()), model, cancellationToken);
|
|
48
|
+
}
|
|
49
|
+
export function BranchClient__UpdateBranchAsync_Z2969DF8A(_, id, model, cancellationToken) {
|
|
50
|
+
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
51
|
+
}
|
|
52
|
+
export function BranchClient__DeleteBranchAsync_7C8D4A79(_, id, cancellationToken) {
|
|
53
|
+
return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
54
|
+
}
|
|
55
|
+
export function BranchClient__buildUrl_Z113C1396(this$, queryParams) {
|
|
56
|
+
const parameters = toList(delay(() => {
|
|
57
|
+
let matchValue = undefined, ids_1 = undefined;
|
|
58
|
+
return append((matchValue = ofNullable(queryParams.Id), (matchValue != null) ? (!isEmpty(value(matchValue)) ? ((ids_1 = value(matchValue), map((id) => ["Id", UrlPart_op_Implicit_Z524259C1(id)], ids_1))) : (empty_1())) : (empty_1())), delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => ((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1())))))));
|
|
59
|
+
}));
|
|
60
|
+
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), parameters);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=BranchClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/BranchClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAW,6BAA6B,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC5J,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAc,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAq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AC,MAAM,CAAoB,CAAC,WAAW,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,YAAY,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,UAAU,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvsC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompanyModificationModel, CompanyRetrievalModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
+
import { ICompanyClient } from "./ICompanyClient.ts";
|
|
4
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
5
|
+
export declare class CompanyClient implements ICompanyClient {
|
|
6
|
+
readonly transport: IHttpTransport;
|
|
7
|
+
constructor(transport: IHttpTransport);
|
|
8
|
+
GetCompanyAsync(cancellationToken: AbortSignal): Promise<CompanyRetrievalModel>;
|
|
9
|
+
CreateCompanyAsync(model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
10
|
+
UpdateCompanyAsync(model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
11
|
+
DeleteCompanyAsync(cancellationToken: AbortSignal): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare function CompanyClient_$reflection(): TypeInfo;
|
|
14
|
+
export declare function CompanyClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanyClient;
|
|
15
|
+
export declare function CompanyClient__GetCompanyAsync_19FF2466(_: CompanyClient, cancellationToken: AbortSignal): Promise<CompanyRetrievalModel>;
|
|
16
|
+
export declare function CompanyClient__CreateCompanyAsync_27EADA(_: CompanyClient, model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
17
|
+
export declare function CompanyClient__UpdateCompanyAsync_27EADA(_: CompanyClient, model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
18
|
+
export declare function CompanyClient__DeleteCompanyAsync_19FF2466(_: CompanyClient, cancellationToken: AbortSignal): Promise<void>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { Company } from "../Endpoints.js";
|
|
4
|
+
import { empty, singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
export class CompanyClient {
|
|
6
|
+
transport;
|
|
7
|
+
constructor(transport) {
|
|
8
|
+
this.transport = transport;
|
|
9
|
+
}
|
|
10
|
+
GetCompanyAsync(cancellationToken) {
|
|
11
|
+
const this$ = this;
|
|
12
|
+
return CompanyClient__GetCompanyAsync_19FF2466(this$, cancellationToken);
|
|
13
|
+
}
|
|
14
|
+
CreateCompanyAsync(model, cancellationToken) {
|
|
15
|
+
const this$ = this;
|
|
16
|
+
return CompanyClient__CreateCompanyAsync_27EADA(this$, model, cancellationToken);
|
|
17
|
+
}
|
|
18
|
+
UpdateCompanyAsync(model, cancellationToken) {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return CompanyClient__UpdateCompanyAsync_27EADA(this$, model, cancellationToken);
|
|
21
|
+
}
|
|
22
|
+
DeleteCompanyAsync(cancellationToken) {
|
|
23
|
+
const this$ = this;
|
|
24
|
+
return CompanyClient__DeleteCompanyAsync_19FF2466(this$, cancellationToken);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function CompanyClient_$reflection() {
|
|
28
|
+
return class_type("Fossa.Bridge.Services.Clients.CompanyClient", undefined, CompanyClient);
|
|
29
|
+
}
|
|
30
|
+
export function CompanyClient_$ctor_Z7C557C0(transport) {
|
|
31
|
+
return new CompanyClient(transport);
|
|
32
|
+
}
|
|
33
|
+
export function CompanyClient__GetCompanyAsync_19FF2466(_, cancellationToken) {
|
|
34
|
+
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Company)), empty()), cancellationToken);
|
|
35
|
+
}
|
|
36
|
+
export function CompanyClient__CreateCompanyAsync_27EADA(_, model, cancellationToken) {
|
|
37
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Company)), empty()), model, cancellationToken);
|
|
38
|
+
}
|
|
39
|
+
export function CompanyClient__UpdateCompanyAsync_27EADA(_, model, cancellationToken) {
|
|
40
|
+
return _.transport.PutAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Company)), empty()), model, cancellationToken);
|
|
41
|
+
}
|
|
42
|
+
export function CompanyClient__DeleteCompanyAsync_19FF2466(_, cancellationToken) {
|
|
43
|
+
return _.transport.DeleteAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Company)), empty()), cancellationToken);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=CompanyClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanyClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9F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BAAiB,CAAC,CAAC;AAC7K,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,CAAgB,EAAE,KAA+B,EAAE,iBAA8B;IACtI,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAA2B,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AACxL,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,CAAgB,EAAE,KAA+B,EAAE,iBAA8B;IACtI,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAA2B,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AACvL,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,CAAgB,EAAE,iBAA8B;IACvG,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;AACzJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LicenseResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
2
|
+
import { CompanyEntitlementsModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
4
|
+
import { ICompanyLicenseClient } from "./ICompanyLicenseClient.ts";
|
|
5
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
6
|
+
export declare class CompanyLicenseClient implements ICompanyLicenseClient {
|
|
7
|
+
readonly transport: IHttpTransport;
|
|
8
|
+
constructor(transport: IHttpTransport);
|
|
9
|
+
GetLicenseAsync(cancellationToken: AbortSignal): Promise<LicenseResponseModel$1<CompanyEntitlementsModel>>;
|
|
10
|
+
CreateLicenseAsync(model: string, cancellationToken: AbortSignal): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare function CompanyLicenseClient_$reflection(): TypeInfo;
|
|
13
|
+
export declare function CompanyLicenseClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanyLicenseClient;
|
|
14
|
+
export declare function CompanyLicenseClient__GetLicenseAsync_19FF2466(_: CompanyLicenseClient, cancellationToken: AbortSignal): Promise<LicenseResponseModel$1<CompanyEntitlementsModel>>;
|
|
15
|
+
export declare function CompanyLicenseClient__CreateLicenseAsync_53AC27FD(_: CompanyLicenseClient, model: string, cancellationToken: AbortSignal): Promise<void>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { CompanyLicense } from "../Endpoints.js";
|
|
4
|
+
import { empty, singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
export class CompanyLicenseClient {
|
|
6
|
+
transport;
|
|
7
|
+
constructor(transport) {
|
|
8
|
+
this.transport = transport;
|
|
9
|
+
}
|
|
10
|
+
GetLicenseAsync(cancellationToken) {
|
|
11
|
+
const this$ = this;
|
|
12
|
+
return CompanyLicenseClient__GetLicenseAsync_19FF2466(this$, cancellationToken);
|
|
13
|
+
}
|
|
14
|
+
CreateLicenseAsync(model, cancellationToken) {
|
|
15
|
+
const this$ = this;
|
|
16
|
+
return CompanyLicenseClient__CreateLicenseAsync_53AC27FD(this$, model, cancellationToken);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export function CompanyLicenseClient_$reflection() {
|
|
20
|
+
return class_type("Fossa.Bridge.Services.Clients.CompanyLicenseClient", undefined, CompanyLicenseClient);
|
|
21
|
+
}
|
|
22
|
+
export function CompanyLicenseClient_$ctor_Z7C557C0(transport) {
|
|
23
|
+
return new CompanyLicenseClient(transport);
|
|
24
|
+
}
|
|
25
|
+
export function CompanyLicenseClient__GetLicenseAsync_19FF2466(_, cancellationToken) {
|
|
26
|
+
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanyLicense)), empty()), cancellationToken);
|
|
27
|
+
}
|
|
28
|
+
export function CompanyLicenseClient__CreateLicenseAsync_53AC27FD(_, model, cancellationToken) {
|
|
29
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanyLicense)), empty()), model, cancellationToken);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=CompanyLicenseClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanyLicenseClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyLicenseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,OAAO,oBAAoB;IACpB,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,eAAe,CAAC,iBAA8B;QAC1C,MAAM,KAAK,GAAyB,IAAI,CAAC;QACzC,OAAO,8CAA8C,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACpF,CAAC;IACD,kBAAkB,CAAC,KAAa,EAAE,iBAA8B;QAC5D,MAAM,KAAK,GAAyB,IAAI,CAAC;QACzC,OAAO,iDAAiD,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAC9F,CAAC;CACJ;AAED,MAAM,UAAU,gCAAgC;IAC5C,OAAO,UAAU,CAAC,oDAAoD,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAC7G,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,SAAyB;IACzE,OAAO,IAAI,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,CAAuB,EAAE,iBAA8B;IAClH,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAmD,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC/M,CAAC;AAED,MAAM,UAAU,iDAAiD,CAAC,CAAuB,EAAE,KAAa,EAAE,iBAA8B;IACpI,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAS,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AAC7K,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompanySettingsModificationModel, CompanySettingsRetrievalModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
+
import { ICompanySettingsClient } from "./ICompanySettingsClient.ts";
|
|
4
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
5
|
+
export declare class CompanySettingsClient implements ICompanySettingsClient {
|
|
6
|
+
readonly transport: IHttpTransport;
|
|
7
|
+
constructor(transport: IHttpTransport);
|
|
8
|
+
GetCompanySettingsAsync(cancellationToken: AbortSignal): Promise<CompanySettingsRetrievalModel>;
|
|
9
|
+
CreateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
10
|
+
UpdateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
11
|
+
DeleteCompanySettingsAsync(cancellationToken: AbortSignal): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare function CompanySettingsClient_$reflection(): TypeInfo;
|
|
14
|
+
export declare function CompanySettingsClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanySettingsClient;
|
|
15
|
+
export declare function CompanySettingsClient__GetCompanySettingsAsync_19FF2466(_: CompanySettingsClient, cancellationToken: AbortSignal): Promise<CompanySettingsRetrievalModel>;
|
|
16
|
+
export declare function CompanySettingsClient__CreateCompanySettingsAsync_Z2D6D11A1(_: CompanySettingsClient, model: CompanySettingsModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
17
|
+
export declare function CompanySettingsClient__UpdateCompanySettingsAsync_Z2D6D11A1(_: CompanySettingsClient, model: CompanySettingsModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
18
|
+
export declare function CompanySettingsClient__DeleteCompanySettingsAsync_19FF2466(_: CompanySettingsClient, cancellationToken: AbortSignal): Promise<void>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { CompanySettings } from "../Endpoints.js";
|
|
4
|
+
import { empty, singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
export class CompanySettingsClient {
|
|
6
|
+
transport;
|
|
7
|
+
constructor(transport) {
|
|
8
|
+
this.transport = transport;
|
|
9
|
+
}
|
|
10
|
+
GetCompanySettingsAsync(cancellationToken) {
|
|
11
|
+
const this$ = this;
|
|
12
|
+
return CompanySettingsClient__GetCompanySettingsAsync_19FF2466(this$, cancellationToken);
|
|
13
|
+
}
|
|
14
|
+
CreateCompanySettingsAsync(model, cancellationToken) {
|
|
15
|
+
const this$ = this;
|
|
16
|
+
return CompanySettingsClient__CreateCompanySettingsAsync_Z2D6D11A1(this$, model, cancellationToken);
|
|
17
|
+
}
|
|
18
|
+
UpdateCompanySettingsAsync(model, cancellationToken) {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return CompanySettingsClient__UpdateCompanySettingsAsync_Z2D6D11A1(this$, model, cancellationToken);
|
|
21
|
+
}
|
|
22
|
+
DeleteCompanySettingsAsync(cancellationToken) {
|
|
23
|
+
const this$ = this;
|
|
24
|
+
return CompanySettingsClient__DeleteCompanySettingsAsync_19FF2466(this$, cancellationToken);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function CompanySettingsClient_$reflection() {
|
|
28
|
+
return class_type("Fossa.Bridge.Services.Clients.CompanySettingsClient", undefined, CompanySettingsClient);
|
|
29
|
+
}
|
|
30
|
+
export function CompanySettingsClient_$ctor_Z7C557C0(transport) {
|
|
31
|
+
return new CompanySettingsClient(transport);
|
|
32
|
+
}
|
|
33
|
+
export function CompanySettingsClient__GetCompanySettingsAsync_19FF2466(_, cancellationToken) {
|
|
34
|
+
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanySettings)), empty()), cancellationToken);
|
|
35
|
+
}
|
|
36
|
+
export function CompanySettingsClient__CreateCompanySettingsAsync_Z2D6D11A1(_, model, cancellationToken) {
|
|
37
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanySettings)), empty()), model, cancellationToken);
|
|
38
|
+
}
|
|
39
|
+
export function CompanySettingsClient__UpdateCompanySettingsAsync_Z2D6D11A1(_, model, cancellationToken) {
|
|
40
|
+
return _.transport.PutAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanySettings)), empty()), model, cancellationToken);
|
|
41
|
+
}
|
|
42
|
+
export function CompanySettingsClient__DeleteCompanySettingsAsync_19FF2466(_, cancellationToken) {
|
|
43
|
+
return _.transport.DeleteAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(CompanySettings)), empty()), cancellationToken);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=CompanySettingsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanySettingsClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanySettingsClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,OAAO,qBAAqB;IACrB,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,uBAAuB,CAAC,iBAA8B;QAClD,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,uDAAuD,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAC7F,CAAC;IACD,0BAA0B,CAAC,KAAuC,EAAE,iBAA8B;QAC9F,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,2DAA2D,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACxG,CAAC;IACD,0BAA0B,CAAC,KAAuC,EAAE,iBAA8B;QAC9F,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,2DAA2D,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACxG,CAAC;IACD,0BAA0B,CAAC,iBAA8B;QACrD,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,0DAA0D,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAChG,CAAC;CACJ;AAED,MAAM,UAAU,iCAAiC;IAC7C,OAAO,UAAU,CAAC,qDAAqD,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAC/G,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,SAAyB;IAC1E,OAAO,IAAI,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,uDAAuD,CAAC,CAAwB,EAAE,iBAA8B;IAC5H,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAgC,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC7L,CAAC;AAED,MAAM,UAAU,2DAA2D,CAAC,CAAwB,EAAE,KAAuC,EAAE,iBAA8B;IACzK,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAmC,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AACxM,CAAC;AAED,MAAM,UAAU,2DAA2D,CAAC,CAAwB,EAAE,KAAuC,EAAE,iBAA8B;IACzK,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAmC,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AACvM,CAAC;AAED,MAAM,UAAU,0DAA0D,CAAC,CAAwB,EAAE,iBAA8B;IAC/H,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;AACjK,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DepartmentModificationModel, DepartmentRetrievalModel, DepartmentQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
3
|
+
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
5
|
+
import { IDepartmentClient } from "./IDepartmentClient.ts";
|
|
6
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
7
|
+
export declare class DepartmentClient implements IDepartmentClient {
|
|
8
|
+
readonly transport: IHttpTransport;
|
|
9
|
+
constructor(transport: IHttpTransport);
|
|
10
|
+
GetDepartmentsAsync(query: DepartmentQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<DepartmentRetrievalModel>>;
|
|
11
|
+
GetDepartmentAsync(id: int64, cancellationToken: AbortSignal): Promise<DepartmentRetrievalModel>;
|
|
12
|
+
CreateDepartmentAsync(model: DepartmentModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
13
|
+
UpdateDepartmentAsync(id: int64, model: DepartmentModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
14
|
+
DeleteDepartmentAsync(id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare function DepartmentClient_$reflection(): TypeInfo;
|
|
17
|
+
export declare function DepartmentClient_$ctor_Z7C557C0(transport: IHttpTransport): DepartmentClient;
|
|
18
|
+
export declare function DepartmentClient__GetDepartmentsAsync_10AA29FC(_: DepartmentClient, query: DepartmentQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<DepartmentRetrievalModel>>;
|
|
19
|
+
export declare function DepartmentClient__GetDepartmentAsync_7C8D4A79(_: DepartmentClient, id: int64, cancellationToken: AbortSignal): Promise<DepartmentRetrievalModel>;
|
|
20
|
+
export declare function DepartmentClient__CreateDepartmentAsync_Z5A779187(_: DepartmentClient, model: DepartmentModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
21
|
+
export declare function DepartmentClient__UpdateDepartmentAsync_Z6F922BBA(_: DepartmentClient, id: int64, model: DepartmentModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
22
|
+
export declare function DepartmentClient__DeleteDepartmentAsync_7C8D4A79(_: DepartmentClient, id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
23
|
+
export declare function DepartmentClient__buildUrl_Z2E433DA6(this$: DepartmentClient, queryParams: DepartmentQueryRequestModel): string;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z524259A4, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { Departments } from "../Endpoints.js";
|
|
4
|
+
import { singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
import { singleton as singleton_1, empty as empty_1, map, isEmpty, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
|
|
6
|
+
import { nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
|
|
7
|
+
import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
|
|
8
|
+
export class DepartmentClient {
|
|
9
|
+
transport;
|
|
10
|
+
constructor(transport) {
|
|
11
|
+
this.transport = transport;
|
|
12
|
+
}
|
|
13
|
+
GetDepartmentsAsync(query, cancellationToken) {
|
|
14
|
+
const this$ = this;
|
|
15
|
+
return DepartmentClient__GetDepartmentsAsync_10AA29FC(this$, query, cancellationToken);
|
|
16
|
+
}
|
|
17
|
+
GetDepartmentAsync(id, cancellationToken) {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return DepartmentClient__GetDepartmentAsync_7C8D4A79(this$, id, cancellationToken);
|
|
20
|
+
}
|
|
21
|
+
CreateDepartmentAsync(model, cancellationToken) {
|
|
22
|
+
const this$ = this;
|
|
23
|
+
return DepartmentClient__CreateDepartmentAsync_Z5A779187(this$, model, cancellationToken);
|
|
24
|
+
}
|
|
25
|
+
UpdateDepartmentAsync(id, model, cancellationToken) {
|
|
26
|
+
const this$ = this;
|
|
27
|
+
return DepartmentClient__UpdateDepartmentAsync_Z6F922BBA(this$, id, model, cancellationToken);
|
|
28
|
+
}
|
|
29
|
+
DeleteDepartmentAsync(id, cancellationToken) {
|
|
30
|
+
const this$ = this;
|
|
31
|
+
return DepartmentClient__DeleteDepartmentAsync_7C8D4A79(this$, id, cancellationToken);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function DepartmentClient_$reflection() {
|
|
35
|
+
return class_type("Fossa.Bridge.Services.Clients.DepartmentClient", undefined, DepartmentClient);
|
|
36
|
+
}
|
|
37
|
+
export function DepartmentClient_$ctor_Z7C557C0(transport) {
|
|
38
|
+
return new DepartmentClient(transport);
|
|
39
|
+
}
|
|
40
|
+
export function DepartmentClient__GetDepartmentsAsync_10AA29FC(_, query, cancellationToken) {
|
|
41
|
+
return _.transport.GetAsync(DepartmentClient__buildUrl_Z2E433DA6(_, query), cancellationToken);
|
|
42
|
+
}
|
|
43
|
+
export function DepartmentClient__GetDepartmentAsync_7C8D4A79(_, id, cancellationToken) {
|
|
44
|
+
return _.transport.GetAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Departments), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
45
|
+
}
|
|
46
|
+
export function DepartmentClient__CreateDepartmentAsync_Z5A779187(_, model, cancellationToken) {
|
|
47
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Departments)), empty()), model, cancellationToken);
|
|
48
|
+
}
|
|
49
|
+
export function DepartmentClient__UpdateDepartmentAsync_Z6F922BBA(_, id, model, cancellationToken) {
|
|
50
|
+
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Departments), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
51
|
+
}
|
|
52
|
+
export function DepartmentClient__DeleteDepartmentAsync_7C8D4A79(_, id, cancellationToken) {
|
|
53
|
+
return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Departments), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
54
|
+
}
|
|
55
|
+
export function DepartmentClient__buildUrl_Z2E433DA6(this$, queryParams) {
|
|
56
|
+
const parameters = toList(delay(() => {
|
|
57
|
+
let matchValue = undefined, ids_1 = undefined;
|
|
58
|
+
return append((matchValue = ofNullable(queryParams.Id), (matchValue != null) ? (!isEmpty(value(matchValue)) ? ((ids_1 = value(matchValue), map((id) => ["Id", UrlPart_op_Implicit_Z524259C1(id)], ids_1))) : (empty_1())) : (empty_1())), delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => ((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1())))))));
|
|
59
|
+
}));
|
|
60
|
+
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Departments)), parameters);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=DepartmentClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepartmentClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/DepartmentClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAW,6BAA6B,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC5J,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAc,SAAS,EAAE,KAAK,EAAE,OAAO,EAA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K,CAAoB,GAAgC,EAAE,CAAC,MAAM,CAAoB,CAAC,WAAW,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,YAAY,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,UAAU,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvsC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACjG,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EmployeeManagementModel, EmployeeModificationModel, EmployeePagingRequestModel, EmployeeRetrievalModel, EmployeeQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
3
|
+
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
5
|
+
import { IEmployeeClient } from "./IEmployeeClient.ts";
|
|
6
|
+
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
7
|
+
export declare class EmployeeClient implements IEmployeeClient {
|
|
8
|
+
readonly transport: IHttpTransport;
|
|
9
|
+
constructor(transport: IHttpTransport);
|
|
10
|
+
GetEmployeesAsync(query: EmployeeQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<EmployeeRetrievalModel>>;
|
|
11
|
+
GetEmployeesPagingAsync(query: EmployeePagingRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<EmployeeRetrievalModel>>;
|
|
12
|
+
GetEmployeeAsync(id: int64, cancellationToken: AbortSignal): Promise<EmployeeRetrievalModel>;
|
|
13
|
+
GetCurrentEmployeeAsync(cancellationToken: AbortSignal): Promise<EmployeeRetrievalModel>;
|
|
14
|
+
CreateEmployeeAsync(model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
15
|
+
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
16
|
+
UpdateCurrentEmployeeAsync(model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
17
|
+
ManageEmployeeAsync(id: int64, model: EmployeeManagementModel, cancellationToken: AbortSignal): Promise<void>;
|
|
18
|
+
DeleteEmployeeAsync(id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
19
|
+
DeleteCurrentEmployeeAsync(cancellationToken: AbortSignal): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare function EmployeeClient_$reflection(): TypeInfo;
|
|
22
|
+
export declare function EmployeeClient_$ctor_Z7C557C0(transport: IHttpTransport): EmployeeClient;
|
|
23
|
+
export declare function EmployeeClient__GetEmployeesAsync_Z6542FA86(_: EmployeeClient, query: EmployeeQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<EmployeeRetrievalModel>>;
|
|
24
|
+
export declare function EmployeeClient__GetEmployeesPagingAsync_292CA386(_: EmployeeClient, query: EmployeePagingRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<EmployeeRetrievalModel>>;
|
|
25
|
+
export declare function EmployeeClient__GetEmployeeAsync_7C8D4A79(_: EmployeeClient, id: int64, cancellationToken: AbortSignal): Promise<EmployeeRetrievalModel>;
|
|
26
|
+
export declare function EmployeeClient__GetCurrentEmployeeAsync_19FF2466(_: EmployeeClient, cancellationToken: AbortSignal): Promise<EmployeeRetrievalModel>;
|
|
27
|
+
export declare function EmployeeClient__CreateEmployeeAsync_Z1E4F7401(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
28
|
+
export declare function EmployeeClient__UpdateEmployeeAsync_771CBF40(_: EmployeeClient, id: int64, model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
29
|
+
export declare function EmployeeClient__UpdateCurrentEmployeeAsync_Z1E4F7401(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
30
|
+
export declare function EmployeeClient__ManageEmployeeAsync_61B6C74D(_: EmployeeClient, id: int64, model: EmployeeManagementModel, cancellationToken: AbortSignal): Promise<void>;
|
|
31
|
+
export declare function EmployeeClient__DeleteEmployeeAsync_7C8D4A79(_: EmployeeClient, id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
32
|
+
export declare function EmployeeClient__DeleteCurrentEmployeeAsync_19FF2466(_: EmployeeClient, cancellationToken: AbortSignal): Promise<void>;
|
|
33
|
+
export declare function EmployeeClient__buildUrl_Z134B9264(this$: EmployeeClient, queryParams: EmployeeQueryRequestModel): string;
|
|
34
|
+
export declare function EmployeeClient__buildPagingUrl_5E920BE0(this$: EmployeeClient, queryParams: EmployeePagingRequestModel): string;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z1FBCCD16, UrlPart_op_Implicit_Z524259A4, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { Employee, Employees } from "../Endpoints.js";
|
|
4
|
+
import { singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
import { singleton as singleton_1, empty as empty_1, map, isEmpty, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
|
|
6
|
+
import { nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
|
|
7
|
+
import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
|
|
8
|
+
export class EmployeeClient {
|
|
9
|
+
transport;
|
|
10
|
+
constructor(transport) {
|
|
11
|
+
this.transport = transport;
|
|
12
|
+
}
|
|
13
|
+
GetEmployeesAsync(query, cancellationToken) {
|
|
14
|
+
const this$ = this;
|
|
15
|
+
return EmployeeClient__GetEmployeesAsync_Z6542FA86(this$, query, cancellationToken);
|
|
16
|
+
}
|
|
17
|
+
GetEmployeesPagingAsync(query, cancellationToken) {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return EmployeeClient__GetEmployeesPagingAsync_292CA386(this$, query, cancellationToken);
|
|
20
|
+
}
|
|
21
|
+
GetEmployeeAsync(id, cancellationToken) {
|
|
22
|
+
const this$ = this;
|
|
23
|
+
return EmployeeClient__GetEmployeeAsync_7C8D4A79(this$, id, cancellationToken);
|
|
24
|
+
}
|
|
25
|
+
GetCurrentEmployeeAsync(cancellationToken) {
|
|
26
|
+
const this$ = this;
|
|
27
|
+
return EmployeeClient__GetCurrentEmployeeAsync_19FF2466(this$, cancellationToken);
|
|
28
|
+
}
|
|
29
|
+
CreateEmployeeAsync(model, cancellationToken) {
|
|
30
|
+
const this$ = this;
|
|
31
|
+
return EmployeeClient__CreateEmployeeAsync_Z1E4F7401(this$, model, cancellationToken);
|
|
32
|
+
}
|
|
33
|
+
UpdateEmployeeAsync(id, model, cancellationToken) {
|
|
34
|
+
const this$ = this;
|
|
35
|
+
return EmployeeClient__UpdateEmployeeAsync_771CBF40(this$, id, model, cancellationToken);
|
|
36
|
+
}
|
|
37
|
+
UpdateCurrentEmployeeAsync(model, cancellationToken) {
|
|
38
|
+
const this$ = this;
|
|
39
|
+
return EmployeeClient__UpdateCurrentEmployeeAsync_Z1E4F7401(this$, model, cancellationToken);
|
|
40
|
+
}
|
|
41
|
+
ManageEmployeeAsync(id, model, cancellationToken) {
|
|
42
|
+
const this$ = this;
|
|
43
|
+
return EmployeeClient__ManageEmployeeAsync_61B6C74D(this$, id, model, cancellationToken);
|
|
44
|
+
}
|
|
45
|
+
DeleteEmployeeAsync(id, cancellationToken) {
|
|
46
|
+
const this$ = this;
|
|
47
|
+
return EmployeeClient__DeleteEmployeeAsync_7C8D4A79(this$, id, cancellationToken);
|
|
48
|
+
}
|
|
49
|
+
DeleteCurrentEmployeeAsync(cancellationToken) {
|
|
50
|
+
const this$ = this;
|
|
51
|
+
return EmployeeClient__DeleteCurrentEmployeeAsync_19FF2466(this$, cancellationToken);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export function EmployeeClient_$reflection() {
|
|
55
|
+
return class_type("Fossa.Bridge.Services.Clients.EmployeeClient", undefined, EmployeeClient);
|
|
56
|
+
}
|
|
57
|
+
export function EmployeeClient_$ctor_Z7C557C0(transport) {
|
|
58
|
+
return new EmployeeClient(transport);
|
|
59
|
+
}
|
|
60
|
+
export function EmployeeClient__GetEmployeesAsync_Z6542FA86(_, query, cancellationToken) {
|
|
61
|
+
return _.transport.GetAsync(EmployeeClient__buildUrl_Z134B9264(_, query), cancellationToken);
|
|
62
|
+
}
|
|
63
|
+
export function EmployeeClient__GetEmployeesPagingAsync_292CA386(_, query, cancellationToken) {
|
|
64
|
+
return _.transport.GetAsync(EmployeeClient__buildPagingUrl_5E920BE0(_, query), cancellationToken);
|
|
65
|
+
}
|
|
66
|
+
export function EmployeeClient__GetEmployeeAsync_7C8D4A79(_, id, cancellationToken) {
|
|
67
|
+
return _.transport.GetAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
68
|
+
}
|
|
69
|
+
export function EmployeeClient__GetCurrentEmployeeAsync_19FF2466(_, cancellationToken) {
|
|
70
|
+
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), cancellationToken);
|
|
71
|
+
}
|
|
72
|
+
export function EmployeeClient__CreateEmployeeAsync_Z1E4F7401(_, model, cancellationToken) {
|
|
73
|
+
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), model, cancellationToken);
|
|
74
|
+
}
|
|
75
|
+
export function EmployeeClient__UpdateEmployeeAsync_771CBF40(_, id, model, cancellationToken) {
|
|
76
|
+
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
77
|
+
}
|
|
78
|
+
export function EmployeeClient__UpdateCurrentEmployeeAsync_Z1E4F7401(_, model, cancellationToken) {
|
|
79
|
+
return _.transport.PutAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), model, cancellationToken);
|
|
80
|
+
}
|
|
81
|
+
export function EmployeeClient__ManageEmployeeAsync_61B6C74D(_, id, model, cancellationToken) {
|
|
82
|
+
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
83
|
+
}
|
|
84
|
+
export function EmployeeClient__DeleteEmployeeAsync_7C8D4A79(_, id, cancellationToken) {
|
|
85
|
+
return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
86
|
+
}
|
|
87
|
+
export function EmployeeClient__DeleteCurrentEmployeeAsync_19FF2466(_, cancellationToken) {
|
|
88
|
+
return _.transport.DeleteAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), cancellationToken);
|
|
89
|
+
}
|
|
90
|
+
export function EmployeeClient__buildUrl_Z134B9264(this$, queryParams) {
|
|
91
|
+
const parameters = toList(delay(() => {
|
|
92
|
+
let matchValue = undefined, ids_1 = undefined;
|
|
93
|
+
return append((matchValue = ofNullable(queryParams.Id), (matchValue != null) ? (!isEmpty(value(matchValue)) ? ((ids_1 = value(matchValue), map((id) => ["Id", UrlPart_op_Implicit_Z524259C1(id)], ids_1))) : (empty_1())) : (empty_1())), delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => append((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1(), delay(() => append((queryParams.ReportsToId != null) ? singleton_1(["ReportsToId", UrlPart_op_Implicit_Z524259C1(nonNullValue(queryParams.ReportsToId))]) : empty_1(), delay(() => ((queryParams.TopLevelOnly != null) ? singleton_1(["TopLevelOnly", UrlPart_op_Implicit_Z1FBCCD16(nonNullValue(queryParams.TopLevelOnly))]) : empty_1())))))))))));
|
|
94
|
+
}));
|
|
95
|
+
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
96
|
+
}
|
|
97
|
+
export function EmployeeClient__buildPagingUrl_5E920BE0(this$, queryParams) {
|
|
98
|
+
const parameters = toList(delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => ((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1())))))));
|
|
99
|
+
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=EmployeeClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmployeeClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/EmployeeClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAW,6BAA6B,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3L,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAc,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,KAAK,IAAI,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACrI,OAAO,EAAU,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEhG,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,MAAM,OAAO,cAAc;IACd,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,iBAAiB,CAAC,KAAgC,EAAE,iBAA8B;QAC9E,MAAM,KAAK,GAAmB,IAAI,CAAC;QACnC,OAAO,2CAA2C,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACxF,CAAC;IACD,uBAAuB,CAAC,KAAiC,EAAE,iBAA8B;QACrF,MAAM,KAAK,GAAmB,IAAI,CAAC;QACnC,OAAO,gDAAgD,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;IAC7F,CAAC;IACD,gBAAgB,CAAC,EAAS,EAAE,iBAA8B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kC,MAAM,CAAoB,KAAK,CAAoB,GAAgC,EAAE,CAAC,MAAM,CAAoB,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,MAAM,CAAoB,CAAC,WAAW,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,YAAY,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,UAAU,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACr4B,OAAO,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BranchQueryRequestModel, BranchRetrievalModel, BranchModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
3
|
+
import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
4
|
+
export interface IBranchClient {
|
|
5
|
+
CreateBranchAsync(model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
6
|
+
DeleteBranchAsync(id: int64, cancellationToken: AbortSignal): Promise<void>;
|
|
7
|
+
GetBranchAsync(id: int64, cancellationToken: AbortSignal): Promise<BranchRetrievalModel>;
|
|
8
|
+
GetBranchesAsync(query: BranchQueryRequestModel, cancellationToken: AbortSignal): Promise<PagingResponseModel$1<BranchRetrievalModel>>;
|
|
9
|
+
UpdateBranchAsync(id: int64, model: BranchModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IBranchClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/IBranchClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompanyRetrievalModel, CompanyModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
export interface ICompanyClient {
|
|
3
|
+
CreateCompanyAsync(model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
4
|
+
DeleteCompanyAsync(cancellationToken: AbortSignal): Promise<void>;
|
|
5
|
+
GetCompanyAsync(cancellationToken: AbortSignal): Promise<CompanyRetrievalModel>;
|
|
6
|
+
UpdateCompanyAsync(model: CompanyModificationModel, cancellationToken: AbortSignal): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanyClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/ICompanyClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LicenseResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
2
|
+
import { CompanyEntitlementsModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
+
export interface ICompanyLicenseClient {
|
|
4
|
+
CreateLicenseAsync(model: string, cancellationToken: AbortSignal): Promise<void>;
|
|
5
|
+
GetLicenseAsync(cancellationToken: AbortSignal): Promise<LicenseResponseModel$1<CompanyEntitlementsModel>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanyLicenseClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/ICompanyLicenseClient.ts"],"names":[],"mappings":""}
|