@fossa-app/bridge 0.1.17 → 0.1.18

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.
Files changed (67) hide show
  1. package/dist/Models/ApiModels/EnvelopeModels.js +34 -0
  2. package/dist/Models/ApiModels/EnvelopeModels.js.map +1 -0
  3. package/dist/Models/ApiModels/EnvelopeModels.ts +42 -0
  4. package/dist/Models/ApiModels/PayloadModels.js +286 -0
  5. package/dist/Models/ApiModels/PayloadModels.js.map +1 -0
  6. package/dist/Models/ApiModels/PayloadModels.ts +326 -0
  7. package/dist/Models/ApiModels/SharedModels.js +79 -0
  8. package/dist/Models/ApiModels/SharedModels.js.map +1 -0
  9. package/dist/Models/ApiModels/SharedModels.ts +91 -0
  10. package/dist/Services/Clients/BranchClient.js +63 -0
  11. package/dist/Services/Clients/BranchClient.js.map +1 -0
  12. package/dist/Services/Clients/BranchClient.ts +78 -0
  13. package/dist/Services/Clients/CompanyClient.js +45 -0
  14. package/dist/Services/Clients/CompanyClient.js.map +1 -0
  15. package/dist/Services/Clients/CompanyClient.ts +56 -0
  16. package/dist/Services/Clients/CompanyLicenseClient.js +31 -0
  17. package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
  18. package/dist/Services/Clients/CompanyLicenseClient.ts +41 -0
  19. package/dist/Services/Clients/CompanySettingsClient.js +45 -0
  20. package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
  21. package/dist/Services/Clients/CompanySettingsClient.ts +56 -0
  22. package/dist/Services/Clients/DepartmentClient.js +63 -0
  23. package/dist/Services/Clients/DepartmentClient.js.map +1 -0
  24. package/dist/Services/Clients/DepartmentClient.ts +78 -0
  25. package/dist/Services/Clients/EmployeeClient.js +102 -0
  26. package/dist/Services/Clients/EmployeeClient.js.map +1 -0
  27. package/dist/Services/Clients/EmployeeClient.ts +123 -0
  28. package/dist/Services/Clients/IBranchClient.js +2 -0
  29. package/dist/Services/Clients/IBranchClient.js.map +1 -0
  30. package/dist/Services/Clients/IBranchClient.ts +12 -0
  31. package/dist/Services/Clients/ICompanyClient.js +2 -0
  32. package/dist/Services/Clients/ICompanyClient.js.map +1 -0
  33. package/dist/Services/Clients/ICompanyClient.ts +10 -0
  34. package/dist/Services/Clients/ICompanyLicenseClient.js +2 -0
  35. package/dist/Services/Clients/ICompanyLicenseClient.js.map +1 -0
  36. package/dist/Services/Clients/ICompanyLicenseClient.ts +7 -0
  37. package/dist/Services/Clients/ICompanySettingsClient.js +2 -0
  38. package/dist/Services/Clients/ICompanySettingsClient.js.map +1 -0
  39. package/dist/Services/Clients/ICompanySettingsClient.ts +10 -0
  40. package/dist/Services/Clients/IDepartmentClient.js +2 -0
  41. package/dist/Services/Clients/IDepartmentClient.js.map +1 -0
  42. package/dist/Services/Clients/IDepartmentClient.ts +12 -0
  43. package/dist/Services/Clients/IEmployeeClient.js +2 -0
  44. package/dist/Services/Clients/IEmployeeClient.js.map +1 -0
  45. package/dist/Services/Clients/IEmployeeClient.ts +17 -0
  46. package/dist/Services/Clients/IIdentityClient.js +2 -0
  47. package/dist/Services/Clients/IIdentityClient.js.map +1 -0
  48. package/dist/Services/Clients/IIdentityClient.ts +6 -0
  49. package/dist/Services/Clients/ISystemLicenseClient.js +2 -0
  50. package/dist/Services/Clients/ISystemLicenseClient.js.map +1 -0
  51. package/dist/Services/Clients/ISystemLicenseClient.ts +6 -0
  52. package/dist/Services/Clients/IdentityClient.js +24 -0
  53. package/dist/Services/Clients/IdentityClient.js.map +1 -0
  54. package/dist/Services/Clients/IdentityClient.ts +32 -0
  55. package/dist/Services/Clients/SystemLicenseClient.js +24 -0
  56. package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
  57. package/dist/Services/Clients/SystemLicenseClient.ts +33 -0
  58. package/dist/Services/Endpoints.js +11 -0
  59. package/dist/Services/Endpoints.js.map +1 -0
  60. package/dist/Services/Endpoints.ts +22 -0
  61. package/dist/Services/IHttpTransport.js +2 -0
  62. package/dist/Services/IHttpTransport.js.map +1 -0
  63. package/dist/Services/IHttpTransport.ts +10 -0
  64. package/dist/Services/UrlHelpers.js +86 -0
  65. package/dist/Services/UrlHelpers.js.map +1 -0
  66. package/dist/Services/UrlHelpers.ts +107 -0
  67. package/package.json +1 -1
