From 6fedf9dbed2a80923338fcacf0baafe93542f937 Mon Sep 17 00:00:00 2001 From: Giselle van Dongen Date: Mon, 5 Feb 2024 14:44:07 +0100 Subject: [PATCH] Update license header to 2024 (#96) --- LICENSE | 2 +- java/README.md | 6 +++--- .../java/dev/restate/sdk/examples/AppMain.java | 11 +++++++++++ .../dev/restate/sdk/examples/DeliveryManager.java | 11 +++++++++++ .../sdk/examples/DriverDeliveryMatcher.java | 11 +++++++++++ .../restate/sdk/examples/DriverDigitalTwin.java | 11 +++++++++++ .../restate/sdk/examples/OrderStatusService.java | 11 +++++++++++ .../dev/restate/sdk/examples/OrderWorkflow.java | 11 +++++++++++ .../sdk/examples/clients/KafkaPublisher.java | 11 +++++++++++ .../sdk/examples/clients/PaymentClient.java | 11 +++++++++++ .../sdk/examples/clients/RestaurantClient.java | 11 +++++++++++ .../external/DriverMobileAppSimulator.java | 11 +++++++++++ .../sdk/examples/types/AssignedDelivery.java | 11 +++++++++++ .../sdk/examples/types/DeliveryInformation.java | 11 +++++++++++ .../restate/sdk/examples/types/DriverStatus.java | 11 +++++++++++ .../dev/restate/sdk/examples/types/Location.java | 11 +++++++++++ .../restate/sdk/examples/types/OrderRequest.java | 11 +++++++++++ .../dev/restate/sdk/examples/types/Product.java | 11 +++++++++++ .../dev/restate/sdk/examples/types/StatusEnum.java | 11 +++++++++++ .../dev/restate/sdk/examples/utils/GeoUtils.java | 11 +++++++++++ .../dev/restate/sdk/examples/utils/TypeUtils.java | 11 +++++++++++ .../java/dev/restate/sdk/examples/Greeter.java | 13 ++++++++++++- .../java/dev/restate/sdk/examples/Greeter.java | 11 +++++++++++ .../dev/restate/sdk/examples/LambdaHandler.java | 11 +++++++++++ .../java/dev/restate/sdk/examples/GreeterTest.java | 11 +++++++++++ .../java/dev/restate/patterns/Compensations.java | 11 +++++++++++ .../main/java/dev/restate/tour/app/AppMain.java | 4 ++-- .../main/java/dev/restate/tour/app/Checkout.java | 4 ++-- .../java/dev/restate/tour/app/TicketService.java | 4 ++-- .../java/dev/restate/tour/app/UserSession.java | 4 ++-- .../dev/restate/tour/auxiliary/EmailClient.java | 4 ++-- .../dev/restate/tour/auxiliary/PaymentClient.java | 4 ++-- .../dev/restate/tour/auxiliary/TicketStatus.java | 4 ++-- .../main/java/dev/restate/tour/part1/AppMain.java | 4 ++-- .../main/java/dev/restate/tour/part1/Checkout.java | 4 ++-- .../java/dev/restate/tour/part1/TicketService.java | 4 ++-- .../java/dev/restate/tour/part1/UserSession.java | 4 ++-- .../main/java/dev/restate/tour/part2/AppMain.java | 4 ++-- .../main/java/dev/restate/tour/part2/Checkout.java | 4 ++-- .../java/dev/restate/tour/part2/TicketService.java | 4 ++-- .../java/dev/restate/tour/part2/UserSession.java | 4 ++-- .../main/java/dev/restate/tour/part3/AppMain.java | 4 ++-- .../main/java/dev/restate/tour/part3/Checkout.java | 4 ++-- .../java/dev/restate/tour/part3/TicketService.java | 4 ++-- .../java/dev/restate/tour/part3/UserSession.java | 4 ++-- .../main/java/dev/restate/tour/part4/AppMain.java | 4 ++-- .../main/java/dev/restate/tour/part4/Checkout.java | 4 ++-- .../java/dev/restate/tour/part4/TicketService.java | 4 ++-- .../java/dev/restate/tour/part4/UserSession.java | 4 ++-- .../hello-world-lambda-cdk/bin/lambda-jvm-cdk.ts | 12 ++++++++++++ .../cdk/lambda-jvm-cdk-stack.ts | 11 +++++++++++ .../kotlin/dev/restate/sdk/examples/Greeter.kt | 13 ++++++++++++- .../dev/restate/sdk/examples/LambdaHandler.kt | 13 ++++++++++++- .../src/external/stable_diffusion.ts | 11 +++++++++++ .../src/puppeteer/puppeteer.ts | 11 +++++++++++ .../src/puppeteer/puppeteer_generator.ts | 11 +++++++++++ .../src/stable-diffusion/stable_diffusion.ts | 11 +++++++++++ .../stable-diffusion/stable_diffusion_generator.ts | 11 +++++++++++ .../stable_diffusion_transformer.ts | 11 +++++++++++ .../src/transformers/blur_img_service.ts | 11 +++++++++++ .../src/transformers/rotate_img_service.ts | 11 +++++++++++ .../src/transformers/transformers.ts | 11 +++++++++++ .../dynamic-workflow-executor/src/types/types.ts | 11 +++++++++++ .../src/workflow/workflow.ts | 11 +++++++++++ .../src/workflow/workflow_executor.ts | 11 +++++++++++ .../src/workflow/workflow_status.ts | 11 +++++++++++ .../src/workflow/workflow_step_registry.ts | 11 +++++++++++ typescript/ecommerce-store/services/src/app.ts | 2 +- .../services/src/auxiliary/mailgun_client.ts | 2 +- .../services/src/auxiliary/stripe_client.ts | 2 +- .../services/src/checkout_flow_service.ts | 2 +- .../ecommerce-store/services/src/email_service.ts | 2 +- .../services/src/inventory_restock_service.ts | 2 +- .../ecommerce-store/services/src/model/product.ts | 2 +- .../services/src/payment_gateway.ts | 2 +- .../services/src/pg_product_service.ts | 2 +- .../services/src/product_listing_service.ts | 2 +- .../services/src/product_service.ts | 2 +- .../services/src/shipment_service.ts | 2 +- .../services/src/shopping_cart_service.ts | 2 +- .../services/src/user_profile_service.ts | 2 +- typescript/end-to-end-testing/src/app.ts | 11 +++++++++++ .../end-to-end-testing/src/example_service.ts | 11 +++++++++++ .../food-ordering/app/src/restate-app/app.ts | 11 +++++++++++ .../app/src/restate-app/clients/kafka_publisher.ts | 12 +++++++++++- .../app/src/restate-app/clients/payment_client.ts | 2 +- .../src/restate-app/clients/restaurant_client.ts | 11 +++++++++++ .../app/src/restate-app/delivery_manager.ts | 11 +++++++++++ .../app/src/restate-app/driver_delivery_matcher.ts | 11 +++++++++++ .../app/src/restate-app/driver_digital_twin.ts | 11 +++++++++++ .../restate-app/external/driver_mobile_app_sim.ts | 2 +- .../external/driver_mobile_app_sim_utils.ts | 14 ++++++++++---- .../app/src/restate-app/order_status_service.ts | 11 +++++++++++ .../app/src/restate-app/order_workflow.ts | 11 +++++++++++ .../app/src/restate-app/types/types.ts | 11 +++++++++++ .../food-ordering/app/src/restate-app/utils/geo.ts | 11 +++++++++++ .../app/src/restate-app/utils/utils.ts | 11 +++++++++++ .../food-ordering/app/src/restaurant/server.ts | 2 +- .../hello-world-lambda-cdk/bin/lambda-ts-cdk.ts | 12 ++++++++++++ .../lib/lambda-ts-cdk-stack.ts | 11 +++++++++++ .../hello-world-lambda-cdk/lib/lambda/handler.ts | 11 +++++++++++ typescript/hello-world-lambda/src/app.ts | 2 +- typescript/patterns/src/async_calls_as_rpc.ts | 11 +++++++++++ typescript/patterns/src/compensations.ts | 11 +++++++++++ .../src/deterministic_idempotency_tokens.ts | 10 ++++++++++ typescript/patterns/src/distributed_locks.ts | 11 +++++++++++ typescript/patterns/src/dual_writes.ts | 11 +++++++++++ typescript/patterns/src/dynamo_db_idempotency.ts | 11 +++++++++++ .../patterns/src/single_writer_concurrency.ts | 11 +++++++++++ typescript/payment-api/src/accounts.ts | 2 +- typescript/payment-api/src/payment_service.ts | 2 +- typescript/ticket-reservation/src/app.ts | 2 +- .../src/auxiliary/email_client.ts | 2 +- .../src/auxiliary/stripe_client.ts | 2 +- typescript/ticket-reservation/src/checkout.ts | 2 +- typescript/ticket-reservation/src/ticket_db.ts | 2 +- typescript/ticket-reservation/src/user_session.ts | 2 +- typescript/tour-of-restate/src/app/app.ts | 6 +++--- typescript/tour-of-restate/src/app/checkout.ts | 6 +++--- .../tour-of-restate/src/app/ticket_service.ts | 6 +++--- typescript/tour-of-restate/src/app/user_session.ts | 6 +++--- .../tour-of-restate/src/auxiliary/email_client.ts | 6 +++--- .../src/auxiliary/payment_client.ts | 6 +++--- typescript/tour-of-restate/src/part1/app.ts | 6 +++--- typescript/tour-of-restate/src/part1/checkout.ts | 6 +++--- .../tour-of-restate/src/part1/ticket_service.ts | 6 +++--- .../tour-of-restate/src/part1/user_session.ts | 6 +++--- typescript/tour-of-restate/src/part2/app.ts | 6 +++--- typescript/tour-of-restate/src/part2/checkout.ts | 6 +++--- .../tour-of-restate/src/part2/ticket_service.ts | 6 +++--- .../tour-of-restate/src/part2/user_session.ts | 6 +++--- typescript/tour-of-restate/src/part3/app.ts | 6 +++--- typescript/tour-of-restate/src/part3/checkout.ts | 6 +++--- .../tour-of-restate/src/part3/ticket_service.ts | 6 +++--- .../tour-of-restate/src/part3/user_session.ts | 6 +++--- typescript/tour-of-restate/src/part4/app.ts | 6 +++--- typescript/tour-of-restate/src/part4/checkout.ts | 6 +++--- .../tour-of-restate/src/part4/ticket_service.ts | 6 +++--- .../tour-of-restate/src/part4/user_session.ts | 6 +++--- 139 files changed, 871 insertions(+), 150 deletions(-) diff --git a/LICENSE b/LICENSE index 8963cdde..369510f7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License - Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + Copyright (c) 2024 - Restate Software, Inc., Restate GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/java/README.md b/java/README.md index 39b49f8a..f0d9ed0b 100644 --- a/java/README.md +++ b/java/README.md @@ -9,9 +9,9 @@ This directory contains Restate examples using the Java SDK. | Java | [Hello world on AWS Lambda](hello-world-lambda) | ## Tutorials -| Language | Name / Link | -|----------|-----------------------------------------| -| Java | [Tour of Restate](java/tour-of-restate) | +| Language | Name / Link | +|----------|------------------------------------------------------------------------------| +| Java | [Tour of Restate](tour-of-restate): A tour of the essentials of the Java SDK | ## Patterns diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/AppMain.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/AppMain.java index 1f700f30..3007447c 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/AppMain.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/AppMain.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import dev.restate.sdk.examples.external.DriverMobileAppSimulator; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DeliveryManager.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DeliveryManager.java index 00c1c5cf..7233f38c 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DeliveryManager.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DeliveryManager.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import static dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDeliveryMatcher.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDeliveryMatcher.java index 075b8bfe..033d7a78 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDeliveryMatcher.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDeliveryMatcher.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import static dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDigitalTwin.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDigitalTwin.java index 0b619d82..378116ef 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDigitalTwin.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/DriverDigitalTwin.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import static dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderStatusService.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderStatusService.java index 0b190949..0ea1cf5e 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderStatusService.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderStatusService.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import static dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderWorkflow.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderWorkflow.java index 26f3e7f3..ce0092d6 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderWorkflow.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/OrderWorkflow.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import static dev.restate.sdk.examples.utils.TypeUtils.statusToProto; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java index 16d1e4a9..0d84d65c 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.clients; import java.util.Properties; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/PaymentClient.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/PaymentClient.java index 0036bce6..6d7816dc 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/PaymentClient.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/PaymentClient.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.clients; import org.apache.logging.log4j.LogManager; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/RestaurantClient.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/RestaurantClient.java index e0b095e3..74913b64 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/RestaurantClient.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/RestaurantClient.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.clients; import dev.restate.sdk.common.TerminalException; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/external/DriverMobileAppSimulator.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/external/DriverMobileAppSimulator.java index fd90ccbb..06af8cb3 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/external/DriverMobileAppSimulator.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/external/DriverMobileAppSimulator.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.external; import static dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/AssignedDelivery.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/AssignedDelivery.java index 55b43b1e..c6d9254a 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/AssignedDelivery.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/AssignedDelivery.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DeliveryInformation.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DeliveryInformation.java index 69774ca3..60b8cd1b 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DeliveryInformation.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DeliveryInformation.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DriverStatus.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DriverStatus.java index 6ea742d9..65f915e2 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DriverStatus.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/DriverStatus.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; public enum DriverStatus { diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Location.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Location.java index 7e912859..3570b114 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Location.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Location.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/OrderRequest.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/OrderRequest.java index c3b01916..19e16eee 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/OrderRequest.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/OrderRequest.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Product.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Product.java index dcbd61af..9a4cd0cd 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Product.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/Product.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/StatusEnum.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/StatusEnum.java index 05ec76cb..96da52d9 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/StatusEnum.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/types/StatusEnum.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.types; public enum StatusEnum { diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/GeoUtils.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/GeoUtils.java index 41a63801..548165e3 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/GeoUtils.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/GeoUtils.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.utils; import dev.restate.sdk.examples.types.Location; diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/TypeUtils.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/TypeUtils.java index 86a4bae0..7084b579 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/TypeUtils.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/utils/TypeUtils.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples.utils; import dev.restate.sdk.examples.generated.OrderProto.*; diff --git a/java/hello-world-http/src/main/java/dev/restate/sdk/examples/Greeter.java b/java/hello-world-http/src/main/java/dev/restate/sdk/examples/Greeter.java index cee8045a..a1217579 100644 --- a/java/hello-world-http/src/main/java/dev/restate/sdk/examples/Greeter.java +++ b/java/hello-world-http/src/main/java/dev/restate/sdk/examples/Greeter.java @@ -1,4 +1,15 @@ -package dev.restate.sdk.examples; +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + + package dev.restate.sdk.examples; import dev.restate.sdk.RestateContext; import dev.restate.sdk.common.CoreSerdes; diff --git a/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/Greeter.java b/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/Greeter.java index 491d105d..95e78cd1 100644 --- a/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/Greeter.java +++ b/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/Greeter.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import dev.restate.sdk.RestateContext; diff --git a/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/LambdaHandler.java b/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/LambdaHandler.java index d6f7019c..9da00285 100644 --- a/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/LambdaHandler.java +++ b/java/hello-world-lambda/src/main/java/dev/restate/sdk/examples/LambdaHandler.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import dev.restate.sdk.lambda.BaseRestateLambdaHandler; diff --git a/java/hello-world-lambda/src/test/java/dev/restate/sdk/examples/GreeterTest.java b/java/hello-world-lambda/src/test/java/dev/restate/sdk/examples/GreeterTest.java index 9f6f94c3..7af11171 100644 --- a/java/hello-world-lambda/src/test/java/dev/restate/sdk/examples/GreeterTest.java +++ b/java/hello-world-lambda/src/test/java/dev/restate/sdk/examples/GreeterTest.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.sdk.examples; import dev.restate.sdk.examples.generated.GreeterGrpc; diff --git a/java/patterns/src/main/java/dev/restate/patterns/Compensations.java b/java/patterns/src/main/java/dev/restate/patterns/Compensations.java index 393576cc..c1c1c978 100644 --- a/java/patterns/src/main/java/dev/restate/patterns/Compensations.java +++ b/java/patterns/src/main/java/dev/restate/patterns/Compensations.java @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + package dev.restate.patterns; import static dev.restate.patterns.compensations.generated.Proto.*; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/app/AppMain.java b/java/tour-of-restate/src/main/java/dev/restate/tour/app/AppMain.java index 8d4e0d14..037ab73a 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/app/AppMain.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/app/AppMain.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.app; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/app/Checkout.java b/java/tour-of-restate/src/main/java/dev/restate/tour/app/Checkout.java index 2a09aa32..03023258 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/app/Checkout.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/app/Checkout.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.app; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/app/TicketService.java b/java/tour-of-restate/src/main/java/dev/restate/tour/app/TicketService.java index 6426d628..aba50736 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/app/TicketService.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/app/TicketService.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.app; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/app/UserSession.java b/java/tour-of-restate/src/main/java/dev/restate/tour/app/UserSession.java index 574cd3ff..b5ea97fc 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/app/UserSession.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/app/UserSession.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.app; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/EmailClient.java b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/EmailClient.java index 65d120c9..6c87ae23 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/EmailClient.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/EmailClient.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.auxiliary; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/PaymentClient.java b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/PaymentClient.java index 7e937978..65f7a60d 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/PaymentClient.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/PaymentClient.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.auxiliary; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/TicketStatus.java b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/TicketStatus.java index 1cb4f68f..c1692128 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/TicketStatus.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/auxiliary/TicketStatus.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.auxiliary; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/AppMain.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/AppMain.java index f0d051da..55b5b1c4 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/AppMain.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/AppMain.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part1; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/Checkout.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/Checkout.java index 8eb1936c..68ed2bb8 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/Checkout.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/Checkout.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part1; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/TicketService.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/TicketService.java index c062aca6..1514bbfc 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/TicketService.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/TicketService.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part1; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/UserSession.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/UserSession.java index 3136ed40..282132bc 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part1/UserSession.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part1/UserSession.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part1; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/AppMain.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/AppMain.java index 14186dcc..66b2b8ce 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/AppMain.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/AppMain.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part2; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/Checkout.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/Checkout.java index 928dd25d..37f2ffe3 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/Checkout.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/Checkout.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part2; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/TicketService.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/TicketService.java index 58a2e07c..5a7568d3 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/TicketService.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/TicketService.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part2; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/UserSession.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/UserSession.java index ab0aa731..8424cff9 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part2/UserSession.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part2/UserSession.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part2; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/AppMain.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/AppMain.java index 09f041cd..ac65c512 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/AppMain.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/AppMain.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part3; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/Checkout.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/Checkout.java index d3af335f..02e4aac3 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/Checkout.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/Checkout.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part3; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/TicketService.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/TicketService.java index 42fae4db..cae9454c 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/TicketService.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/TicketService.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part3; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/UserSession.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/UserSession.java index e522e792..f0d8b360 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part3/UserSession.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part3/UserSession.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part3; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/AppMain.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/AppMain.java index 8bdf1028..cd2b08b7 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/AppMain.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/AppMain.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part4; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/Checkout.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/Checkout.java index dbeb04da..26301111 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/Checkout.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/Checkout.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part4; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/TicketService.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/TicketService.java index 58aca565..55bb6344 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/TicketService.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/TicketService.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part4; diff --git a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/UserSession.java b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/UserSession.java index 1dda1916..7a79c96b 100644 --- a/java/tour-of-restate/src/main/java/dev/restate/tour/part4/UserSession.java +++ b/java/tour-of-restate/src/main/java/dev/restate/tour/part4/UserSession.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Tour of Restate Java, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ package dev.restate.tour.part4; diff --git a/kotlin/hello-world-lambda-cdk/bin/lambda-jvm-cdk.ts b/kotlin/hello-world-lambda-cdk/bin/lambda-jvm-cdk.ts index e69a3d53..ff92f2cb 100644 --- a/kotlin/hello-world-lambda-cdk/bin/lambda-jvm-cdk.ts +++ b/kotlin/hello-world-lambda-cdk/bin/lambda-jvm-cdk.ts @@ -1,4 +1,16 @@ #!/usr/bin/env node + +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import "source-map-support/register"; import * as cdk from "aws-cdk-lib"; import { LambdaJvmCdkStack } from "../cdk/lambda-jvm-cdk-stack"; diff --git a/kotlin/hello-world-lambda-cdk/cdk/lambda-jvm-cdk-stack.ts b/kotlin/hello-world-lambda-cdk/cdk/lambda-jvm-cdk-stack.ts index 4c729fe1..2f2fa7b4 100644 --- a/kotlin/hello-world-lambda-cdk/cdk/lambda-jvm-cdk-stack.ts +++ b/kotlin/hello-world-lambda-cdk/cdk/lambda-jvm-cdk-stack.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as cdk from "aws-cdk-lib"; import * as lambda from "aws-cdk-lib/aws-lambda"; import * as restate from "@restatedev/restate-cdk"; diff --git a/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/Greeter.kt b/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/Greeter.kt index 0ab55ac7..be330f7e 100644 --- a/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/Greeter.kt +++ b/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/Greeter.kt @@ -1,4 +1,15 @@ -package dev.restate.sdk.examples +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + + package dev.restate.sdk.examples import dev.restate.sdk.common.CoreSerdes import dev.restate.sdk.common.StateKey diff --git a/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/LambdaHandler.kt b/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/LambdaHandler.kt index b95f2708..d6ffa1e3 100644 --- a/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/LambdaHandler.kt +++ b/kotlin/hello-world-lambda-cdk/lambda/src/main/kotlin/dev/restate/sdk/examples/LambdaHandler.kt @@ -1,4 +1,15 @@ -package dev.restate.sdk.examples +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + + package dev.restate.sdk.examples import dev.restate.sdk.lambda.BaseRestateLambdaHandler import dev.restate.sdk.lambda.RestateLambdaEndpointBuilder diff --git a/typescript/dynamic-workflow-executor/src/external/stable_diffusion.ts b/typescript/dynamic-workflow-executor/src/external/stable_diffusion.ts index b32b0da8..0d923998 100644 --- a/typescript/dynamic-workflow-executor/src/external/stable_diffusion.ts +++ b/typescript/dynamic-workflow-executor/src/external/stable_diffusion.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import express, { Request, Response } from "express"; import axios from "axios"; import axiosRetry from 'axios-retry'; diff --git a/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer.ts b/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer.ts index 61ccd67c..6aeb11bc 100644 --- a/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer.ts +++ b/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as puppeteerService from "./puppeteer_generator"; diff --git a/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer_generator.ts b/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer_generator.ts index 26c561f8..346f2e25 100644 --- a/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer_generator.ts +++ b/typescript/dynamic-workflow-executor/src/puppeteer/puppeteer_generator.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as puppeteer from 'puppeteer'; import * as restate from "@restatedev/restate-sdk"; import { WorkflowStep } from "../types/types"; diff --git a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion.ts b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion.ts index 2ef99235..ef8b4787 100644 --- a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion.ts +++ b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as stableDiffusionGenerator from "./stable_diffusion_generator"; import * as stableDiffusionTransformer from "./stable_diffusion_transformer"; diff --git a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_generator.ts b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_generator.ts index 77394d48..211a6ffb 100644 --- a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_generator.ts +++ b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_generator.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import { WorkflowStep } from "../types/types"; import axios from "axios"; diff --git a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_transformer.ts b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_transformer.ts index 14319f5c..429de856 100644 --- a/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_transformer.ts +++ b/typescript/dynamic-workflow-executor/src/stable-diffusion/stable_diffusion_transformer.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import { WorkflowStep } from "../types/types"; import axios from "axios"; diff --git a/typescript/dynamic-workflow-executor/src/transformers/blur_img_service.ts b/typescript/dynamic-workflow-executor/src/transformers/blur_img_service.ts index 9493db10..f2835f34 100644 --- a/typescript/dynamic-workflow-executor/src/transformers/blur_img_service.ts +++ b/typescript/dynamic-workflow-executor/src/transformers/blur_img_service.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import {WorkflowStep} from "../types/types"; import Jimp from "jimp"; diff --git a/typescript/dynamic-workflow-executor/src/transformers/rotate_img_service.ts b/typescript/dynamic-workflow-executor/src/transformers/rotate_img_service.ts index fe7a1450..b18b5642 100644 --- a/typescript/dynamic-workflow-executor/src/transformers/rotate_img_service.ts +++ b/typescript/dynamic-workflow-executor/src/transformers/rotate_img_service.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import {WorkflowStep} from "../types/types"; import Jimp from "jimp"; diff --git a/typescript/dynamic-workflow-executor/src/transformers/transformers.ts b/typescript/dynamic-workflow-executor/src/transformers/transformers.ts index bee870eb..f30b3a6a 100644 --- a/typescript/dynamic-workflow-executor/src/transformers/transformers.ts +++ b/typescript/dynamic-workflow-executor/src/transformers/transformers.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as rotateImgService from "./rotate_img_service"; import * as blurImgService from "./blur_img_service"; diff --git a/typescript/dynamic-workflow-executor/src/types/types.ts b/typescript/dynamic-workflow-executor/src/types/types.ts index fa937992..9718c963 100644 --- a/typescript/dynamic-workflow-executor/src/types/types.ts +++ b/typescript/dynamic-workflow-executor/src/types/types.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import {ServiceApi} from "@restatedev/restate-sdk"; export type WorkflowStep = { diff --git a/typescript/dynamic-workflow-executor/src/workflow/workflow.ts b/typescript/dynamic-workflow-executor/src/workflow/workflow.ts index 8a297cd2..d3ca895e 100644 --- a/typescript/dynamic-workflow-executor/src/workflow/workflow.ts +++ b/typescript/dynamic-workflow-executor/src/workflow/workflow.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as workflowExecutor from "./workflow_executor"; import * as workflowStatus from "./workflow_status"; diff --git a/typescript/dynamic-workflow-executor/src/workflow/workflow_executor.ts b/typescript/dynamic-workflow-executor/src/workflow/workflow_executor.ts index cf96aa05..b2710534 100644 --- a/typescript/dynamic-workflow-executor/src/workflow/workflow_executor.ts +++ b/typescript/dynamic-workflow-executor/src/workflow/workflow_executor.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import { ProcessorType, WorfklowStatus, WorkflowDefinition, WorkflowStep } from "../types/types"; import * as restate from "@restatedev/restate-sdk"; import * as workflowStatus from "./workflow_status"; diff --git a/typescript/dynamic-workflow-executor/src/workflow/workflow_status.ts b/typescript/dynamic-workflow-executor/src/workflow/workflow_status.ts index c5f406e5..7a51da60 100644 --- a/typescript/dynamic-workflow-executor/src/workflow/workflow_status.ts +++ b/typescript/dynamic-workflow-executor/src/workflow/workflow_status.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import {WorfklowStatus} from "../types/types"; diff --git a/typescript/dynamic-workflow-executor/src/workflow/workflow_step_registry.ts b/typescript/dynamic-workflow-executor/src/workflow/workflow_step_registry.ts index a3bcfe90..6d05fc57 100644 --- a/typescript/dynamic-workflow-executor/src/workflow/workflow_step_registry.ts +++ b/typescript/dynamic-workflow-executor/src/workflow/workflow_step_registry.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import {ProcessorType, WorkflowStepProcessor} from "../types/types"; import * as puppeteer from "../puppeteer/puppeteer_generator"; import * as stableDiffusionGenerator from "../stable-diffusion/stable_diffusion_generator"; diff --git a/typescript/ecommerce-store/services/src/app.ts b/typescript/ecommerce-store/services/src/app.ts index fa379dad..474cc2f9 100644 --- a/typescript/ecommerce-store/services/src/app.ts +++ b/typescript/ecommerce-store/services/src/app.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/auxiliary/mailgun_client.ts b/typescript/ecommerce-store/services/src/auxiliary/mailgun_client.ts index 04cf9e60..758b96e3 100644 --- a/typescript/ecommerce-store/services/src/auxiliary/mailgun_client.ts +++ b/typescript/ecommerce-store/services/src/auxiliary/mailgun_client.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/auxiliary/stripe_client.ts b/typescript/ecommerce-store/services/src/auxiliary/stripe_client.ts index 1bfd15d8..0e081cea 100644 --- a/typescript/ecommerce-store/services/src/auxiliary/stripe_client.ts +++ b/typescript/ecommerce-store/services/src/auxiliary/stripe_client.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/checkout_flow_service.ts b/typescript/ecommerce-store/services/src/checkout_flow_service.ts index b13c3013..9a566177 100644 --- a/typescript/ecommerce-store/services/src/checkout_flow_service.ts +++ b/typescript/ecommerce-store/services/src/checkout_flow_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/email_service.ts b/typescript/ecommerce-store/services/src/email_service.ts index a45a0114..31880aad 100644 --- a/typescript/ecommerce-store/services/src/email_service.ts +++ b/typescript/ecommerce-store/services/src/email_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/inventory_restock_service.ts b/typescript/ecommerce-store/services/src/inventory_restock_service.ts index f6380411..66436064 100644 --- a/typescript/ecommerce-store/services/src/inventory_restock_service.ts +++ b/typescript/ecommerce-store/services/src/inventory_restock_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/model/product.ts b/typescript/ecommerce-store/services/src/model/product.ts index dd179987..dcf1a35f 100644 --- a/typescript/ecommerce-store/services/src/model/product.ts +++ b/typescript/ecommerce-store/services/src/model/product.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/payment_gateway.ts b/typescript/ecommerce-store/services/src/payment_gateway.ts index d375af58..0057ae90 100644 --- a/typescript/ecommerce-store/services/src/payment_gateway.ts +++ b/typescript/ecommerce-store/services/src/payment_gateway.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/pg_product_service.ts b/typescript/ecommerce-store/services/src/pg_product_service.ts index 5966eea1..6a254d9f 100644 --- a/typescript/ecommerce-store/services/src/pg_product_service.ts +++ b/typescript/ecommerce-store/services/src/pg_product_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/product_listing_service.ts b/typescript/ecommerce-store/services/src/product_listing_service.ts index 4b3eca4a..485d39bc 100644 --- a/typescript/ecommerce-store/services/src/product_listing_service.ts +++ b/typescript/ecommerce-store/services/src/product_listing_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/product_service.ts b/typescript/ecommerce-store/services/src/product_service.ts index afe54932..89dd6342 100644 --- a/typescript/ecommerce-store/services/src/product_service.ts +++ b/typescript/ecommerce-store/services/src/product_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/shipment_service.ts b/typescript/ecommerce-store/services/src/shipment_service.ts index 75cf7fd8..507c4ee5 100644 --- a/typescript/ecommerce-store/services/src/shipment_service.ts +++ b/typescript/ecommerce-store/services/src/shipment_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/shopping_cart_service.ts b/typescript/ecommerce-store/services/src/shopping_cart_service.ts index 4ec262fb..a2eb0a58 100644 --- a/typescript/ecommerce-store/services/src/shopping_cart_service.ts +++ b/typescript/ecommerce-store/services/src/shopping_cart_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ecommerce-store/services/src/user_profile_service.ts b/typescript/ecommerce-store/services/src/user_profile_service.ts index 5705eeff..40f3552a 100644 --- a/typescript/ecommerce-store/services/src/user_profile_service.ts +++ b/typescript/ecommerce-store/services/src/user_profile_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/end-to-end-testing/src/app.ts b/typescript/end-to-end-testing/src/app.ts index 62da7820..2346841f 100644 --- a/typescript/end-to-end-testing/src/app.ts +++ b/typescript/end-to-end-testing/src/app.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import { protoMetadata } from "./generated/proto/example"; diff --git a/typescript/end-to-end-testing/src/example_service.ts b/typescript/end-to-end-testing/src/example_service.ts index ab62585f..a5343b4e 100644 --- a/typescript/end-to-end-testing/src/example_service.ts +++ b/typescript/end-to-end-testing/src/example_service.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import { diff --git a/typescript/food-ordering/app/src/restate-app/app.ts b/typescript/food-ordering/app/src/restate-app/app.ts index fa199efd..8546796d 100644 --- a/typescript/food-ordering/app/src/restate-app/app.ts +++ b/typescript/food-ordering/app/src/restate-app/app.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as driverDigitalTwin from "./driver_digital_twin"; import * as driverDeliveryMatcher from "./driver_delivery_matcher"; diff --git a/typescript/food-ordering/app/src/restate-app/clients/kafka_publisher.ts b/typescript/food-ordering/app/src/restate-app/clients/kafka_publisher.ts index 68217bfc..83ccec84 100644 --- a/typescript/food-ordering/app/src/restate-app/clients/kafka_publisher.ts +++ b/typescript/food-ordering/app/src/restate-app/clients/kafka_publisher.ts @@ -1,4 +1,14 @@ -import * as restate from "@restatedev/restate-sdk"; +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import { Location } from "../types/types"; import { Kafka, KafkaConfig } from "kafkajs"; diff --git a/typescript/food-ordering/app/src/restate-app/clients/payment_client.ts b/typescript/food-ordering/app/src/restate-app/clients/payment_client.ts index a6773c11..7ff0bff6 100644 --- a/typescript/food-ordering/app/src/restate-app/clients/payment_client.ts +++ b/typescript/food-ordering/app/src/restate-app/clients/payment_client.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/food-ordering/app/src/restate-app/clients/restaurant_client.ts b/typescript/food-ordering/app/src/restate-app/clients/restaurant_client.ts index 05ac2359..66db84c5 100644 --- a/typescript/food-ordering/app/src/restate-app/clients/restaurant_client.ts +++ b/typescript/food-ordering/app/src/restate-app/clients/restaurant_client.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import axios from "axios"; const RESTAURANT_ENDPOINT = diff --git a/typescript/food-ordering/app/src/restate-app/delivery_manager.ts b/typescript/food-ordering/app/src/restate-app/delivery_manager.ts index 45260daf..1a1f6777 100644 --- a/typescript/food-ordering/app/src/restate-app/delivery_manager.ts +++ b/typescript/food-ordering/app/src/restate-app/delivery_manager.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as driverDigitalTwin from "./driver_digital_twin"; import * as driverDeliveryMatcher from "./driver_delivery_matcher"; diff --git a/typescript/food-ordering/app/src/restate-app/driver_delivery_matcher.ts b/typescript/food-ordering/app/src/restate-app/driver_delivery_matcher.ts index 84c77a07..9278f411 100644 --- a/typescript/food-ordering/app/src/restate-app/driver_delivery_matcher.ts +++ b/typescript/food-ordering/app/src/restate-app/driver_delivery_matcher.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import { PendingDelivery } from "./types/types"; diff --git a/typescript/food-ordering/app/src/restate-app/driver_digital_twin.ts b/typescript/food-ordering/app/src/restate-app/driver_digital_twin.ts index 1435bd7d..b3b72e51 100644 --- a/typescript/food-ordering/app/src/restate-app/driver_digital_twin.ts +++ b/typescript/food-ordering/app/src/restate-app/driver_digital_twin.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as driverDeliveryMatcher from "./driver_delivery_matcher"; import * as deliveryManager from "./delivery_manager"; diff --git a/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim.ts b/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim.ts index e9d05062..4c73bb5c 100644 --- a/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim.ts +++ b/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim_utils.ts b/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim_utils.ts index 1b0de8c2..c268988e 100644 --- a/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim_utils.ts +++ b/typescript/food-ordering/app/src/restate-app/external/driver_mobile_app_sim_utils.ts @@ -1,7 +1,13 @@ -// -------------------------------------------------------- -// helpers -// -------------------------------------------------------- - +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ import { Location } from "../types/types"; import * as geo from "../utils/geo"; diff --git a/typescript/food-ordering/app/src/restate-app/order_status_service.ts b/typescript/food-ordering/app/src/restate-app/order_status_service.ts index c1d9c428..4790c43a 100644 --- a/typescript/food-ordering/app/src/restate-app/order_status_service.ts +++ b/typescript/food-ordering/app/src/restate-app/order_status_service.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import { OrderStatus, Status } from "./types/types"; import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/food-ordering/app/src/restate-app/order_workflow.ts b/typescript/food-ordering/app/src/restate-app/order_workflow.ts index 8636e7df..37958774 100644 --- a/typescript/food-ordering/app/src/restate-app/order_workflow.ts +++ b/typescript/food-ordering/app/src/restate-app/order_workflow.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; import * as deliveryManager from "./delivery_manager"; import {Order, Status} from "./types/types"; diff --git a/typescript/food-ordering/app/src/restate-app/types/types.ts b/typescript/food-ordering/app/src/restate-app/types/types.ts index 2f5afc95..d1440dbb 100644 --- a/typescript/food-ordering/app/src/restate-app/types/types.ts +++ b/typescript/food-ordering/app/src/restate-app/types/types.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + export type Product = { productId: string; description: string; diff --git a/typescript/food-ordering/app/src/restate-app/utils/geo.ts b/typescript/food-ordering/app/src/restate-app/utils/geo.ts index d93ecd1f..f4c5d560 100644 --- a/typescript/food-ordering/app/src/restate-app/utils/geo.ts +++ b/typescript/food-ordering/app/src/restate-app/utils/geo.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import { Location } from "../types/types"; const long_min = -0.0675; diff --git a/typescript/food-ordering/app/src/restate-app/utils/utils.ts b/typescript/food-ordering/app/src/restate-app/utils/utils.ts index 117b3cec..859c3667 100644 --- a/typescript/food-ordering/app/src/restate-app/utils/utils.ts +++ b/typescript/food-ordering/app/src/restate-app/utils/utils.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; export function fail(id: string, msg: string) { diff --git a/typescript/food-ordering/app/src/restaurant/server.ts b/typescript/food-ordering/app/src/restaurant/server.ts index 01c6c544..ccd0e994 100644 --- a/typescript/food-ordering/app/src/restaurant/server.ts +++ b/typescript/food-ordering/app/src/restaurant/server.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/hello-world-lambda-cdk/bin/lambda-ts-cdk.ts b/typescript/hello-world-lambda-cdk/bin/lambda-ts-cdk.ts index a24368a3..f6ea9aa2 100644 --- a/typescript/hello-world-lambda-cdk/bin/lambda-ts-cdk.ts +++ b/typescript/hello-world-lambda-cdk/bin/lambda-ts-cdk.ts @@ -1,4 +1,16 @@ #!/usr/bin/env node + +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import "source-map-support/register"; import * as cdk from "aws-cdk-lib"; import { LambdaTsCdkStack } from "../lib/lambda-ts-cdk-stack"; diff --git a/typescript/hello-world-lambda-cdk/lib/lambda-ts-cdk-stack.ts b/typescript/hello-world-lambda-cdk/lib/lambda-ts-cdk-stack.ts index 7e5500b9..69b76022 100644 --- a/typescript/hello-world-lambda-cdk/lib/lambda-ts-cdk-stack.ts +++ b/typescript/hello-world-lambda-cdk/lib/lambda-ts-cdk-stack.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as cdk from "aws-cdk-lib"; import * as lambda from "aws-cdk-lib/aws-lambda"; import * as logs from "aws-cdk-lib/aws-logs"; diff --git a/typescript/hello-world-lambda-cdk/lib/lambda/handler.ts b/typescript/hello-world-lambda-cdk/lib/lambda/handler.ts index fab07569..581eb7e5 100644 --- a/typescript/hello-world-lambda-cdk/lib/lambda/handler.ts +++ b/typescript/hello-world-lambda-cdk/lib/lambda/handler.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; export const handler = restate diff --git a/typescript/hello-world-lambda/src/app.ts b/typescript/hello-world-lambda/src/app.ts index 9d9636e7..a0e0aa06 100644 --- a/typescript/hello-world-lambda/src/app.ts +++ b/typescript/hello-world-lambda/src/app.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/patterns/src/async_calls_as_rpc.ts b/typescript/patterns/src/async_calls_as_rpc.ts index 4dfccd93..0369305d 100644 --- a/typescript/patterns/src/async_calls_as_rpc.ts +++ b/typescript/patterns/src/async_calls_as_rpc.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/patterns/src/compensations.ts b/typescript/patterns/src/compensations.ts index c5ac5965..b7457a9f 100644 --- a/typescript/patterns/src/compensations.ts +++ b/typescript/patterns/src/compensations.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/patterns/src/deterministic_idempotency_tokens.ts b/typescript/patterns/src/deterministic_idempotency_tokens.ts index d48695b5..d672983f 100644 --- a/typescript/patterns/src/deterministic_idempotency_tokens.ts +++ b/typescript/patterns/src/deterministic_idempotency_tokens.ts @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ import * as restate from "@restatedev/restate-sdk"; import { randomUUID } from "crypto"; import fetch from "node-fetch"; diff --git a/typescript/patterns/src/distributed_locks.ts b/typescript/patterns/src/distributed_locks.ts index 91594d84..ad366a6b 100644 --- a/typescript/patterns/src/distributed_locks.ts +++ b/typescript/patterns/src/distributed_locks.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/patterns/src/dual_writes.ts b/typescript/patterns/src/dual_writes.ts index b4eb29b7..efd01562 100644 --- a/typescript/patterns/src/dual_writes.ts +++ b/typescript/patterns/src/dual_writes.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/patterns/src/dynamo_db_idempotency.ts b/typescript/patterns/src/dynamo_db_idempotency.ts index 5a71d498..e571a815 100644 --- a/typescript/patterns/src/dynamo_db_idempotency.ts +++ b/typescript/patterns/src/dynamo_db_idempotency.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/patterns/src/single_writer_concurrency.ts b/typescript/patterns/src/single_writer_concurrency.ts index a1cc980a..896662d4 100644 --- a/typescript/patterns/src/single_writer_concurrency.ts +++ b/typescript/patterns/src/single_writer_concurrency.ts @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH + * + * This file is part of the Restate examples, + * which is released under the MIT license. + * + * You can find a copy of the license in the file LICENSE + * in the root directory of this repository or package or at + * https://github.com/restatedev/examples/ + */ + import * as restate from "@restatedev/restate-sdk"; // ----------------- ----------------- diff --git a/typescript/payment-api/src/accounts.ts b/typescript/payment-api/src/accounts.ts index 9e84fc7d..874f52ce 100644 --- a/typescript/payment-api/src/accounts.ts +++ b/typescript/payment-api/src/accounts.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/payment-api/src/payment_service.ts b/typescript/payment-api/src/payment_service.ts index 6929633c..090d556e 100644 --- a/typescript/payment-api/src/payment_service.ts +++ b/typescript/payment-api/src/payment_service.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/app.ts b/typescript/ticket-reservation/src/app.ts index ac4758b8..17f6dc7c 100644 --- a/typescript/ticket-reservation/src/app.ts +++ b/typescript/ticket-reservation/src/app.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/auxiliary/email_client.ts b/typescript/ticket-reservation/src/auxiliary/email_client.ts index f9433e88..7d55e086 100644 --- a/typescript/ticket-reservation/src/auxiliary/email_client.ts +++ b/typescript/ticket-reservation/src/auxiliary/email_client.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/auxiliary/stripe_client.ts b/typescript/ticket-reservation/src/auxiliary/stripe_client.ts index efd47a32..ec675be5 100644 --- a/typescript/ticket-reservation/src/auxiliary/stripe_client.ts +++ b/typescript/ticket-reservation/src/auxiliary/stripe_client.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/checkout.ts b/typescript/ticket-reservation/src/checkout.ts index 151c606f..569a1eb3 100644 --- a/typescript/ticket-reservation/src/checkout.ts +++ b/typescript/ticket-reservation/src/checkout.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/ticket_db.ts b/typescript/ticket-reservation/src/ticket_db.ts index 5b415715..ace8db9a 100644 --- a/typescript/ticket-reservation/src/ticket_db.ts +++ b/typescript/ticket-reservation/src/ticket_db.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/ticket-reservation/src/user_session.ts b/typescript/ticket-reservation/src/user_session.ts index 52ce601f..05e2ed5b 100644 --- a/typescript/ticket-reservation/src/user_session.ts +++ b/typescript/ticket-reservation/src/user_session.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * * This file is part of the Restate Examples for the Node.js/TypeScript SDK, * which is released under the MIT license. diff --git a/typescript/tour-of-restate/src/app/app.ts b/typescript/tour-of-restate/src/app/app.ts index 7a54ae2f..2c2946a8 100644 --- a/typescript/tour-of-restate/src/app/app.ts +++ b/typescript/tour-of-restate/src/app/app.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/app/checkout.ts b/typescript/tour-of-restate/src/app/checkout.ts index 7472e548..1f55e066 100644 --- a/typescript/tour-of-restate/src/app/checkout.ts +++ b/typescript/tour-of-restate/src/app/checkout.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/app/ticket_service.ts b/typescript/tour-of-restate/src/app/ticket_service.ts index c5cdacdb..d15171c9 100644 --- a/typescript/tour-of-restate/src/app/ticket_service.ts +++ b/typescript/tour-of-restate/src/app/ticket_service.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/app/user_session.ts b/typescript/tour-of-restate/src/app/user_session.ts index 8e4065cc..5998f63a 100644 --- a/typescript/tour-of-restate/src/app/user_session.ts +++ b/typescript/tour-of-restate/src/app/user_session.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/auxiliary/email_client.ts b/typescript/tour-of-restate/src/auxiliary/email_client.ts index 2a7551bf..c3a0d2bd 100644 --- a/typescript/tour-of-restate/src/auxiliary/email_client.ts +++ b/typescript/tour-of-restate/src/auxiliary/email_client.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ export class EmailClient { diff --git a/typescript/tour-of-restate/src/auxiliary/payment_client.ts b/typescript/tour-of-restate/src/auxiliary/payment_client.ts index fb202957..f8317af2 100644 --- a/typescript/tour-of-restate/src/auxiliary/payment_client.ts +++ b/typescript/tour-of-restate/src/auxiliary/payment_client.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ let i = 0; diff --git a/typescript/tour-of-restate/src/part1/app.ts b/typescript/tour-of-restate/src/part1/app.ts index 7a54ae2f..2c2946a8 100644 --- a/typescript/tour-of-restate/src/part1/app.ts +++ b/typescript/tour-of-restate/src/part1/app.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part1/checkout.ts b/typescript/tour-of-restate/src/part1/checkout.ts index 7472e548..1f55e066 100644 --- a/typescript/tour-of-restate/src/part1/checkout.ts +++ b/typescript/tour-of-restate/src/part1/checkout.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part1/ticket_service.ts b/typescript/tour-of-restate/src/part1/ticket_service.ts index 9288932a..3820dccb 100644 --- a/typescript/tour-of-restate/src/part1/ticket_service.ts +++ b/typescript/tour-of-restate/src/part1/ticket_service.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part1/user_session.ts b/typescript/tour-of-restate/src/part1/user_session.ts index 0f233645..a775f161 100644 --- a/typescript/tour-of-restate/src/part1/user_session.ts +++ b/typescript/tour-of-restate/src/part1/user_session.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part2/app.ts b/typescript/tour-of-restate/src/part2/app.ts index 7a54ae2f..2c2946a8 100644 --- a/typescript/tour-of-restate/src/part2/app.ts +++ b/typescript/tour-of-restate/src/part2/app.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part2/checkout.ts b/typescript/tour-of-restate/src/part2/checkout.ts index 7472e548..1f55e066 100644 --- a/typescript/tour-of-restate/src/part2/checkout.ts +++ b/typescript/tour-of-restate/src/part2/checkout.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part2/ticket_service.ts b/typescript/tour-of-restate/src/part2/ticket_service.ts index 76993799..e243d2ab 100644 --- a/typescript/tour-of-restate/src/part2/ticket_service.ts +++ b/typescript/tour-of-restate/src/part2/ticket_service.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part2/user_session.ts b/typescript/tour-of-restate/src/part2/user_session.ts index f0d96b8b..351d88a2 100644 --- a/typescript/tour-of-restate/src/part2/user_session.ts +++ b/typescript/tour-of-restate/src/part2/user_session.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part3/app.ts b/typescript/tour-of-restate/src/part3/app.ts index 7a54ae2f..2c2946a8 100644 --- a/typescript/tour-of-restate/src/part3/app.ts +++ b/typescript/tour-of-restate/src/part3/app.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part3/checkout.ts b/typescript/tour-of-restate/src/part3/checkout.ts index aa253044..8ef147e6 100644 --- a/typescript/tour-of-restate/src/part3/checkout.ts +++ b/typescript/tour-of-restate/src/part3/checkout.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part3/ticket_service.ts b/typescript/tour-of-restate/src/part3/ticket_service.ts index 76993799..e243d2ab 100644 --- a/typescript/tour-of-restate/src/part3/ticket_service.ts +++ b/typescript/tour-of-restate/src/part3/ticket_service.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part3/user_session.ts b/typescript/tour-of-restate/src/part3/user_session.ts index e9310646..3da005a7 100644 --- a/typescript/tour-of-restate/src/part3/user_session.ts +++ b/typescript/tour-of-restate/src/part3/user_session.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part4/app.ts b/typescript/tour-of-restate/src/part4/app.ts index 7a54ae2f..2c2946a8 100644 --- a/typescript/tour-of-restate/src/part4/app.ts +++ b/typescript/tour-of-restate/src/part4/app.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part4/checkout.ts b/typescript/tour-of-restate/src/part4/checkout.ts index 0358d9f2..52db2dab 100644 --- a/typescript/tour-of-restate/src/part4/checkout.ts +++ b/typescript/tour-of-restate/src/part4/checkout.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part4/ticket_service.ts b/typescript/tour-of-restate/src/part4/ticket_service.ts index 76993799..e243d2ab 100644 --- a/typescript/tour-of-restate/src/part4/ticket_service.ts +++ b/typescript/tour-of-restate/src/part4/ticket_service.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk"; diff --git a/typescript/tour-of-restate/src/part4/user_session.ts b/typescript/tour-of-restate/src/part4/user_session.ts index b48ae68a..89df08f8 100644 --- a/typescript/tour-of-restate/src/part4/user_session.ts +++ b/typescript/tour-of-restate/src/part4/user_session.ts @@ -1,12 +1,12 @@ /* - * Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + * Copyright (c) 2024 - Restate Software, Inc., Restate GmbH * - * This file is part of the Tour of Restate Typescript handler API, + * This file is part of the Restate examples, * which is released under the MIT license. * * You can find a copy of the license in the file LICENSE * in the root directory of this repository or package or at - * https://github.com/restatedev/tour-of-restate + * https://github.com/restatedev/examples/ */ import * as restate from "@restatedev/restate-sdk";