Skip to content

Commit

Permalink
Update Providers (Automated)
Browse files Browse the repository at this point in the history
  • Loading branch information
j3lte authored and github-actions[bot] committed Aug 13, 2023
1 parent 8a3565b commit 21bd247
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 0 deletions.
167 changes: 167 additions & 0 deletions src/providers/TestProducerApi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
// *******************************************************
//
// Name: Test_Producer_API
//
//
//
// Category: Unknown
// Link: https://opendata.rdw.nl/dataset/Test_Producer_API/sgwh-cvkk
// Permalink: https://opendata.rdw.nl/d/sgwh-cvkk
// Owner: BICC
// Creator: BICC
//
// *******************************************************

import type { AuthOpts, FieldObject, Options } from "https://deno.land/x/[email protected]/mod.ts";
import { createQueryWithDataset, DataType, Field } from "https://deno.land/x/[email protected]/mod.ts";
export {
Order,
Select,
SelectAll,
SelectGreatest,
SelectLeast,
SelectRegrIntercept,
SelectRegrR2,
SelectRegrSlope,
SystemFields,
Where,
} from "https://deno.land/x/[email protected]/mod.ts";
export { DataType, Field };

/**
* Return Data for Test_Producer_API
*/
export interface ResponseData {
/**
* ### Carrosserie klasse europees
*
* **Type**: Text
*/
carrosserie_klasse_europees?: string;
/**
* ### EEG Uitvoeringscode
*
* **Type**: Number
*/
eeg_uitvoeringscode?: string;
/**
* ### EEG variantcode
*
* **Type**: Text
*/
eeg_variantcode?: string;
/**
* ### EU Type goedkeuringssleutel
*
* **Type**: Text
*/
eu_type_goedkeuringssleutel?: string;
/**
* ### Uitvoering wijzigingsnummer
*
* **Type**: Number
*/
uitvoering_wijzigingsnummer?: string;
/**
* ### UniekeCode
*
* **Type**: Text
*/
uniekecode?: string;
}

/**
* Fieldnames for **TestProducerApi**
*
* | **Fieldname** | **Database Column Name** | **Data Type** |
* | --------- | -------------------- | --------- |
* | ``CarrosserieKlasseEuropees`` | ``carrosserie_klasse_europees`` | _Text_ |
* | ``EegUitvoeringscode`` | ``eeg_uitvoeringscode`` | _Number_ |
* | ``EegVariantcode`` | ``eeg_variantcode`` | _Text_ |
* | ``EuTypeGoedkeuringssleutel`` | ``eu_type_goedkeuringssleutel`` | _Text_ |
* | ``UitvoeringWijzigingsnummer`` | ``uitvoering_wijzigingsnummer`` | _Number_ |
* | ``Uniekecode`` | ``uniekecode`` | _Text_ |
*
* > You can use these fieldnames in your queries to filter, group, or sort your data.
*/
export interface IFields {
/**
* ### Carrosserie klasse europees
*
* **Type**: Text
*/
CarrosserieKlasseEuropees: FieldObject<DataType.Text>;
/**
* ### EEG Uitvoeringscode
*
* **Type**: Number
*/
EegUitvoeringscode: FieldObject<DataType.Number>;
/**
* ### EEG variantcode
*
* **Type**: Text
*/
EegVariantcode: FieldObject<DataType.Text>;
/**
* ### EU Type goedkeuringssleutel
*
* **Type**: Text
*/
EuTypeGoedkeuringssleutel: FieldObject<DataType.Text>;
/**
* ### Uitvoering wijzigingsnummer
*
* **Type**: Number
*/
UitvoeringWijzigingsnummer: FieldObject<DataType.Number>;
/**
* ### UniekeCode
*
* **Type**: Text
*/
Uniekecode: FieldObject<DataType.Text>;
}

export const Fields: IFields = {
CarrosserieKlasseEuropees: Field("carrosserie_klasse_europees", DataType.Text),
EegUitvoeringscode: Field("eeg_uitvoeringscode", DataType.Number),
EegVariantcode: Field("eeg_variantcode", DataType.Text),
EuTypeGoedkeuringssleutel: Field("eu_type_goedkeuringssleutel", DataType.Text),
UitvoeringWijzigingsnummer: Field("uitvoering_wijzigingsnummer", DataType.Number),
Uniekecode: Field("uniekecode", DataType.Text),
};

export const Info = {
fields: [
"CarrosserieKlasseEuropees",
"EegUitvoeringscode",
"EegVariantcode",
"EuTypeGoedkeuringssleutel",
"UitvoeringWijzigingsnummer",
"Uniekecode",
],
dataset: "sgwh-cvkk",
domain: "opendata.rdw.nl",
full_name: "Test_Producer_API",
provider_name: "TestProducerApi",
url: "https://opendata.rdw.nl/dataset/Test_Producer_API/sgwh-cvkk",
api_docs: "https://dev.socrata.com/foundry/opendata.rdw.nl/sgwh-cvkk",
};

/**
* ### Test_Producer_API
*
* **URL:** https://opendata.rdw.nl/dataset/Test_Producer_API/sgwh-cvkk
*
* **API DOCS:** https://dev.socrata.com/foundry/opendata.rdw.nl/sgwh-cvkk
*
* **Dataset ID:** sgwh-cvkk
*
* **Category:** Unknown
*/
export const RDWQuery = (auth: AuthOpts = {}, opts: Options = {}) =>
createQueryWithDataset<ResponseData>(Info.domain, Info.dataset, auth, {
...opts,
strict: typeof opts.strict === "boolean" ? opts.strict : true,
});
1 change: 1 addition & 0 deletions src/providers/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export * as TerugroepActieRisico from "./TerugroepActieRisico.ts";
export * as TerugroepActieStatus from "./TerugroepActieStatus.ts";
export * as TerugroepInformerenEigenaar from "./TerugroepInformerenEigenaar.ts";
export * as TerugroepVoertuigMerkType from "./TerugroepVoertuigMerkType.ts";
export * as TestProducerApi from "./TestProducerApi.ts";
export * as ToegevoegdeObjecten from "./ToegevoegdeObjecten.ts";
export * as UitvoeringGebruiksgegevensPerUitgave from "./UitvoeringGebruiksgegevensPerUitgave.ts";
export * as VersnellingsbakUitvoering from "./VersnellingsbakUitvoering.ts";

0 comments on commit 21bd247

Please sign in to comment.