Example #1
0
        protected override void Configure(IInputObjectTypeDescriptor <CreateDeliveryBatchCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateDeliveryBatchInput");

            descriptor
            .Field(c => c.From)
            .Name("from");

            descriptor
            .Field(c => c.Name)
            .Name("name");

            descriptor
            .Field(c => c.ScheduledOn)
            .Name("scheduledOn");

            descriptor
            .Field(c => c.SetAsReady)
            .Name("setAsReady");

            descriptor
            .Field(c => c.Deliveries)
            .Name("deliveries")
            .Type <NonNullType <ListType <ClientDeliveryPositionDtoInputType> > >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <UpdateQuickOrderCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("UpdateQuickOrderInput");

            descriptor
            .Field(c => c.Description)
            .Name("description");

            descriptor
            .Field(c => c.QuickOrderId)
            .Name("id")
            .ID(nameof(QuickOrder));

            descriptor
            .Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.IsDefault)
            .Name("isDefault");

            descriptor
            .Field(c => c.Products)
            .Name("products")
            .Type <ListType <ResourceIdQuantityInputType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <DeviceIdentifierInput> descriptor)
        {
            descriptor.Name("DeviceIdentifierInput")
            .Description(
                @"Identifies an input device or input device archetype. One of the following combination of values must be set, in order of priority: 
* `instanceId`
  * Identifies a connected device with the specified instance GUID.
* `vendorId` + `productId`
  * Identifies a connected device with the specified Vendor ID and Product ID combination.
* `vendorId` + `deviceName`
  * Identifies the device archetype with the specified Vendor ID and Device Name combination. This does not need to refer to a connected device.

Input profiles are always registered to the device archetype consisting of the Vendor ID and Device Name of the device. 
`instanceId` and `vendorId` + `productId` inputs are used only to find such an archetype from the list of connected devices. 
Combinations are strictly prioritized, for exampleif `instanceId` is set, this will override any identfier with `vendorId`. 
For combinations that require a connected device, if such a device is not found, there is no fallback to a lower priority combination, and an error will occur. 
For example, if `instanceId`, `vendorId`, and `deviceName` are all set, and a device with the provided `instanceId` could not be found, this will result in an error.");

            descriptor.Field(i => i.InstanceID)
            .Name("instanceId")
            .Description("The instance ID that identifies the input device")
            .Type <UuidType>();
            descriptor.Field(i => i.VendorID)
            .Name("vendorId")
            .Description("The vendor ID that identifies the vendor of the input device.")
            .Type <IntType>();
            descriptor.Field(i => i.ProductID)
            .Name("productId")
            .Description("The product ID that identifies the product type of the input device.")
            .Type <IntType>();
            descriptor.Field(i => i.DeviceName)
            .Name("deviceName")
            .Description("The device name that together with the Vendor ID identifies a specific device archetype.")
            .Type <StringType>();
        }
        protected override void Configure(IInputObjectTypeDescriptor <Article> descriptor)
        {
            descriptor.Name("ArticleInput");

            descriptor.Field(f => f.Id).Type <NonNullType <IntType> >().DefaultValue(0);
            descriptor.Field(f => f.Images).Type <NonNullType <ListType <ImageInputType> > >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <BillingAddressDto> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("BillingAddressInput");

            descriptor
            .Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Line1)
            .Name("line1")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Line2)
            .Name("line2");

            descriptor
            .Field(c => c.Zipcode)
            .Name("zipcode")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.City)
            .Name("city")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Country)
            .Name("country");
        }
 protected override void Configure(IInputObjectTypeDescriptor <UpdatePortDeviceInput> descriptor)
 {
     descriptor.Name(nameof(UpdatePortDeviceInput))
     .WithClientMutationId();
     descriptor.Field(i => i.Orchestrator)
     .Description("The name of the emulator orchestrator that will have its set of virtual ports changed.")
     .Type <NonNullType <StringType> >();
     descriptor.Field(i => i.PortIndex)
     .Description("The zero-indexed port index to update.")
     .Type <NonNullType <IntType> >();
     descriptor.Field(i => i.PlatformID)
     .Name("platformId")
     .Description("The platform ID of the set of ports that will be updated.")
     .Type <NonNullType <PlatformIdType> >();
     descriptor.Field(i => i.ControllerID)
     .Name("controllerId")
     .Description("The controller ID of the controller that will be emulated on this port.")
     .Type <NonNullType <ControllerIdType> >();
     descriptor.Field(i => i.InstanceID)
     .Name("instanceId")
     .Description("The Instance GUID of the physical device that will act as the emulated controller on this port.")
     .Type <NonNullType <UuidType> >();
     descriptor.Field(i => i.ProfileID)
     .Name("profileId")
     .Description("The Profile GUID of the controller layout mapping that maps the inputs from the physical device to the " +
                  "emulated inputs that will be used.")
     .Type <NonNullType <UuidType> >();
     descriptor.Field(i => i.Driver)
     .Description("The driver of the device instance of the physical device.")
     .Type <NonNullType <InputDriverEnum> >();
 }
