🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

opvious-graph

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opvious-graph - npm Package Compare versions

Comparing version
0.1.39
to
0.1.40
+296
-214
lib/graph.gen.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidateDefinitionsDocument = exports.UpdateFormulationDocument = exports.StopSharingFormulationDocument = exports.StartSharingFormulationDocument = exports.StartAttemptDocument = exports.RevokeAuthorizationDocument = exports.RegisterSpecificationDocument = exports.GenerateAuthorizationDocument = exports.DeleteFormulationDocument = exports.CancelAttemptDocument = exports.PolledAttemptFragmentDoc = exports.PaginatedSharedTagFragmentDoc = exports.PaginatedFormulationFragmentDoc = exports.PaginatedFormulationSpecificationFragmentDoc = exports.PaginatedFormulationAttemptFragmentDoc = exports.PaginatedAttemptFragmentDoc = exports.UnspecifiedAttemptForRowFragmentDoc = exports.ListedAuthorizationFragmentDoc = exports.FetchedSpecificationTagFragmentDoc = exports.SpecificationForOverviewFragmentDoc = exports.FetchedFormulationFragmentDoc = exports.FetchedAttemptFragmentDoc = exports.FetchedAttemptOutcomeFragmentDoc = exports.FullAttemptOptionsFragmentDoc = exports.FullAttemptNotificationFragmentDoc = exports.FullOutlineFragmentDoc = exports.FullConstraintOutlineFragmentDoc = exports.FullParameterOutlineFragmentDoc = exports.FullVariableOutlineFragmentDoc = exports.FullTensorOutlineFragmentDoc = exports.FullSourceBindingFragmentDoc = exports.FullDimensionOutlineFragmentDoc = exports.ShallowSpecificationTagFragmentDoc = exports.FetchedAttemptSummariesFragmentDoc = exports.FullObjectiveSummaryFragmentDoc = exports.FullVariableSummaryFragmentDoc = exports.FullConstraintSummaryFragmentDoc = exports.FullParameterSummaryFragmentDoc = exports.FullValueProfileFragmentDoc = exports.FullDimensionSummaryFragmentDoc = exports.FetchedAttemptOutputsFragmentDoc = exports.FullConstraintFragmentDoc = exports.FullVariableFragmentDoc = exports.FullResultFragmentDoc = exports.FetchedAttemptInputsFragmentDoc = exports.FullParameterFragmentDoc = exports.FullDimensionFragmentDoc = exports.ExtractedSourceSliceFragmentDoc = exports.FullDefinitionFragmentDoc = exports.FullPageInfoFragmentDoc = void 0;
exports.getSdk = exports.PollAttemptDocument = exports.PaginateSharedSpecificationTagsDocument = exports.PaginateFormulationsDocument = exports.PaginateFormulationSpecificationsDocument = exports.PaginateFormulationAttemptsDocument = exports.PaginateAttemptsDocument = exports.PaginateAttemptNotificationsDocument = exports.ListMyAuthorizationsDocument = exports.FetchSpecificationDocument = exports.FetchSpecificationTagDocument = exports.FetchSpecificationOutlineDocument = exports.FetchMyAccountDocument = exports.FetchFormulationDocument = exports.FetchAttemptDocument = exports.FetchAttemptSummariesDocument = exports.FetchAttemptOutputsDocument = exports.FetchAttemptInputsDocument = exports.ExtractDefinitionsDocument = void 0;
exports.PaginatedSharedTagFragmentDoc = exports.PaginatedFormulationFragmentDoc = exports.PaginatedFormulationSpecificationFragmentDoc = exports.PaginatedFormulationAttemptFragmentDoc = exports.PaginatedAttemptFragmentDoc = exports.UnspecifiedAttemptForRowFragmentDoc = exports.ListedAuthorizationFragmentDoc = exports.FetchedSpecificationFormulationFragmentDoc = exports.FetchedSpecificationTagFormulationFragmentDoc = exports.FetchedSpecificationTagFragmentDoc = exports.FetchedOutlineFormulationFragmentDoc = exports.MyAccountFragmentDoc = exports.FetchedFormulationFragmentDoc = exports.FetchedAttemptFragmentDoc = exports.FetchedAttemptOutcomeFragmentDoc = exports.FullAttemptNotificationFragmentDoc = exports.FetchedAttemptSummariesFragmentDoc = exports.FullObjectiveSummaryFragmentDoc = exports.FullVariableSummaryFragmentDoc = exports.FullConstraintSummaryFragmentDoc = exports.FullParameterSummaryFragmentDoc = exports.FullValueProfileFragmentDoc = exports.FullDimensionSummaryFragmentDoc = exports.FetchedAttemptOutputsFragmentDoc = exports.FullConstraintFragmentDoc = exports.FullVariableFragmentDoc = exports.FullResultFragmentDoc = exports.FetchedAttemptInputsFragmentDoc = exports.FullParameterFragmentDoc = exports.FullDimensionFragmentDoc = exports.ExtractedSourceSliceFragmentDoc = exports.UpdatedFormulationFragmentDoc = exports.UnsharedFormulationFragmentDoc = exports.SharedSpecificationTagFragmentDoc = exports.StartedAttemptFragmentDoc = exports.FullAttemptOptionsFragmentDoc = exports.RegisteredSpecificationFragmentDoc = exports.SpecificationForOverviewFragmentDoc = exports.FullOutlineFragmentDoc = exports.FullConstraintOutlineFragmentDoc = exports.FullParameterOutlineFragmentDoc = exports.FullVariableOutlineFragmentDoc = exports.FullTensorOutlineFragmentDoc = exports.FullSourceBindingFragmentDoc = exports.FullDimensionOutlineFragmentDoc = exports.FullDefinitionFragmentDoc = exports.ShallowSpecificationTagFragmentDoc = exports.DeletedFormulationFragmentDoc = exports.CancelledAttemptFragmentDoc = exports.FullPageInfoFragmentDoc = void 0;
exports.getSdk = exports.PollAttemptDocument = exports.PaginateSharedSpecificationTagsDocument = exports.PaginateFormulationsDocument = exports.PaginateFormulationSpecificationsDocument = exports.PaginateFormulationAttemptsDocument = exports.PaginateAttemptsDocument = exports.PaginateAttemptNotificationsDocument = exports.ListMyAuthorizationsDocument = exports.FetchSpecificationDocument = exports.FetchSpecificationTagDocument = exports.FetchOutlineDocument = exports.FetchMyAccountDocument = exports.FetchFormulationDocument = exports.FetchAttemptDocument = exports.FetchAttemptSummariesDocument = exports.FetchAttemptOutputsDocument = exports.FetchAttemptInputsDocument = exports.ExtractDefinitionsDocument = exports.ValidateDefinitionsDocument = exports.UpdateFormulationDocument = exports.StopSharingFormulationDocument = exports.StartSharingFormulationDocument = exports.StartAttemptDocument = exports.RevokeAuthorizationDocument = exports.RegisterSpecificationDocument = exports.GenerateAuthorizationDocument = exports.DeleteFormulationDocument = exports.CancelAttemptDocument = exports.PolledAttemptFragmentDoc = exports.PolledAttemptOutcomeFragmentDoc = void 0;
exports.FullPageInfoFragmentDoc = `

@@ -13,2 +13,32 @@ fragment FullPageInfo on PageInfo {

`;
exports.CancelledAttemptFragmentDoc = `
fragment CancelledAttempt on Attempt {
uuid
startedAt
dequeuedAt
endedAt
expiresAt
pristineSpecification {
revno
formulation {
name
displayName
}
}
}
`;
exports.DeletedFormulationFragmentDoc = `
fragment DeletedFormulation on DeleteFormulationOutput {
specificationCount
attemptCount
}
`;
exports.ShallowSpecificationTagFragmentDoc = `
fragment ShallowSpecificationTag on SpecificationTag {
name
createdAt
lastUpdatedAt
sharedVia
}
`;
exports.FullDefinitionFragmentDoc = `

@@ -22,2 +52,179 @@ fragment FullDefinition on Definition {

`;
exports.FullDimensionOutlineFragmentDoc = `
fragment FullDimensionOutline on DimensionOutline {
label
isNumeric
}
`;
exports.FullSourceBindingFragmentDoc = `
fragment FullSourceBinding on SourceBinding {
dimensionLabel
qualifier
}
`;
exports.FullTensorOutlineFragmentDoc = `
fragment FullTensorOutline on TensorOutline {
label
lowerBound
upperBound
isIntegral
bindings {
...FullSourceBinding
}
}
`;
exports.FullVariableOutlineFragmentDoc = `
fragment FullVariableOutline on VariableOutline {
...FullTensorOutline
derivation {
__typename
... on DeficitVariable {
constraintLabel
}
... on SurplusVariable {
constraintLabel
}
}
}
`;
exports.FullParameterOutlineFragmentDoc = `
fragment FullParameterOutline on ParameterOutline {
...FullTensorOutline
derivation {
__typename
... on PinParameter {
variableLabel
}
}
}
`;
exports.FullConstraintOutlineFragmentDoc = `
fragment FullConstraintOutline on ConstraintOutline {
label
bindings {
...FullSourceBinding
}
derivation {
__typename
... on PinConstraint {
variableLabel
}
}
}
`;
exports.FullOutlineFragmentDoc = `
fragment FullOutline on Outline {
objective {
isMaximization
}
dimensions {
...FullDimensionOutline
}
variables {
...FullVariableOutline
}
parameters {
...FullParameterOutline
}
constraints {
...FullConstraintOutline
}
}
`;
exports.SpecificationForOverviewFragmentDoc = `
fragment SpecificationForOverview on Specification {
revno
createdAt
expiresAt
description
tags {
...ShallowSpecificationTag
}
definitions {
...FullDefinition
}
outline {
...FullOutline
}
}
`;
exports.RegisteredSpecificationFragmentDoc = `
fragment RegisteredSpecification on Specification {
formulation {
name
displayName
createdAt
}
...SpecificationForOverview
}
`;
exports.FullAttemptOptionsFragmentDoc = `
fragment FullAttemptOptions on AttemptOptions {
relativeGapThreshold
absoluteGapThreshold
solveTimeoutMillis
primalValueEpsilon
pinnedVariableLabels
relaxation {
objectiveWeight
constraints {
label
penalty
}
}
}
`;
exports.StartedAttemptFragmentDoc = `
fragment StartedAttempt on Attempt {
uuid
startedAt
expiresAt
pristineSpecification {
revno
formulation {
displayName
name
}
}
outline {
...FullOutline
}
options {
...FullAttemptOptions
}
}
`;
exports.SharedSpecificationTagFragmentDoc = `
fragment SharedSpecificationTag on SpecificationTag {
...ShallowSpecificationTag
specification {
revno
}
}
`;
exports.UnsharedFormulationFragmentDoc = `
fragment UnsharedFormulation on Formulation {
name
displayName
sharedTags: tags(first: 3, filter: {isShared: true}) {
edges {
node {
...ShallowSpecificationTag
specification {
revno
}
}
}
totalCount
}
}
`;
exports.UpdatedFormulationFragmentDoc = `
fragment UpdatedFormulation on Formulation {
name
displayName
createdAt
defaultTagName
}
`;
exports.ExtractedSourceSliceFragmentDoc = `

@@ -182,91 +389,2 @@ fragment ExtractedSourceSlice on SourceSlice {

`;
exports.ShallowSpecificationTagFragmentDoc = `
fragment ShallowSpecificationTag on SpecificationTag {
name
createdAt
lastUpdatedAt
sharedVia
}
`;
exports.FullDimensionOutlineFragmentDoc = `
fragment FullDimensionOutline on DimensionOutline {
label
isNumeric
}
`;
exports.FullSourceBindingFragmentDoc = `
fragment FullSourceBinding on SourceBinding {
dimensionLabel
qualifier
}
`;
exports.FullTensorOutlineFragmentDoc = `
fragment FullTensorOutline on TensorOutline {
label
lowerBound
upperBound
isIntegral
bindings {
...FullSourceBinding
}
}
`;
exports.FullVariableOutlineFragmentDoc = `
fragment FullVariableOutline on VariableOutline {
...FullTensorOutline
derivation {
__typename
... on DeficitVariable {
constraintLabel
}
... on SurplusVariable {
constraintLabel
}
}
}
`;
exports.FullParameterOutlineFragmentDoc = `
fragment FullParameterOutline on ParameterOutline {
...FullTensorOutline
derivation {
__typename
... on PinParameter {
variableLabel
}
}
}
`;
exports.FullConstraintOutlineFragmentDoc = `
fragment FullConstraintOutline on ConstraintOutline {
label
bindings {
...FullSourceBinding
}
derivation {
__typename
... on PinConstraint {
variableLabel
}
}
}
`;
exports.FullOutlineFragmentDoc = `
fragment FullOutline on Outline {
objective {
isMaximization
}
dimensions {
...FullDimensionOutline
}
variables {
...FullVariableOutline
}
parameters {
...FullParameterOutline
}
constraints {
...FullConstraintOutline
}
}
`;
exports.FullAttemptNotificationFragmentDoc = `

@@ -280,18 +398,2 @@ fragment FullAttemptNotification on AttemptNotification {

`;
exports.FullAttemptOptionsFragmentDoc = `
fragment FullAttemptOptions on AttemptOptions {
relativeGapThreshold
absoluteGapThreshold
solveTimeoutMillis
primalValueEpsilon
pinnedVariableLabels
relaxation {
objectiveWeight
constraints {
label
penalty
}
}
}
`;
exports.FetchedAttemptOutcomeFragmentDoc = `

@@ -366,17 +468,24 @@ fragment FetchedAttemptOutcome on Outcome {

`;
exports.SpecificationForOverviewFragmentDoc = `
fragment SpecificationForOverview on Specification {
revno
createdAt
expiresAt
description
tags {
...ShallowSpecificationTag
exports.MyAccountFragmentDoc = `
fragment MyAccount on Account {
holder {
... on Member {
email
}
}
definitions {
...FullDefinition
}
`;
exports.FetchedOutlineFormulationFragmentDoc = `
fragment FetchedOutlineFormulation on Formulation {
name
displayName
tag(name: $tagName) {
name
specification {
revno
outline {
...FullOutline
}
}
}
outline {
...FullOutline
}
}

@@ -392,2 +501,20 @@ `;

`;
exports.FetchedSpecificationTagFormulationFragmentDoc = `
fragment FetchedSpecificationTagFormulation on Formulation {
name
displayName
tag(name: $name) {
...FetchedSpecificationTag
}
}
`;
exports.FetchedSpecificationFormulationFragmentDoc = `
fragment FetchedSpecificationFormulation on Formulation {
name
displayName
specification(revno: $revno) {
...SpecificationForOverview
}
}
`;
exports.ListedAuthorizationFragmentDoc = `

@@ -493,2 +620,15 @@ fragment ListedAuthorization on Authorization {

`;
exports.PolledAttemptOutcomeFragmentDoc = `
fragment PolledAttemptOutcome on Outcome {
__typename
... on FailedOutcome {
failure
}
... on FeasibleOutcome {
isOptimal
objectiveValue
relativeGap
}
}
`;
exports.PolledAttemptFragmentDoc = `

@@ -509,11 +649,3 @@ fragment PolledAttempt on Attempt {

outcome {
__typename
... on FailedOutcome {
failure
}
... on FeasibleOutcome {
isOptimal
objectiveValue
relativeGap
}
...PolledAttemptOutcome
}

@@ -525,22 +657,13 @@ }

cancelAttempt(uuid: $uuid) {
startedAt
endedAt
expiresAt
pristineSpecification {
revno
formulation {
name
}
}
...CancelledAttempt
}
}
`;
${exports.CancelledAttemptFragmentDoc}`;
exports.DeleteFormulationDocument = `
mutation DeleteFormulation($name: Name!) {
deleteFormulation(name: $name) {
specificationCount
attemptCount
...DeletedFormulation
}
}
`;
${exports.DeletedFormulationFragmentDoc}`;
exports.GenerateAuthorizationDocument = `

@@ -556,11 +679,7 @@ mutation GenerateAuthorization($input: GenerateAuthorizationInput!) {

registerSpecification(input: $input) {
formulation {
name
displayName
createdAt
}
...SpecificationForOverview
...RegisteredSpecification
}
}
${exports.SpecificationForOverviewFragmentDoc}
${exports.RegisteredSpecificationFragmentDoc}
${exports.SpecificationForOverviewFragmentDoc}
${exports.ShallowSpecificationTagFragmentDoc}

@@ -583,20 +702,7 @@ ${exports.FullDefinitionFragmentDoc}

startAttempt(input: $input) {
uuid
startedAt
expiresAt
pristineSpecification {
revno
formulation {
name
}
}
outline {
...FullOutline
}
options {
...FullAttemptOptions
}
...StartedAttempt
}
}
${exports.FullOutlineFragmentDoc}
${exports.StartedAttemptFragmentDoc}
${exports.FullOutlineFragmentDoc}
${exports.FullDimensionOutlineFragmentDoc}

@@ -612,35 +718,22 @@ ${exports.FullVariableOutlineFragmentDoc}

startSharingFormulation(input: $input) {
...ShallowSpecificationTag
specification {
revno
}
...SharedSpecificationTag
}
}
${exports.ShallowSpecificationTagFragmentDoc}`;
${exports.SharedSpecificationTagFragmentDoc}
${exports.ShallowSpecificationTagFragmentDoc}`;
exports.StopSharingFormulationDocument = `
mutation StopSharingFormulation($input: StopSharingFormulationInput!) {
stopSharingFormulation(input: $input) {
sharedTags: tags(first: 3, filter: {isShared: true}) {
edges {
node {
...ShallowSpecificationTag
specification {
revno
}
}
}
totalCount
}
...UnsharedFormulation
}
}
${exports.ShallowSpecificationTagFragmentDoc}`;
${exports.UnsharedFormulationFragmentDoc}
${exports.ShallowSpecificationTagFragmentDoc}`;
exports.UpdateFormulationDocument = `
mutation UpdateFormulation($input: UpdateFormulationInput!) {
updateFormulation(input: $input) {
createdAt
displayName
defaultTagName
...UpdatedFormulation
}
}
`;
${exports.UpdatedFormulationFragmentDoc}`;
exports.ValidateDefinitionsDocument = `

@@ -738,24 +831,14 @@ query ValidateDefinitions($definitions: [DefinitionInput!]!) {

id
holder {
... on Member {
email
}
}
...MyAccount
}
}
`;
exports.FetchSpecificationOutlineDocument = `
query FetchSpecificationOutline($formulationName: Name!, $tagName: Name) {
${exports.MyAccountFragmentDoc}`;
exports.FetchOutlineDocument = `
query FetchOutline($formulationName: Name!, $tagName: Name) {
formulation(name: $formulationName) {
tag(name: $tagName) {
specification {
revno
outline {
...FullOutline
}
}
}
...FetchedOutlineFormulation
}
}
${exports.FullOutlineFragmentDoc}
${exports.FetchedOutlineFormulationFragmentDoc}
${exports.FullOutlineFragmentDoc}
${exports.FullDimensionOutlineFragmentDoc}

@@ -770,8 +853,7 @@ ${exports.FullVariableOutlineFragmentDoc}

formulation(name: $formulationName) {
tag(name: $name) {
...FetchedSpecificationTag
}
...FetchedSpecificationTagFormulation
}
}
${exports.FetchedSpecificationTagFragmentDoc}
${exports.FetchedSpecificationTagFormulationFragmentDoc}
${exports.FetchedSpecificationTagFragmentDoc}
${exports.ShallowSpecificationTagFragmentDoc}

