@skedulo/pulse-solution-services 0.0.18 → 0.0.20

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 (45) hide show
  1. package/README.md +60 -5
  2. package/dist/clients/availability-api-client.js +1 -1
  3. package/dist/clients/base-client.js +1 -1
  4. package/dist/clients/graphql-client.js +1 -1
  5. package/dist/constants/tenant-endpoints.js +1 -1
  6. package/dist/index.d.ts +158 -15
  7. package/dist/services/graph-batch/unique-graph-batch.js +1 -1
  8. package/dist/services/graphql/graphql-query-builder.js +1 -1
  9. package/dist/services/graphql/graphql-service.js +1 -1
  10. package/dist/services/graphql/queries.js +1 -1
  11. package/dist/services/lock-service.js +1 -1
  12. package/package.json +2 -2
  13. package/CHANGELOG.md +0 -55
  14. package/dist/logging/decorators/index.d.ts +0 -1
  15. package/dist/logging/decorators/log-method.d.ts +0 -7
  16. package/dist/monitoring/decorators/monitor-call.d.ts +0 -6
  17. package/dist/services/cache/cache-service.d.ts +0 -70
  18. package/dist/services/cache/index.d.ts +0 -1
  19. package/dist/services/cache/storage/config-var-cache-storage.d.ts +0 -40
  20. package/dist/services/cache/storage/in-memory-cache-storage.d.ts +0 -32
  21. package/dist/services/cache/storage/index.d.ts +0 -2
  22. package/dist/services/graph-batch/configs/graph-batch-config.d.ts +0 -18
  23. package/dist/services/graph-batch/configs/unique-graph-batch-config.d.ts +0 -16
  24. package/dist/services/graph-batch/graph-batch.d.ts +0 -56
  25. package/dist/services/graph-batch/index.d.ts +0 -5
  26. package/dist/services/graph-batch/pagination-strategy.d.ts +0 -5
  27. package/dist/services/graph-batch/unique-graph-batch.d.ts +0 -28
  28. package/dist/services/graphql/graphql-batch-builder.d.ts +0 -138
  29. package/dist/services/graphql/graphql-query-batch.d.ts +0 -10
  30. package/dist/services/graphql/graphql-query-builder.d.ts +0 -86
  31. package/dist/services/graphql/graphql-service.d.ts +0 -106
  32. package/dist/services/graphql/index.d.ts +0 -2
  33. package/dist/services/graphql/queries.d.ts +0 -20
  34. package/dist/services/resource-availability/builder/data-service.d.ts +0 -10
  35. package/dist/services/resource-availability/builder/index.d.ts +0 -3
  36. package/dist/services/resource-availability/builder/resource-availability-service.d.ts +0 -8
  37. package/dist/services/resource-availability/builder/resource-builder.d.ts +0 -17
  38. package/dist/services/resource-availability/builder/resource-query-param.d.ts +0 -23
  39. package/dist/services/resource-availability/index.d.ts +0 -2
  40. package/dist/services/resource-availability/validator/index.d.ts +0 -4
  41. package/dist/services/resource-availability/validator/resource-job-validation.d.ts +0 -11
  42. package/dist/services/resource-availability/validator/resource-validation-option.d.ts +0 -5
  43. package/dist/services/resource-availability/validator/resource-validator.d.ts +0 -13
  44. package/dist/services/resource-availability/validator/validation-result.d.ts +0 -12
  45. package/yarn.lock +0 -3461