Example #7
0
 protected override void Configure(
     IInputObjectTypeDescriptor descriptor)
 {
     descriptor.Name("FooInput");
     descriptor.Field("test")
     .Type <ListType <StringType> >();
 }
        protected override void Configure(IInputObjectTypeDescriptor <UpdateReturnableCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("UpdateReturnableInput");

            descriptor
            .Field(c => c.Description)
            .Name("description");

            descriptor
            .Field(c => c.Vat)
            .Name("vat");

            descriptor
            .Field(c => c.WholeSalePrice)
            .Name("wholeSalePrice");

            descriptor.Field(c => c.ReturnableId)
            .Name("id")
            .ID(nameof(Returnable));

            descriptor.Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();
        }
Example #9
0
        protected override void Configure(IInputObjectTypeDescriptor <RegisterConsumerCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("RegisterConsumerInput");

            descriptor
            .Field(c => c.Phone)
            .Name("phone");

            descriptor
            .Field(c => c.Picture)
            .Name("picture");

            descriptor
            .Field(c => c.SponsoringCode)
            .Name("sponsoringCode");

            descriptor.Field(c => c.Email)
            .Name("email")
            .Type <NonNullType <StringType> >();

            descriptor.Field(c => c.FirstName)
            .Name("firstName")
            .Type <NonNullType <StringType> >();

            descriptor.Field(c => c.LastName)
            .Name("lastName")
            .Type <NonNullType <StringType> >();
        }
Example #10
0
        protected override void Configure(IInputObjectTypeDescriptor <CreateAgreementCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateAgreementInput");

            descriptor
            .Field(c => c.DeliveryId)
            .Name("deliveryId")
            .ID(nameof(DeliveryMode));

            descriptor
            .Field(c => c.StoreId)
            .Name("storeId")
            .ID(nameof(Store));

            descriptor
            .Field(c => c.ProducerId)
            .Name("producerId")
            .ID(nameof(Producer));

            descriptor
            .Field(c => c.CatalogId)
            .Name("catalogId")
            .ID(nameof(Catalog));
        }
Example #11
0
        protected override void Configure(IInputObjectTypeDescriptor <CompleteDeliveryCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CompleteDeliveryInput");

            descriptor
            .Field(c => c.DeliveryId)
            .ID(nameof(Delivery))
            .Name("id");

            descriptor
            .Field(c => c.ReceptionedBy)
            .Name("receptionedBy");

            descriptor
            .Field(c => c.Comment)
            .Name("comment");

            descriptor
            .Field(c => c.ReturnedProducts)
            .Name("returnedProducts")
            .Type <ListType <ReturnedProductDtoInputType> >();

            descriptor
            .Field(c => c.ReturnedReturnables)
            .Name("returnedReturnables")
            .Type <ListType <ReturnedReturnableDtoInputType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <SetPickingProductPreparedQuantityCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("SetPickingProductPreparedQuantityInput");

            descriptor
            .Field(c => c.PickingId)
            .ID(nameof(Picking))
            .Name("id");

            descriptor
            .Field(c => c.ProductId)
            .ID(nameof(Product))
            .Name("productId");

            descriptor
            .Field(c => c.Completed)
            .Name("completed");

            descriptor
            .Field(c => c.PreparedBy)
            .Name("preparedBy");

            descriptor
            .Field(c => c.Quantities)
            .Type <ListType <PickingPurchaseOrderProductQuantityInputType> >()
            .Name("preparedQuantities");

            descriptor
            .Field(c => c.Batches)
            .ID(nameof(Batch))
            .Name("batches");
        }
Example #13
0
 protected override void Configure(IInputObjectTypeDescriptor <EditTopic> descriptor)
 {
     descriptor.Name("EditTopicInput");
     descriptor.Field(x => x.Id).Type <NonNullType <UuidType> >().Description("The id of the topic.");
     descriptor.Field(x => x.Title).Type <NonNullType <StringType> >().Description("The title of the topic.");
     descriptor.Field(x => x.Description).Type <NonNullType <StringType> >().Description("The description of the topic");
 }