@@ -0,0 +1,326 @@
1
+
2
+ import { Record } from "@fable-org/fable-library-ts/Types.ts";
3
+ import { IComparable, IEquatable, Nullable } from "@fable-org/fable-library-ts/Util.ts";
4
+ import { bool_type, int32_type, int64_type, record_type, string_type, option_type, class_type, TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
5
+ import { TimeZoneModel_$reflection, CountryModel_$reflection, AddressModel_$reflection, AddressModel } from "./SharedModels.ts";
6
+ import { int32 } from "@fable-org/fable-library-ts/Int32.ts";
7
+ import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
8
+
9
+ export class IdentityClientRetrievalModel extends Record implements IEquatable<IdentityClientRetrievalModel> {
10
+ readonly ClientId: Nullable<string>;
11
+ readonly ClientName: string;
12
+ readonly TenantId: Nullable<string>;
13
+ constructor(ClientId: Nullable<string>, ClientName: string, TenantId: Nullable<string>) {
14
+ super();
15
+ this.ClientId = ClientId;
16
+ this.ClientName = ClientName;
17
+ this.TenantId = TenantId;
18
+ }
19
+ }
20
+
21
+ export function IdentityClientRetrievalModel_$reflection(): TypeInfo {
22
+ return record_type("Fossa.Bridge.Models.ApiModels.IdentityClientRetrievalModel", [], IdentityClientRetrievalModel, () => [["ClientId", option_type(class_type("System.Guid"))], ["ClientName", string_type], ["TenantId", option_type(class_type("System.Guid"))]]);
23
+ }
24
+
25
+ export class BranchModificationModel extends Record implements IEquatable<BranchModificationModel>, IComparable<BranchModificationModel> {
26
+ readonly Name: string;
27
+ readonly TimeZoneId: string;
28
+ readonly Address: AddressModel;
29
+ constructor(Name: string, TimeZoneId: string, Address: AddressModel) {
30
+ super();
31
+ this.Name = Name;
32
+ this.TimeZoneId = TimeZoneId;
33
+ this.Address = Address;
34
+ }
35
+ }
36
+
37
+ export function BranchModificationModel_$reflection(): TypeInfo {
38
+ return record_type("Fossa.Bridge.Models.ApiModels.BranchModificationModel", [], BranchModificationModel, () => [["Name", string_type], ["TimeZoneId", string_type], ["Address", AddressModel_$reflection()]]);
39
+ }
40
+
41
+ export class BranchQueryRequestModel extends Record implements IEquatable<BranchQueryRequestModel> {
42
+ readonly Id: any;
43
+ readonly Search: string;
44
+ readonly PageNumber: Nullable<int32>;
45
+ readonly PageSize: Nullable<int32>;
46
+ constructor(Id: any, Search: string, PageNumber: Nullable<int32>, PageSize: Nullable<int32>) {
47
+ super();
48
+ this.Id = Id;
49
+ this.Search = Search;
50
+ this.PageNumber = PageNumber;
51
+ this.PageSize = PageSize;
52
+ }
53
+ }
54
+
55
+ export function BranchQueryRequestModel_$reflection(): TypeInfo {
56
+ return record_type("Fossa.Bridge.Models.ApiModels.BranchQueryRequestModel", [], BranchQueryRequestModel, () => [["Id", class_type("System.Collections.Generic.IReadOnlyList`1", [int64_type])], ["Search", string_type], ["PageNumber", option_type(int32_type)], ["PageSize", option_type(int32_type)]]);
57
+ }
58
+
59
+ export class BranchRetrievalModel extends Record implements IEquatable<BranchRetrievalModel>, IComparable<BranchRetrievalModel> {
60
+ readonly Id: int64;
61
+ readonly CompanyId: int64;
62
+ readonly Name: string;
63
+ readonly TimeZoneId: string;
64
+ readonly Address: AddressModel;
65
+ constructor(Id: int64, CompanyId: int64, Name: string, TimeZoneId: string, Address: AddressModel) {
66
+ super();
67
+ this.Id = Id;
68
+ this.CompanyId = CompanyId;
69
+ this.Name = Name;
70
+ this.TimeZoneId = TimeZoneId;
71
+ this.Address = Address;
72
+ }
73
+ }
74
+
75
+ export function BranchRetrievalModel_$reflection(): TypeInfo {
76
+ return record_type("Fossa.Bridge.Models.ApiModels.BranchRetrievalModel", [], BranchRetrievalModel, () => [["Id", int64_type], ["CompanyId", int64_type], ["Name", string_type], ["TimeZoneId", string_type], ["Address", AddressModel_$reflection()]]);
77
+ }
78
+
79
+ export class CompanyEntitlementsModel extends Record implements IEquatable<CompanyEntitlementsModel>, IComparable<CompanyEntitlementsModel> {
80
+ readonly CompanyId: int64;
81
+ readonly MaximumBranchCount: int32;
82
+ readonly MaximumEmployeeCount: int32;
83
+ readonly MaximumDepartmentCount: int32;
84
+ constructor(CompanyId: int64, MaximumBranchCount: int32, MaximumEmployeeCount: int32, MaximumDepartmentCount: int32) {
85
+ super();
86
+ this.CompanyId = CompanyId;
87
+ this.MaximumBranchCount = (MaximumBranchCount | 0);
88
+ this.MaximumEmployeeCount = (MaximumEmployeeCount | 0);
89
+ this.MaximumDepartmentCount = (MaximumDepartmentCount | 0);
90
+ }
91
+ }
92
+
93
+ export function CompanyEntitlementsModel_$reflection(): TypeInfo {
94
+ return record_type("Fossa.Bridge.Models.ApiModels.CompanyEntitlementsModel", [], CompanyEntitlementsModel, () => [["CompanyId", int64_type], ["MaximumBranchCount", int32_type], ["MaximumEmployeeCount", int32_type], ["MaximumDepartmentCount", int32_type]]);
95
+ }
96
+
97
+ export class CompanyModificationModel extends Record implements IEquatable<CompanyModificationModel>, IComparable<CompanyModificationModel> {
98
+ readonly Name: string;
99
+ readonly CountryCode: string;
100
+ constructor(Name: string, CountryCode: string) {
101
+ super();
102
+ this.Name = Name;
103
+ this.CountryCode = CountryCode;
104
+ }
105
+ }
106
+
107
+ export function CompanyModificationModel_$reflection(): TypeInfo {
108
+ return record_type("Fossa.Bridge.Models.ApiModels.CompanyModificationModel", [], CompanyModificationModel, () => [["Name", string_type], ["CountryCode", string_type]]);
109
+ }
110
+
111
+ export class CompanyRetrievalModel extends Record implements IEquatable<CompanyRetrievalModel>, IComparable<CompanyRetrievalModel> {
112
+ readonly Id: int64;
113
+ readonly Name: string;
114
+ readonly CountryCode: string;
115
+ constructor(Id: int64, Name: string, CountryCode: string) {
116
+ super();
117
+ this.Id = Id;
118
+ this.Name = Name;
119
+ this.CountryCode = CountryCode;
120
+ }
121
+ }
122
+
123
+ export function CompanyRetrievalModel_$reflection(): TypeInfo {
124
+ return record_type("Fossa.Bridge.Models.ApiModels.CompanyRetrievalModel", [], CompanyRetrievalModel, () => [["Id", int64_type], ["Name", string_type], ["CountryCode", string_type]]);
125
+ }
126
+
127
+ export class CompanySettingsModificationModel extends Record implements IEquatable<CompanySettingsModificationModel>, IComparable<CompanySettingsModificationModel> {
128
+ readonly ColorSchemeId: string;
129
+ constructor(ColorSchemeId: string) {
130
+ super();
131
+ this.ColorSchemeId = ColorSchemeId;
132
+ }
133
+ }
134
+
135
+ export function CompanySettingsModificationModel_$reflection(): TypeInfo {
136
+ return record_type("Fossa.Bridge.Models.ApiModels.CompanySettingsModificationModel", [], CompanySettingsModificationModel, () => [["ColorSchemeId", string_type]]);
137
+ }
138
+
139
+ export class CompanySettingsRetrievalModel extends Record implements IEquatable<CompanySettingsRetrievalModel>, IComparable<CompanySettingsRetrievalModel> {
140
+ readonly Id: int64;
141
+ readonly CompanyId: int64;
142
+ readonly ColorSchemeId: string;
143
+ constructor(Id: int64, CompanyId: int64, ColorSchemeId: string) {
144
+ super();
145
+ this.Id = Id;
146
+ this.CompanyId = CompanyId;
147
+ this.ColorSchemeId = ColorSchemeId;
148
+ }
149
+ }
150
+
151
+ export function CompanySettingsRetrievalModel_$reflection(): TypeInfo {
152
+ return record_type("Fossa.Bridge.Models.ApiModels.CompanySettingsRetrievalModel", [], CompanySettingsRetrievalModel, () => [["Id", int64_type], ["CompanyId", int64_type], ["ColorSchemeId", string_type]]);
153
+ }
154
+
155
+ export class DepartmentModificationModel extends Record implements IEquatable<DepartmentModificationModel> {
156
+ readonly Name: string;
157
+ readonly ParentDepartmentId: Nullable<int64>;
158
+ readonly ManagerId: Nullable<int64>;
159
+ constructor(Name: string, ParentDepartmentId: Nullable<int64>, ManagerId: Nullable<int64>) {
160
+ super();
161
+ this.Name = Name;
162
+ this.ParentDepartmentId = ParentDepartmentId;
163
+ this.ManagerId = ManagerId;
164
+ }
165
+ }
166
+
167
+ export function DepartmentModificationModel_$reflection(): TypeInfo {
168
+ return record_type("Fossa.Bridge.Models.ApiModels.DepartmentModificationModel", [], DepartmentModificationModel, () => [["Name", string_type], ["ParentDepartmentId", option_type(int64_type)], ["ManagerId", option_type(int64_type)]]);
169
+ }
170
+
171
+ export class DepartmentQueryRequestModel extends Record implements IEquatable<DepartmentQueryRequestModel> {
172
+ readonly Id: any;
173
+ readonly Search: string;
174
+ readonly PageNumber: Nullable<int32>;
175
+ readonly PageSize: Nullable<int32>;
176
+ constructor(Id: any, Search: string, PageNumber: Nullable<int32>, PageSize: Nullable<int32>) {
177
+ super();
178
+ this.Id = Id;
179
+ this.Search = Search;
180
+ this.PageNumber = PageNumber;
181
+ this.PageSize = PageSize;
182
+ }
183
+ }
184
+
185
+ export function DepartmentQueryRequestModel_$reflection(): TypeInfo {
186
+ return record_type("Fossa.Bridge.Models.ApiModels.DepartmentQueryRequestModel", [], DepartmentQueryRequestModel, () => [["Id", class_type("System.Collections.Generic.IReadOnlyList`1", [int64_type])], ["Search", string_type], ["PageNumber", option_type(int32_type)], ["PageSize", option_type(int32_type)]]);
187
+ }
188
+
189
+ export class DepartmentRetrievalModel extends Record implements IEquatable<DepartmentRetrievalModel> {
190
+ readonly Id: int64;
191
+ readonly Name: string;
192
+ readonly ParentDepartmentId: Nullable<int64>;
193
+ readonly ManagerId: Nullable<int64>;
194
+ constructor(Id: int64, Name: string, ParentDepartmentId: Nullable<int64>, ManagerId: Nullable<int64>) {
195
+ super();
196
+ this.Id = Id;
197
+ this.Name = Name;
198
+ this.ParentDepartmentId = ParentDepartmentId;
199
+ this.ManagerId = ManagerId;
200
+ }
201
+ }
202
+
203
+ export function DepartmentRetrievalModel_$reflection(): TypeInfo {
204
+ return record_type("Fossa.Bridge.Models.ApiModels.DepartmentRetrievalModel", [], DepartmentRetrievalModel, () => [["Id", int64_type], ["Name", string_type], ["ParentDepartmentId", option_type(int64_type)], ["ManagerId", option_type(int64_type)]]);
205
+ }
206
+
207
+ export class EmployeeManagementModel extends Record implements IEquatable<EmployeeManagementModel> {
208
+ readonly AssignedBranchId: Nullable<int64>;
209
+ readonly AssignedDepartmentId: Nullable<int64>;
210
+ readonly ReportsToId: Nullable<int64>;
211
+ readonly JobTitle: string;
212
+ constructor(AssignedBranchId: Nullable<int64>, AssignedDepartmentId: Nullable<int64>, ReportsToId: Nullable<int64>, JobTitle: string) {
213
+ super();
214
+ this.AssignedBranchId = AssignedBranchId;
215
+ this.AssignedDepartmentId = AssignedDepartmentId;
216
+ this.ReportsToId = ReportsToId;
217
+ this.JobTitle = JobTitle;
218
+ }
219
+ }
220
+
221
+ export function EmployeeManagementModel_$reflection(): TypeInfo {
222
+ return record_type("Fossa.Bridge.Models.ApiModels.EmployeeManagementModel", [], EmployeeManagementModel, () => [["AssignedBranchId", option_type(int64_type)], ["AssignedDepartmentId", option_type(int64_type)], ["ReportsToId", option_type(int64_type)], ["JobTitle", string_type]]);
223
+ }
224
+
225
+ export class EmployeeModificationModel extends Record implements IEquatable<EmployeeModificationModel>, IComparable<EmployeeModificationModel> {
226
+ readonly FirstName: string;
227
+ readonly LastName: string;
228
+ readonly FullName: string;
229
+ constructor(FirstName: string, LastName: string, FullName: string) {
230
+ super();
231
+ this.FirstName = FirstName;
232
+ this.LastName = LastName;
233
+ this.FullName = FullName;
234
+ }
235
+ }
236
+
237
+ export function EmployeeModificationModel_$reflection(): TypeInfo {
238
+ return record_type("Fossa.Bridge.Models.ApiModels.EmployeeModificationModel", [], EmployeeModificationModel, () => [["FirstName", string_type], ["LastName", string_type], ["FullName", string_type]]);
239
+ }
240
+
241
+ export class EmployeePagingRequestModel extends Record implements IEquatable<EmployeePagingRequestModel> {
242
+ readonly Search: string;
243
+ readonly PageNumber: Nullable<int32>;
244
+ readonly PageSize: Nullable<int32>;
245
+ constructor(Search: string, PageNumber: Nullable<int32>, PageSize: Nullable<int32>) {
246
+ super();
247
+ this.Search = Search;
248
+ this.PageNumber = PageNumber;
249
+ this.PageSize = PageSize;
250
+ }
251
+ }
252
+
253
+ export function EmployeePagingRequestModel_$reflection(): TypeInfo {
254
+ return record_type("Fossa.Bridge.Models.ApiModels.EmployeePagingRequestModel", [], EmployeePagingRequestModel, () => [["Search", string_type], ["PageNumber", option_type(int32_type)], ["PageSize", option_type(int32_type)]]);
255
+ }
256
+
257
+ export class EmployeeQueryRequestModel extends Record implements IEquatable<EmployeeQueryRequestModel> {
258
+ readonly Id: any;
259
+ readonly Search: string;
260
+ readonly PageNumber: Nullable<int32>;
261
+ readonly PageSize: Nullable<int32>;
262
+ readonly ReportsToId: Nullable<int64>;
263
+ readonly TopLevelOnly: Nullable<boolean>;
264
+ constructor(Id: any, Search: string, PageNumber: Nullable<int32>, PageSize: Nullable<int32>, ReportsToId: Nullable<int64>, TopLevelOnly: Nullable<boolean>) {
265
+ super();
266
+ this.Id = Id;
267
+ this.Search = Search;
268
+ this.PageNumber = PageNumber;
269
+ this.PageSize = PageSize;
270
+ this.ReportsToId = ReportsToId;
271
+ this.TopLevelOnly = TopLevelOnly;
272
+ }
273
+ }
274
+
275
+ export function EmployeeQueryRequestModel_$reflection(): TypeInfo {
276
+ return record_type("Fossa.Bridge.Models.ApiModels.EmployeeQueryRequestModel", [], EmployeeQueryRequestModel, () => [["Id", class_type("System.Collections.Generic.IReadOnlyList`1", [int64_type])], ["Search", string_type], ["PageNumber", option_type(int32_type)], ["PageSize", option_type(int32_type)], ["ReportsToId", option_type(int64_type)], ["TopLevelOnly", option_type(bool_type)]]);
277
+ }
278
+
279
+ export class EmployeeRetrievalModel extends Record implements IEquatable<EmployeeRetrievalModel> {
280
+ readonly Id: int64;
281
+ readonly CompanyId: int64;
282
+ readonly AssignedBranchId: Nullable<int64>;
283
+ readonly AssignedDepartmentId: Nullable<int64>;
284
+ readonly ReportsToId: Nullable<int64>;
285
+ readonly JobTitle: string;
286
+ readonly FirstName: string;
287
+ readonly LastName: string;
288
+ readonly FullName: string;
289
+ constructor(Id: int64, CompanyId: int64, AssignedBranchId: Nullable<int64>, AssignedDepartmentId: Nullable<int64>, ReportsToId: Nullable<int64>, JobTitle: string, FirstName: string, LastName: string, FullName: string) {
290
+ super();
291
+ this.Id = Id;
292
+ this.CompanyId = CompanyId;
293
+ this.AssignedBranchId = AssignedBranchId;
294
+ this.AssignedDepartmentId = AssignedDepartmentId;
295
+ this.ReportsToId = ReportsToId;
296
+ this.JobTitle = JobTitle;
297
+ this.FirstName = FirstName;
298
+ this.LastName = LastName;
299
+ this.FullName = FullName;
300
+ }
301
+ }
302
+
303
+ export function EmployeeRetrievalModel_$reflection(): TypeInfo {
304
+ return record_type("Fossa.Bridge.Models.ApiModels.EmployeeRetrievalModel", [], EmployeeRetrievalModel, () => [["Id", int64_type], ["CompanyId", int64_type], ["AssignedBranchId", option_type(int64_type)], ["AssignedDepartmentId", option_type(int64_type)], ["ReportsToId", option_type(int64_type)], ["JobTitle", string_type], ["FirstName", string_type], ["LastName", string_type], ["FullName", string_type]]);
305
+ }
306
+
307
+ export class SystemEntitlementsModel extends Record implements IEquatable<SystemEntitlementsModel> {
308
+ readonly EnvironmentName: string;
309
+ readonly EnvironmentKind: string;
310
+ readonly Countries: any;
311
+ readonly TimeZones: any;
312
+ readonly MaximumCompanyCount: int32;
313
+ constructor(EnvironmentName: string, EnvironmentKind: string, Countries: any, TimeZones: any, MaximumCompanyCount: int32) {
314
+ super();
315
+ this.EnvironmentName = EnvironmentName;
316
+ this.EnvironmentKind = EnvironmentKind;
317
+ this.Countries = Countries;
318
+ this.TimeZones = TimeZones;
319
+ this.MaximumCompanyCount = (MaximumCompanyCount | 0);
320
+ }
321
+ }
322
+
323
+ export function SystemEntitlementsModel_$reflection(): TypeInfo {
324
+ return record_type("Fossa.Bridge.Models.ApiModels.SystemEntitlementsModel", [], SystemEntitlementsModel, () => [["EnvironmentName", string_type], ["EnvironmentKind", string_type], ["Countries", class_type("System.Collections.Generic.IReadOnlyList`1", [CountryModel_$reflection()])], ["TimeZones", class_type("System.Collections.Generic.IReadOnlyList`1", [TimeZoneModel_$reflection()])], ["MaximumCompanyCount", int32_type]]);
325
+ }
326
+
@@ -0,0 +1,79 @@
1
+ import { Record } from "@fable-org/fable-library-ts/Types.ts";
2
+ import { option_type, class_type, record_type, string_type } from "@fable-org/fable-library-ts/Reflection.ts";
3
+ export class AddressModel extends Record {
4
+ Line1;
5
+ Line2;
6
+ City;
7
+ Subdivision;
8
+ PostalCode;
9
+ CountryCode;
10
+ constructor(Line1, Line2, City, Subdivision, PostalCode, CountryCode) {
11
+ super();
12
+ this.Line1 = Line1;
13
+ this.Line2 = Line2;
14
+ this.City = City;
15
+ this.Subdivision = Subdivision;
16
+ this.PostalCode = PostalCode;
17
+ this.CountryCode = CountryCode;
18
+ }
19
+ }
20
+ export function AddressModel_$reflection() {
21
+ return record_type("Fossa.Bridge.Models.ApiModels.AddressModel", [], AddressModel, () => [["Line1", string_type], ["Line2", string_type], ["City", string_type], ["Subdivision", string_type], ["PostalCode", string_type], ["CountryCode", string_type]]);
22
+ }
23
+ export class CountryModel extends Record {
24
+ Name;
25
+ Code;
26
+ constructor(Name, Code) {
27
+ super();
28
+ this.Name = Name;
29
+ this.Code = Code;
30
+ }
31
+ }
32
+ export function CountryModel_$reflection() {
33
+ return record_type("Fossa.Bridge.Models.ApiModels.CountryModel", [], CountryModel, () => [["Name", string_type], ["Code", string_type]]);
34
+ }
35
+ export class TimeZoneModel extends Record {
36
+ Id;
37
+ Name;
38
+ CountryCode;
39
+ CurrentOffset;
40
+ constructor(Id, Name, CountryCode, CurrentOffset) {
41
+ super();
42
+ this.Id = Id;
43
+ this.Name = Name;
44
+ this.CountryCode = CountryCode;
45
+ this.CurrentOffset = CurrentOffset;
46
+ }
47
+ }
48
+ export function TimeZoneModel_$reflection() {
49
+ return record_type("Fossa.Bridge.Models.ApiModels.TimeZoneModel", [], TimeZoneModel, () => [["Id", string_type], ["Name", string_type], ["CountryCode", string_type], ["CurrentOffset", option_type(class_type("System.TimeSpan"))]]);
50
+ }
51
+ export class PartyModel extends Record {
52
+ LongName;
53
+ ShortName;
54
+ constructor(LongName, ShortName) {
55
+ super();
56
+ this.LongName = LongName;
57
+ this.ShortName = ShortName;
58
+ }
59
+ }
60
+ export function PartyModel_$reflection() {
61
+ return record_type("Fossa.Bridge.Models.ApiModels.PartyModel", [], PartyModel, () => [["LongName", string_type], ["ShortName", string_type]]);
62
+ }
63
+ export class LicenseTermsModel extends Record {
64
+ Licensor;
65
+ Licensee;
66
+ NotBefore;
67
+ NotAfter;
68
+ constructor(Licensor, Licensee, NotBefore, NotAfter) {
69
+ super();
70
+ this.Licensor = Licensor;
71
+ this.Licensee = Licensee;
72
+ this.NotBefore = NotBefore;
73
+ this.NotAfter = NotAfter;
74
+ }
75
+ }
76
+ export function LicenseTermsModel_$reflection() {
77
+ return record_type("Fossa.Bridge.Models.ApiModels.LicenseTermsModel", [], LicenseTermsModel, () => [["Licensor", PartyModel_$reflection()], ["Licensee", PartyModel_$reflection()], ["NotBefore", option_type(class_type("System.DateTimeOffset"))], ["NotAfter", option_type(class_type("System.DateTimeOffset"))]]);
78
+ }
79
+ //# sourceMappingURL=SharedModels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedModels.js","sourceRoot":"","sources":["SharedModels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAY,MAAM,2CAA2C,CAAC;AAExH,MAAM,OAAO,YAAa,SAAQ,MAAM;IAC3B,KAAK,CAAS;IACd,KAAK,CAAS;IACd,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,UAAU,CAAS;IACnB,WAAW,CAAS;IAC7B,YAAY,KAAa,EAAE,KAAa,EAAE,IAAY,EAAE,WAAmB,EAAE,UAAkB,EAAE,WAAmB;QAChH,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI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Q,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,UAAU,6BAA6B;IACzC,OAAO,WAAW,CAAC,iDAAiD,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1T,CAAC"}
@@ -0,0 +1,91 @@
1
+
2
+ import { Record } from "@fable-org/fable-library-ts/Types.ts";
3
+ import { Nullable, IComparable, IEquatable } from "@fable-org/fable-library-ts/Util.ts";
4
+ import { option_type, class_type, record_type, string_type, TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
5
+
6
+ export class AddressModel extends Record implements IEquatable<AddressModel>, IComparable<AddressModel> {
7
+ readonly Line1: string;
8
+ readonly Line2: string;
9
+ readonly City: string;
10
+ readonly Subdivision: string;
11
+ readonly PostalCode: string;
12
+ readonly CountryCode: string;
13
+ constructor(Line1: string, Line2: string, City: string, Subdivision: string, PostalCode: string, CountryCode: string) {
14
+ super();
15
+ this.Line1 = Line1;
16
+ this.Line2 = Line2;
17
+ this.City = City;
18
+ this.Subdivision = Subdivision;
19
+ this.PostalCode = PostalCode;
20
+ this.CountryCode = CountryCode;
21
+ }
22
+ }
23
+
24
+ export function AddressModel_$reflection(): TypeInfo {
25
+ return record_type("Fossa.Bridge.Models.ApiModels.AddressModel", [], AddressModel, () => [["Line1", string_type], ["Line2", string_type], ["City", string_type], ["Subdivision", string_type], ["PostalCode", string_type], ["CountryCode", string_type]]);
26
+ }
27
+
28
+ export class CountryModel extends Record implements IEquatable<CountryModel>, IComparable<CountryModel> {
29
+ readonly Name: string;
30
+ readonly Code: string;
31
+ constructor(Name: string, Code: string) {
32
+ super();
33
+ this.Name = Name;
34
+ this.Code = Code;
35
+ }
36
+ }
37
+
38
+ export function CountryModel_$reflection(): TypeInfo {
39
+ return record_type("Fossa.Bridge.Models.ApiModels.CountryModel", [], CountryModel, () => [["Name", string_type], ["Code", string_type]]);
40
+ }
41
+
42
+ export class TimeZoneModel extends Record implements IEquatable<TimeZoneModel> {
43
+ readonly Id: string;
44
+ readonly Name: string;
45
+ readonly CountryCode: string;
46
+ readonly CurrentOffset: Nullable<number>;
47
+ constructor(Id: string, Name: string, CountryCode: string, CurrentOffset: Nullable<number>) {
48
+ super();
49
+ this.Id = Id;
50
+ this.Name = Name;
51
+ this.CountryCode = CountryCode;
52
+ this.CurrentOffset = CurrentOffset;
53
+ }
54
+ }
55
+
56
+ export function TimeZoneModel_$reflection(): TypeInfo {
57
+ return record_type("Fossa.Bridge.Models.ApiModels.TimeZoneModel", [], TimeZoneModel, () => [["Id", string_type], ["Name", string_type], ["CountryCode", string_type], ["CurrentOffset", option_type(class_type("System.TimeSpan"))]]);
58
+ }
59
+
60
+ export class PartyModel extends Record implements IEquatable<PartyModel>, IComparable<PartyModel> {
61
+ readonly LongName: string;
62
+ readonly ShortName: string;
63
+ constructor(LongName: string, ShortName: string) {
64
+ super();
65
+ this.LongName = LongName;
66
+ this.ShortName = ShortName;
67
+ }
68
+ }
69
+
70
+ export function PartyModel_$reflection(): TypeInfo {
71
+ return record_type("Fossa.Bridge.Models.ApiModels.PartyModel", [], PartyModel, () => [["LongName", string_type], ["ShortName", string_type]]);
72
+ }
73
+
74
+ export class LicenseTermsModel extends Record implements IEquatable<LicenseTermsModel> {
75
+ readonly Licensor: PartyModel;
76
+ readonly Licensee: PartyModel;
77
+ readonly NotBefore: Nullable<Date>;
78
+ readonly NotAfter: Nullable<Date>;
79
+ constructor(Licensor: PartyModel, Licensee: PartyModel, NotBefore: Nullable<Date>, NotAfter: Nullable<Date>) {
80
+ super();
81
+ this.Licensor = Licensor;
82
+ this.Licensee = Licensee;
83
+ this.NotBefore = NotBefore;
84
+ this.NotAfter = NotAfter;
85
+ }
86
+ }
87
+
88
+ export function LicenseTermsModel_$reflection(): TypeInfo {
89
+ return record_type("Fossa.Bridge.Models.ApiModels.LicenseTermsModel", [], LicenseTermsModel, () => [["Licensor", PartyModel_$reflection()], ["Licensee", PartyModel_$reflection()], ["NotBefore", option_type(class_type("System.DateTimeOffset"))], ["NotAfter", option_type(class_type("System.DateTimeOffset"))]]);
90
+ }
91
+
@@ -0,0 +1,63 @@
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, 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 { count } from "@fable-org/fable-library-ts/CollectionUtil.ts";
8
+ import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
9
+ export class BranchClient {
10
+ transport;
11
+ constructor(transport) {
12
+ this.transport = transport;
13
+ }
14
+ GetBranchesAsync(query, cancellationToken) {
15
+ const this$ = this;
16
+ return BranchClient__GetBranchesAsync_19A32868(this$, query, cancellationToken);
17
+ }
18
+ GetBranchAsync(id, cancellationToken) {
19
+ const this$ = this;
20
+ return BranchClient__GetBranchAsync_Z446FC023(this$, id, cancellationToken);
21
+ }
22
+ CreateBranchAsync(model, cancellationToken) {
23
+ const this$ = this;
24
+ return BranchClient__CreateBranchAsync_Z656583D3(this$, model, cancellationToken);
25
+ }
26
+ UpdateBranchAsync(id, model, cancellationToken) {
27
+ const this$ = this;
28
+ return BranchClient__UpdateBranchAsync_118B55D2(this$, id, model, cancellationToken);
29
+ }
30
+ DeleteBranchAsync(id, cancellationToken) {
31
+ const this$ = this;
32
+ return BranchClient__DeleteBranchAsync_Z446FC023(this$, id, cancellationToken);
33
+ }
34
+ }
35
+ export function BranchClient_$reflection() {
36
+ return class_type("Fossa.Bridge.Services.Clients.BranchClient", undefined, BranchClient);
37
+ }
38
+ export function BranchClient_$ctor_Z7C557C0(transport) {
39
+ return new BranchClient(transport);
40
+ }
41
+ export function BranchClient__GetBranchesAsync_19A32868(_, query, cancellationToken) {
42
+ return _.transport.GetAsync(BranchClient__buildUrl_Z113C1396(_, query), cancellationToken);
43
+ }
44
+ export function BranchClient__GetBranchAsync_Z446FC023(_, id, cancellationToken) {
45
+ return _.transport.GetAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
46
+ }
47
+ export function BranchClient__CreateBranchAsync_Z656583D3(_, model, cancellationToken) {
48
+ return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), empty()), model, cancellationToken);
49
+ }
50
+ export function BranchClient__UpdateBranchAsync_118B55D2(_, id, model, cancellationToken) {
51
+ return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
52
+ }
53
+ export function BranchClient__DeleteBranchAsync_Z446FC023(_, id, cancellationToken) {
54
+ return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
55
+ }
56
+ export function BranchClient__buildUrl_Z113C1396(this$, queryParams) {
57
+ const parameters = toList(delay(() => {
58
+ let matchValue = undefined, ids_1 = undefined;
59
+ return append((matchValue = ofNullable(queryParams.Id), (matchValue != null) ? ((count(value(matchValue)) > 0) ? ((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())))))));
60
+ }));
61
+ return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), parameters);
62
+ }
63
+ //# sourceMappingURL=BranchClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BranchClient.js","sourceRoot":"","sources":["BranchClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AAEjF,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,qCAAqC,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,KAAK,IAAI,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5H,OAAO,EAAU,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAChG,OAAO,EAAE,KAAK,EAAE,MAAM,+CAA+C,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,MAAM,OAAO,YAAY;IACZ,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,gBAAgB,C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CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnrC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC9F,CAAC"}
@@ -0,0 +1,78 @@
1
+
2
+ import { BranchRetrievalModel, BranchModificationModel, BranchQueryRequestModel } from "../../Models/ApiModels/PayloadModels.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 { class_type, TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
7
+ import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
8
+ import { UrlPart_op_Implicit_Z524259A4, UrlPart, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.ts";
9
+ import { Branches } from "../Endpoints.ts";
10
+ import { FSharpList, singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
11
+ import { singleton as singleton_1, empty as empty_1, map, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
12
+ import { Option, nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
13
+ import { count } from "@fable-org/fable-library-ts/CollectionUtil.ts";
14
+ import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
15
+
16
+ export class BranchClient implements IBranchClient {
17
+ readonly transport: IHttpTransport;
18
+ constructor(transport: IHttpTransport) {
19
+ this.transport = transport;
20
+ }
21
+ GetBranchesAsync(query: BranchQueryRequestModel, cancellationToken: any): any {
22
+ const this$: BranchClient = this;
23
+ return BranchClient__GetBranchesAsync_19A32868(this$, query, cancellationToken);
24
+ }
25
+ GetBranchAsync(id: int64, cancellationToken: any): any {
26
+ const this$: BranchClient = this;
27
+ return BranchClient__GetBranchAsync_Z446FC023(this$, id, cancellationToken);
28
+ }
29
+ CreateBranchAsync(model: BranchModificationModel, cancellationToken: any): any {
30
+ const this$: BranchClient = this;
31
+ return BranchClient__CreateBranchAsync_Z656583D3(this$, model, cancellationToken);
32
+ }
33
+ UpdateBranchAsync(id: int64, model: BranchModificationModel, cancellationToken: any): any {
34
+ const this$: BranchClient = this;
35
+ return BranchClient__UpdateBranchAsync_118B55D2(this$, id, model, cancellationToken);
36
+ }
37
+ DeleteBranchAsync(id: int64, cancellationToken: any): any {
38
+ const this$: BranchClient = this;
39
+ return BranchClient__DeleteBranchAsync_Z446FC023(this$, id, cancellationToken);
40
+ }
41
+ }
42
+
43
+ export function BranchClient_$reflection(): TypeInfo {
44
+ return class_type("Fossa.Bridge.Services.Clients.BranchClient", undefined, BranchClient);
45
+ }
46
+
47
+ export function BranchClient_$ctor_Z7C557C0(transport: IHttpTransport): BranchClient {
48
+ return new BranchClient(transport);
49
+ }
50
+
51
+ export function BranchClient__GetBranchesAsync_19A32868(_: BranchClient, query: BranchQueryRequestModel, cancellationToken: any): any {
52
+ return _.transport.GetAsync<PagingResponseModel$1<BranchRetrievalModel>>(BranchClient__buildUrl_Z113C1396(_, query), cancellationToken);
53
+ }
54
+
55
+ export function BranchClient__GetBranchAsync_Z446FC023(_: BranchClient, id: int64, cancellationToken: any): any {
56
+ return _.transport.GetAsync<BranchRetrievalModel>(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), cancellationToken);
57
+ }
58
+
59
+ export function BranchClient__CreateBranchAsync_Z656583D3(_: BranchClient, model: BranchModificationModel, cancellationToken: any): any {
60
+ return _.transport.PostAsync<BranchModificationModel>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), empty<[string, UrlPart]>()), model, cancellationToken);
61
+ }
62
+
63
+ export function BranchClient__UpdateBranchAsync_118B55D2(_: BranchClient, id: int64, model: BranchModificationModel, cancellationToken: any): any {
64
+ return _.transport.PutAsync<BranchModificationModel>(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), model, cancellationToken);
65
+ }
66
+
67
+ export function BranchClient__DeleteBranchAsync_Z446FC023(_: BranchClient, id: int64, cancellationToken: any): any {
68
+ return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Branches), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), cancellationToken);
69
+ }
70
+
71
+ export function BranchClient__buildUrl_Z113C1396(this$: BranchClient, queryParams: BranchQueryRequestModel): string {
72
+ const parameters: FSharpList<[string, UrlPart]> = toList<[string, UrlPart]>(delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => {
73
+ let matchValue: Option<any> = (undefined as any), ids_1: any = (undefined as any);
74
+ return append<[string, UrlPart]>((matchValue = ofNullable<any>(queryParams.Id), (matchValue != null) ? ((count(value(matchValue)) > 0) ? ((ids_1 = value(matchValue), map<int64, [string, UrlPart]>((id: int64): [string, UrlPart] => (["Id", UrlPart_op_Implicit_Z524259C1(id)] as [string, UrlPart]), ids_1))) : (empty_1<[string, UrlPart]>())) : (empty_1<[string, UrlPart]>())), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>(!isNullOrEmpty(queryParams.Search) ? singleton_1<[string, UrlPart]>(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>((queryParams.PageNumber != null) ? singleton_1<[string, UrlPart]>(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => ((queryParams.PageSize != null) ? singleton_1<[string, UrlPart]>(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))] as [string, UrlPart]) : empty_1<[string, UrlPart]>())))))));
75
+ }));
76
+ return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Branches)), parameters);
77
+ }
78
+