@@ -1,8 +0,0 @@
1
- import { AvailabilityAPIClient } from "../../../clients/availability-api-client";
2
- import { BaseEvent } from "../../../core/tenant-entities";
3
- import { ResourceQueryParam } from "./resource-query-param";
4
- export declare class ResourceAvailabilityService {
5
- private availabilityAPIClient;
6
- constructor(availabilityAPIClient: AvailabilityAPIClient);
7
- getAvailabilityPatterns(param: ResourceQueryParam): Promise<Map<string, BaseEvent[]>>;
8
- }
@@ -1,17 +0,0 @@
1
- import { Resource } from "../../../core/tenant-entities";
2
- import { DataService } from "./data-service";
3
- import { ResourceAvailabilityService } from "./resource-availability-service";
4
- import { ResourceQueryParam } from "./resource-query-param";
5
- export declare class ResourceBuilder {
6
- private dataService;
7
- private availabilityService;
8
- constructor(dataService: DataService, availabilityService: ResourceAvailabilityService);
9
- build(queryParam: ResourceQueryParam): Promise<Resource[]>;
10
- private loadAvailabilityPatterns;
11
- private loadActivityEvents;
12
- private loadAvailabilityEvents;
13
- private loadJobAllocationEvents;
14
- private loadResourceShiftEvents;
15
- private loadHolidayEvents;
16
- protected buildMore(resources: Resource[]): Resource[];
17
- }
@@ -1,23 +0,0 @@
1
- export declare class ResourceQueryParam {
2
- resourceIds?: Set<string>;
3
- regionIds?: Set<string>;
4
- startTime: Date;
5
- endTime: Date;
6
- timezone: string;
7
- respectResourceTimezone: boolean;
8
- mergeAvailability: boolean;
9
- mergeEvents: boolean;
10
- useTag: boolean;
11
- useJobAllocation: boolean;
12
- useResourceShift: boolean;
13
- useActivity: boolean;
14
- useAvailability: boolean;
15
- useAvailabilityTemplate: boolean;
16
- useAvailabilityPattern: boolean;
17
- useHoliday: boolean;
18
- excludedJAStatus: Set<string>;
19
- excludedJobStatus: Set<string>;
20
- availabilityStatus: Set<string>;
21
- resourceTypes: Set<string>;
22
- constructor();
23
- }
@@ -1,2 +0,0 @@
1
- export * from "./builder";
2
- export * from "./validator";
@@ -1,4 +0,0 @@
1
- export * from "./resource-job-validation";
2
- export * from "./resource-validation-option";
3
- export * from "./resource-validator";
4
- export * from "./validation-result";
@@ -1,11 +0,0 @@
1
- import { BaseEvent, Job, Resource, Tag } from "../../../core/tenant-entities";
2
- import { ResourceValidationOption } from "./resource-validation-option";
3
- export declare class ResourceJobValidation {
4
- resource: Partial<Resource>;
5
- job: Partial<Job>;
6
- availableEvent: BaseEvent | null;
7
- conflictEvents: BaseEvent[];
8
- missingTags: Tag[];
9
- constructor(resource: Partial<Resource>, job: Partial<Job>, availableEvent?: BaseEvent | null, conflictEvents?: BaseEvent[], missingTags?: Tag[]);
10
- isQualified(option: ResourceValidationOption): boolean;
11
- }
@@ -1,5 +0,0 @@
1
- export interface ResourceValidationOption {
2
- checkAvailability: boolean;
3
- checkConflict: boolean;
4
- checkTag: boolean;
5
- }
@@ -1,13 +0,0 @@
1
- import { Job, Resource } from "../../../core/tenant-entities";
2
- import { ResourceValidationOption } from "./resource-validation-option";
3
- import { ValidationResult } from "./validation-result";
4
- export declare class ResourceValidator {
5
- private readonly option;
6
- constructor(option: ResourceValidationOption);
7
- validate(resources: Resource[], jobs: Job[]): ValidationResult;
8
- private validateResource;
9
- private findAvailableEvent;
10
- private findConflictingEvents;
11
- private findMissingTags;
12
- private prepareData;
13
- }
@@ -1,12 +0,0 @@
1
- import { Job, Resource } from "../../../core/tenant-entities";
2
- import { ResourceJobValidation } from "./resource-job-validation";
3
- import { ResourceValidationOption } from "./resource-validation-option";
4
- export declare class ValidationResult {
5
- private readonly validations;
6
- private readonly option;
7
- constructor(validations: ResourceJobValidation[], option: ResourceValidationOption);
8
- getQualifiedResources(): Partial<Resource>[];
9
- getJobsWithXQualifiedResources(minQualifiedResources: number): Partial<Job>[];
10
- getUnqualifiedJobsWithReasons(): ResourceJobValidation[];
11
- format(): any[];
12
- }