Example #14
0
        protected override void Configure(IInputObjectTypeDescriptor <CreateRecallCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateRecallInput");

            descriptor
            .Field(c => c.BatchIds)
            .ID(nameof(Batch))
            .Name("batchIds");

            descriptor
            .Field(c => c.ProductIds)
            .ID(nameof(Product))
            .Name("productIds");

            descriptor
            .Field(c => c.Name)
            .Name("name");

            descriptor
            .Field(c => c.Comment)
            .Name("comment");

            descriptor
            .Field(c => c.SaleStartedOn)
            .Name("saleStartedOn");

            descriptor
            .Field(c => c.SaleEndedOn)
            .Name("saleEndedOn");
        }
Example #15
0
 protected override void Configure(
     IInputObjectTypeDescriptor <ComplexInput> descriptor)
 {
     descriptor.Name("ComplexInputType");
     descriptor.Field(t => t.Value).Type <StringType>();
     descriptor.Field(t => t.Deeper).Type <ComplexInputType>();
 }
Example #16
0
        protected override void Configure(IInputObjectTypeDescriptor <Image> descriptor)
        {
            descriptor.Name("ImageInput");

            descriptor.Field(f => f.Size).Type <NonNullType <IntType> >();
            descriptor.Field(f => f.Url).Type <NonNullType <StringType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <UpdateBatchDefinitionCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("UpdateBatchDefinitionInput");

            descriptor
            .Field(c => c.BatchDefinitionId)
            .ID(nameof(BatchDefinition))
            .Name("id");

            descriptor
            .Field(c => c.Name)
            .Name("name");

            descriptor
            .Field(c => c.Description)
            .Name("description");

            descriptor
            .Field(c => c.IsDefault)
            .Name("isDefault");

            descriptor
            .Field(c => c.FieldDefinitions)
            .Name("fieldDefinitions");
        }
Example #18
0
 public override void OnConfigure(
     IDescriptorContext context,
     IInputObjectTypeDescriptor descriptor,
     Type type)
 {
     descriptor.Name("Bar");
 }
Example #19
0
        protected override void Configure(IInputObjectTypeDescriptor <UpdateCatalogCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("UpdateCatalogInput");

            descriptor
            .Field(c => c.Name)
            .Name("name");

            descriptor
            .Field(c => c.CatalogId)
            .Name("id")
            .ID(nameof(Catalog));

            descriptor
            .Field(c => c.IsAvailable)
            .Name("available");

            descriptor
            .Field(c => c.IsDefault)
            .Name("isDefault");

            descriptor
            .Field(c => c.Products)
            .Name("products")
            .Type <ListType <ProductPriceInputType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <CreateConsumerOrderCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateOrderInput");

            descriptor
            .Field(c => c.Donation)
            .Name("donation");

            descriptor
            .Field(c => c.UserId)
            .Name("userId")
            .ID(nameof(User));

            descriptor
            .Field(c => c.ProducersExpectedDeliveries)
            .Name("deliveries")
            .Type <ListType <ProducerExpectedDeliveryInputType> >();

            descriptor
            .Field(c => c.Products)
            .Name("products")
            .Type <NonNullType <ListType <ResourceIdQuantityInputType> > >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <CreateConsumerLegalCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateConsumerLegalInput");

            descriptor
            .Field(c => c.FirstName)
            .Name("firstName");

            descriptor
            .Field(c => c.LastName)
            .Name("lastName");

            descriptor
            .Field(c => c.Email)
            .Name("email");

            descriptor
            .Field(c => c.BirthDate)
            .Name("birthDate");

            descriptor
            .Field(c => c.Nationality)
            .Name("nationality");

            descriptor
            .Field(c => c.CountryOfResidence)
            .Name("countryOfResidence");

            descriptor
            .Field(c => c.Address)
            .Name("address")
            .Type <NonNullType <AddressInputType> >();
        }
Example #22
0
 protected override void Configure(IInputObjectTypeDescriptor <State> descriptor)
 {
     Name = "state_input";
     descriptor.Name("state_input");
     descriptor.Field(x => x.Id).Name("id").Type <IntType>();
     descriptor.Field(x => x.Name).Name("name").Type <StringType>();
     descriptor.Field(x => x.Cities).Name("cities").Type <ListType <CityInput> >();
 }
 protected override void Configure(IInputObjectTypeDescriptor <UpdateGameConfigurationValueInput> descriptor)
 {
     descriptor.Name(nameof(UpdateGameConfigurationValueInput))
     .WithClientMutationId();
     descriptor.Field(g => g.Values)
     .Description("The values to update configuration for.")
     .Type <NonNullType <ListType <NonNullType <ConfigurationValueInputType> > > >();
 }