@@ -790,8 +872,7 @@ ${exports.SpecificationForOverviewFragmentDoc}

formulation(name: $formulationName) {
specification(revno: $revno) {
...SpecificationForOverview
}
...FetchedSpecificationFormulation
}
}
${exports.SpecificationForOverviewFragmentDoc}
${exports.FetchedSpecificationFormulationFragmentDoc}
${exports.SpecificationForOverviewFragmentDoc}
${exports.ShallowSpecificationTagFragmentDoc}

@@ -963,3 +1044,4 @@ ${exports.FullDefinitionFragmentDoc}

${exports.PolledAttemptFragmentDoc}
${exports.FullAttemptNotificationFragmentDoc}`;
${exports.FullAttemptNotificationFragmentDoc}
${exports.PolledAttemptOutcomeFragmentDoc}`;
function getSdk(requester) {

@@ -1018,4 +1100,4 @@ return {

},
FetchSpecificationOutline(variables, options) {
return requester("@FetchSpecificationOutline", variables, options);
FetchOutline(variables, options) {
return requester("@FetchOutline", variables, options);
},

@@ -1022,0 +1104,0 @@ FetchSpecificationTag(variables, options) {

@@ -25,2 +25,2 @@ /**

};
declare type Syncify<F> = F extends (...args: infer A) => infer R ? R extends Promise<infer V> ? (...args: A) => V : R extends AsyncIterable<infer V> ? (...args: A) => Iterable<V> : R extends Promise<infer V1> | AsyncIterable<infer V2> ? (...args: A) => V1 | Iterable<V2> : never : never;
export declare type Syncify<F> = F extends (...args: infer A) => infer R ? R extends Promise<infer V> ? (...args: A) => V : R extends AsyncIterable<infer V> ? (...args: A) => Iterable<V> : R extends Promise<infer V1> | AsyncIterable<infer V2> ? (...args: A) => V1 | Iterable<V2> : never : never;
{
"name": "opvious-graph",
"version": "0.1.39",
"version": "0.1.40",
"repository": "github:opvious/sdk.ts",

@@ -27,3 +27,3 @@ "description": "Opvious GraphQL API",

"@graphql-codegen/typescript-operations": "^2.5.3",
"@opvious/api-graph": "^0.8.1",
"@opvious/api-graph": "^0.8.2",
"@types/node": "^18.11.7",

@@ -30,0 +30,0 @@ "graphql-tag": "^2.12.6",

@@ -1,2 +0,2 @@

# Opvious GraphQL API types
# Opvious GraphQL API types [![NPM version](https://img.shields.io/npm/v/opvious-graph.svg)](https://www.npmjs.com/package/opvious-graph)

@@ -3,0 +3,0 @@ ```sh

Sorry, the diff of this file is too big to display