Skip to content

Commit

Permalink
pub get (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed Sep 16, 2024
1 parent 2d3e049 commit de551ec
Show file tree
Hide file tree
Showing 48 changed files with 410 additions and 423 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ dev_dependencies:
json_serializable: ^6.7.0
lints: ^4.0.0
logging: ^1.2.0
test: ^1.24.3
test: ^1.25.8
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ dev_dependencies:
json_serializable: ^6.7.0
lints: ^4.0.0
logging: ^1.2.0
test: ^1.24.3
test: ^1.25.8
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ dev_dependencies:
json_serializable: ^6.7.0
lints: ^4.0.0
logging: ^1.2.0
test: ^1.24.3
test: ^1.25.8
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ dev_dependencies:
json_serializable: ^6.7.0
lints: ^4.0.0
logging: ^1.2.0
test: ^1.24.3
test: ^1.25.8
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"@algolia/requester-node-http": "5.4.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.16.2",
"@arethetypeswrong/cli": "0.15.4",
"@types/node": "22.5.1",
"publint": "0.2.10",
"rollup": "4.21.3",
"rollup": "4.21.2",
"tsup": "8.2.4",
"typescript": "5.5.4"
},
Expand Down
4 changes: 2 additions & 2 deletions clients/algoliasearch-client-javascript/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ __metadata:
"@algolia/requester-browser-xhr": "npm:5.4.2"
"@algolia/requester-fetch": "npm:5.4.2"
"@algolia/requester-node-http": "npm:5.4.2"
"@arethetypeswrong/cli": "npm:0.16.2"
"@arethetypeswrong/cli": "npm:0.15.4"
"@types/node": "npm:22.5.1"
publint: "npm:0.2.10"
rollup: "npm:4.21.3"
rollup: "npm:4.21.2"
tsup: "npm:8.2.4"
typescript: "npm:5.5.4"
languageName: unknown
Expand Down
12 changes: 4 additions & 8 deletions snippets/csharp/src/Abtesting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ public async Task SnippetForAbtestingClientAddABTests()
Name = "myABTest",
Variants = new List<AddABTestsVariant>
{
new AddABTestsVariant(
new AbTestsVariant { Index = "AB_TEST_1", TrafficPercentage = 30, }
),
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_2", TrafficPercentage = 50, })
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_1", TrafficPercentage = 30 }),
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_2", TrafficPercentage = 50 }),
},
}
);
Expand Down Expand Up @@ -195,10 +193,8 @@ public async Task SnippetForAbtestingClientScheduleABTest()
Name = "myABTest",
Variants = new List<AddABTestsVariant>
{
new AddABTestsVariant(
new AbTestsVariant { Index = "AB_TEST_1", TrafficPercentage = 30, }
),
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_2", TrafficPercentage = 50, })
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_1", TrafficPercentage = 30 }),
new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_2", TrafficPercentage = 50 }),
},
}
);
Expand Down
34 changes: 17 additions & 17 deletions snippets/csharp/src/Ingestion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task SnippetForIngestionClientCreateDestination()
{
Type = Enum.Parse<DestinationType>("Search"),
Name = "destinationName",
Input = new DestinationInput(new DestinationIndexName { IndexName = "<YOUR_INDEX_NAME>", }),
Input = new DestinationInput(new DestinationIndexName { IndexName = "<YOUR_INDEX_NAME>" }),
AuthenticationID = "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
}
);
Expand Down Expand Up @@ -149,7 +149,7 @@ public async Task SnippetForIngestionClientCreateTaskV1()
SourceID = "search",
DestinationID = "destinationName",
Trigger = new TaskCreateTrigger(
new OnDemandTriggerInput { Type = Enum.Parse<OnDemandTriggerType>("OnDemand"), }
new OnDemandTriggerInput { Type = Enum.Parse<OnDemandTriggerType>("OnDemand") }
),
Action = Enum.Parse<ActionType>("Replace"),
}
Expand Down Expand Up @@ -830,7 +830,7 @@ public async Task SnippetForIngestionClientPushTask()
{
{ "key", "bar" },
{ "foo", "1" },
}
},
},
new PushTaskRecords
{
Expand All @@ -839,8 +839,8 @@ public async Task SnippetForIngestionClientPushTask()
{
{ "key", "baz" },
{ "foo", "2" },
}
}
},
},
},
}
);
Expand Down Expand Up @@ -933,7 +933,7 @@ public async Task SnippetForIngestionClientSearchAuthentications()
AuthenticationIDs = new List<string>
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a"
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
},
}
);
Expand Down Expand Up @@ -961,7 +961,7 @@ public async Task SnippetForIngestionClientSearchDestinations()
DestinationIDs = new List<string>
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a"
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
},
}
);
Expand Down Expand Up @@ -989,7 +989,7 @@ public async Task SnippetForIngestionClientSearchSources()
SourceIDs = new List<string>
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a"
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
},
}
);
Expand Down Expand Up @@ -1018,7 +1018,7 @@ public async Task SnippetForIngestionClientSearchTasks()
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
"76ab4c2a-ce17-496f-b7a6-506dc59ee498"
"76ab4c2a-ce17-496f-b7a6-506dc59ee498",
},
}
);
Expand Down Expand Up @@ -1047,7 +1047,7 @@ public async Task SnippetForIngestionClientSearchTasksV1()
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
"76ab4c2a-ce17-496f-b7a6-506dc59ee498"
"76ab4c2a-ce17-496f-b7a6-506dc59ee498",
},
}
);
Expand Down Expand Up @@ -1076,7 +1076,7 @@ public async Task SnippetForIngestionClientSearchTransformations()
{
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"947ac9c4-7e58-4c87-b1e7-14a68e99699a",
"76ab4c2a-ce17-496f-b7a6-506dc59ee498"
"76ab4c2a-ce17-496f-b7a6-506dc59ee498",
},
}
);
Expand Down Expand Up @@ -1191,7 +1191,7 @@ public async Task SnippetForIngestionClientUpdateAuthentication()
// Call the API
var response = await client.UpdateAuthenticationAsync(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new AuthenticationUpdate { Name = "newName", }
new AuthenticationUpdate { Name = "newName" }
);
// >LOG
// SEPARATOR<
Expand All @@ -1213,7 +1213,7 @@ public async Task SnippetForIngestionClientUpdateDestination()
// Call the API
var response = await client.UpdateDestinationAsync(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new DestinationUpdate { Name = "newName", }
new DestinationUpdate { Name = "newName" }
);
// >LOG
// SEPARATOR<
Expand All @@ -1235,7 +1235,7 @@ public async Task SnippetForIngestionClientUpdateSource()
// Call the API
var response = await client.UpdateSourceAsync(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new SourceUpdate { Name = "newName", }
new SourceUpdate { Name = "newName" }
);
// >LOG
// SEPARATOR<
Expand All @@ -1257,7 +1257,7 @@ public async Task SnippetForIngestionClientUpdateTask()
// Call the API
var response = await client.UpdateTaskAsync(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new TaskUpdate { Enabled = false, Cron = "* * * * *", }
new TaskUpdate { Enabled = false, Cron = "* * * * *" }
);
// >LOG
// SEPARATOR<
Expand All @@ -1279,7 +1279,7 @@ public async Task SnippetForIngestionClientUpdateTaskV1()
// Call the API
var response = await client.UpdateTaskV1Async(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new TaskUpdateV1 { Enabled = false, }
new TaskUpdateV1 { Enabled = false }
);
// >LOG
// SEPARATOR<
Expand Down Expand Up @@ -1363,7 +1363,7 @@ public async Task SnippetForIngestionClientValidateSourceBeforeUpdate()
// Call the API
var response = await client.ValidateSourceBeforeUpdateAsync(
"6c02aeb1-775e-418e-870b-1faccd4b2c0f",
new SourceUpdate { Name = "newName", }
new SourceUpdate { Name = "newName" }
);
// >LOG
// SEPARATOR<
Expand Down
2 changes: 1 addition & 1 deletion snippets/csharp/src/Insights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public async Task SnippetForInsightsClientPushEvents()
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
Positions = new List<int> { 7, 6 },
}
)
),
},
}
);
Expand Down
4 changes: 2 additions & 2 deletions snippets/csharp/src/Personalization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ public async Task SnippetForPersonalizationClientSetPersonalizationStrategy()
Score = 42,
EventName = "Algolia",
EventType = Enum.Parse<EventType>("Click"),
}
},
},
FacetScoring = new List<FacetScoring>
{
new FacetScoring { Score = 42, FacetName = "Event", }
new FacetScoring { Score = 42, FacetName = "Event" },
},
PersonalizationImpact = 42,
}
Expand Down
12 changes: 6 additions & 6 deletions snippets/csharp/src/QuerySuggestions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public async Task SnippetForQuerySuggestionsClientCreateConfig()
new SourceIndex
{
IndexName = "<YOUR_INDEX_NAME>",
Facets = new List<Facet> { new Facet { Attribute = "test", } },
Facets = new List<Facet> { new Facet { Attribute = "test" } },
Generate = new List<List<string>>
{
new List<string> { "facetA", "facetB" },
new List<string> { "facetC" }
new List<string> { "facetC" },
},
}
},
},
Languages = new Languages(new List<string> { "french" }),
Exclude = new List<string> { "test" },
Expand Down Expand Up @@ -260,13 +260,13 @@ public async Task SnippetForQuerySuggestionsClientUpdateConfig()
new SourceIndex
{
IndexName = "<YOUR_INDEX_NAME>",
Facets = new List<Facet> { new Facet { Attribute = "test", } },
Facets = new List<Facet> { new Facet { Attribute = "test" } },
Generate = new List<List<string>>
{
new List<string> { "facetA", "facetB" },
new List<string> { "facetC" }
new List<string> { "facetC" },
},
}
},
},
Languages = new Languages(new List<string> { "french" }),
Exclude = new List<string> { "test" },
Expand Down
2 changes: 1 addition & 1 deletion snippets/csharp/src/Recommend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public async Task SnippetForRecommendClientGetRecommendations()
Model = Enum.Parse<RelatedModel>("RelatedProducts"),
Threshold = 42.1,
}
)
),
},
}
);
Expand Down
Loading

0 comments on commit de551ec

Please sign in to comment.