@picteus/extension-sdk 0.7.1 → 0.9.0
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/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
- package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ApiSecretApi.js +2 -2
- package/dist/picteus-ws-client/apis/CollectionApi.d.ts +167 -0
- package/dist/picteus-ws-client/apis/CollectionApi.js +188 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +133 -77
- package/dist/picteus-ws-client/apis/ImageApi.js +134 -64
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
- package/dist/picteus-ws-client/apis/MiscellaneousApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -1
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +48 -35
- package/dist/picteus-ws-client/apis/RepositoryApi.js +56 -42
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
- package/dist/picteus-ws-client/apis/index.d.ts +1 -0
- package/dist/picteus-ws-client/apis/index.js +1 -0
- package/dist/picteus-ws-client/models/ApiSecret.d.ts +17 -17
- package/dist/picteus-ws-client/models/ApiSecret.js +7 -7
- package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +17 -17
- package/dist/picteus-ws-client/models/ApiSecretSummary.js +7 -7
- package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
- package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
- package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
- package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
- package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
- package/dist/picteus-ws-client/models/Collection.d.ts +63 -0
- package/dist/picteus-ws-client/models/Collection.js +62 -0
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
- package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
- package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
- package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
- package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/ConstantsRegistry.d.ts +40 -0
- package/dist/picteus-ws-client/models/ConstantsRegistry.js +49 -0
- package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
- package/dist/picteus-ws-client/models/Dates.js +1 -1
- package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
- package/dist/picteus-ws-client/models/Extension.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +6 -5
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +4 -3
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +52 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +57 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +2 -2
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +2 -2
- package/dist/picteus-ws-client/models/GenerationRecipe.js +4 -2
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
- package/dist/picteus-ws-client/models/Image.d.ts +1 -8
- package/dist/picteus-ws-client/models/Image.js +1 -6
- package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
- package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +6 -5
- package/dist/picteus-ws-client/models/ImageFeature.js +4 -3
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +4 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +24 -0
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +42 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +21 -0
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +55 -0
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +2 -2
- package/dist/picteus-ws-client/models/ImageFormat.js +2 -2
- package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -8
- package/dist/picteus-ws-client/models/ImageSummary.js +1 -6
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
- package/dist/picteus-ws-client/models/Manifest.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
- package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
- package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/PromptKind.js +1 -1
- package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
- package/dist/picteus-ws-client/models/Repository.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +8 -8
- package/dist/picteus-ws-client/models/SearchCriteria.js +4 -4
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +30 -0
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +48 -0
- package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +60 -0
- package/dist/picteus-ws-client/models/SearchFeatureCondition.js +59 -0
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +21 -0
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +55 -0
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +26 -0
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +44 -0
- package/dist/picteus-ws-client/models/SearchFeatures.d.ts +46 -0
- package/dist/picteus-ws-client/models/SearchFeatures.js +51 -0
- package/dist/picteus-ws-client/models/SearchFilter.d.ts +47 -0
- package/dist/picteus-ws-client/models/SearchFilter.js +48 -0
- package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +27 -0
- package/dist/picteus-ws-client/models/SearchFilterOrigin.js +47 -0
- package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchImagesOrigin.js +48 -0
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +2 -2
- package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +25 -0
- package/dist/picteus-ws-client/models/SearchOriginNature.js +43 -0
- package/dist/picteus-ws-client/models/SearchProperties.d.ts +2 -2
- package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRange.d.ts +2 -2
- package/dist/picteus-ws-client/models/SearchRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +48 -0
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +3 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +3 -1
- package/dist/picteus-ws-client/models/SearchTags.d.ts +3 -3
- package/dist/picteus-ws-client/models/SearchTags.js +1 -1
- package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
- package/dist/picteus-ws-client/models/Settings.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +24 -0
- package/dist/picteus-ws-client/models/Software.js +42 -0
- package/dist/picteus-ws-client/models/TextualPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/TextualPrompt.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +2 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +2 -1
- package/dist/picteus-ws-client/models/index.d.ts +16 -5
- package/dist/picteus-ws-client/models/index.js +16 -5
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +8 -4
- package/dist/picteusExtension.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The image feature comparison operator
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SearchFeatureComparisonOperator = {
|
|
19
|
+
Equals: 'equals',
|
|
20
|
+
Different: 'different',
|
|
21
|
+
Contains: 'contains',
|
|
22
|
+
GreaterThan: 'greaterThan',
|
|
23
|
+
GreaterThanOrEqual: 'greaterThanOrEqual',
|
|
24
|
+
LessThan: 'lessThan',
|
|
25
|
+
LessThanOrEqual: 'lessThanOrEqual'
|
|
26
|
+
};
|
|
27
|
+
export function instanceOfSearchFeatureComparisonOperator(value) {
|
|
28
|
+
for (const key in SearchFeatureComparisonOperator) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(SearchFeatureComparisonOperator, key)) {
|
|
30
|
+
if (SearchFeatureComparisonOperator[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
export function SearchFeatureComparisonOperatorFromJSON(json) {
|
|
38
|
+
return SearchFeatureComparisonOperatorFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function SearchFeatureComparisonOperatorFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
export function SearchFeatureComparisonOperatorToJSON(value) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
export function SearchFeatureComparisonOperatorToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SearchFeatureComparisonOperator } from './SearchFeatureComparisonOperator.js';
|
|
13
|
+
import type { ImageFeatureFormat } from './ImageFeatureFormat.js';
|
|
14
|
+
import type { ImageFeatureType } from './ImageFeatureType.js';
|
|
15
|
+
import type { SearchFeatureConditionValue } from './SearchFeatureConditionValue.js';
|
|
16
|
+
/**
|
|
17
|
+
* A condition expression for filtering image features
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SearchFeatureCondition
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchFeatureCondition {
|
|
22
|
+
/**
|
|
23
|
+
* The image feature type
|
|
24
|
+
* @type {ImageFeatureType}
|
|
25
|
+
* @memberof SearchFeatureCondition
|
|
26
|
+
*/
|
|
27
|
+
type?: ImageFeatureType;
|
|
28
|
+
/**
|
|
29
|
+
* The image feature format
|
|
30
|
+
* @type {ImageFeatureFormat}
|
|
31
|
+
* @memberof SearchFeatureCondition
|
|
32
|
+
*/
|
|
33
|
+
format: ImageFeatureFormat;
|
|
34
|
+
/**
|
|
35
|
+
* The image feature name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SearchFeatureCondition
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The image feature comparison operator
|
|
42
|
+
* @type {SearchFeatureComparisonOperator}
|
|
43
|
+
* @memberof SearchFeatureCondition
|
|
44
|
+
*/
|
|
45
|
+
operator: SearchFeatureComparisonOperator;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {SearchFeatureConditionValue}
|
|
49
|
+
* @memberof SearchFeatureCondition
|
|
50
|
+
*/
|
|
51
|
+
value: SearchFeatureConditionValue;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the SearchFeatureCondition interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfSearchFeatureCondition(value: object): value is SearchFeatureCondition;
|
|
57
|
+
export declare function SearchFeatureConditionFromJSON(json: any): SearchFeatureCondition;
|
|
58
|
+
export declare function SearchFeatureConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureCondition;
|
|
59
|
+
export declare function SearchFeatureConditionToJSON(json: any): SearchFeatureCondition;
|
|
60
|
+
export declare function SearchFeatureConditionToJSONTyped(value?: SearchFeatureCondition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SearchFeatureComparisonOperatorFromJSON, SearchFeatureComparisonOperatorToJSON, } from './SearchFeatureComparisonOperator.js';
|
|
15
|
+
import { ImageFeatureFormatFromJSON, ImageFeatureFormatToJSON, } from './ImageFeatureFormat.js';
|
|
16
|
+
import { ImageFeatureTypeFromJSON, ImageFeatureTypeToJSON, } from './ImageFeatureType.js';
|
|
17
|
+
import { SearchFeatureConditionValueFromJSON, SearchFeatureConditionValueToJSON, } from './SearchFeatureConditionValue.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SearchFeatureCondition interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfSearchFeatureCondition(value) {
|
|
22
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('operator' in value) || value['operator'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SearchFeatureConditionFromJSON(json) {
|
|
31
|
+
return SearchFeatureConditionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SearchFeatureConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'] == null ? undefined : ImageFeatureTypeFromJSON(json['type']),
|
|
39
|
+
'format': ImageFeatureFormatFromJSON(json['format']),
|
|
40
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
41
|
+
'operator': SearchFeatureComparisonOperatorFromJSON(json['operator']),
|
|
42
|
+
'value': SearchFeatureConditionValueFromJSON(json['value']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SearchFeatureConditionToJSON(json) {
|
|
46
|
+
return SearchFeatureConditionToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SearchFeatureConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'type': ImageFeatureTypeToJSON(value['type']),
|
|
54
|
+
'format': ImageFeatureFormatToJSON(value['format']),
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'operator': SearchFeatureComparisonOperatorToJSON(value['operator']),
|
|
57
|
+
'value': SearchFeatureConditionValueToJSON(value['value']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @type SearchFeatureConditionValue
|
|
14
|
+
* The image feature value
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export type SearchFeatureConditionValue = boolean | number | string;
|
|
18
|
+
export declare function SearchFeatureConditionValueFromJSON(json: any): SearchFeatureConditionValue;
|
|
19
|
+
export declare function SearchFeatureConditionValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureConditionValue;
|
|
20
|
+
export declare function SearchFeatureConditionValueToJSON(json: any): any;
|
|
21
|
+
export declare function SearchFeatureConditionValueToJSONTyped(value?: SearchFeatureConditionValue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export function SearchFeatureConditionValueFromJSON(json) {
|
|
15
|
+
return SearchFeatureConditionValueFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function SearchFeatureConditionValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json == null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
if (typeof json === 'string') {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
if (typeof json === 'number') {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
if (typeof json === 'number') {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
if (typeof json === 'boolean') {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
export function SearchFeatureConditionValueToJSON(json) {
|
|
36
|
+
return SearchFeatureConditionValueToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function SearchFeatureConditionValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
if (typeof value === 'string') {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
if (typeof value === 'number') {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
if (typeof value === 'number') {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
if (typeof value === 'boolean') {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The logical operator
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SearchFeatureLogicalOperator: {
|
|
17
|
+
readonly Or: "or";
|
|
18
|
+
readonly And: "and";
|
|
19
|
+
readonly Not: "not";
|
|
20
|
+
};
|
|
21
|
+
export type SearchFeatureLogicalOperator = typeof SearchFeatureLogicalOperator[keyof typeof SearchFeatureLogicalOperator];
|
|
22
|
+
export declare function instanceOfSearchFeatureLogicalOperator(value: any): boolean;
|
|
23
|
+
export declare function SearchFeatureLogicalOperatorFromJSON(json: any): SearchFeatureLogicalOperator;
|
|
24
|
+
export declare function SearchFeatureLogicalOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureLogicalOperator;
|
|
25
|
+
export declare function SearchFeatureLogicalOperatorToJSON(value?: SearchFeatureLogicalOperator | null): any;
|
|
26
|
+
export declare function SearchFeatureLogicalOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchFeatureLogicalOperator;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The logical operator
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SearchFeatureLogicalOperator = {
|
|
19
|
+
Or: 'or',
|
|
20
|
+
And: 'and',
|
|
21
|
+
Not: 'not'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSearchFeatureLogicalOperator(value) {
|
|
24
|
+
for (const key in SearchFeatureLogicalOperator) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SearchFeatureLogicalOperator, key)) {
|
|
26
|
+
if (SearchFeatureLogicalOperator[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function SearchFeatureLogicalOperatorFromJSON(json) {
|
|
34
|
+
return SearchFeatureLogicalOperatorFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SearchFeatureLogicalOperatorFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SearchFeatureLogicalOperatorToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SearchFeatureLogicalOperatorToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SearchFeatureCondition } from './SearchFeatureCondition.js';
|
|
13
|
+
import type { SearchFeatureLogicalOperator } from './SearchFeatureLogicalOperator.js';
|
|
14
|
+
/**
|
|
15
|
+
* The expression for filtering image features
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SearchFeatures
|
|
18
|
+
*/
|
|
19
|
+
export interface SearchFeatures {
|
|
20
|
+
/**
|
|
21
|
+
* The logical operator
|
|
22
|
+
* @type {SearchFeatureLogicalOperator}
|
|
23
|
+
* @memberof SearchFeatures
|
|
24
|
+
*/
|
|
25
|
+
operator: SearchFeatureLogicalOperator;
|
|
26
|
+
/**
|
|
27
|
+
* The search conditions
|
|
28
|
+
* @type {Array<SearchFeatureCondition>}
|
|
29
|
+
* @memberof SearchFeatures
|
|
30
|
+
*/
|
|
31
|
+
conditions: Array<SearchFeatureCondition>;
|
|
32
|
+
/**
|
|
33
|
+
* Other nested search features
|
|
34
|
+
* @type {SearchFeatures}
|
|
35
|
+
* @memberof SearchFeatures
|
|
36
|
+
*/
|
|
37
|
+
features?: SearchFeatures;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SearchFeatures interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSearchFeatures(value: object): value is SearchFeatures;
|
|
43
|
+
export declare function SearchFeaturesFromJSON(json: any): SearchFeatures;
|
|
44
|
+
export declare function SearchFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatures;
|
|
45
|
+
export declare function SearchFeaturesToJSON(json: any): SearchFeatures;
|
|
46
|
+
export declare function SearchFeaturesToJSONTyped(value?: SearchFeatures | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SearchFeatureConditionFromJSON, SearchFeatureConditionToJSON, } from './SearchFeatureCondition.js';
|
|
15
|
+
import { SearchFeatureLogicalOperatorFromJSON, SearchFeatureLogicalOperatorToJSON, } from './SearchFeatureLogicalOperator.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the SearchFeatures interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfSearchFeatures(value) {
|
|
20
|
+
if (!('operator' in value) || value['operator'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('conditions' in value) || value['conditions'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SearchFeaturesFromJSON(json) {
|
|
27
|
+
return SearchFeaturesFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SearchFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'operator': SearchFeatureLogicalOperatorFromJSON(json['operator']),
|
|
35
|
+
'conditions': (json['conditions'].map(SearchFeatureConditionFromJSON)),
|
|
36
|
+
'features': json['features'] == null ? undefined : SearchFeaturesFromJSON(json['features']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function SearchFeaturesToJSON(json) {
|
|
40
|
+
return SearchFeaturesToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SearchFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'operator': SearchFeatureLogicalOperatorToJSON(value['operator']),
|
|
48
|
+
'conditions': (value['conditions'].map(SearchFeatureConditionToJSON)),
|
|
49
|
+
'features': SearchFeaturesToJSON(value['features']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SearchSorting } from './SearchSorting.js';
|
|
13
|
+
import type { SearchFilterOrigin } from './SearchFilterOrigin.js';
|
|
14
|
+
import type { SearchCriteria } from './SearchCriteria.js';
|
|
15
|
+
/**
|
|
16
|
+
* A search criteria combined to sorting specifications
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SearchFilter
|
|
19
|
+
*/
|
|
20
|
+
export interface SearchFilter {
|
|
21
|
+
/**
|
|
22
|
+
* The criteria that will be applied when applying filter
|
|
23
|
+
* @type {SearchCriteria}
|
|
24
|
+
* @memberof SearchFilter
|
|
25
|
+
*/
|
|
26
|
+
criteria?: SearchCriteria;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {SearchFilterOrigin}
|
|
30
|
+
* @memberof SearchFilter
|
|
31
|
+
*/
|
|
32
|
+
origin?: SearchFilterOrigin;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates how the images should be sorted
|
|
35
|
+
* @type {SearchSorting}
|
|
36
|
+
* @memberof SearchFilter
|
|
37
|
+
*/
|
|
38
|
+
sorting?: SearchSorting;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the SearchFilter interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfSearchFilter(value: object): value is SearchFilter;
|
|
44
|
+
export declare function SearchFilterFromJSON(json: any): SearchFilter;
|
|
45
|
+
export declare function SearchFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFilter;
|
|
46
|
+
export declare function SearchFilterToJSON(json: any): SearchFilter;
|
|
47
|
+
export declare function SearchFilterToJSONTyped(value?: SearchFilter | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SearchSortingFromJSON, SearchSortingToJSON, } from './SearchSorting.js';
|
|
15
|
+
import { SearchFilterOriginFromJSON, SearchFilterOriginToJSON, } from './SearchFilterOrigin.js';
|
|
16
|
+
import { SearchCriteriaFromJSON, SearchCriteriaToJSON, } from './SearchCriteria.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SearchFilter interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfSearchFilter(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function SearchFilterFromJSON(json) {
|
|
24
|
+
return SearchFilterFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SearchFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'criteria': json['criteria'] == null ? undefined : SearchCriteriaFromJSON(json['criteria']),
|
|
32
|
+
'origin': json['origin'] == null ? undefined : SearchFilterOriginFromJSON(json['origin']),
|
|
33
|
+
'sorting': json['sorting'] == null ? undefined : SearchSortingFromJSON(json['sorting']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SearchFilterToJSON(json) {
|
|
37
|
+
return SearchFilterToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function SearchFilterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'criteria': SearchCriteriaToJSON(value['criteria']),
|
|
45
|
+
'origin': SearchFilterOriginToJSON(value['origin']),
|
|
46
|
+
'sorting': SearchSortingToJSON(value['sorting']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SearchImagesOrigin } from './SearchImagesOrigin.js';
|
|
13
|
+
import type { SearchRepositoriesOrigin } from './SearchRepositoriesOrigin.js';
|
|
14
|
+
/**
|
|
15
|
+
* @type SearchFilterOrigin
|
|
16
|
+
* The origin of the images to search in
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type SearchFilterOrigin = {
|
|
20
|
+
kind: 'images';
|
|
21
|
+
} & SearchImagesOrigin | {
|
|
22
|
+
kind: 'repositories';
|
|
23
|
+
} & SearchRepositoriesOrigin;
|
|
24
|
+
export declare function SearchFilterOriginFromJSON(json: any): SearchFilterOrigin;
|
|
25
|
+
export declare function SearchFilterOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFilterOrigin;
|
|
26
|
+
export declare function SearchFilterOriginToJSON(json: any): any;
|
|
27
|
+
export declare function SearchFilterOriginToJSONTyped(value?: SearchFilterOrigin | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SearchImagesOriginFromJSONTyped, SearchImagesOriginToJSON, } from './SearchImagesOrigin.js';
|
|
15
|
+
import { SearchRepositoriesOriginFromJSONTyped, SearchRepositoriesOriginToJSON, } from './SearchRepositoriesOrigin.js';
|
|
16
|
+
export function SearchFilterOriginFromJSON(json) {
|
|
17
|
+
return SearchFilterOriginFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
export function SearchFilterOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if (json == null) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
switch (json['kind']) {
|
|
24
|
+
case 'images':
|
|
25
|
+
return Object.assign({}, SearchImagesOriginFromJSONTyped(json, true), { kind: 'images' });
|
|
26
|
+
case 'repositories':
|
|
27
|
+
return Object.assign({}, SearchRepositoriesOriginFromJSONTyped(json, true), { kind: 'repositories' });
|
|
28
|
+
default:
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export function SearchFilterOriginToJSON(json) {
|
|
33
|
+
return SearchFilterOriginToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function SearchFilterOriginToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
switch (value['kind']) {
|
|
40
|
+
case 'images':
|
|
41
|
+
return Object.assign({}, SearchImagesOriginToJSON(value), { kind: 'images' });
|
|
42
|
+
case 'repositories':
|
|
43
|
+
return Object.assign({}, SearchRepositoriesOriginToJSON(value), { kind: 'repositories' });
|
|
44
|
+
default:
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: edouard@koppasoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SearchOriginNature } from './SearchOriginNature.js';
|
|
13
|
+
/**
|
|
14
|
+
* A images-based search origin, involving that the images should be part of the designed image identifiers
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SearchImagesOrigin
|
|
17
|
+
*/
|
|
18
|
+
export interface SearchImagesOrigin {
|
|
19
|
+
/**
|
|
20
|
+
* Indicates how the search result entities should be sorted
|
|
21
|
+
* @type {SearchOriginNature}
|
|
22
|
+
* @memberof SearchImagesOrigin
|
|
23
|
+
*/
|
|
24
|
+
kind: SearchOriginNature;
|
|
25
|
+
/**
|
|
26
|
+
* The image identifiers
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof SearchImagesOrigin
|
|
29
|
+
*/
|
|
30
|
+
ids: Array<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SearchImagesOrigin interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSearchImagesOrigin(value: object): value is SearchImagesOrigin;
|
|
36
|
+
export declare function SearchImagesOriginFromJSON(json: any): SearchImagesOrigin;
|
|
37
|
+
export declare function SearchImagesOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchImagesOrigin;
|
|
38
|
+
export declare function SearchImagesOriginToJSON(json: any): SearchImagesOrigin;
|
|
39
|
+
export declare function SearchImagesOriginToJSONTyped(value?: SearchImagesOrigin | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
|
+
* Contact: edouard@koppasoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SearchOriginNatureFromJSON, SearchOriginNatureToJSON, } from './SearchOriginNature.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SearchImagesOrigin interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSearchImagesOrigin(value) {
|
|
19
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function SearchImagesOriginFromJSON(json) {
|
|
26
|
+
return SearchImagesOriginFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function SearchImagesOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'kind': SearchOriginNatureFromJSON(json['kind']),
|
|
34
|
+
'ids': json['ids'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function SearchImagesOriginToJSON(json) {
|
|
38
|
+
return SearchImagesOriginToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function SearchImagesOriginToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'kind': SearchOriginNatureToJSON(value['kind']),
|
|
46
|
+
'ids': value['ids'],
|
|
47
|
+
};
|
|
48
|
+
}
|