Example #24
0
        protected override void Configure(IInputObjectTypeDescriptor <CreateProductCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("CreateProductInput");

            descriptor
            .Field(c => c.Reference)
            .Name("reference");

            descriptor
            .Field(c => c.Available)
            .Name("available");

            descriptor
            .Field(c => c.Description)
            .Name("description");

            descriptor
            .Field(c => c.QuantityPerUnit)
            .Name("quantityPerUnit");

            descriptor
            .Field(c => c.Unit)
            .Name("unit");

            descriptor
            .Field(c => c.Conditioning)
            .Name("conditioning");

            descriptor
            .Field(c => c.Vat)
            .Name("vat");

            descriptor
            .Field(c => c.Weight)
            .Name("weight");

            descriptor.Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor.Field(c => c.Catalogs)
            .Name("catalogs")
            .Type <ListType <CatalogPriceInputType> >();

            descriptor.Field(c => c.ReturnableId)
            .Name("returnableId")
            .ID(nameof(Returnable));

            descriptor.Field(c => c.Tags)
            .Name("tags")
            .ID(nameof(Tag));

            descriptor.Field(c => c.Pictures)
            .Name("pictures")
            .Type <ListType <ProductPictureInputType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <RegisterProducerCommand> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("RegisterProducerInput");

            descriptor
            .Field(c => c.OpenForNewBusiness)
            .Name("openForNewBusiness");

            descriptor
            .Field(c => c.Phone)
            .Name("phone");

            descriptor
            .Field(c => c.Picture)
            .Name("picture");

            descriptor
            .Field(c => c.SponsoringCode)
            .Name("sponsoringCode");

            descriptor
            .Field(c => c.NotSubjectToVat)
            .Name("notSubjectToVat")
            .Type <NonNullType <BooleanType> >();

            descriptor
            .Field(c => c.Address)
            .Name("address")
            .Type <NonNullType <AddressInputType> >();

            descriptor
            .Field(c => c.Email)
            .Name("email")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.FirstName)
            .Name("firstName")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.LastName)
            .Name("lastName")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Legals)
            .Name("legals")
            .Type <NonNullType <BusinessLegalInputType> >();
        }
        protected override void Configure(IInputObjectTypeDescriptor <CreateUserInput> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name(nameof(CreateUserInput));
            descriptor.Description("Input for creating a new User account.");

            descriptor.Ignore(p => p.Provider);
        }
Example #27
0
        protected override void Configure(IInputObjectTypeDescriptor <UserClaimsInput> descriptor)
        {
            descriptor.Name(nameof(UserClaimsInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.UserId).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.ClaimIds).Type <NonNullType <ListType <NonNullType <UuidType> > > >();
        }
Example #28
0
        protected override void Configure(IInputObjectTypeDescriptor <FlightEvent> descriptor)
        {
            descriptor.Name("FlightEventUpdate");

            descriptor.Field(o => o.CreatedDateTime).Ignore();
            descriptor.Field(o => o.UpdatedDateTime).Ignore();
            descriptor.Field(o => o.Code).Ignore();
            descriptor.Field(o => o.StartDateTime).Type <DateTimeType>().DefaultValue(FlightEvent.DefaultDateTimeOffset);
        }
Example #29
0
 protected override void Configure(IInputObjectTypeDescriptor <City> descriptor)
 {
     Name = "city_input";
     descriptor.Name("city_input");
     descriptor.Field(x => x.Id).Name("id").Type <IntType>();
     descriptor.Field(x => x.Name).Name("name").Type <StringType>();
     descriptor.Field(x => x.StateId).Name("stateId").Type <IntType>();
     descriptor.Field(x => x.State).Name("state").Type <StateInput>();
 }
Example #30
0
        protected override void Configure(IInputObjectTypeDescriptor <BusinessLegalInputDto> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("BusinessLegalInput");

            descriptor
            .Field(c => c.VatIdentifier)
            .Name("vatIdentifier");

            descriptor
            .Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Email)
            .Name("email")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Siret)
            .Name("siret")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.LegalKind)
            .Name("kind");

            descriptor
            .Field(c => c.RegistrationKind)
            .Name("registrationKind");

            descriptor
            .Field(c => c.RegistrationCity)
            .Name("registrationCity");

            descriptor
            .Field(c => c.RegistrationCode)
            .Name("registrationCode");

            descriptor
            .Field(c => c.Owner)
            .Name("owner")
            .Type <NonNullType <CreateOwnerInputType> >();

            descriptor
            .Field(c => c.Address)
            .Name("address")
            .Type <NonNullType <AddressInputType> >();

            descriptor
            .Field(c => c.Billing)
            .Name("billing")
            .Type <BillingAddressInputType>();
        }